(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+QbS":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8Y7J"),s=n("IheW"),r=n("4c1C");n("K4wu"),n("OA6I");var a=n("oWlK"),o=n("WFZd"),l=n("la2H"),c=function(){function t(t,e){this.auth=t,this.broadcastService=e}return t.prototype.intercept=function(t,e){var n=this,i=this.auth.getScopesForEndpoint(t.url);if(this.auth.verbose("Url: "+t.url+" maps to scopes: "+i),null===i)return e.handle(t);var a=this.auth.getCachedTokenInternal(i);return a&&a.token?(t=t.clone({setHeaders:{Authorization:"Bearer "+a.token}}),e.handle(t).do(function(t){},function(e){if(e instanceof s.HttpErrorResponse&&401==e.status){var i=n.auth.getScopesForEndpoint(t.url),r=n.auth.getCachedTokenInternal(i);r&&r.token&&n.auth.clearCacheForScope(r.token);var a=new l.MSALError(JSON.stringify(e),"",JSON.stringify(i));n.broadcastService.broadcast("msal:notAuthorized",a)}})):r.Observable.fromPromise(this.auth.acquireTokenSilent(i).then(function(e){var n="Bearer "+e;return t.clone({setHeaders:{Authorization:n}})})).mergeMap(function(t){return e.handle(t).do(function(t){},function(e){if(e instanceof s.HttpErrorResponse&&401==e.status){var i=n.auth.getScopesForEndpoint(t.url),r=n.auth.getCachedTokenInternal(i);r&&r.token&&n.auth.clearCacheForScope(r.token);var a=new l.MSALError(JSON.stringify(e),"",JSON.stringify(i));n.broadcastService.broadcast("msal:notAuthorized",a)}})})},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:a.MsalService},{type:o.BroadcastService}]},t}();e.MsalInterceptor=c},"//0v":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp");e.Observable=i.Observable},"/p4D":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=function(t){if(i.Utils.isEmpty(t))throw new Error("null or empty raw idtoken");try{this.rawIdToken=t,this.decodedIdToken=i.Utils.extractIdToken(t),this.decodedIdToken&&(this.decodedIdToken.hasOwnProperty("iss")&&(this.issuer=this.decodedIdToken.iss),this.decodedIdToken.hasOwnProperty("oid")&&(this.objectId=this.decodedIdToken.oid),this.decodedIdToken.hasOwnProperty("sub")&&(this.subject=this.decodedIdToken.sub),this.decodedIdToken.hasOwnProperty("tid")&&(this.tenantId=this.decodedIdToken.tid),this.decodedIdToken.hasOwnProperty("ver")&&(this.version=this.decodedIdToken.ver),this.decodedIdToken.hasOwnProperty("preferred_username")&&(this.preferredName=this.decodedIdToken.preferred_username),this.decodedIdToken.hasOwnProperty("name")&&(this.name=this.decodedIdToken.name),this.decodedIdToken.hasOwnProperty("nonce")&&(this.nonce=this.decodedIdToken.nonce),this.decodedIdToken.hasOwnProperty("exp")&&(this.expiration=this.decodedIdToken.exp),this.decodedIdToken.hasOwnProperty("home_oid")&&(this.homeObjectId=this.decodedIdToken.home_oid))}catch(e){throw new Error("Failed to parse the returned id token")}};e.IdToken=s},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))}}class a extends i.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("bHdf");function s(){return Object(i.a)(1)}},"0bRH":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n,i){this.accessToken=t,this.idToken=e,this.expiresIn=n,this.clientInfo=i};e.AccessTokenValue=i},"0bW5":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("FGkh");e.MsalConfig=i.MsalConfig;var s=n("WFZd");e.BroadcastService=s.BroadcastService;var r=n("oWlK");e.MsalService=r.MsalService;var a=n("dQgk");e.MsalGuard=a.MsalGuard;var o=n("+QbS");e.MsalInterceptor=o.MsalInterceptor;var l=n("JX/b");e.MsalModule=l.MsalModule},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("zx2A");function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const n=new a(t),s=Object(i.c)(this.notifier,new i.a(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class a extends i.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1uah":function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return c});var i=n("yCtX"),s=n("DH7j"),r=n("7o/Q"),a=n("Lhse"),o=n("zx2A");function l(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),Object(i.a)(t,void 0).lift(new c(e))}class c{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new d(t,this.resultSelector))}}class d extends r.a{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;Object(s.a)(t)?e.push(new u(t)):"function"==typeof t[a.a]?e.push(new p(t[a.a]())):e.push(new h(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;n<e;n++){let e=t[n];if(e.stillUnsubscribed){this.destination.add(e.subscribe())}else this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,n=this.destination;for(let r=0;r<e;r++){let e=t[r];if("function"==typeof e.hasValue&&!e.hasValue())return}let i=!1;const s=[];for(let r=0;r<e;r++){let e=t[r],a=e.next();if(e.hasCompleted()&&(i=!0),a.done)return void n.complete();s.push(a.value)}this.resultSelector?this._tryresultSelector(s):n.next(s),i&&n.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class p{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return Boolean(t&&t.done)}}class u{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[a.a](){return this}next(t){const e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class h extends o.b{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[a.a](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Object(o.c)(this.observable,new o.a(this))}}},"21Mn":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=function(t,e,n,s,r){this.authority=t,this.clientId=e,this.scopes=n,this.userIdentifier=i.Utils.base64EncodeStringUrlSafe(s)+"."+i.Utils.base64EncodeStringUrlSafe(r)};e.AccessTokenKey=s},"2Eqy":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("NrNb"),s=n("4kE/"),r=n("cIZT"),a=function(t){function e(e,n){return t.call(this,e,n)||this}return i.__extends(e,t),Object.defineProperty(e.prototype,"AadInstanceDiscoveryEndpointUrl",{get:function(){return e.AadInstanceDiscoveryEndpoint+"?api-version=1.0&authorization_endpoint="+this.CanonicalAuthority+"oauth2/v2.0/authorize"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"AuthorityType",{get:function(){return s.AuthorityType.Aad},enumerable:!0,configurable:!0}),e.prototype.GetOpenIdConfigurationEndpointAsync=function(){var t=this,e=new Promise(function(e,n){return e(t.DefaultOpenIdConfigurationEndpoint)});if(!this.IsValidationEnabled)return e;var n=this.CanonicalAuthorityUrlComponents.HostNameAndPort;return this.IsInTrustedHostList(n)?e:(new r.XhrClient).sendRequestAsync(this.AadInstanceDiscoveryEndpointUrl,"GET",!0).then(function(t){return t.tenant_discovery_endpoint})},e.prototype.IsInTrustedHostList=function(t){return e.TrustedHostList[t.toLowerCase()]},e.AadInstanceDiscoveryEndpoint="https://login.microsoftonline.com/common/discovery/instance",e.TrustedHostList={"login.windows.net":"login.windows.net","login.chinacloudapi.cn":"login.chinacloudapi.cn","login.cloudgovapi.us":"login.cloudgovapi.us","login.microsoftonline.com":"login.microsoftonline.com","login.microsoftonline.de":"login.microsoftonline.de","login.microsoftonline.us":"login.microsoftonline.us"},e}(s.Authority);e.AadAuthority=a},"2Grz":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){this.valid=!1,this.parameters={},this.stateMatch=!1,this.stateResponse="",this.requestType="unknown"};e.TokenResponse=i},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("XNiG"),s=n("9ppp");class r extends i.a{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 s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return s});let i=!1;const s={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 i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("D0XW"),s=n("mlxB"),r=n("7o/Q"),a=n("WMd4");function o(t,e=i.a){const n=Object(s.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new l(n,e))}class l{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends r.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0;this.destination.add(t.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new d(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(a.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()}}class d{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("quSY");class s extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,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,i=!1;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Qpg":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp");i.Observable.fromPromise=i.from},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("D0XW"),s=n("tnsW"),r=n("PqYM");function a(t,e=i.a){return Object(s.a)(()=>Object(r.a)(t,e))}},"4Hgy":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("kU1M");e._do=function(t,e,n){return i.tap(t,e,n)(this)}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4XzM":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("89kA")},"4c1C":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n("//0v"))},"4kE/":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=n("tvAs"),r=n("cIZT");!function(t){t[t.Aad=0]="Aad",t[t.Adfs=1]="Adfs",t[t.B2C=2]="B2C"}(e.AuthorityType||(e.AuthorityType={}));var a=function(){function t(t,e){this.IsValidationEnabled=e,this.CanonicalAuthority=t,this.validateAsUri()}return Object.defineProperty(t.prototype,"Tenant",{get:function(){return this.CanonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"AuthorizationEndpoint",{get:function(){return this.validateResolved(),this.tenantDiscoveryResponse.AuthorizationEndpoint.replace("{tenant}",this.Tenant)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"EndSessionEndpoint",{get:function(){return this.validateResolved(),this.tenantDiscoveryResponse.EndSessionEndpoint.replace("{tenant}",this.Tenant)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"SelfSignedJwtAudience",{get:function(){return this.validateResolved(),this.tenantDiscoveryResponse.Issuer.replace("{tenant}",this.Tenant)},enumerable:!0,configurable:!0}),t.prototype.validateResolved=function(){if(!this.tenantDiscoveryResponse)throw"Please call ResolveEndpointsAsync first"},Object.defineProperty(t.prototype,"CanonicalAuthority",{get:function(){return this.canonicalAuthority},set:function(t){this.canonicalAuthority=i.Utils.CanonicalizeUri(t),this.canonicalAuthorityUrlComponents=null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"CanonicalAuthorityUrlComponents",{get:function(){return this.canonicalAuthorityUrlComponents||(this.canonicalAuthorityUrlComponents=i.Utils.GetUrlComponents(this.CanonicalAuthority)),this.canonicalAuthorityUrlComponents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"DefaultOpenIdConfigurationEndpoint",{get:function(){return this.CanonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!0,configurable:!0}),t.prototype.validateAsUri=function(){var t;try{t=this.CanonicalAuthorityUrlComponents}catch(e){throw s.ErrorMessage.invalidAuthorityType}if(!t.Protocol||"https:"!==t.Protocol.toLowerCase())throw s.ErrorMessage.authorityUriInsecure;if(!t.PathSegments||t.PathSegments.length<1)throw s.ErrorMessage.authorityUriInvalidPath},t.prototype.DiscoverEndpoints=function(t){return(new r.XhrClient).sendRequestAsync(t,"GET",!0).then(function(t){return{AuthorizationEndpoint:t.authorization_endpoint,EndSessionEndpoint:t.end_session_endpoint,Issuer:t.issuer}})},t.prototype.ResolveEndpointsAsync=function(){var t=this,e="";return this.GetOpenIdConfigurationEndpointAsync().then(function(n){return e=n,t.DiscoverEndpoints(e)}).then(function(e){return t.tenantDiscoveryResponse=e,t})},t}();e.Authority=a},"5+tZ":function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return c});var i=n("lJxs"),s=n("Cfvw"),r=n("zx2A");function a(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(a((n,r)=>Object(s.a)(t(n,r)).pipe(Object(i.a)((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new o(t,n)))}class o{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.b{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(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new r.a(this),n=this.destination;n.add(e);const i=Object(r.c)(t,e);i!==e&&n.add(i)}_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()}}const c=a},"5yfJ":function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var i=n("HDdC"),s=n("KqfI");const r=new i.a(s.a);function a(){return r}},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC");function s(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7+k4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("qIMP");i.Observable.prototype.pairwise=s.pairwise},"7HRe":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("HDdC"),s=n("quSY"),r=n("kJWO");var a=n("jZKg"),o=n("Lhse");var l=n("c2HN"),c=n("I55L");function d(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[r.a]}(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>{const s=t[r.a]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(l.a)(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(c.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[o.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new s.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[o.a](),i.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},"7Hc7":function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return h});let i=1;const s=Promise.resolve(),r={};function a(t){return t in r&&(delete r[t],!0)}const o={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>a(e)&&t()),e},clearImmediate(t){a(t)}};var l=n("3N8a");class c extends l.a{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=o.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&&(o.clearImmediate(e),t.scheduled=void 0)}}var d=n("IjjT");class p extends d.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}const u=new p(c),h=u},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("n6bG"),s=n("gRHU"),r=n("quSY"),a=n("2QA8"),o=n("2fFW"),l=n("NJ4a");class c extends r.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new d(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new d(this,t,e,n)}}[a.a](){return this}static create(t,e,n){const i=new c(t,e,n);return i.syncErrorThrowable=!1,i}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 d extends c{constructor(t,e,n,r){let a;super(),this._parentSubscriber=t;let o=this;Object(i.a)(e)?a=e:e&&(a=e.next,n=e.error,r=e.complete,e!==s.a&&(o=Object.create(e),Object(i.a)(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=a,this._error=n,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.a.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}=o.a;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):Object(l.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(l.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.a.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(),o.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(t,e,n){if(!o.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return o.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"89kA":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("ZR4w");i.Observable.prototype.map=s.map},"8Kws":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.key=t,this.value=e};e.AccessTokenCacheItem=i},"8Qeq":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.a?n:null}return!0}},"8Y7J":function(t,e,n){"use strict";n.r(e),n.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return Mn}),n.d(e,"APP_BOOTSTRAP_LISTENER",function(){return wv}),n.d(e,"APP_ID",function(){return fv}),n.d(e,"APP_INITIALIZER",function(){return hv}),n.d(e,"ApplicationInitStatus",function(){return mv}),n.d(e,"ApplicationModule",function(){return u_}),n.d(e,"ApplicationRef",function(){return xy}),n.d(e,"Attribute",function(){return Pn}),n.d(e,"COMPILER_OPTIONS",function(){return zv}),n.d(e,"CUSTOM_ELEMENTS_SCHEMA",function(){return Ws}),n.d(e,"ChangeDetectionStrategy",function(){return R}),n.d(e,"ChangeDetectorRef",function(){return Uh}),n.d(e,"Compiler",function(){return Hv}),n.d(e,"CompilerFactory",function(){return Uv}),n.d(e,"Component",function(){return Qb}),n.d(e,"ComponentFactory",function(){return ah}),n.d(e,"ComponentFactoryResolver",function(){return ch}),n.d(e,"ComponentRef",function(){return rh}),n.d(e,"ContentChild",function(){return Fn}),n.d(e,"ContentChildren",function(){return Ln}),n.d(e,"DEFAULT_CURRENCY_CODE",function(){return kv}),n.d(e,"DebugElement",function(){return s_}),n.d(e,"DebugEventListener",function(){return Ly}),n.d(e,"DebugNode",function(){return i_}),n.d(e,"DefaultIterableDiffer",function(){return Ah}),n.d(e,"Directive",function(){return Xb}),n.d(e,"ElementRef",function(){return bh}),n.d(e,"EmbeddedViewRef",function(){return Ry}),n.d(e,"ErrorHandler",function(){return $s}),n.d(e,"EventEmitter",function(){return qg}),n.d(e,"Host",function(){return hi}),n.d(e,"HostBinding",function(){return nv}),n.d(e,"HostListener",function(){return iv}),n.d(e,"INJECTOR",function(){return bo}),n.d(e,"Inject",function(){return ci}),n.d(e,"InjectFlags",function(){return D}),n.d(e,"Injectable",function(){return dc}),n.d(e,"InjectionToken",function(){return Nn}),n.d(e,"Injector",function(){return Ro}),n.d(e,"Input",function(){return tv}),n.d(e,"IterableDiffers",function(){return Lh}),n.d(e,"KeyValueDiffers",function(){return Fh}),n.d(e,"LOCALE_ID",function(){return Sv}),n.d(e,"MissingTranslationStrategy",function(){return Av}),n.d(e,"ModuleWithComponentFactories",function(){return Ov}),n.d(e,"NO_ERRORS_SCHEMA",function(){return Ys}),n.d(e,"NgModule",function(){return dv}),n.d(e,"NgModuleFactory",function(){return im}),n.d(e,"NgModuleFactoryLoader",function(){return ky}),n.d(e,"NgModuleRef",function(){return nm}),n.d(e,"NgProbeToken",function(){return my}),n.d(e,"NgZone",function(){return Wv}),n.d(e,"Optional",function(){return di}),n.d(e,"Output",function(){return ev}),n.d(e,"PACKAGE_ROOT_URL",function(){return xv}),n.d(e,"PLATFORM_ID",function(){return _v}),n.d(e,"PLATFORM_INITIALIZER",function(){return yv}),n.d(e,"Pipe",function(){return Jb}),n.d(e,"PlatformRef",function(){return _y}),n.d(e,"Query",function(){return Rn}),n.d(e,"QueryList",function(){return Wg}),n.d(e,"ReflectiveInjector",function(){return Nc}),n.d(e,"ReflectiveKey",function(){return vc}),n.d(e,"Renderer2",function(){return yh}),n.d(e,"RendererFactory2",function(){return vh}),n.d(e,"RendererStyleFlags2",function(){return ur}),n.d(e,"ResolvedReflectiveFactory",function(){return Sc}),n.d(e,"Sanitizer",function(){return Ch}),n.d(e,"SecurityContext",function(){return Ts}),n.d(e,"Self",function(){return pi}),n.d(e,"SimpleChange",function(){return It}),n.d(e,"SkipSelf",function(){return ui}),n.d(e,"SystemJsNgModuleLoader",function(){return Py}),n.d(e,"SystemJsNgModuleLoaderConfig",function(){return Ty}),n.d(e,"TRANSLATIONS",function(){return Ev}),n.d(e,"TRANSLATIONS_FORMAT",function(){return Iv}),n.d(e,"TemplateRef",function(){return Xh}),n.d(e,"Testability",function(){return Jv}),n.d(e,"TestabilityRegistry",function(){return ty}),n.d(e,"Type",function(){return qn}),n.d(e,"VERSION",function(){return kh}),n.d(e,"Version",function(){return Sh}),n.d(e,"ViewChild",function(){return Vn}),n.d(e,"ViewChildren",function(){return jn}),n.d(e,"ViewContainerRef",function(){return am}),n.d(e,"ViewEncapsulation",function(){return F}),n.d(e,"ViewRef",function(){return My}),n.d(e,"WrappedValue",function(){return kl}),n.d(e,"asNativeElements",function(){return Vy}),n.d(e,"assertPlatform",function(){return by}),n.d(e,"createPlatform",function(){return fy}),n.d(e,"createPlatformFactory",function(){return gy}),n.d(e,"defineInjectable",function(){return _}),n.d(e,"destroyPlatform",function(){return vy}),n.d(e,"enableProdMode",function(){return oy}),n.d(e,"forwardRef",function(){return h}),n.d(e,"getDebugNode",function(){return Jy}),n.d(e,"getModuleFactory",function(){return Ay}),n.d(e,"getPlatform",function(){return yy}),n.d(e,"inject",function(){return Pi}),n.d(e,"isDevMode",function(){return ay}),n.d(e,"platformCore",function(){return r_}),n.d(e,"resolveForwardRef",function(){return m}),n.d(e,"setTestabilityGetter",function(){return ey}),n.d(e,"\u02750",function(){return li}),n.d(e,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return hy}),n.d(e,"\u0275APP_ID_RANDOM_PROVIDER",function(){return bv}),n.d(e,"\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__",function(){return On}),n.d(e,"\u0275ChangeDetectorStatus",function(){return L}),n.d(e,"\u0275CodegenComponentFactoryResolver",function(){return dh}),n.d(e,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__",function(){return Vv}),n.d(e,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__",function(){return Fv}),n.d(e,"\u0275Compiler_compileModuleAsync__POST_R3__",function(){return Rv}),n.d(e,"\u0275Compiler_compileModuleSync__POST_R3__",function(){return Nv}),n.d(e,"\u0275ComponentFactory",function(){return ah}),n.d(e,"\u0275Console",function(){return Cv}),n.d(e,"\u0275DEFAULT_LOCALE_ID",function(){return Hp}),n.d(e,"\u0275EMPTY_ARRAY",function(){return af}),n.d(e,"\u0275EMPTY_MAP",function(){return of}),n.d(e,"\u0275INJECTOR_IMPL__POST_R3__",function(){return No}),n.d(e,"\u0275INJECTOR_SCOPE",function(){return yo}),n.d(e,"\u0275LifecycleHooksFeature",function(){return pl}),n.d(e,"\u0275LocaleDataIndex",function(){return Vp}),n.d(e,"\u0275NG_COMP_DEF",function(){return W}),n.d(e,"\u0275NG_DIR_DEF",function(){return Y}),n.d(e,"\u0275NG_ELEMENT_ID",function(){return Q}),n.d(e,"\u0275NG_INJ_DEF",function(){return E}),n.d(e,"\u0275NG_MOD_DEF",function(){return K}),n.d(e,"\u0275NG_PIPE_DEF",function(){return G}),n.d(e,"\u0275NG_PROV_DEF",function(){return k}),n.d(e,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return Jf}),n.d(e,"\u0275NO_CHANGE",function(){return la}),n.d(e,"\u0275NgModuleFactory",function(){return vg}),n.d(e,"\u0275NoopNgZone",function(){return Qv}),n.d(e,"\u0275ReflectionCapabilities",function(){return ri}),n.d(e,"\u0275Render3ComponentFactory",function(){return cg}),n.d(e,"\u0275Render3ComponentRef",function(){return dg}),n.d(e,"\u0275Render3NgModuleRef",function(){return bg}),n.d(e,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__",function(){return Hh}),n.d(e,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__",function(){return sv}),n.d(e,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__",function(){return rv}),n.d(e,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__",function(){return pc}),n.d(e,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__",function(){return pv}),n.d(e,"\u0275SWITCH_COMPILE_PIPE__POST_R3__",function(){return av}),n.d(e,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__",function(){return fh}),n.d(e,"\u0275SWITCH_IVY_ENABLED__POST_R3__",function(){return Dv}),n.d(e,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__",function(){return _h}),n.d(e,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__",function(){return Kh}),n.d(e,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__",function(){return sm}),n.d(e,"\u0275_sanitizeHtml",function(){return As}),n.d(e,"\u0275_sanitizeUrl",function(){return as}),n.d(e,"\u0275allowSanitizationBypassAndThrow",function(){return Gi}),n.d(e,"\u0275and",function(){return h_}),n.d(e,"\u0275angular_packages_core_core_a",function(){return f}),n.d(e,"\u0275angular_packages_core_core_b",function(){return Di}),n.d(e,"\u0275angular_packages_core_core_ba",function(){return Cm}),n.d(e,"\u0275angular_packages_core_core_bb",function(){return Dt}),n.d(e,"\u0275angular_packages_core_core_bc",function(){return lg}),n.d(e,"\u0275angular_packages_core_core_bd",function(){return cn}),n.d(e,"\u0275angular_packages_core_core_be",function(){return ne}),n.d(e,"\u0275angular_packages_core_core_bf",function(){return he}),n.d(e,"\u0275angular_packages_core_core_bg",function(){return Pe}),n.d(e,"\u0275angular_packages_core_core_bi",function(){return Tg}),n.d(e,"\u0275angular_packages_core_core_bj",function(){return Og}),n.d(e,"\u0275angular_packages_core_core_bk",function(){return Pg}),n.d(e,"\u0275angular_packages_core_core_bl",function(){return Ng}),n.d(e,"\u0275angular_packages_core_core_bm",function(){return Mg}),n.d(e,"\u0275angular_packages_core_core_bn",function(){return Vs}),n.d(e,"\u0275angular_packages_core_core_bo",function(){return Tn}),n.d(e,"\u0275angular_packages_core_core_bp",function(){return Dn}),n.d(e,"\u0275angular_packages_core_core_bq",function(){return l}),n.d(e,"\u0275angular_packages_core_core_br",function(){return vo}),n.d(e,"\u0275angular_packages_core_core_bs",function(){return O}),n.d(e,"\u0275angular_packages_core_core_bu",function(){return Ht}),n.d(e,"\u0275angular_packages_core_core_bw",function(){return br}),n.d(e,"\u0275angular_packages_core_core_bx",function(){return Uu}),n.d(e,"\u0275angular_packages_core_core_by",function(){return ji}),n.d(e,"\u0275angular_packages_core_core_bz",function(){return Bi}),n.d(e,"\u0275angular_packages_core_core_c",function(){return Mc}),n.d(e,"\u0275angular_packages_core_core_ca",function(){return Vi}),n.d(e,"\u0275angular_packages_core_core_d",function(){return wc}),n.d(e,"\u0275angular_packages_core_core_e",function(){return Ic}),n.d(e,"\u0275angular_packages_core_core_f",function(){return gv}),n.d(e,"\u0275angular_packages_core_core_g",function(){return xh}),n.d(e,"\u0275angular_packages_core_core_h",function(){return hh}),n.d(e,"\u0275angular_packages_core_core_i",function(){return mh}),n.d(e,"\u0275angular_packages_core_core_j",function(){return Ey}),n.d(e,"\u0275angular_packages_core_core_k",function(){return tm}),n.d(e,"\u0275angular_packages_core_core_l",function(){return em}),n.d(e,"\u0275angular_packages_core_core_m",function(){return om}),n.d(e,"\u0275angular_packages_core_core_n",function(){return Fy}),n.d(e,"\u0275angular_packages_core_core_o",function(){return jy}),n.d(e,"\u0275angular_packages_core_core_p",function(){return t_}),n.d(e,"\u0275angular_packages_core_core_q",function(){return qh}),n.d(e,"\u0275angular_packages_core_core_r",function(){return Eh}),n.d(e,"\u0275angular_packages_core_core_s",function(){return Nh}),n.d(e,"\u0275angular_packages_core_core_t",function(){return a_}),n.d(e,"\u0275angular_packages_core_core_u",function(){return o_}),n.d(e,"\u0275angular_packages_core_core_v",function(){return l_}),n.d(e,"\u0275angular_packages_core_core_w",function(){return d_}),n.d(e,"\u0275angular_packages_core_core_x",function(){return p_}),n.d(e,"\u0275angular_packages_core_core_y",function(){return zp}),n.d(e,"\u0275angular_packages_core_core_z",function(){return Wf}),n.d(e,"\u0275bypassSanitizationTrustHtml",function(){return Zi}),n.d(e,"\u0275bypassSanitizationTrustResourceUrl",function(){return ts}),n.d(e,"\u0275bypassSanitizationTrustScript",function(){return Qi}),n.d(e,"\u0275bypassSanitizationTrustStyle",function(){return Xi}),n.d(e,"\u0275bypassSanitizationTrustUrl",function(){return Ji}),n.d(e,"\u0275ccf",function(){return wf}),n.d(e,"\u0275clearOverrides",function(){return Hw}),n.d(e,"\u0275clearResolutionOfComponentResourcesQueue",function(){return xi}),n.d(e,"\u0275cmf",function(){return zw}),n.d(e,"\u0275compileComponent",function(){return Mb}),n.d(e,"\u0275compileDirective",function(){return Rb}),n.d(e,"\u0275compileNgModule",function(){return Cb}),n.d(e,"\u0275compileNgModuleDefs",function(){return Sb}),n.d(e,"\u0275compileNgModuleFactory__POST_R3__",function(){return cy}),n.d(e,"\u0275compilePipe",function(){return Kb}),n.d(e,"\u0275createInjector",function(){return ko}),n.d(e,"\u0275crt",function(){return Dm}),n.d(e,"\u0275defaultIterableDiffers",function(){return Yh}),n.d(e,"\u0275defaultKeyValueDiffers",function(){return Gh}),n.d(e,"\u0275detectChanges",function(){return fo}),n.d(e,"\u0275devModeEqual",function(){return Sl}),n.d(e,"\u0275did",function(){return Uf}),n.d(e,"\u0275eld",function(){return m_}),n.d(e,"\u0275findLocaleData",function(){return Mp}),n.d(e,"\u0275flushModuleScopingQueueAsMuchAsPossible",function(){return wb}),n.d(e,"\u0275getComponentViewDefinitionFactory",function(){return xf}),n.d(e,"\u0275getDebugNodeR2",function(){return e_}),n.d(e,"\u0275getDebugNode__POST_R3__",function(){return Qy}),n.d(e,"\u0275getDirectives",function(){return Xo}),n.d(e,"\u0275getHostElement",function(){return Jo}),n.d(e,"\u0275getInjectableDef",function(){return x}),n.d(e,"\u0275getLContext",function(){return Js}),n.d(e,"\u0275getLocaleCurrencyCode",function(){return Rp}),n.d(e,"\u0275getLocalePluralCase",function(){return Lp}),n.d(e,"\u0275getModuleFactory__POST_R3__",function(){return Iy}),n.d(e,"\u0275getSanitizationBypassType",function(){return Ki}),n.d(e,"\u0275global",function(){return U}),n.d(e,"\u0275initServicesIfNeeded",function(){return nw}),n.d(e,"\u0275inlineInterpolate",function(){return sf}),n.d(e,"\u0275interpolate",function(){return nf}),n.d(e,"\u0275isBoundToModule__POST_R3__",function(){return uy}),n.d(e,"\u0275isDefaultChangeDetectionStrategy",function(){return j}),n.d(e,"\u0275isListLikeIterable",function(){return El}),n.d(e,"\u0275isObservable",function(){return Gc}),n.d(e,"\u0275isPromise",function(){return Yc}),n.d(e,"\u0275ivyEnabled",function(){return Tv}),n.d(e,"\u0275makeDecorator",function(){return In}),n.d(e,"\u0275markDirty",function(){return go}),n.d(e,"\u0275mod",function(){return hf}),n.d(e,"\u0275mpd",function(){return uf}),n.d(e,"\u0275ncd",function(){return S_}),n.d(e,"\u0275noSideEffects",function(){return M}),n.d(e,"\u0275nov",function(){return Nf}),n.d(e,"\u0275overrideComponentView",function(){return Bw}),n.d(e,"\u0275overrideProvider",function(){return Vw}),n.d(e,"\u0275pad",function(){return I_}),n.d(e,"\u0275patchComponentDefWithScope",function(){return Db}),n.d(e,"\u0275pid",function(){return qf}),n.d(e,"\u0275pod",function(){return A_}),n.d(e,"\u0275ppd",function(){return E_}),n.d(e,"\u0275prd",function(){return $f}),n.d(e,"\u0275publishDefaultGlobalUtils",function(){return rl}),n.d(e,"\u0275publishGlobalUtil",function(){return al}),n.d(e,"\u0275qud",function(){return y_}),n.d(e,"\u0275registerLocaleData",function(){return Np}),n.d(e,"\u0275registerModuleFactory",function(){return hg}),n.d(e,"\u0275registerNgModuleType",function(){return fg}),n.d(e,"\u0275renderComponent",function(){return ol}),n.d(e,"\u0275resetCompiledComponents",function(){return Ib}),n.d(e,"\u0275resetJitOptions",function(){return bb}),n.d(e,"\u0275resolveComponentResources",function(){return vi}),n.d(e,"\u0275setClassMetadata",function(){return pg}),n.d(e,"\u0275setCurrentInjector",function(){return Ai}),n.d(e,"\u0275setDocument",function(){return Mt}),n.d(e,"\u0275setLocaleId",function(){return Yp}),n.d(e,"\u0275store",function(){return tc}),n.d(e,"\u0275stringify",function(){return d}),n.d(e,"\u0275ted",function(){return T_}),n.d(e,"\u0275transitiveScopesFor",function(){return Tb}),n.d(e,"\u0275unregisterLocaleData",function(){return jp}),n.d(e,"\u0275unv",function(){return Am}),n.d(e,"\u0275unwrapSafeValue",function(){return Yi}),n.d(e,"\u0275vid",function(){return N_}),n.d(e,"\u0275whenRendered",function(){return ul}),n.d(e,"\u0275\u0275CopyDefinitionFeature",function(){return wl}),n.d(e,"\u0275\u0275InheritDefinitionFeature",function(){return ml}),n.d(e,"\u0275\u0275NgOnChangesFeature",function(){return At}),n.d(e,"\u0275\u0275ProvidersFeature",function(){return sh}),n.d(e,"\u0275\u0275advance",function(){return ca}),n.d(e,"\u0275\u0275attribute",function(){return Ml}),n.d(e,"\u0275\u0275attributeInterpolate1",function(){return ql}),n.d(e,"\u0275\u0275attributeInterpolate2",function(){return $l}),n.d(e,"\u0275\u0275attributeInterpolate3",function(){return Wl}),n.d(e,"\u0275\u0275attributeInterpolate4",function(){return Yl}),n.d(e,"\u0275\u0275attributeInterpolate5",function(){return Gl}),n.d(e,"\u0275\u0275attributeInterpolate6",function(){return Kl}),n.d(e,"\u0275\u0275attributeInterpolate7",function(){return Zl}),n.d(e,"\u0275\u0275attributeInterpolate8",function(){return Xl}),n.d(e,"\u0275\u0275attributeInterpolateV",function(){return Ql}),n.d(e,"\u0275\u0275classMap",function(){return Od}),n.d(e,"\u0275\u0275classMapInterpolate1",function(){return ep}),n.d(e,"\u0275\u0275classMapInterpolate2",function(){return np}),n.d(e,"\u0275\u0275classMapInterpolate3",function(){return ip}),n.d(e,"\u0275\u0275classMapInterpolate4",function(){return sp}),n.d(e,"\u0275\u0275classMapInterpolate5",function(){return rp}),n.d(e,"\u0275\u0275classMapInterpolate6",function(){return ap}),n.d(e,"\u0275\u0275classMapInterpolate7",function(){return op}),n.d(e,"\u0275\u0275classMapInterpolate8",function(){return lp}),n.d(e,"\u0275\u0275classMapInterpolateV",function(){return cp}),n.d(e,"\u0275\u0275classProp",function(){return Ad}),n.d(e,"\u0275\u0275contentQuery",function(){return ab}),n.d(e,"\u0275\u0275defineComponent",function(){return tt}),n.d(e,"\u0275\u0275defineDirective",function(){return lt}),n.d(e,"\u0275\u0275defineInjectable",function(){return y}),n.d(e,"\u0275\u0275defineInjector",function(){return w}),n.d(e,"\u0275\u0275defineNgModule",function(){return rt}),n.d(e,"\u0275\u0275definePipe",function(){return ct}),n.d(e,"\u0275\u0275directiveInject",function(){return Rc}),n.d(e,"\u0275\u0275disableBindings",function(){return ee}),n.d(e,"\u0275\u0275element",function(){return zc}),n.d(e,"\u0275\u0275elementContainer",function(){return $c}),n.d(e,"\u0275\u0275elementContainerEnd",function(){return qc}),n.d(e,"\u0275\u0275elementContainerStart",function(){return Uc}),n.d(e,"\u0275\u0275elementEnd",function(){return Hc}),n.d(e,"\u0275\u0275elementStart",function(){return Bc}),n.d(e,"\u0275\u0275enableBindings",function(){return te}),n.d(e,"\u0275\u0275getCurrentView",function(){return Wc}),n.d(e,"\u0275\u0275getFactoryOf",function(){return wn}),n.d(e,"\u0275\u0275getInheritedFactory",function(){return xn}),n.d(e,"\u0275\u0275hostProperty",function(){return Ap}),n.d(e,"\u0275\u0275i18n",function(){return Wu}),n.d(e,"\u0275\u0275i18nApply",function(){return Ku}),n.d(e,"\u0275\u0275i18nAttributes",function(){return Yu}),n.d(e,"\u0275\u0275i18nEnd",function(){return $u}),n.d(e,"\u0275\u0275i18nExp",function(){return Gu}),n.d(e,"\u0275\u0275i18nPostprocess",function(){return Zu}),n.d(e,"\u0275\u0275i18nStart",function(){return qu}),n.d(e,"\u0275\u0275inject",function(){return Ti}),n.d(e,"\u0275\u0275injectAttribute",function(){return Cn}),n.d(e,"\u0275\u0275injectPipeChangeDetectorRef",function(){return mb}),n.d(e,"\u0275\u0275invalidFactory",function(){return Lc}),n.d(e,"\u0275\u0275invalidFactoryDep",function(){return Oi}),n.d(e,"\u0275\u0275listener",function(){return Kc}),n.d(e,"\u0275\u0275loadQuery",function(){return cb}),n.d(e,"\u0275\u0275namespaceHTML",function(){return je}),n.d(e,"\u0275\u0275namespaceMathML",function(){return Fe}),n.d(e,"\u0275\u0275namespaceSVG",function(){return Le}),n.d(e,"\u0275\u0275nextContext",function(){return td}),n.d(e,"\u0275\u0275pipe",function(){return Rg}),n.d(e,"\u0275\u0275pipeBind1",function(){return Lg}),n.d(e,"\u0275\u0275pipeBind2",function(){return Fg}),n.d(e,"\u0275\u0275pipeBind3",function(){return jg}),n.d(e,"\u0275\u0275pipeBind4",function(){return Vg}),n.d(e,"\u0275\u0275pipeBindV",function(){return Bg}),n.d(e,"\u0275\u0275projection",function(){return id}),n.d(e,"\u0275\u0275projectionDef",function(){return nd}),n.d(e,"\u0275\u0275property",function(){return Fc}),n.d(e,"\u0275\u0275propertyInterpolate",function(){return sd}),n.d(e,"\u0275\u0275propertyInterpolate1",function(){return rd}),n.d(e,"\u0275\u0275propertyInterpolate2",function(){return ad}),n.d(e,"\u0275\u0275propertyInterpolate3",function(){return od}),n.d(e,"\u0275\u0275propertyInterpolate4",function(){return ld}),n.d(e,"\u0275\u0275propertyInterpolate5",function(){return cd}),n.d(e,"\u0275\u0275propertyInterpolate6",function(){return dd}),n.d(e,"\u0275\u0275propertyInterpolate7",function(){return pd}),n.d(e,"\u0275\u0275propertyInterpolate8",function(){return ud}),n.d(e,"\u0275\u0275propertyInterpolateV",function(){return hd}),n.d(e,"\u0275\u0275pureFunction0",function(){return yg}),n.d(e,"\u0275\u0275pureFunction1",function(){return _g}),n.d(e,"\u0275\u0275pureFunction2",function(){return wg}),n.d(e,"\u0275\u0275pureFunction3",function(){return xg}),n.d(e,"\u0275\u0275pureFunction4",function(){return Cg}),n.d(e,"\u0275\u0275pureFunction5",function(){return Sg}),n.d(e,"\u0275\u0275pureFunction6",function(){return kg}),n.d(e,"\u0275\u0275pureFunction7",function(){return Eg}),n.d(e,"\u0275\u0275pureFunction8",function(){return Ig}),n.d(e,"\u0275\u0275pureFunctionV",function(){return Ag}),n.d(e,"\u0275\u0275queryRefresh",function(){return nb}),n.d(e,"\u0275\u0275reference",function(){return ec}),n.d(e,"\u0275\u0275resolveBody",function(){return dr}),n.d(e,"\u0275\u0275resolveDocument",function(){return cr}),n.d(e,"\u0275\u0275resolveWindow",function(){return lr}),n.d(e,"\u0275\u0275restoreView",function(){return se}),n.d(e,"\u0275\u0275sanitizeHtml",function(){return Os}),n.d(e,"\u0275\u0275sanitizeResourceUrl",function(){return Ms}),n.d(e,"\u0275\u0275sanitizeScript",function(){return Rs}),n.d(e,"\u0275\u0275sanitizeStyle",function(){return Ps}),n.d(e,"\u0275\u0275sanitizeUrl",function(){return Ns}),n.d(e,"\u0275\u0275sanitizeUrlOrResourceUrl",function(){return Bs}),n.d(e,"\u0275\u0275setComponentScope",function(){return et}),n.d(e,"\u0275\u0275setNgModuleScope",function(){return at}),n.d(e,"\u0275\u0275staticContentQuery",function(){return ob}),n.d(e,"\u0275\u0275staticViewQuery",function(){return ib}),n.d(e,"\u0275\u0275styleMap",function(){return Dd}),n.d(e,"\u0275\u0275styleMapInterpolate1",function(){return dp}),n.d(e,"\u0275\u0275styleMapInterpolate2",function(){return pp}),n.d(e,"\u0275\u0275styleMapInterpolate3",function(){return up}),n.d(e,"\u0275\u0275styleMapInterpolate4",function(){return hp}),n.d(e,"\u0275\u0275styleMapInterpolate5",function(){return mp}),n.d(e,"\u0275\u0275styleMapInterpolate6",function(){return fp}),n.d(e,"\u0275\u0275styleMapInterpolate7",function(){return gp}),n.d(e,"\u0275\u0275styleMapInterpolate8",function(){return bp}),n.d(e,"\u0275\u0275styleMapInterpolateV",function(){return vp}),n.d(e,"\u0275\u0275styleProp",function(){return Id}),n.d(e,"\u0275\u0275stylePropInterpolate1",function(){return yp}),n.d(e,"\u0275\u0275stylePropInterpolate2",function(){return _p}),n.d(e,"\u0275\u0275stylePropInterpolate3",function(){return wp}),n.d(e,"\u0275\u0275stylePropInterpolate4",function(){return xp}),n.d(e,"\u0275\u0275stylePropInterpolate5",function(){return Cp}),n.d(e,"\u0275\u0275stylePropInterpolate6",function(){return Sp}),n.d(e,"\u0275\u0275stylePropInterpolate7",function(){return kp}),n.d(e,"\u0275\u0275stylePropInterpolate8",function(){return Ep}),n.d(e,"\u0275\u0275stylePropInterpolateV",function(){return Ip}),n.d(e,"\u0275\u0275syntheticHostListener",function(){return Zc}),n.d(e,"\u0275\u0275syntheticHostProperty",function(){return Dp}),n.d(e,"\u0275\u0275template",function(){return Jl}),n.d(e,"\u0275\u0275templateRefExtractor",function(){return hb}),n.d(e,"\u0275\u0275text",function(){return qd}),n.d(e,"\u0275\u0275textInterpolate",function(){return $d}),n.d(e,"\u0275\u0275textInterpolate1",function(){return Wd}),n.d(e,"\u0275\u0275textInterpolate2",function(){return Yd}),n.d(e,"\u0275\u0275textInterpolate3",function(){return Gd}),n.d(e,"\u0275\u0275textInterpolate4",function(){return Kd}),n.d(e,"\u0275\u0275textInterpolate5",function(){return Zd}),n.d(e,"\u0275\u0275textInterpolate6",function(){return Xd}),n.d(e,"\u0275\u0275textInterpolate7",function(){return Qd}),n.d(e,"\u0275\u0275textInterpolate8",function(){return Jd}),n.d(e,"\u0275\u0275textInterpolateV",function(){return tp}),n.d(e,"\u0275\u0275trustConstantHtml",function(){return Ls}),n.d(e,"\u0275\u0275trustConstantResourceUrl",function(){return js}),n.d(e,"\u0275\u0275trustConstantScript",function(){return Fs}),n.d(e,"\u0275\u0275viewQuery",function(){return sb});var i=n("XNiG"),s=n("quSY"),r=n("HDdC"),a=n("VRyK"),o=n("w1tV");function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(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 u=l({__forward_ref__:l});function h(t){return t.__forward_ref__=h,t.toString=function(){return d(this())},t}function m(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(u)&&t.__forward_ref__===h}function g(t,e,n){t!=e&&v(n,t,e,"==")}function b(t,e){null==t&&v(e,t,null,"!=")}function v(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const _=y;function w(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function x(t){return C(t,k)||C(t,I)}function C(t,e){return t.hasOwnProperty(e)?t[e]:null}function S(t){return t&&(t.hasOwnProperty(E)||t.hasOwnProperty(A))?t[E]:null}const k=l({"\u0275prov":l}),E=l({"\u0275inj":l}),I=l({ngInjectableDef:l}),A=l({ngInjectorDef:l});var D;let T;function O(){return T}function P(t){const e=T;return T=t,e}function N(t,e,n){const i=x(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&D.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${d(t)}]`)}function M(t){return{toString:t}.toString()}var R,L,F;function j(t){return null==t||t===R.Default}!function(t){t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional"}(D||(D={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(R||(R={})),function(t){t[t.CheckOnce=0]="CheckOnce",t[t.Checked=1]="Checked",t[t.CheckAlways=2]="CheckAlways",t[t.Detached=3]="Detached",t[t.Errored=4]="Errored",t[t.Destroyed=5]="Destroyed"}(L||(L={})),function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(F||(F={}));const V="undefined"!=typeof globalThis&&globalThis,B="undefined"!=typeof window&&window,H="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,z="undefined"!=typeof global&&global,U=V||z||B||H;const q={},$=[];const W=l({"\u0275cmp":l}),Y=l({"\u0275dir":l}),G=l({"\u0275pipe":l}),K=l({"\u0275mod":l}),Z=l({"\u0275loc":l}),X=l({"\u0275fac":l}),Q=l({__NG_ELEMENT_ID__:l});let J=0;function tt(t){return M(()=>{const e=t.type,n=(e.prototype,{}),i={type:e,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:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||$,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||$,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,a=t.pipes;return i.id+=J++,i.inputs=ot(t.inputs,n),i.outputs=ot(t.outputs),r&&r.forEach(t=>t(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(nt):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(it):null,i})}function et(t,e,n){const i=t.\u0275cmp;i.directiveDefs=()=>e.map(nt),i.pipeDefs=()=>n.map(it)}function nt(t){const e=dt(t)||pt(t);return e}function it(t){const e=ut(t);return e}const st={};function rt(t){const e={type:t.type,bootstrap:t.bootstrap||$,declarations:t.declarations||$,imports:t.imports||$,exports:t.exports||$,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&M(()=>{st[t.id]=t.type}),e}function at(t,e){return M(()=>{const n=ht(t,!0);n.declarations=e.declarations||$,n.imports=e.imports||$,n.exports=e.exports||$})}function ot(t,e){if(null==t)return q;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const lt=tt;function ct(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function dt(t){return t[W]||null}function pt(t){return t[Y]||null}function ut(t){return t[G]||null}function ht(t,e){const n=t[K]||null;if(!n&&!0===e)throw new Error(`Type ${d(t)} does not have '\u0275mod' property.`);return n}function mt(t){return Array.isArray(t)&&"object"==typeof t[1]}function ft(t){return Array.isArray(t)&&!0===t[1]}function gt(t){return 0!=(8&t.flags)}function bt(t){return 2==(2&t.flags)}function vt(t){return 1==(1&t.flags)}function yt(t){return null!==t.template}function _t(t,e){const n=t.hasOwnProperty(X);return n?t[X]:null}class wt extends Error{constructor(t,e){super(xt(t,e)),this.code=t}}function xt(t,e){return`${t?`NG0${t}: `:""}${e}`}function Ct(t){return"string"==typeof t?t:null==t?"":String(t)}function St(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ct(t)}function kt(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new wt("200",`Circular dependency in DI detected for ${t}${n}`)}function Et(t,e){const n=e?` in ${e}`:"";throw new wt("201",`No provider for ${St(t)} found${n}`)}class It{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function At(){return Dt}function Dt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ot),Tt}function Tt(){const t=Pt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===q)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Ot(t,e,n,i){const s=Pt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:q,current:null}),r=s.current||(s.current={}),a=s.previous,o=this.declaredInputs[n],l=a[o];r[o]=new It(l&&l.currentValue,e,a===q),t[i]=e}At.ngInherit=!0;function Pt(t){return t.__ngSimpleChanges__||null}let Nt;function Mt(t){Nt=t}function Rt(){return void 0!==Nt?Nt:"undefined"!=typeof document?document:void 0}var Lt;function Ft(t){return!!t.listen}!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(Lt||(Lt={}));const jt={createRenderer:(t,e)=>Rt()};function Vt(t){for(;Array.isArray(t);)t=t[0];return t}function Bt(t,e){return Vt(e[t])}function Ht(t,e){const n=Vt(e[t.index]);return n}function zt(t,e){const n=t.data[e];return n}function Ut(t,e){return t[e]}function qt(t,e){const n=e[t];return mt(n)?n:n[0]}function $t(t){return t.__ngContext__||null}function Wt(t){const e=$t(t);return e?Array.isArray(e)?e:e.lView:null}function Yt(t){return 4==(4&t[2])}function Gt(t){return 128==(128&t[2])}function Kt(t,e){return null==e?null:t[e]}function Zt(t){t[18]=0}function Xt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Qt={lFrame:Ae(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Jt(){return Qt.bindingsEnabled}function te(){Qt.bindingsEnabled=!0}function ee(){Qt.bindingsEnabled=!1}function ne(){return Qt.lFrame.lView}function ie(){return Qt.lFrame.tView}function se(t){Qt.lFrame.contextLView=t}function re(){let t=ae();for(;null!==t&&64===t.type;)t=t.parent;return t}function ae(){return Qt.lFrame.currentTNode}function oe(){const t=Qt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function le(t,e){const n=Qt.lFrame;n.currentTNode=t,n.isParent=e}function ce(){return Qt.lFrame.isParent}function de(){Qt.lFrame.isParent=!1}function pe(){return Qt.isInCheckNoChangesMode}function ue(t){Qt.isInCheckNoChangesMode=t}function he(){const t=Qt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function me(){return Qt.lFrame.bindingIndex}function fe(t){return Qt.lFrame.bindingIndex=t}function ge(){return Qt.lFrame.bindingIndex++}function be(t){const e=Qt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ve(t){Qt.lFrame.inI18n=t}function ye(t,e){const n=Qt.lFrame;n.bindingIndex=n.bindingRootIndex=t,_e(e)}function _e(t){Qt.lFrame.currentDirectiveIndex=t}function we(t){const e=Qt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function xe(){return Qt.lFrame.currentQueryIndex}function Ce(t){Qt.lFrame.currentQueryIndex=t}function Se(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ke(t,e,n){if(n&D.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&D.Host||(i=Se(s),null===i)||(s=s[15],10&i.type)););if(null===i)return!1;e=i,t=s}const i=Qt.lFrame=Ie();return i.currentTNode=e,i.lView=t,!0}function Ee(t){const e=Ie();const n=t[1];Qt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Ie(){const t=Qt.lFrame,e=null===t?null:t.child;return null===e?Ae(t):e}function Ae(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 De(){const t=Qt.lFrame;return Qt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Te=De;function Oe(){const t=De();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 Pe(t){return(Qt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qt.lFrame.contextLView))[8]}function Ne(){return Qt.lFrame.selectedIndex}function Me(t){Qt.lFrame.selectedIndex=t}function Re(){const t=Qt.lFrame;return zt(t.tView,t.selectedIndex)}function Le(){Qt.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Fe(){Qt.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function je(){Qt.lFrame.currentNamespace=null}function Ve(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n],i=e.type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:r,ngAfterViewInit:a,ngAfterViewChecked:o,ngOnDestroy:l}=i;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),a&&(t.viewHooks||(t.viewHooks=[])).push(-n,a),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=l&&(t.destroyHooks||(t.destroyHooks=[])).push(n,l)}}function Be(t,e,n){Ue(t,e,3,n)}function He(t,e,n,i){(3&t[2])===n&&Ue(t,e,n,i)}function ze(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Ue(t,e,n,i){const s=void 0!==i?65535&t[18]:0,r=null!=i?i:-1,a=e.length-1;let o=0;for(let l=s;l<a;l++){if("number"==typeof e[l+1]){if(o=e[l],null!=i&&o>=i)break}else{e[l]<0&&(t[18]+=65536),(o<r||-1==r)&&(qe(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}}}function qe(t,e,n,i){const s=n[i]<0,r=n[i+1],a=t[s?-n[i]:n[i]];if(s){t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(a))}else r.call(a)}class $e{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function We(t,e,n){const i=Ft(t);let s=0;for(;s<n.length;){const r=n[s];if("number"==typeof r){if(0!==r)break;s++;const a=n[s++],o=n[s++],l=n[s++];i?t.setAttribute(e,o,l,a):e.setAttributeNS(a,o,l)}else{const a=r,o=n[++s];Ge(a)?i&&t.setProperty(e,a,o):i?t.setAttribute(e,a,o):e.setAttribute(a,o),s++}}return s}function Ye(t){return 3===t||4===t||6===t}function Ge(t){return 64===t.charCodeAt(0)}function Ke(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?n=s:0===n||Ze(t,n,s,null,-1===n||2===n?e[++i]:null)}}return t}function Ze(t,e,n,i,s){let r=0,a=t.length;if(-1===e)a=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){a=-1;break}if(n>e){a=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==s&&(t[r+1]=s));if(i===t[r+1])return void(t[r+2]=s)}r++,null!==i&&r++,null!==s&&r++}-1!==a&&(t.splice(a,0,e),r=a+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==s&&t.splice(r++,0,s)}function Xe(t){return-1!==t}function Qe(t){return 32767&t}function Je(t,e){let n=t>>16;let i=e;for(;n>0;)i=i[15],n--;return i}let tn=!0;function en(t){const e=tn;return tn=t,e}let nn=0;function sn(t,e){const n=an(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,rn(i.data,t),rn(e,null),rn(i.blueprint,null));const s=on(t,e),r=t.injectorIndex;if(Xe(s)){const t=Qe(s),n=Je(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function rn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function an(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function on(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(i=2===e?t.declTNode:1===e?s[6]:null,null===i)return-1;if(n++,s=s[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function ln(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Q)&&(i=n[Q]),null==i&&(i=n[Q]=nn++);const s=255&i,r=1<<s,a=128&s,o=64&s,l=32&s,c=e.data;a?o?l?c[t+7]|=r:c[t+6]|=r:l?c[t+5]|=r:c[t+4]|=r:o?l?c[t+3]|=r:c[t+2]|=r:l?c[t+1]|=r:c[t]|=r}(t,e,n)}function cn(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 i=0;for(;i<t;){const s=n[i];if(Ye(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}function dn(t,e,n){if(n&D.Optional)return t;Et(e,"NodeInjector")}function pn(t,e,n,i){if(n&D.Optional&&void 0===i&&(i=null),0==(n&(D.Self|D.Host))){const s=t[9],r=P(void 0);try{return s?s.get(e,i,n&D.Optional):N(e,i,n&D.Optional)}finally{P(r)}}return dn(i,e,n)}function un(t,e,n,i=D.Default,s){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Q)?t[Q]:void 0;return"number"==typeof e?e>=0?255&e:mn:e}(n);if("function"==typeof r){if(!ke(e,t,i))return i&D.Host?dn(s,n,i):pn(e,n,i,s);try{const t=r();if(null!=t||i&D.Optional)return t;Et(n)}finally{Te()}}else if("number"==typeof r){let s=null,a=an(t,e),o=-1,l=i&D.Host?e[16][6]:null;for((-1===a||i&D.SkipSelf)&&(o=-1===a?on(t,e):e[a+8],-1!==o&&yn(i,!1)?(s=e[1],a=Qe(o),e=Je(o,e)):a=-1);-1!==a;){const t=e[1];if(vn(r,a,t.data)){const t=fn(a,e,n,s,i,l);if(t!==hn)return t}o=e[a+8],-1!==o&&yn(i,e[1].data[a+8]===l)&&vn(r,a,e)?(s=t,a=Qe(o),e=Je(o,e)):a=-1}}}return pn(e,n,i,s)}const hn={};function mn(){return new _n(re(),ne())}function fn(t,e,n,i,s,r){const a=e[1],o=a.data[t+8],l=gn(o,a,n,null==i?bt(o)&&tn:i!=a&&0!=(3&o.type),s&D.Host&&r===o);return null!==l?bn(e,a,l,o):hn}function gn(t,e,n,i,s){const r=t.providerIndexes,a=e.data,o=1048575&r,l=t.directiveStart,c=t.directiveEnd,d=r>>20,p=s?o+d:c;for(let u=i?o:o+d;u<p;u++){const t=a[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(s){const t=a[l];if(t&&yt(t)&&t.type===n)return l}return null}function bn(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof $e){const a=s;a.resolving&&kt(St(r[n]));const o=en(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?P(a.injectImpl):null;ke(t,i,D.Default);try{s=t[n]=a.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=Dt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{null!==l&&P(l),en(o),a.resolving=!1,Te()}}return s}function vn(t,e,n){const i=1<<t,s=64&t,r=32&t;let a;return a=128&t?s?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:s?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(a&i)}function yn(t,e){return!(t&D.Self||t&D.Host&&e)}class _n{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return un(this._tNode,this._lView,t,void 0,e)}}function wn(t){const e=t;if(f(t))return()=>{const t=wn(m(e));return t?t():null};let n=_t(e);if(null===n){const t=S(e);n=t&&t.factory}return n||null}function xn(t){return M(()=>{const e=t.prototype.constructor,n=e[X]||wn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[X]||wn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function Cn(t){return cn(re(),t)}const Sn="__annotations__",kn="__parameters__",En="__prop__metadata__";function In(t,e,n,i,s){return M(()=>{const r=An(e);function a(...t){if(this instanceof a)return r.call(this,...t),this;const e=new a(...t);return function(n){s&&s(n,...t);return(n.hasOwnProperty(Sn)?n[Sn]:Object.defineProperty(n,Sn,{value:[]})[Sn]).push(e),i&&i(n),n}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a})}function An(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function Dn(t,e,n){return M(()=>{const i=An(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty(kn)?t[kn]:Object.defineProperty(t,kn,{value:[]})[kn];for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function Tn(t,e,n,i){return M(()=>{const s=An(e);function r(...t){if(this instanceof r)return s.apply(this,t),this;const e=new r(...t);return function(n,s){const r=n.constructor,a=r.hasOwnProperty(En)?r[En]:Object.defineProperty(r,En,{value:{}})[En];a[s]=a.hasOwnProperty(s)&&a[s]||[],a[s].unshift(e),i&&i(n,s,...t)}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}function On(){return Dn("Attribute",t=>({attributeName:t,__NG_ELEMENT_ID__:()=>Cn(t)}))}const Pn=function(){return Dn("Attribute",t=>({attributeName:t}))}();class Nn{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=y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Mn=new Nn("AnalyzeForEntryComponents");class Rn{}const Ln=Tn("ContentChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e),Rn),Fn=Tn("ContentChild",(t,e={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e),Rn),jn=Tn("ViewChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e),Rn),Vn=Tn("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),Rn);var Bn,Hn,zn;function Un(){const t=U.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}!function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.ChangeDetectorRef=2]="ChangeDetectorRef",t[t.Invalid=3]="Invalid"}(Bn||(Bn={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(Hn||(Hn={})),function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(zn||(zn={}));const qn=Function;function $n(t){return"function"==typeof t}function Wn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),Wn(i,e)):e!==t&&e.push(i)}return e}function Yn(t,e){t.forEach(t=>Array.isArray(t)?Yn(t,e):e(t))}function Gn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Kn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Zn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function Xn(t,e,n){let i=Jn(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;){const e=s-2;t[s]=t[e],s--}t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function Qn(t,e){const n=Jn(t,e);if(n>=0)return t[1|n]}function Jn(t,e){return ti(t,e,1)}function ti(t,e,n){let i=0,s=t.length>>n;for(;s!==i;){const r=i+(s-i>>1),a=t[r<<n];if(e===a)return r<<n;a>e?s=r:i=r+1}return~(s<<n)}const ei=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/,ni=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ii=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,si=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class ri{constructor(t){this._reflect=t||U.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=Zn(void 0===t?e.length:t.length);for(let i=0;i<n.length;i++)void 0===t?n[i]=[]:t[i]&&t[i]!=Object?n[i]=[t[i]]:n[i]=[],e&&null!=e[i]&&(n[i]=n[i].concat(e[i]));return n}_ownParameters(t,e){if(function(t){return ei.test(t)||si.test(t)||ni.test(t)&&!ii.test(t)}(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const n=t.ctorParameters;if(n&&n!==e.ctorParameters){const t="function"==typeof n?n():n,e=t.map(t=>t&&t.type),i=t.map(t=>t&&ai(t.decorators));return this._zipTypesAndAnnotations(e,i)}const i=t.hasOwnProperty(kn)&&t[kn],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||i?this._zipTypesAndAnnotations(s,i):Zn(t.length)}parameters(t){if(!$n(t))return[];const e=oi(t);let n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?ai(t.decorators):t.hasOwnProperty(Sn)?t[Sn]:null}annotations(t){if(!$n(t))return[];const e=oi(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,n={};return Object.keys(e).forEach(t=>{n[t]=ai(e[t])}),n}return t.hasOwnProperty(En)?t[En]:null}propMetadata(t){if(!$n(t))return{};const e=oi(t),n={};if(e!==Object){const t=this.propMetadata(e);Object.keys(t).forEach(e=>{n[e]=t[e]})}const i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(t=>{const e=[];n.hasOwnProperty(t)&&e.push(...n[t]),e.push(...i[t]),n[t]=e}),n}ownPropMetadata(t){return $n(t)&&this._ownPropMetadata(t,oi(t))||{}}hasLifecycleHook(t,e){return t instanceof qn&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n        return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${d(t)}`}resourceUri(t){return`./${d(t)}`}resolveIdentifier(t,e,n,i){return i}resolveEnum(t,e){return t[e]}}function ai(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function oi(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}const li=t=>({token:t}),ci=Dn("Inject",li),di=Dn("Optional"),pi=Dn("Self"),ui=Dn("SkipSelf"),hi=Dn("Host");let mi=null;function fi(){return mi=mi||new ri}function gi(t){return bi(fi().parameters(t))}function bi(t){const e=Un();return t.map(t=>function(t,e){const n={token:null,host:!1,optional:!1,resolved:t.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function i(e){n.resolved=t.R3ResolvedDependencyType.Token,n.token=e}if(Array.isArray(e)&&e.length>0)for(let s=0;s<e.length;s++){const r=e[s];if(void 0===r)continue;const a=Object.getPrototypeOf(r);if(r instanceof di||"Optional"===a.ngMetadataName)n.optional=!0;else if(r instanceof ui||"SkipSelf"===a.ngMetadataName)n.skipSelf=!0;else if(r instanceof pi||"Self"===a.ngMetadataName)n.self=!0;else if(r instanceof hi||"Host"===a.ngMetadataName)n.host=!0;else if(r instanceof ci)n.token=r.token;else if(r instanceof Pn){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");n.token=r.attributeName,n.resolved=t.R3ResolvedDependencyType.Attribute}else!0===r.__ChangeDetectorRef__?(n.token=r,n.resolved=t.R3ResolvedDependencyType.ChangeDetectorRef):i(r)}else void 0===e||Array.isArray(e)&&0===e.length?(n.token=void 0,n.resolved=Bn.Invalid):i(e);return n}(e,t))}function vi(t){const e=[],n=new Map;function i(e){let i=n.get(e);if(!i){const s=t(e);n.set(e,i=s.then(Ci))}return i}return yi.forEach((t,n)=>{const s=[];t.templateUrl&&s.push(i(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,a=t.styles||(t.styles=[]),o=t.styles.length;r&&r.forEach((e,n)=>{a.push(""),s.push(i(e).then(i=>{a[o+n]=i,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(s).then(()=>function(t){_i.delete(t)}(n));e.push(l)}),xi(),Promise.all(e).then(()=>{})}let yi=new Map;const _i=new Set;function wi(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function xi(){const t=yi;return yi=new Map,t}function Ci(t){return"string"==typeof t?t:t.text()}const Si={},ki=/\n/gm,Ei=l({provide:String,useValue:l});let Ii;function Ai(t){const e=Ii;return Ii=t,e}function Di(t,e=D.Default){if(void 0===Ii)throw new Error("inject() must be called from an injection context");return null===Ii?N(t,void 0,e):Ii.get(t,e&D.Optional?null:void 0,e)}function Ti(t,e=D.Default){return(O()||Di)(m(t),e)}function Oi(t){throw new Error("invalid")}const Pi=Ti;function Ni(t){const e=[];for(let n=0;n<t.length;n++){const i=m(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t,n=D.Default;for(let e=0;e<i.length;e++){const s=i[e];s instanceof di||"Optional"===s.ngMetadataName||s===di?n|=D.Optional:s instanceof ui||"SkipSelf"===s.ngMetadataName||s===ui?n|=D.SkipSelf:s instanceof pi||"Self"===s.ngMetadataName||s===pi?n|=D.Self:s instanceof hi||"Host"===s.ngMetadataName||s===hi?n|=D.Host:t=s instanceof ci||s===ci?s.token:s}e.push(Ti(t,n))}else e.push(Ti(i))}return e}function Mi(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=Ri("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}function Ri(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=d(e);if(Array.isArray(e))s=e.map(d).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):d(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(ki,"\n  ")}`}let Li;function Fi(){if(void 0===Li&&(Li=null,U.trustedTypes))try{Li=U.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return Li}function ji(t){var e;return(null===(e=Fi())||void 0===e?void 0:e.createHTML(t))||t}function Vi(t){var e;return(null===(e=Fi())||void 0===e?void 0:e.createScript(t))||t}function Bi(t){var e;return(null===(e=Fi())||void 0===e?void 0:e.createScriptURL(t))||t}class Hi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class zi extends Hi{getTypeName(){return"HTML"}}class Ui extends Hi{getTypeName(){return"Style"}}class qi extends Hi{getTypeName(){return"Script"}}class $i extends Hi{getTypeName(){return"URL"}}class Wi extends Hi{getTypeName(){return"ResourceURL"}}function Yi(t){return t instanceof Hi?t.changingThisBreaksApplicationSecurity:t}function Gi(t,e){const n=Ki(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 Ki(t){return t instanceof Hi&&t.getTypeName()||null}function Zi(t){return new zi(t)}function Xi(t){return new Ui(t)}function Qi(t){return new qi(t)}function Ji(t){return new $i(t)}function ts(t){return new Wi(t)}function es(t){const e=new is(t);return function(){try{return!!(new window.DOMParser).parseFromString(ji(""),"text/html")}catch(t){return!1}}()?new ns(e):e}class ns{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(ji(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class is{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=ji(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=ji(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).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 ss=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,rs=/^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 as(t){return(t=String(t)).match(ss)||t.match(rs)?t:"unsafe:"+t}function os(t){return(t=String(t)).split(",").map(t=>as(t.trim())).join(", ")}function ls(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function cs(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ds=ls("area,br,col,hr,img,wbr"),ps=ls("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),us=ls("rp,rt"),hs=cs(us,ps),ms=cs(ps,ls("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")),fs=cs(us,ls("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")),gs=cs(ds,ms,fs,hs),bs=ls("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),vs=ls("srcset"),ys=ls("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"),_s=ls("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"),ws=cs(bs,vs,ys,_s),xs=ls("script,style,template");class Cs{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(!gs.hasOwnProperty(e))return this.sanitizedSomething=!0,!xs.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,s=e.toLowerCase();if(!ws.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let r=t.value;bs[s]&&(r=as(r)),vs[s]&&(r=os(r)),this.buf.push(" ",e,'="',Es(r),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();gs.hasOwnProperty(e)&&!ds.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Es(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 Ss=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ks=/([^\#-~ |!])/g;function Es(t){return t.replace(/&/g,"&amp;").replace(Ss,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ks,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Is;function As(t,e){let n=null;try{Is=Is||es(t);let i=e?String(e):"";n=Is.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=Is.getInertBodyElement(i)}while(i!==r);const a=new Cs;return a.sanitizeChildren(Ds(n)||n)}finally{if(n){const t=Ds(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ds(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ts;function Os(t){const e=Hs();return e?e.sanitize(Ts.HTML,t)||"":Gi(t,"HTML")?Yi(t):As(Rt(),Ct(t))}function Ps(t){const e=Hs();return e?e.sanitize(Ts.STYLE,t)||"":Gi(t,"Style")?Yi(t):Ct(t)}function Ns(t){const e=Hs();return e?e.sanitize(Ts.URL,t)||"":Gi(t,"URL")?Yi(t):as(Ct(t))}function Ms(t){const e=Hs();if(e)return e.sanitize(Ts.RESOURCE_URL,t)||"";if(Gi(t,"ResourceURL"))return Yi(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Rs(t){const e=Hs();if(e)return e.sanitize(Ts.SCRIPT,t)||"";if(Gi(t,"Script"))return Yi(t);throw new Error("unsafe value used in a script context")}function Ls(t){return ji(t)}function Fs(t){return Vi(t)}function js(t){return Bi(t)}function Vs(t,e){return"src"===e&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===e&&("base"===t||"link"===t)?Ms:Ns}function Bs(t,e,n){return Vs(e,n)(t)}function Hs(){const t=ne();return t&&t[12]}!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(Ts||(Ts={}));function zs(t){return t.ngDebugContext}function Us(t){return t.ngOriginalError}function qs(t,...e){t.error(...e)}class $s{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||qs}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?zs(t)?zs(t):this._findContext(Us(t)):null}_findOriginalError(t){let e=Us(t);for(;e&&Us(e);)e=Us(e);return e}}const Ws={name:"custom-elements"},Ys={name:"no-errors-schema"},Gs=/-->/g;function Ks(t){return t.replace(Gs,"-\u200b-\u200b>")}function Zs(t){var e;return e=t.replace(/[$@]/g,"_"),`ng-reflect-${t=e.replace(Xs,(...t)=>"-"+t[1].toLowerCase())}`}const Xs=/([A-Z])/g;function Qs(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Js(t){let e=$t(t);if(e){if(Array.isArray(e)){const i=e;let s,r,a;if((n=t)&&n.constructor&&n.constructor.\u0275cmp){if(s=rr(i,t),-1==s)throw new Error("The provided component was not found in the application");r=t}else if(function(t){return t&&t.constructor&&t.constructor.\u0275dir}(t)){if(s=function(t,e){let n=t[1].firstChild;for(;n;){const i=n.directiveStart,s=n.directiveEnd;for(let r=i;r<s;r++)if(t[r]===e)return n.index;n=sr(n)}return-1}(i,t),-1==s)throw new Error("The provided directive was not found in the application");a=ar(s,i,!1)}else if(s=ir(i,t),-1==s)return null;const o=Vt(i[s]),l=$t(o),c=l&&!Array.isArray(l)?l:tr(i,s,o);if(r&&void 0===c.component&&(c.component=r,nr(c.component,c)),a&&void 0===c.directives){c.directives=a;for(let t=0;t<a.length;t++)nr(a[t],c)}nr(c.native,c),e=c}}else{const n=t;let i=n;for(;i=i.parentNode;){const t=$t(i);if(t){let i;if(i=Array.isArray(t)?t:t.lView,!i)return null;const s=ir(i,n);if(s>=0){const t=Vt(i[s]),n=tr(i,s,t);nr(t,n),e=n;break}}}}var n;return e||null}function tr(t,e,n){return{lView:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}function er(t){let e,n=$t(t);if(Array.isArray(n)){const i=rr(n,t);e=qt(i,n);const s=tr(n,i,e[0]);s.component=t,nr(t,s),nr(s.native,s)}else{const t=n;e=qt(t.nodeIndex,t.lView)}return e}function nr(t,e){t.__ngContext__=e}function ir(t,e){const n=t[1];for(let i=20;i<n.bindingStartIndex;i++)if(Vt(t[i])===e)return i;return-1}function sr(t){if(t.child)return t.child;if(t.next)return t.next;for(;t.parent&&!t.parent.next;)t=t.parent;return t.parent&&t.parent.next}function rr(t,e){const n=t[1].components;if(n)for(let i=0;i<n.length;i++){const s=n[i];if(qt(s,t)[8]===e)return s}else{if(qt(20,t)[8]===e)return 20}return-1}function ar(t,e,n){const i=e[1].data[t];let s=i.directiveStart;if(0==s)return $;const r=i.directiveEnd;return!n&&2&i.flags&&s++,e.slice(s,r)}const or=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(U);function lr(t){return{name:"window",target:t.ownerDocument.defaultView}}function cr(t){return{name:"document",target:t.ownerDocument}}function dr(t){return{name:"body",target:t.ownerDocument.body}}function pr(t){return t instanceof Function?t():t}var ur;let hr;function mr(t,e){return hr(t,e)}!function(t){t[t.Important=1]="Important",t[t.DashCase=2]="DashCase"}(ur||(ur={}));function fr(t){const e=t[3];return ft(e)?e[3]:e}function gr(t){let e=mt(t)?t:Wt(t);for(;e&&!(512&e[2]);)e=fr(e);return e}function br(t){const e=gr(t);return e[8]}function vr(t){return _r(t[13])}function yr(t){return _r(t[4])}function _r(t){for(;null!==t&&!ft(t);)t=t[4];return t}function wr(t,e,n,i,s){if(null!=i){let r,a=!1;ft(i)?r=i:mt(i)&&(a=!0,i=i[0]);const o=Vt(i);0===t&&null!==n?null==s?Mr(e,n,o):Nr(e,n,o,s||null,!0):1===t&&null!==n?Nr(e,n,o,s||null,!0):2===t?$r(e,o,a):3===t&&e.destroyNode(o),null!=r&&function(t,e,n,i,s){const r=n[7],a=Vt(n);r!==a&&wr(e,t,i,r,s);for(let o=10;o<n.length;o++){const s=n[o];Yr(s[1],s,t,e,i,r)}}(e,t,r,n,s)}}function xr(t,e){return Ft(t)?t.createText(e):t.createTextNode(e)}function Cr(t,e,n){Ft(t)?t.setValue(e,n):e.textContent=n}function Sr(t,e){return t.createComment(Ks(e))}function kr(t,e,n){return Ft(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Er(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),i<r-10?(e[4]=n[s],Gn(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const a=e[17];null!==a&&n!==a&&function(t,e){const n=t[9],i=e[3];const s=i[3][16];const r=e[16];r!==s&&(t[2]=!0);null===n?t[9]=[e]:n.push(e)}(a,e);const o=e[19];null!==o&&o.insertView(t),e[2]|=128}function Ir(t,e){const n=t[9],i=n.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,Xt(s,-1)),n.splice(i,1)}function Ar(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const r=i[17];null!==r&&r!==t&&Ir(r,i),e>0&&(t[n-1][4]=i[4]);const a=Kn(t,10+e);Yr(i[1],s=i,s[11],2,null,null),s[0]=null,s[6]=null;const o=a[19];null!==o&&o.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}var s;return i}function Dr(t,e){if(!(256&e[2])){const n=e[11];Ft(n)&&n.destroyNode&&Yr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Tr(t[1],t);for(;e;){let n=null;if(mt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)mt(e)&&Tr(e[1],e),e=e[3];null===e&&(e=t),mt(e)&&Tr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Tr(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 i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof $e)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup,i=e[7];let s=-1;if(null!==n)for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const t=n[r+1],a="function"==typeof t?t(e):Vt(e[t]),o=i[s=n[r+2]],l=n[r+3];"boolean"==typeof l?a.removeEventListener(n[r],o,l):l>=0?i[s=l]():i[s=-l].unsubscribe(),r+=2}else{const t=i[s=n[r+1]];n[r].call(t)}if(null!==i){for(let t=s+1;t<i.length;t++){const e=i[t];e()}e[7]=null}}(t,e),1===e[1].type&&Ft(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ft(e[3])){n!==e[3]&&Ir(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Or(t,e,n){return Pr(t,e.parent,n)}function Pr(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===F.None||e===F.Emulated)return null}return Ht(i,n)}function Nr(t,e,n,i,s){Ft(t)?t.insertBefore(e,n,i,s):e.insertBefore(n,i,s)}function Mr(t,e,n){Ft(t)?t.appendChild(e,n):e.appendChild(n)}function Rr(t,e,n,i,s){null!==i?Nr(t,e,n,i,s):Mr(t,e,n)}function Lr(t,e){return Ft(t)?t.parentNode(e):e.parentNode}function Fr(t,e,n){return Br(t,e,n)}function jr(t,e,n){return 40&t.type?Ht(t,n):null}let Vr,Br=jr;function Hr(t,e){Br=t,Vr=e}function zr(t,e,n,i){const s=Or(t,i,e),r=e[11],a=Fr(i.parent||e[6],i,e);if(null!=s)if(Array.isArray(n))for(let o=0;o<n.length;o++)Rr(r,s,n[o],a,!1);else Rr(r,s,n,a,!1);void 0!==Vr&&Vr(r,i,e,n,s)}function Ur(t,e){if(null!==e){const n=e.type;if(3&n)return Ht(e,t);if(4&n)return qr(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Ur(t,n);{const n=t[e.index];return ft(n)?qr(-1,n):Vt(n)}}if(32&n){return mr(e,t)()||Vt(t[e.index])}{const n=t[16],i=n[6],s=fr(n),r=i.projection[e.projection];return null!=r?Ur(s,r):Ur(t,e.next)}}return null}function qr(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return Ur(t,i)}return e[7]}function $r(t,e,n){const i=Lr(t,e);i&&function(t,e,n,i){Ft(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}function Wr(t,e,n,i,s,r,a){for(;null!=n;){const o=i[n.index],l=n.type;if(a&&0===e&&(o&&nr(Vt(o),i),n.flags|=4),64!=(64&n.flags))if(8&l)Wr(t,e,n.child,i,s,r,!1),wr(e,t,s,o,r);else if(32&l){const a=mr(n,i);let l;for(;l=a();)wr(e,t,s,l,r);wr(e,t,s,o,r)}else 16&l?Gr(t,e,i,n,s,r):wr(e,t,s,o,r);n=a?n.projectionNext:n.next}}function Yr(t,e,n,i,s,r){Wr(n,i,t.firstChild,e,s,r,!1)}function Gr(t,e,n,i,s,r){const a=n[16],o=a[6].projection[i.projection];if(Array.isArray(o))for(let l=0;l<o.length;l++){wr(e,t,s,o[l],r)}else{Wr(t,e,o,a[3],s,r,!0)}}function Kr(t,e,n){Ft(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Zr(t,e,n){Ft(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Xr(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}function Qr(t,e,n){let i=0;for(;i<t.length;){let s=t[i++];if(n&&"class"===s){if(s=t[i],-1!==Xr(s.toLowerCase(),e,0))return!0}else if(1===s){for(;i<t.length&&"string"==typeof(s=t[i++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function Jr(t){return 4===t.type&&"ng-template"!==t.value}function ta(t,e,n){return e===(4!==t.type||n?t.value:"ng-template")}function ea(t,e,n){let i=4;const s=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++){if(Ye(t[e]))return e}return t.length}(s);let a=!1;for(let o=0;o<e.length;o++){const l=e[o];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!ta(t,l,n)||""===l&&1===e.length){if(na(i))return!1;a=!0}}else{const c=8&i?l:e[++o];if(8&i&&null!==t.attrs){if(!Qr(t.attrs,c,n)){if(na(i))return!1;a=!0}continue}const d=ia(8&i?"class":l,s,Jr(t),n);if(-1===d){if(na(i))return!1;a=!0;continue}if(""!==c){let t;t=d>r?"":s[d+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Xr(e,c,0)||2&i&&c!==t){if(na(i))return!1;a=!0}}}}else{if(!a&&!na(i)&&!na(l))return!1;if(a&&na(l))continue;a=!1,i=l|1&i}}return na(i)||a}function na(t){return 0==(1&t)}function ia(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s<e.length;){const i=e[s];if(i===t)return s;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++s];for(;"string"==typeof t;)t=e[++s];continue}if(4===i)break;if(0===i){s+=4;continue}}s+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function sa(t,e,n=!1){for(let i=0;i<e.length;i++)if(ea(t,e[i],n))return!0;return!1}function ra(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function aa(t,e){return t?":not("+e.trim()+")":e}function oa(t){let e=t[0],n=1,i=2,s="",r=!1;for(;n<t.length;){let a=t[n];if("string"==typeof a)if(2&i){const e=t[++n];s+="["+a+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?s+="."+a:4&i&&(s+=" "+a);else""===s||na(a)||(e+=aa(r,s),s=""),i=a,r=r||!na(i);n++}return""!==s&&(e+=aa(r,s)),e}const la={};function ca(t){da(ie(),ne(),Ne()+t,pe())}function da(t,e,n,i){if(!i){if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Be(e,i,n)}else{const i=t.preOrderHooks;null!==i&&He(e,i,0,n)}}Me(n)}function pa(t,e){return t<<17|e<<2}function ua(t){return t>>17&32767}function ha(t){return 2==(2&t)}function ma(t){return 2|t}function fa(t){return(131068&t)>>2}function ga(t,e){return-131069&t|e<<2}function ba(t){return 1==(1&t)}function va(t){return 1|t}const ya=Promise.resolve(null);function _a(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const s=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];Ce(s),n.contentQueries(2,e[r],r)}}}function wa(t,e,n,i,s,r,a,o,l,c){const d=e.blueprint.slice();return d[0]=s,d[2]=140|i,Zt(d),d[3]=d[15]=t,d[8]=n,d[10]=a||t&&t[10],d[11]=o||t&&t[11],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=r,d[16]=2==e.type?t[16]:d,d}function xa(t,e,n,i,s){let r=t.data[e];if(null===r)r=Ca(t,e,n,i,s),Qt.lFrame.inI18n&&(r.flags|=64);else if(64&r.type){r.type=n,r.value=i,r.attrs=s;const t=oe();r.injectorIndex=null===t?-1:t.injectorIndex}return le(r,!0),r}function Ca(t,e,n,i,s){const r=ae(),a=ce(),o=a?r:r&&r.parent,l=t.data[e]=function(t,e,n,i,s,r){let a=e?e.injectorIndex:-1;const o={type:n,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,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;return o}(0,o,n,e,i,s);return null===t.firstChild&&(t.firstChild=l),null!==r&&(a?null==r.child&&null!==l.parent&&(r.child=l):null===r.next&&(r.next=l)),l}function Sa(t,e,n,i){if(0===n)return-1;const s=e.length;for(let r=0;r<n;r++)e.push(i),t.blueprint.push(i),t.data.push(null);return s}function ka(t,e,n){Ee(e);try{const i=t.viewQuery;null!==i&&ro(1,i,n);const s=t.template;null!==s&&Aa(t,e,s,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&_a(t,e),t.staticViewQueries&&ro(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)Ja(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,Oe()}}function Ea(t,e,n,i){const s=e[2];if(256==(256&s))return;Ee(e);const r=pe();try{Zt(e),fe(t.bindingStartIndex),null!==n&&Aa(t,e,n,2,i);const a=3==(3&s);if(!r)if(a){const n=t.preOrderCheckHooks;null!==n&&Be(e,n,null)}else{const n=t.preOrderHooks;null!==n&&He(e,n,0,null),ze(e,0)}if(function(t){for(let e=vr(t);null!==e;e=yr(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Xt(i,1),n[2]|=1024}}}(e),function(t){for(let e=vr(t);null!==e;e=yr(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];Gt(n)&&Ea(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&_a(t,e),!r)if(a){const n=t.contentCheckHooks;null!==n&&Be(e,n)}else{const n=t.contentHooks;null!==n&&He(e,n,1),ze(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)Me(~i);else{const s=i,r=n[++t],a=n[++t];ye(r,s),a(2,e[s])}}}finally{Me(-1)}}(t,e);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)Xa(t,e[n])}(e,o);const l=t.viewQuery;if(null!==l&&ro(2,l,i),!r)if(a){const n=t.viewCheckHooks;null!==n&&Be(e,n)}else{const n=t.viewHooks;null!==n&&He(e,n,2),ze(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Xt(e[3],-1))}finally{Oe()}}function Ia(t,e,n,i){const s=e[10],r=!pe(),a=Yt(e);try{r&&!a&&s.begin&&s.begin(),a&&ka(t,e,i),Ea(t,e,n,i)}finally{r&&!a&&s.end&&s.end()}}function Aa(t,e,n,i,s){const r=Ne();try{Me(-1),2&i&&e.length>20&&da(t,e,20,pe()),n(i,s)}finally{Me(r)}}function Da(t,e,n){if(gt(e)){const i=e.directiveStart,s=e.directiveEnd;for(let e=i;e<s;e++){const i=t.data[e];i.contentQueries&&i.contentQueries(1,n[e],e)}}}function Ta(t,e,n){Jt()&&(function(t,e,n,i){const s=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||sn(n,e);nr(i,e);const a=n.initialInputs;for(let o=s;o<r;o++){const i=t.data[o],r=yt(i);r&&$a(e,n,i);const l=bn(e,t,o,n);if(nr(l,e),null!==a&&Ga(e,o-s,l,i,n,a),r){qt(n.index,e)[8]=l}}}(t,e,n,Ht(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,s=n.directiveEnd,r=(t.firstCreatePass,n.index),a=Qt.lFrame.currentDirectiveIndex;try{Me(r);for(let n=i;n<s;n++){const i=t.data[n],s=e[n];_e(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Ba(i,s)}}finally{Me(-1),_e(a)}}(t,e,n))}function Oa(t,e,n=Ht){const i=e.localNames;if(null!==i){let s=e.index+1;for(let r=0;r<i.length;r+=2){const a=i[r+1],o=-1===a?n(e,t):t[a];t[s++]=o}}}function Pa(t){const e=t.tView;if(null===e||e.incompleteFirstPass){const e=null;return t.tView=Na(1,e,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts)}return e}function Na(t,e,n,i,s,r,a,o,l,c){const d=20+i,p=d+s,u=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:la);return n}(d,p),h="function"==typeof c?c():c,m=u[1]={type:t,blueprint:u,template:n,queries:null,viewQuery:o,declTNode:e,data:u.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,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 a?a():a,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1};return m}function Ma(t,e,n){if(Ft(t)){const i=n===F.ShadowDom;return t.selectRootElement(e,i)}let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}function Ra(t,e,n,i){const s=oo(e);null===n?s.push(i):(s.push(n),t.firstCreatePass&&lo(t).push(i,s.length-1))}function La(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){n=null===n?{}:n;const s=t[i];n.hasOwnProperty(i)?n[i].push(e,s):n[i]=[e,s]}return n}function Fa(t,e,n,i,s,r,a,o){const l=Ht(e,n);let c,d=e.inputs;var p;!o&&null!=d&&(c=d[i])?(uo(t,n,c,i,s),bt(e)&&function(t,e){const n=qt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type?(i="class"===(p=i)?"className":"for"===p?"htmlFor":"formaction"===p?"formAction":"innerHtml"===p?"innerHTML":"readonly"===p?"readOnly":"tabindex"===p?"tabIndex":p,s=null!=a?a(s,e.value||"",i):s,Ft(r)?r.setProperty(l,i,s):Ge(i)||(l.setProperty?l.setProperty(i,s):l[i]=s)):e.type}function ja(t,e,n,i){let s=!1;if(Jt()){const r=function(t,e,n){const i=t.directiveRegistry;let s=null;if(i)for(let r=0;r<i.length;r++){const a=i[r];sa(n,a.selectors,!1)&&(s||(s=[]),ln(sn(n,e),t,a.type),yt(a)?(Ha(t,n),s.unshift(a)):s.push(a))}return s}(t,e,n),a=null===i?null:{"":-1};if(null!==r){s=!0,Ua(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}let i=!1,o=!1,l=Sa(t,e,r.length,null);for(let s=0;s<r.length;s++){const c=r[s];n.mergedAttrs=Ke(n.mergedAttrs,c.hostAttrs),qa(t,n,e,l,c),za(l,c,a),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const d=c.type.prototype;!i&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),o||!d.ngOnChanges&&!d.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),o=!0),l++}!function(t,e){const n=e.directiveStart,i=e.directiveEnd,s=t.data,r=e.attrs,a=[];let o=null,l=null;for(let c=n;c<i;c++){const t=s[c],n=t.inputs,i=null===r||Jr(e)?null:Ka(n,r);a.push(i),o=La(n,c,o),l=La(t.outputs,c,l)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=a,e.inputs=o,e.outputs=l}(t,n)}a&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const s=n[e[t+1]];if(null==s)throw new wt("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],s)}}}(n,i,a)}return n.mergedAttrs=Ke(n.mergedAttrs,n.attrs),s}function Va(t,e,n,i,s,r){const a=r.hostBindings;if(a){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(i,s,a)}}function Ba(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ha(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function za(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;yt(e)&&(n[""]=t)}}function Ua(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function qa(t,e,n,i,s){t.data[i]=s;const r=s.factory||(s.factory=_t(s.type)),a=new $e(r,yt(s),null);t.blueprint[i]=a,n[i]=a,Va(t,e,0,i,Sa(t,n,s.hostVars,la),s)}function $a(t,e,n){const i=Ht(e,t),s=Pa(n),r=t[10],a=to(t,wa(t,s,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n),null,null));t[e.index]=a}function Wa(t,e,n,i,s,r){const a=Ht(t,e);Ya(e[11],a,r,t.value,n,i,s)}function Ya(t,e,n,i,s,r,a){if(null==r)Ft(t)?t.removeAttribute(e,s,n):e.removeAttribute(s);else{const o=null==a?Ct(r):a(r,i||"",s);Ft(t)?t.setAttribute(e,s,o,n):n?e.setAttributeNS(n,s,o):e.setAttribute(s,o)}}function Ga(t,e,n,i,s,r){const a=r[e];if(null!==a){const t=i.setInput;for(let e=0;e<a.length;){const s=a[e++],r=a[e++],o=a[e++];null!==t?i.setInput(n,o,s,r):n[r]=o}}}function Ka(t,e){let n=null,i=0;for(;i<e.length;){const s=e[i];if(0!==s)if(5!==s){if("number"==typeof s)break;t.hasOwnProperty(s)&&(null===n&&(n=[]),n.push(s,t[s],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Za(t,e,n,i){const s=new Array(t,!0,!1,e,null,0,i,n,null,null);return s}function Xa(t,e){const n=qt(e,t);if(Gt(n)){const t=n[1];80&n[2]?Ea(t,n,t.template,n[8]):n[5]>0&&Qa(n)}}function Qa(t){for(let n=vr(t);null!==n;n=yr(n))for(let t=10;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Ea(t,e,t.template,e[8])}else e[5]>0&&Qa(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=qt(e[n],t);Gt(i)&&i[5]>0&&Qa(i)}}function Ja(t,e){const n=qt(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),ka(i,n,n[8])}function to(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function eo(t){for(;t;){t[2]|=64;const e=fr(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function no(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Wt(n),s=i[1];Ia(s,i,s.template,n)}}function io(t,e,n){const i=e[10];i.begin&&i.begin();try{Ea(t,e,t.template,n)}catch(s){throw po(e,s),s}finally{i.end&&i.end()}}function so(t){no(t[8])}function ro(t,e,n){Ce(0),e(t,n)}const ao=ya;function oo(t){return t[7]||(t[7]=[])}function lo(t){return t.cleanup||(t.cleanup=[])}function co(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]}function po(t,e){const n=t[9],i=n?n.get($s,null):null;i&&i.handleError(e)}function uo(t,e,n,i,s){for(let r=0;r<n.length;){const a=n[r++],o=n[r++],l=e[a],c=t.data[a];null!==c.setInput?c.setInput(l,s,i,o):l[o]=s}}function ho(t,e,n){const i=Bt(e,t);Cr(t[11],i,n)}function mo(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let a=0;a<e.length;a++){const t=e[a];if("number"==typeof t)r=t;else if(1==r)s=p(s,t);else if(2==r){i=p(i,t+": "+e[++a]+";")}}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=s:t.classesWithoutHost=s}function fo(t){const e=er(t);io(e[1],e,t)}function go(t){const e=eo(er(t));!function(t,e){if(0===t.flags&&t.clean==ya){let n;t.flags|=e,t.clean=new Promise(t=>n=t),t.scheduler(()=>{if(1&t.flags&&(t.flags&=-2,no(t)),2&t.flags){t.flags&=-3;const e=t.playerHandler;e&&e.flushPlayers()}t.clean=ya,n(null)})}}(e[8],1)}const bo=new Nn("INJECTOR",-1);class vo{get(t,e=Si){if(e===Si){const e=new Error(`NullInjectorError: No provider for ${d(t)}!`);throw e.name="NullInjectorError",e}return e}}const yo=new Nn("Set Injector scope."),_o={},wo={},xo=[];let Co;function So(){return void 0===Co&&(Co=new vo),Co}function ko(t,e=null,n=null,i){const s=Eo(t,e,n,i);return s._resolveInjectorDefTypes(),s}function Eo(t,e=null,n=null,i){return new Io(t,n,e||So(),i)}class Io{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&Yn(e,n=>this.processProvider(n,t,e)),Yn([t],t=>this.processInjectorType(t,[],s)),this.records.set(bo,To(void 0,this));const r=this.records.get(yo);this.scope=null!=r?r.value:null,this.source=i||("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=Si,n=D.Default){this.assertNotDestroyed();const i=Ai(this);try{if(!(n&D.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof Nn)&&x(t);e=n&&this.injectableDefInScope(n)?To(Ao(t),_o):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}const r=n&D.Self?So():this.parent;return e=n&D.Optional&&e===Si?null:e,r.get(t,e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(d(t)),i)throw r;return Mi(r,t,"R3InjectorError",this.source)}throw r}finally{Ai(i)}var s}_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 i=S(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s;const a=-1!==n.indexOf(r);if(void 0!==s&&(i=S(s)),null==i)return!1;if(null!=i.imports&&!a){let t;n.push(r);try{Yn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];Yn(i,t=>this.processProvider(t,n,i||xo))}}this.injectorDefTypes.add(r),this.records.set(r,To(i.factory,_o));const o=i.providers;if(null!=o&&!a){const e=t;Yn(o,t=>this.processProvider(t,e,o))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Po(t=m(t))?t:m(t&&t.provide);const s=function(t,e,n){if(Oo(t))return To(void 0,t.useValue);return To(Do(t,e,n),_o)}(t,e,n);if(Po(t)||!0!==t.multi){this.records.get(i);0}else{let e=this.records.get(i);e||(e=To(void 0,_o,!0),e.factory=()=>Ni(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===_o&&(e.value=wo,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){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ao(t){const e=x(t),n=null!==e?e.factory:_t(t);if(null!==n)return n;const i=S(t);if(null!==i)return i.factory;if(t instanceof Nn)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=Zn(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 Do(t,e,n){let i;if(Po(t)){const e=m(t);return _t(e)||Ao(e)}if(Oo(t))i=()=>m(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...Ni(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Ti(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return _t(e)||Ao(e);i=()=>new e(...Ni(t.deps))}var s;return i}function To(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Oo(t){return null!==t&&"object"==typeof t&&Ei in t}function Po(t){return"function"==typeof t}function No(t,e,n){return ko({name:n},e,t,n)}const Mo=function(t,e,n){return new Bo(t,e,n)};class Ro{static create(t,e){return Array.isArray(t)?Mo(t,e,""):Mo(t.providers,t.parent,t.name||"")}}Ro.THROW_IF_NOT_FOUND=Si,Ro.NULL=new vo,Ro.\u0275prov=y({token:Ro,providedIn:"any",factory:()=>Ti(bo)}),Ro.__NG_ELEMENT_ID__=-1;const Lo=function(t){return t},Fo=[],jo=Lo,Vo=function(){return Array.prototype.slice.call(arguments)};class Bo{constructor(t,e=Ro.NULL,n=null){this.parent=e,this.source=n;const i=this._records=new Map;i.set(Ro,{token:Ro,fn:Lo,deps:Fo,value:this,useNew:!1}),i.set(bo,{token:bo,fn:Lo,deps:Fo,value:this,useNew:!1}),this.scope=Uo(i,t)}get(t,e,n=D.Default){const i=this._records;let s=i.get(t);if(void 0===s){const e=x(t);if(e){const n=e&&e.providedIn;("any"===n||null!=n&&n===this.scope)&&i.set(t,s=Ho({provide:t,useFactory:e.factory,deps:Fo}))}void 0===s&&i.set(t,null)}let r=Ai(this);try{return qo(t,s,i,this.parent,e,n)}catch(a){return Mi(a,t,"StaticInjectorError",this.source)}finally{Ai(r)}}toString(){const t=[];return this._records.forEach((e,n)=>t.push(d(n))),`StaticInjector[${t.join(", ")}]`}}function Ho(t){const e=function(t){let e=Fo;const n=t.deps;if(n&&n.length){e=[];for(let t=0;t<n.length;t++){let i=6,s=m(n[t]);if(Array.isArray(s))for(let t=0,e=s;t<e.length;t++){const n=e[t];n instanceof di||n==di?i|=1:n instanceof ui||n==ui?i&=-3:n instanceof pi||n==pi?i&=-5:s=n instanceof ci?n.token:m(n)}e.push({token:s,options:i})}}else if(t.useExisting){e=[{token:m(t.useExisting),options:6}]}else if(!n&&!(Ei in t))throw $o("'deps' required",t);return e}(t);let n=Lo,i=Fo,s=!1,r=m(t.provide);if(Ei in t)i=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)s=!0,n=m(t.useClass);else{if("function"!=typeof r)throw $o("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);s=!0,n=r}return{deps:e,fn:n,useNew:s,value:i}}function zo(t){return $o("Cannot mix multi providers and regular providers",t)}function Uo(t,e){let n=null;if(e)if(e=m(e),Array.isArray(e))for(let i=0;i<e.length;i++)n=Uo(t,e[i])||n;else{if("function"==typeof e)throw $o("Function/Class not supported",e);if(!e||"object"!=typeof e||!e.provide)throw $o("Unexpected provider",e);{let i=m(e.provide);const s=Ho(e);if(!0===e.multi){let n=t.get(i);if(n){if(n.fn!==Vo)throw zo(i)}else t.set(i,n={token:e.provide,deps:[],useNew:!1,fn:Vo,value:Fo});i=e,n.deps.push({token:i,options:6})}const r=t.get(i);if(r&&r.fn==Vo)throw zo(i);i===yo&&(n=s.value),t.set(i,s)}}return n}function qo(t,e,n,i,s,r){try{return function(t,e,n,i,s,r){let a;if(!e||r&D.SkipSelf)a=r&D.Self?r&D.Optional?Ro.NULL.get(t,void 0!==s?s:null):Ro.NULL.get(t,s):i.get(t,s,D.Default);else{if(a=e.value,a==jo)throw Error("\u0275Circular dependency");if(a===Fo){let t;e.value=jo;let s=e.useNew,r=e.fn,o=e.deps,l=Fo;if(o.length){l=[];for(let t=0;t<o.length;t++){const e=o[t],s=e.options,r=2&s?n.get(e.token):void 0;l.push(qo(e.token,r,n,r||4&s?i:Ro.NULL,1&s?null:Ro.THROW_IF_NOT_FOUND,D.Default))}}e.value=a=s?new r(...l):r.apply(t,l)}}return a}(t,e,n,i,s,r)}catch(a){a instanceof Error||(a=new Error(a));throw(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),e&&e.value==jo&&(e.value=Fo),a}}function $o(t,e){return new Error(Ri(t,e,"StaticInjectorError"))}function Wo(t){nl(t);const e=Qo(t,!1);return null===e?null:(void 0===e.component&&(e.component=function(t,e){const n=e[1].data[t];let i=n.directiveStart;return 2&n.flags?e[i]:null}(e.nodeIndex,e.lView)),e.component)}function Yo(t){nl(t);const e=Qo(t,!1);return null===e?null:e.lView[8]}function Go(t){const e=Qo(t,!1);if(null===e)return null;let n,i=e.lView;for(;2===i[1].type&&(n=fr(i));)i=n;return 512&i[2]?null:i[8]}function Ko(t){return[...br(t).components]}function Zo(t){const e=Qo(t,!1);if(null===e)return Ro.NULL;const n=e.lView[1].data[e.nodeIndex];return new _n(n,e.lView)}function Xo(t){const e=Qo(t);return void 0===e.directives&&(e.directives=ar(e.nodeIndex,e.lView,!1)),null===e.directives?[]:[...e.directives]}function Qo(t,e=!0){const n=Js(t);if(!n&&e)throw new Error("Invalid ng target");return n}function Jo(t){return Js(t).native}function tl(t){nl(t);const e=Qo(t,!1);if(null===e)return[];const n=e.lView,i=n[1],s=n[7],r=i.cleanup,a=[];if(r&&s)for(let o=0;o<r.length;){const e=r[o++],i=r[o++];if("string"==typeof e){const l=e,c=Vt(n[i]),d=s[r[o++]],p=r[o++],u="boolean"==typeof p||p>=0?"dom":"output",h="boolean"==typeof p&&p;t==c&&a.push({element:t,name:l,callback:d,useCapture:h,type:u})}}return a.sort(el),a}function el(t,e){return t.name==e.name?0:t.name<e.name?-1:1}function nl(t){if("undefined"!=typeof Element&&!(t instanceof Element))throw new Error("Expecting instance of DOM Element")}function il(t){go(t),Ko(t).forEach(t=>fo(t))}let sl=!1;function rl(){sl||(sl=!0,al("getComponent",Wo),al("getContext",Yo),al("getListeners",tl),al("getOwningComponent",Go),al("getHostElement",Jo),al("getInjector",Zo),al("getRootComponents",Ko),al("getDirectives",Xo),al("applyChanges",il))}function al(t,e){if("undefined"==typeof COMPILED||!COMPILED){const n=U;if(n){let i=n.ng;i||(i=n.ng={}),i[t]=e}}}function ol(t,e={}){const n=e.rendererFactory||jt,i=e.sanitizer||null,s=dt(t);s.type!=t&&(s.type=t);const r=s.selectors[0][0],a=Ma(n.createRenderer(null,null),e.host||r,s.encapsulation),o=s.onPush?576:528,l=dl(e.scheduler,e.playerHandler),c=n.createRenderer(a,s),d=Na(0,null,null,1,0,null,null,null,null,null),p=wa(null,d,l,o,null,null,n,c,null,e.injector||null);let u;Ee(p);try{n.begin&&n.begin();u=cl(ll(a,s,p,n,c,i),s,p,l,e.hostFeatures||null),ka(d,p,null),Ea(d,p,null,null)}finally{Oe(),n.end&&n.end()}return u}function ll(t,e,n,i,s,r){const a=n[1];n[20]=t;const o=xa(a,20,2,"#host",null),l=o.mergedAttrs=e.hostAttrs;null!==l&&(mo(o,l,!0),null!==t&&(We(s,t,l),null!==o.classes&&Zr(s,t,o.classes),null!==o.styles&&Kr(s,t,o.styles)));const c=i.createRenderer(t,e),d=wa(n,Pa(e),null,e.onPush?64:16,n[20],o,i,c,r||null,null);return a.firstCreatePass&&(ln(sn(o,n),a,e.type),Ha(a,o),Ua(o,n.length,1)),to(n,d),n[20]=d}function cl(t,e,n,i,s){const r=n[1],a=function(t,e,n){const i=re();if(t.firstCreatePass){n.providersResolver&&n.providersResolver(n);qa(t,i,e,Sa(t,e,1,null),n)}const s=bn(e,t,i.directiveStart,i);nr(s,e);const r=Ht(i,e);return r&&nr(r,e),s}(r,n,e);if(i.components.push(a),t[8]=a,s&&s.forEach(t=>t(a,e)),e.contentQueries){const t=re();e.contentQueries(1,a,t.directiveStart)}const o=re();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Me(o.index);Va(n[1],o,0,o.directiveStart,o.directiveEnd,e),Ba(e,a)}return a}function dl(t,e){return{components:[],scheduler:t||or,clean:ao,playerHandler:e||null,flags:0}}function pl(t,e){const n=Wt(t),i=n[1],s=re();Ve(i,s)}function ul(t){return br(t).clean}function hl(t){return Object.getPrototypeOf(t.prototype).constructor}function ml(t){let e=hl(t.type),n=!0;const i=[t];for(;e;){let s;if(yt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=fl(t.inputs),e.declaredInputs=fl(t.declaredInputs),e.outputs=fl(t.outputs);const n=s.hostBindings;n&&vl(t,n);const r=s.viewQuery,a=s.contentQueries;if(r&&gl(t,r),a&&bl(t,a),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),yt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i<e.length;i++){const s=e[i];s&&s.ngInherit&&s(t),s===ml&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Ke(s.hostAttrs,n=Ke(n,s.hostAttrs))}}(i)}function fl(t){return t===q?{}:t===$?[]:t}function gl(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function bl(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function vl(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}const yl=["providersResolver"],_l=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function wl(t){let e,n=hl(t.type);e=yt(t)?n.\u0275cmp:n.\u0275dir;const i=t;for(const s of yl)i[s]=e[s];if(yt(e))for(const s of _l)i[s]=e[s]}let xl=null;function Cl(){if(!xl){const t=U.Symbol;if(t&&t.iterator)xl=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&&(xl=n)}}}return xl}function Sl(t,e){const n=El(t),i=El(e);if(n&&i)return function(t,e,n){const i=t[Cl()](),s=e[Cl()]();for(;;){const t=i.next(),e=s.next();if(t.done&&e.done)return!0;if(t.done||e.done)return!1;if(!n(t.value,e.value))return!1}}(t,e,Sl);{const s=t&&("object"==typeof t||"function"==typeof t),r=e&&("object"==typeof e||"function"==typeof e);return!(n||!s||i||!r)||Object.is(t,e)}}class kl{constructor(t){this.wrapped=t}static wrap(t){return new kl(t)}static unwrap(t){return kl.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof kl}}function El(t){return!!Il(t)&&(Array.isArray(t)||!(t instanceof Map)&&Cl()in t)}function Il(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Al(t,e,n){return t[e]=n}function Dl(t,e){return t[e]}function Tl(t,e,n){const i=t[e];return!Object.is(i,n)&&(t[e]=n,!0)}function Ol(t,e,n,i){const s=Tl(t,e,n);return Tl(t,e+1,i)||s}function Pl(t,e,n,i,s){const r=Ol(t,e,n,i);return Tl(t,e+2,s)||r}function Nl(t,e,n,i,s,r){const a=Ol(t,e,n,i);return Ol(t,e+2,s,r)||a}function Ml(t,e,n,i){const s=ne(),r=ge();if(Tl(s,r,e)){ie();const r=Re();Wa(r,s,t,e,n,i)}return Ml}function Rl(t,e){let n=!1,i=me();for(let r=1;r<e.length;r+=2)n=Tl(t,i++,e[r])||n;if(fe(i),!n)return la;let s=e[0];for(let r=1;r<e.length;r+=2)s+=Ct(e[r])+e[r+1];return s}function Ll(t,e,n,i){return Tl(t,ge(),n)?e+Ct(n)+i:la}function Fl(t,e,n,i,s,r){const a=Ol(t,me(),n,s);return be(2),a?e+Ct(n)+i+Ct(s)+r:la}function jl(t,e,n,i,s,r,a,o){const l=Pl(t,me(),n,s,a);return be(3),l?e+Ct(n)+i+Ct(s)+r+Ct(a)+o:la}function Vl(t,e,n,i,s,r,a,o,l,c){const d=Nl(t,me(),n,s,a,l);return be(4),d?e+Ct(n)+i+Ct(s)+r+Ct(a)+o+Ct(l)+c:la}function Bl(t,e,n,i,s,r,a,o,l,c,d,p){const u=me();let h=Nl(t,u,n,s,a,l);return h=Tl(t,u+4,d)||h,be(5),h?e+Ct(n)+i+Ct(s)+r+Ct(a)+o+Ct(l)+c+Ct(d)+p:la}function Hl(t,e,n,i,s,r,a,o,l,c,d,p,u,h){const m=me();let f=Nl(t,m,n,s,a,l);return f=Ol(t,m+4,d,u)||f,be(6),f?e+Ct(n)+i+Ct(s)+r+Ct(a)+o+Ct(l)+c+Ct(d)+p+Ct(u)+h:la}function zl(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f){const g=me();let b=Nl(t,g,n,s,a,l);return b=Pl(t,g+4,d,u,m)||b,be(7),b?e+Ct(n)+i+Ct(s)+r+Ct(a)+o+Ct(l)+c+Ct(d)+p+Ct(u)+h+Ct(m)+f:la}function Ul(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b){const v=me();let y=Nl(t,v,n,s,a,l);return y=Nl(t,v+4,d,u,m,g)||y,be(8),y?e+Ct(n)+i+Ct(s)+r+Ct(a)+o+Ct(l)+c+Ct(d)+p+Ct(u)+h+Ct(m)+f+Ct(g)+b:la}function ql(t,e,n,i,s,r){const a=ne(),o=Ll(a,e,n,i);if(o!==la){const e=Re();Wa(e,a,t,o,s,r)}return ql}function $l(t,e,n,i,s,r,a,o){const l=ne(),c=Fl(l,e,n,i,s,r);if(c!==la){const e=Re();Wa(e,l,t,c,a,o)}return $l}function Wl(t,e,n,i,s,r,a,o,l,c){const d=ne(),p=jl(d,e,n,i,s,r,a,o);if(p!==la){const e=Re();Wa(e,d,t,p,l,c)}return Wl}function Yl(t,e,n,i,s,r,a,o,l,c,d,p){const u=ne(),h=Vl(u,e,n,i,s,r,a,o,l,c);if(h!==la){const e=Re();Wa(e,u,t,h,d,p)}return Yl}function Gl(t,e,n,i,s,r,a,o,l,c,d,p,u,h){const m=ne(),f=Bl(m,e,n,i,s,r,a,o,l,c,d,p);if(f!==la){const e=Re();Wa(e,m,t,f,u,h)}return Gl}function Kl(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f){const g=ne(),b=Hl(g,e,n,i,s,r,a,o,l,c,d,p,u,h);if(b!==la){const e=Re();Wa(e,g,t,b,m,f)}return Kl}function Zl(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b){const v=ne(),y=zl(v,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f);if(y!==la){const e=Re();Wa(e,v,t,y,g,b)}return Zl}function Xl(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b,v,y){const _=ne(),w=Ul(_,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b);if(w!==la){const e=Re();Wa(e,_,t,w,v,y)}return Xl}function Ql(t,e,n,i){const s=ne(),r=Rl(s,e);if(r!==la){const e=Re();Wa(e,s,t,r,n,i)}return Ql}function Jl(t,e,n,i,s,r,a,o){const l=ne(),c=ie(),d=t+20,p=c.firstCreatePass?function(t,e,n,i,s,r,a,o,l){const c=e.consts,d=xa(e,t,4,a||null,Kt(c,o));ja(e,n,d,Kt(c,l)),Ve(e,d);const p=d.tViews=Na(2,d,i,s,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,d),p.queries=e.queries.embeddedTView(d)),d}(d,c,l,e,n,i,s,r,a):c.data[d];le(p,!1);const u=l[11].createComment("");zr(c,l,u,p),nr(u,l),to(l,l[d]=Za(u,l,u,p)),vt(p)&&Ta(c,l,p),null!=a&&Oa(l,p,o)}function tc(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}function ec(t){return Ut(Qt.lFrame.contextLView,20+t)}const nc={"\u0275\u0275defineInjectable":y,"\u0275\u0275defineInjector":w,"\u0275\u0275inject":Ti,"\u0275\u0275getFactoryOf":function t(e){const n=e;if(f(e))return()=>{const e=t(m(n));return e?e():null};const i=x(n)||S(n);if(!i||void 0===i.factory)return null;return i.factory},"\u0275\u0275invalidFactoryDep":Oi};const ic=l({provide:String,useValue:l});function sc(t){return void 0!==t.useClass}function rc(t){return void 0!==t.useFactory}function ac(t,e){const n=e||{providedIn:null},i={name:t.name,type:t,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(sc(n)||rc(n))&&void 0!==n.deps&&(i.userDeps=bi(n.deps)),sc(n)?i.useClass=m(n.useClass):!function(t){return ic in t}(n)?rc(n)?i.useFactory=n.useFactory:function(t){return void 0!==t.useExisting}(n)&&(i.useExisting=m(n.useExisting)):i.useValue=m(n.useValue),i}const oc=l({provide:String,useValue:l}),lc=[];function cc(t,e){if(!e){const e=(new ri).parameters(t);return()=>new t(...Ni(e))}if(oc in e){const t=e;return()=>t.useValue}if(e.useExisting){const t=e;return()=>Ti(m(t.useExisting))}if(e.useFactory){const t=e;return()=>t.useFactory(...Ni(t.deps||lc))}if(e.useClass){const n=e;let i=e.deps;if(!i){const e=new ri;i=e.parameters(t)}return()=>new(m(n.useClass))(...Ni(i))}{let n=e.deps;if(!n){const e=new ri;n=e.parameters(t)}return()=>new t(...Ni(n))}}const dc=In("Injectable",void 0,void 0,void 0,(t,e)=>uc(t,e));const pc=function(t,e){let n=null,i=null;t.hasOwnProperty(k)||Object.defineProperty(t,k,{get:()=>(null===n&&(n=Un().compileInjectable(nc,`ng:///${t.name}/\u0275prov.js`,ac(t,e))),n)}),t.hasOwnProperty(X)||Object.defineProperty(t,X,{get:()=>{if(null===i){const n=ac(t,e),s=Un();i=s.compileFactory(nc,`ng:///${t.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:gi(t),injectFn:"inject",target:s.R3FactoryTarget.Injectable})}return i},configurable:!0})},uc=function(t,e){e&&void 0!==e.providedIn&&!x(t)&&(t.\u0275prov=y({token:t,providedIn:e.providedIn,factory:cc(t,e)}))};function hc(t){if(t.length>1){return" ("+function(t){const e=[];for(let n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(t=>d(t.token)).join(" -> ")+")"}return""}function mc(t,e,n,i){const s=[e],r=n(s),a=i?function(t,e){const n=`${t} caused by: ${e instanceof Error?e.message:e}`,i=Error(n);return i.ngOriginalError=e,i}(r,i):Error(r);return a.addKey=fc,a.keys=s,a.injectors=[t],a.constructResolvingMessage=n,a.ngOriginalError=i,a}function fc(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function gc(t,e){const n=[];for(let i=0,s=e.length;i<s;i++){const t=e[i];t&&0!=t.length?n.push(t.map(d).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+d(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+d(t)+"' is decorated with Injectable.")}function bc(t,e){return Error(`Cannot mix multi providers and regular providers, got: ${t} ${e}`)}class vc{constructor(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=d(this.token)}static get(t){return yc.get(m(t))}static get numberOfKeys(){return yc.numberOfKeys}}const yc=new class{constructor(){this._allKeys=new Map}get(t){if(t instanceof vc)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new vc(t,vc.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}};const _c=new class{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,e,n,i){return this.reflectionCapabilities.resolveIdentifier(t,e,n,i)}resolveEnum(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}(new ri);class wc{constructor(t,e,n){this.key=t,this.optional=e,this.visibility=n}static fromKey(t){return new wc(t,!1,null)}}const xc=[];class Cc{constructor(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class Sc{constructor(t,e){this.factory=t,this.dependencies=e}}function kc(t){let e,n;if(t.useClass){const i=m(t.useClass);e=_c.factory(i),n=Dc(i)}else t.useExisting?(e=t=>t,n=[wc.fromKey(vc.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){const n=e.map(t=>[t]);return e.map(e=>Tc(t,e,n))}return Dc(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,n=xc);return new Sc(e,n)}function Ec(t){return new Cc(vc.get(t.provide),[kc(t)],t.multi||!1)}function Ic(t){const e=function(t,e){for(let n=0;n<t.length;n++){const i=t[n],s=e.get(i.key.id);if(s){if(i.multiProvider!==s.multiProvider)throw bc(s,i);if(i.multiProvider)for(let t=0;t<i.resolvedFactories.length;t++)s.resolvedFactories.push(i.resolvedFactories[t]);else e.set(i.key.id,i)}else{let t;t=i.multiProvider?new Cc(i.key,i.resolvedFactories.slice(),i.multiProvider):i,e.set(i.key.id,t)}}return e}(Ac(t,[]).map(Ec),new Map);return Array.from(e.values())}function Ac(t,e){return t.forEach(t=>{if(t instanceof qn)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!Array.isArray(t))throw Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${t}`);Ac(t,e)}}),e}function Dc(t){const e=_c.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw gc(t,e);return e.map(n=>Tc(t,n,e))}function Tc(t,e,n){let i=null,s=!1;if(!Array.isArray(e))return Oc(e instanceof ci?e.token:e,s,null);let r=null;for(let a=0;a<e.length;++a){const t=e[a];t instanceof qn?i=t:t instanceof ci?i=t.token:t instanceof di?s=!0:t instanceof pi||t instanceof ui?r=t:t instanceof Nn&&(i=t)}if(i=m(i),null!=i)return Oc(i,s,r);throw gc(t,n)}function Oc(t,e,n){return new wc(vc.get(t),e,n)}const Pc={};class Nc{static resolve(t){return Ic(t)}static resolveAndCreate(t,e){const n=Nc.resolve(t);return Nc.fromResolvedProviders(n,e)}static fromResolvedProviders(t,e){return new Mc(t,e)}}class Mc{constructor(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;const n=t.length;this.keyIds=[],this.objs=[];for(let i=0;i<n;i++)this.keyIds[i]=t[i].key.id,this.objs[i]=Pc}get(t,e=Si){return this._getByKey(vc.get(t),null,e)}resolveAndCreateChild(t){const e=Nc.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(t){const e=new Mc(t);return e.parent=this,e}resolveAndInstantiate(t){return this.instantiateResolved(Nc.resolve([t])[0])}instantiateResolved(t){return this._instantiateProvider(t)}getProviderAtIndex(t){if(t<0||t>=this._providers.length)throw function(t){return Error(`Index ${t} is out-of-bounds.`)}(t);return this._providers[t]}_new(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw e=this,n=t.key,mc(e,n,function(t){return`Cannot instantiate cyclic dependency!${hc(t)}`});var e,n;return this._instantiateProvider(t)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(t){if(t.multiProvider){const e=[];for(let n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])}_instantiate(t,e){const n=e.factory;let i,s;try{i=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(l){throw l.addKey&&l.addKey(this,t.key),l}try{s=n(...i)}catch(l){throw r=this,a=l,l.stack,o=t.key,mc(r,o,function(t){const e=d(t[0].token);return`${a.message}: Error during instantiation of ${e}!${hc(t)}.`},a)}var r,a,o;return s}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:Si)}_getByKey(t,e,n){return t===Mc.INJECTOR_KEY?this:e instanceof pi?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)}_getObjByKeyId(t){for(let e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Pc&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Pc}_throwOrNull(t,e){if(e!==Si)return e;throw function(t,e){return mc(t,e,function(t){return`No provider for ${d(t[0].token)}!${hc(t)}`})}(this,t)}_getByKeySelf(t,e){const n=this._getObjByKeyId(t.id);return n!==Pc?n:this._throwOrNull(t,e)}_getByKeyDefault(t,e,n){let i;for(i=n instanceof ui?this.parent:this;i instanceof Mc;){const e=i,n=e._getObjByKeyId(t.id);if(n!==Pc)return n;i=e.parent}return null!==i?i.get(t.token,e):this._throwOrNull(t,e)}get displayName(){return`ReflectiveInjector(providers: [${function(t,e){const n=[];for(let i=0;i<t._providers.length;++i)n[i]=e(t.getProviderAtIndex(i));return n}(this,t=>' "'+t.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}function Rc(t,e=D.Default){const n=ne();if(null===n)return Ti(t,e);return un(re(),n,m(t),e)}function Lc(){throw new Error("invalid")}function Fc(t,e,n){const i=ne(),s=ge();if(Tl(i,s,e)){const s=ie(),r=Re();Fa(s,r,i,t,e,i[11],n,!1)}return Fc}function jc(t,e,n,i,s){const r=s?"class":"style";uo(t,n,e.inputs[r],r,i)}function Vc(t,e,n,i,s,r,a){const o=e.consts,l=xa(e,t,2,s,Kt(o,r));ja(e,n,l,Kt(o,a));return null!==l.attrs&&mo(l,l.attrs,!1),null!==l.mergedAttrs&&mo(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}function Bc(t,e,n,i){const s=ne(),r=ie(),a=20+t,o=s[11],l=s[a]=kr(o,e,Qt.lFrame.currentNamespace),c=r.firstCreatePass?Vc(a,r,s,0,e,n,i):r.data[a];le(c,!0);const d=c.mergedAttrs;null!==d&&We(o,l,d);const p=c.classes;null!==p&&Zr(o,l,p);const u=c.styles;null!==u&&Kr(o,l,u),64!=(64&c.flags)&&zr(r,s,l,c),0===Qt.lFrame.elementDepthCount&&nr(l,s),Qt.lFrame.elementDepthCount++,vt(c)&&(Ta(r,s,c),Da(r,c,s)),null!==i&&Oa(s,c)}function Hc(){let t=re();ce()?de():(t=t.parent,le(t,!1));const e=t;Qt.lFrame.elementDepthCount--;const n=ie();n.firstCreatePass&&(Ve(n,t),gt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&jc(n,e,ne(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&jc(n,e,ne(),e.stylesWithoutHost,!1)}function zc(t,e,n,i){Bc(t,e,n,i),Hc()}function Uc(t,e,n){const i=ne(),s=ie(),r=t+20,a=s.firstCreatePass?function(t,e,n,i,s){const r=e.consts,a=Kt(r,i),o=xa(e,t,8,"ng-container",a);return null!==a&&mo(o,a,!0),ja(e,n,o,Kt(r,s)),null!==e.queries&&e.queries.elementStart(e,o),o}(r,s,i,e,n):s.data[r];le(a,!0);const o=i[r]=i[11].createComment("");zr(s,i,o,a),nr(o,i),vt(a)&&(Ta(s,i,a),Da(s,a,i)),null!=n&&Oa(i,a)}function qc(){let t=re();const e=ie();ce()?de():(t=t.parent,le(t,!1)),e.firstCreatePass&&(Ve(e,t),gt(t)&&e.queries.elementEnd(t))}function $c(t,e,n){Uc(t,e,n),qc()}function Wc(){return ne()}function Yc(t){return!!t&&"function"==typeof t.then}function Gc(t){return!!t&&"function"==typeof t.subscribe}function Kc(t,e,n=!1,i){const s=ne(),r=ie(),a=re();return Xc(r,s,s[11],a,t,e,n,i),Kc}function Zc(t,e,n=!1,i){const s=re(),r=ne(),a=ie();return Xc(a,r,co(we(a.data),s,r),s,t,e,n,i),Zc}function Xc(t,e,n,i,s,r,a=!1,o){const l=vt(i),c=t.firstCreatePass&&lo(t),d=oo(e);let p=!0;if(3&i.type){const u=Ht(i,e),h=o?o(u):q,m=h.target||u,f=d.length,g=o?t=>o(Vt(t[i.index])).target:i.index;if(Ft(n)){let a=null;if(!o&&l&&(a=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;r<s.length-1;r+=2){const t=s[r];if(t===n&&s[r+1]===i){const t=e[7],n=s[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==a){(a.__ngLastListenerFn__||a).__ngNextListenerFn__=r,a.__ngLastListenerFn__=r,p=!1}else{r=Jc(i,e,r,!1);const t=n.listen(h.name||m,s,r);d.push(r,t),c&&c.push(s,g,f,f+1)}}else r=Jc(i,e,r,!0),m.addEventListener(s,r,a),d.push(r),c&&c.push(s,g,f,a)}else r=Jc(i,e,r,!1);const u=i.outputs;let h;if(p&&null!==u&&(h=u[s])){const t=h.length;if(t)for(let n=0;n<t;n+=2){const t=h[n],a=h[n+1],o=e[t],l=o[a];0;const p=l.subscribe(r),u=d.length;d.push(r,p),c&&c.push(s,i.index,u,-(u+1))}}}function Qc(t,e,n){try{return!1!==e(n)}catch(i){return po(t,i),!1}}function Jc(t,e,n,i){return function s(r){if(r===Function)return n;const a=2&t.flags?qt(t.index,e):e;0==(32&e[2])&&eo(a);let o=Qc(e,n,r),l=s.__ngNextListenerFn__;for(;l;)o=Qc(e,l,r)&&o,l=l.__ngNextListenerFn__;return i&&!1===o&&(r.preventDefault(),r.returnValue=!1),o}}function td(t=1){return Pe(t)}function ed(t,e){let n=null;const i=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 s=0;s<e.length;s++){const r=e[s];if("*"!==r){if(null===i?sa(t,r,!0):ra(i,r))return s}else n=s}return n}function nd(t){const e=ne()[16][6];if(!e.projection){const n=t?t.length:1,i=e.projection=Zn(n,null),s=i.slice();let r=e.child;for(;null!==r;){const e=t?ed(r,t):0;null!==e&&(s[e]?s[e].projectionNext=r:i[e]=r,s[e]=r),r=r.next}}}function id(t,e=0,n){const i=ne(),s=ie(),r=xa(s,20+t,16,null,n||null);null===r.projection&&(r.projection=e),de(),64!=(64&r.flags)&&function(t,e,n){Gr(e[11],0,e,n,Or(t,n,e),Fr(n.parent||e[6],n,e))}(s,i,r)}function sd(t,e,n){return rd(t,"",e,"",n),sd}function rd(t,e,n,i,s){const r=ne(),a=Ll(r,e,n,i);if(a!==la){const e=ie(),n=Re();Fa(e,n,r,t,a,r[11],s,!1)}return rd}function ad(t,e,n,i,s,r,a){const o=ne(),l=Fl(o,e,n,i,s,r);if(l!==la){const e=ie(),n=Re();Fa(e,n,o,t,l,o[11],a,!1)}return ad}function od(t,e,n,i,s,r,a,o,l){const c=ne(),d=jl(c,e,n,i,s,r,a,o);if(d!==la){const e=ie(),n=Re();Fa(e,n,c,t,d,c[11],l,!1)}return od}function ld(t,e,n,i,s,r,a,o,l,c,d){const p=ne(),u=Vl(p,e,n,i,s,r,a,o,l,c);if(u!==la){const e=ie(),n=Re();Fa(e,n,p,t,u,p[11],d,!1)}return ld}function cd(t,e,n,i,s,r,a,o,l,c,d,p,u){const h=ne(),m=Bl(h,e,n,i,s,r,a,o,l,c,d,p);if(m!==la){const e=ie(),n=Re();Fa(e,n,h,t,m,h[11],u,!1)}return cd}function dd(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m){const f=ne(),g=Hl(f,e,n,i,s,r,a,o,l,c,d,p,u,h);if(g!==la){const e=ie(),n=Re();Fa(e,n,f,t,g,f[11],m,!1)}return dd}function pd(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g){const b=ne(),v=zl(b,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f);if(v!==la){const e=ie(),n=Re();Fa(e,n,b,t,v,b[11],g,!1)}return pd}function ud(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b,v){const y=ne(),_=Ul(y,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b);if(_!==la){const e=ie(),n=Re();Fa(e,n,y,t,_,y[11],v,!1)}return ud}function hd(t,e,n){const i=ne(),s=Rl(i,e);if(s!==la){const e=ie(),r=Re();Fa(e,r,i,t,s,i[11],n,!1)}return hd}Mc.INJECTOR_KEY=vc.get(Ro);const md=[];function fd(t,e,n,i,s,r){let a=r?e.classBindings:e.styleBindings,o=ua(a),l=fa(a);t[i]=n;let c,d=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||Jn(t,c)>0)&&(d=!0)}else c=n;if(s){if(0!==l){const e=ua(t[o+1]);t[i+1]=pa(e,o),0!==e&&(t[e+1]=ga(t[e+1],i)),t[o+1]=131071&t[o+1]|i<<17}else t[i+1]=pa(o,0),0!==o&&(t[o+1]=ga(t[o+1],i)),o=i}else t[i+1]=pa(l,0),0===o?o=i:t[l+1]=ga(t[l+1],i),l=i;d&&(t[i+1]=ma(t[i+1])),gd(t,c,i,!0,r),gd(t,c,i,!1,r),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&Jn(r,e)>=0&&(n[i+1]=va(n[i+1]))}(e,c,t,i,r),a=pa(o,l),r?e.classBindings=a:e.styleBindings=a}function gd(t,e,n,i,s){const r=t[n+1],a=null===e;let o=i?ua(r):fa(r),l=!1;for(;0!==o&&(!1===l||a);){const n=t[o],s=t[o+1];bd(n,e)&&(l=!0,t[o+1]=i?va(s):ma(s)),o=i?ua(s):fa(s)}l&&(t[n+1]=i?ma(r):va(r))}function bd(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Jn(t,e)>=0}const vd={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function yd(t){return t.substring(vd.key,vd.keyEnd)}function _d(t){return t.substring(vd.value,vd.valueEnd)}function wd(t,e){const n=vd.textEnd;return n===e?-1:(e=vd.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,vd.key=e,n),Sd(t,e,n))}function xd(t,e){const n=vd.textEnd;let i=vd.key=Sd(t,e,n);return n===i?-1:(i=vd.keyEnd=function(t,e,n){let i;for(;e<n&&(45===(i=t.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=kd(t,i,n,58),i=vd.value=Sd(t,i,n),i=vd.valueEnd=function(t,e,n){let i=-1,s=-1,r=-1,a=e,o=a;for(;a<n;){const l=t.charCodeAt(a++);if(59===l)return o;34===l||39===l?o=a=Ed(t,l,a,n):e===a-4&&85===r&&82===s&&76===i&&40===l?o=a=Ed(t,41,a,n):l>32&&(o=a),r=s,s=i,i=-33&l}return o}(t,i,n),kd(t,i,n,59))}function Cd(t){vd.key=0,vd.keyEnd=0,vd.value=0,vd.valueEnd=0,vd.textEnd=t.length}function Sd(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function kd(t,e,n,i){return(e=Sd(t,e,n))<n&&e++,e}function Ed(t,e,n,i){let s=-1,r=n;for(;r<i;){const n=t.charCodeAt(r++);if(n==e&&92!==s)return r;s=92==n&&92===s?0:n}throw new Error}function Id(t,e,n){return Nd(t,e,n,!1),Id}function Ad(t,e){return Nd(t,e,null,!0),Ad}function Dd(t){Md(Vd,Td,t,!1)}function Td(t,e){for(let n=function(t){return Cd(t),xd(t,Sd(t,0,vd.textEnd))}(e);n>=0;n=xd(e,n))Vd(t,yd(e),_d(e))}function Od(t){Md(Xn,Pd,t,!0)}function Pd(t,e){for(let n=function(t){return Cd(t),wd(t,Sd(t,0,vd.textEnd))}(e);n>=0;n=wd(e,n))Xn(t,yd(e),!0)}function Nd(t,e,n,i){const s=ne(),r=ie(),a=be(2);if(r.firstUpdatePass&&Ld(r,t,a,i),e!==la&&Tl(s,a,e)){Bd(r,r.data[Ne()],s,s[11],t,s[a+1]=function(t,e){null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=d(Yi(t))));return t}(e,n),i,a)}}function Md(t,e,n,i){const s=ie(),r=be(2);s.firstUpdatePass&&Ld(s,null,r,i);const a=ne();if(n!==la&&Tl(a,r,n)){const o=s.data[Ne()];if(Ud(o,i)&&!Rd(s,r)){0;let t=i?o.classesWithoutHost:o.stylesWithoutHost;null!==t&&(n=p(t,n||"")),jc(s,o,a,n,i)}else!function(t,e,n,i,s,r,a,o){s===la&&(s=md);let l=0,c=0,d=0<s.length?s[0]:null,p=0<r.length?r[0]:null;for(;null!==d||null!==p;){const u=l<s.length?s[l+1]:void 0,h=c<r.length?r[c+1]:void 0;let m,f=null;d===p?(l+=2,c+=2,u!==h&&(f=p,m=h)):null===p||null!==d&&d<p?(l+=2,f=d):(c+=2,f=p,m=h),null!==f&&Bd(t,e,n,i,f,m,a,o),d=l<s.length?s[l]:null,p=c<r.length?r[c]:null}}(s,o,a,a[11],a[r+1],a[r+1]=function(t,e,n){if(null==n||""===n)return md;const i=[],s=Yi(n);if(Array.isArray(s))for(let r=0;r<s.length;r++)t(i,s[r],!0);else if("object"==typeof s)for(const r in s)s.hasOwnProperty(r)&&t(i,r,s[r]);else"string"==typeof s&&e(i,s);return i}(t,e,n),i,r)}}function Rd(t,e){return e>=t.expandoStartIndex}function Ld(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[Ne()],a=Rd(t,n);Ud(r,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){const s=we(t);let r=i?e.residualClasses:e.residualStyles;if(null===s){0===(i?e.classBindings:e.styleBindings)&&(n=jd(n=Fd(null,t,e,n,i),e.attrs,i),r=null)}else{const a=e.directiveStylingLast;if(-1===a||t[a]!==s)if(n=Fd(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0===fa(i))return;return t[ua(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Fd(null,t,e,n[1],i),n=jd(n,e.attrs,i),function(t,e,n,i){const s=n?e.classBindings:e.styleBindings;t[ua(s)]=i}(t,e,i,n))}else r=function(t,e,n){let i;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<s;r++){i=jd(i,t[r].hostAttrs,n)}return jd(i,e.attrs,n)}(t,e,i)}void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r);return n}(s,r,e,i),fd(s,r,e,n,a,i)}}function Fd(t,e,n,i,s){let r=null;const a=n.directiveEnd;let o=n.directiveStylingLast;for(-1===o?o=n.directiveStart:o++;o<a&&(r=e[o],i=jd(i,r.hostAttrs,s),r!==t);)o++;return null!==t&&(n.directiveStylingLast=o),i}function jd(t,e,n){const i=n?1:2;let s=-1;if(null!==e)for(let r=0;r<e.length;r++){const a=e[r];"number"==typeof a?s=a:s===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Xn(t,a,!!n||e[++r]))}return void 0===t?null:t}function Vd(t,e,n){Xn(t,e,Yi(n))}function Bd(t,e,n,i,s,r,a,o){if(!(3&e.type))return;const l=t.data,c=l[o+1];if(!zd(ba(c)?Hd(l,e,n,s,fa(c),a):void 0)){zd(r)||ha(c)&&(r=Hd(l,null,n,s,o,a));!function(t,e,n,i,s){const r=Ft(t);if(e)s?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:ur.DashCase;if(null==s)r?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),e|=ur.Important),r?t.setStyle(n,i,s,e):n.style.setProperty(i,s,a?"important":"")}}}(i,a,Bt(Ne(),n),s,r)}}function Hd(t,e,n,i,s,r){const a=null===e;let o;for(;s>0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let d=n[s+1];d===la&&(d=c?md:void 0);let p=c?Qn(d,i):l===i?d:void 0;if(r&&!zd(p)&&(p=Qn(e,i)),zd(p)&&(o=p,a))return o;const u=t[s+1];s=a?ua(u):fa(u)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(o=Qn(t,i))}return o}function zd(t){return void 0!==t}function Ud(t,e){return 0!=(t.flags&(e?16:32))}function qd(t,e=""){const n=ne(),i=ie(),s=t+20,r=i.firstCreatePass?xa(i,s,1,e,null):i.data[s],a=n[s]=xr(n[11],e);zr(i,n,a,r),le(r,!1)}function $d(t){return Wd("",t,""),$d}function Wd(t,e,n){const i=ne(),s=Ll(i,t,e,n);return s!==la&&ho(i,Ne(),s),Wd}function Yd(t,e,n,i,s){const r=ne(),a=Fl(r,t,e,n,i,s);return a!==la&&ho(r,Ne(),a),Yd}function Gd(t,e,n,i,s,r,a){const o=ne(),l=jl(o,t,e,n,i,s,r,a);return l!==la&&ho(o,Ne(),l),Gd}function Kd(t,e,n,i,s,r,a,o,l){const c=ne(),d=Vl(c,t,e,n,i,s,r,a,o,l);return d!==la&&ho(c,Ne(),d),Kd}function Zd(t,e,n,i,s,r,a,o,l,c,d){const p=ne(),u=Bl(p,t,e,n,i,s,r,a,o,l,c,d);return u!==la&&ho(p,Ne(),u),Zd}function Xd(t,e,n,i,s,r,a,o,l,c,d,p,u){const h=ne(),m=Hl(h,t,e,n,i,s,r,a,o,l,c,d,p,u);return m!==la&&ho(h,Ne(),m),Xd}function Qd(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m){const f=ne(),g=zl(f,t,e,n,i,s,r,a,o,l,c,d,p,u,h,m);return g!==la&&ho(f,Ne(),g),Qd}function Jd(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g){const b=ne(),v=Ul(b,t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g);return v!==la&&ho(b,Ne(),v),Jd}function tp(t){const e=ne(),n=Rl(e,t);return n!==la&&ho(e,Ne(),n),tp}function ep(t,e,n){Md(Xn,Pd,Ll(ne(),t,e,n),!0)}function np(t,e,n,i,s){Md(Xn,Pd,Fl(ne(),t,e,n,i,s),!0)}function ip(t,e,n,i,s,r,a){Md(Xn,Pd,jl(ne(),t,e,n,i,s,r,a),!0)}function sp(t,e,n,i,s,r,a,o,l){Md(Xn,Pd,Vl(ne(),t,e,n,i,s,r,a,o,l),!0)}function rp(t,e,n,i,s,r,a,o,l,c,d){Md(Xn,Pd,Bl(ne(),t,e,n,i,s,r,a,o,l,c,d),!0)}function ap(t,e,n,i,s,r,a,o,l,c,d,p,u){Md(Xn,Pd,Hl(ne(),t,e,n,i,s,r,a,o,l,c,d,p,u),!0)}function op(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m){Md(Xn,Pd,zl(ne(),t,e,n,i,s,r,a,o,l,c,d,p,u,h,m),!0)}function lp(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g){Md(Xn,Pd,Ul(ne(),t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g),!0)}function cp(t){Md(Xn,Pd,Rl(ne(),t),!0)}function dp(t,e,n){Dd(Ll(ne(),t,e,n))}function pp(t,e,n,i,s){Dd(Fl(ne(),t,e,n,i,s))}function up(t,e,n,i,s,r,a){Dd(jl(ne(),t,e,n,i,s,r,a))}function hp(t,e,n,i,s,r,a,o,l){Dd(Vl(ne(),t,e,n,i,s,r,a,o,l))}function mp(t,e,n,i,s,r,a,o,l,c,d){Dd(Bl(ne(),t,e,n,i,s,r,a,o,l,c,d))}function fp(t,e,n,i,s,r,a,o,l,c,d,p,u){Dd(Hl(ne(),t,e,n,i,s,r,a,o,l,c,d,p,u))}function gp(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m){Dd(zl(ne(),t,e,n,i,s,r,a,o,l,c,d,p,u,h,m))}function bp(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g){Dd(Ul(ne(),t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g))}function vp(t){Dd(Rl(ne(),t))}function yp(t,e,n,i,s){return Nd(t,Ll(ne(),e,n,i),s,!1),yp}function _p(t,e,n,i,s,r,a){return Nd(t,Fl(ne(),e,n,i,s,r),a,!1),_p}function wp(t,e,n,i,s,r,a,o,l){return Nd(t,jl(ne(),e,n,i,s,r,a,o),l,!1),wp}function xp(t,e,n,i,s,r,a,o,l,c,d){return Nd(t,Vl(ne(),e,n,i,s,r,a,o,l,c),d,!1),xp}function Cp(t,e,n,i,s,r,a,o,l,c,d,p,u){return Nd(t,Bl(ne(),e,n,i,s,r,a,o,l,c,d,p),u,!1),Cp}function Sp(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m){return Nd(t,Hl(ne(),e,n,i,s,r,a,o,l,c,d,p,u,h),m,!1),Sp}function kp(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g){return Nd(t,zl(ne(),e,n,i,s,r,a,o,l,c,d,p,u,h,m,f),g,!1),kp}function Ep(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b,v){return Nd(t,Ul(ne(),e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b),v,!1),Ep}function Ip(t,e,n){return Nd(t,Rl(ne(),e),n,!1),Ip}function Ap(t,e,n){const i=ne(),s=ge();if(Tl(i,s,e)){const s=ie(),r=Re();Fa(s,r,i,t,e,i[11],n,!0)}return Ap}function Dp(t,e,n){const i=ne(),s=ge();if(Tl(i,s,e)){const s=ie(),r=Re();Fa(s,r,i,t,e,co(we(s.data),r,i),n,!0)}return Dp}const Tp=void 0;var Op=["en",[["a","p"],["AM","PM"],Tp],[["AM","PM"],Tp,Tp],[["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"]],Tp,[["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"]],Tp,[["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}",Tp,"{1} 'at' {0}",Tp],[".",",",";","%","+","-","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 Pp={};function Np(t,e,n){"string"!=typeof e&&(n=e,e=t[Vp.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Pp[e]=t,n&&(Pp[e][Vp.ExtraData]=n)}function Mp(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Fp(e);if(n)return n;const i=e.split("-")[0];if(n=Fp(i),n)return n;if("en"===i)return Op;throw new Error(`Missing locale data for the locale "${t}".`)}function Rp(t){return Mp(t)[Vp.CurrencyCode]||null}function Lp(t){return Mp(t)[Vp.PluralCase]}function Fp(t){return t in Pp||(Pp[t]=U.ng&&U.ng.common&&U.ng.common.locales&&U.ng.common.locales[t]),Pp[t]}function jp(){Pp={}}var Vp;!function(t){t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData"}(Vp||(Vp={}));const Bp=["zero","one","two","few","many"];const Hp="en-US",zp="USD",Up={marker:"element"},qp={marker:"ICU"};var $p;!function(t){t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT"}($p||($p={}));let Wp=Hp;function Yp(t){b(t,"Expected localeId to be defined"),"string"==typeof t&&(Wp=t.toLowerCase().replace(/_/g,"-"))}function Gp(t,e,n){const i=e.insertBeforeIndex,s=Array.isArray(i)?i[0]:i;return null===s?jr(t,0,n):Vt(n[s])}function Kp(t,e,n,i,s){const r=e.insertBeforeIndex;if(Array.isArray(r)){let a=i,o=null;if(3&e.type||(o=a,a=s),null!==a&&0==(2&e.flags))for(let e=1;e<r.length;e++){Nr(t,a,n[r[e]],o,!1)}}}function Zp(t,e){if(t.push(e),t.length>1)for(let n=t.length-2;n>=0;n--){const i=t[n];Xp(i)||Qp(i,e)&&null===Jp(i)&&tu(i,e.index)}}function Xp(t){return!(64&t.type)}function Qp(t,e){return Xp(e)||t.index>e.index}function Jp(t){const e=t.insertBeforeIndex;return Array.isArray(e)?e[0]:e}function tu(t,e){const n=t.insertBeforeIndex;Array.isArray(n)?n[0]=e:(Hr(Gp,Kp),t.insertBeforeIndex=e)}function eu(t,e){const n=t.data[e];if(null===n||"string"==typeof n)return null;const i=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return i}function nu(t,e,n){const i=Ca(t,n,64,null,null);return Zp(e,i),i}function iu(t,e){const n=e[t.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function su(t){return t>>>17}function ru(t){return(131070&t)>>>1}let au=0,ou=0;function lu(t,e,n,i){const s=n[11];let r,a=null;for(let o=0;o<e.length;o++){const l=e[o];if("string"==typeof l){const t=e[++o];null===n[t]&&(n[t]=xr(s,l))}else if("number"==typeof l)switch(1&l){case 0:const c=su(l);let d,p;if(null===a&&(a=c,r=Lr(s,i)),c===a?(d=i,p=r):(d=null,p=Vt(n[c])),null!==p){const e=ru(l),i=n[e];Nr(s,p,i,d,!1);const r=eu(t,e);if(null!==r&&"object"==typeof r){const e=iu(r,n);null!==e&&lu(t,r.create[e],n,n[r.anchorIdx])}}break;case 1:const u=l>>>1,h=e[++o],m=e[++o];Ya(s,Bt(u,n),null,null,h,m,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case qp:const t=e[++o],i=e[++o];if(null===n[i]){nr(n[i]=Sr(s,t),n)}break;case Up:const r=e[++o],a=e[++o];if(null===n[a]){nr(n[a]=kr(s,r,null),n)}}}}function cu(t,e,n,i,s){for(let r=0;r<n.length;r++){const a=n[r],o=n[++r];if(a&s){let s="";for(let a=r+1;a<=r+o;a++){const r=n[a];if("string"==typeof r)s+=r;else if("number"==typeof r)if(r<0)s+=Ct(e[i-r]);else{const o=r>>>2;switch(3&r){case 1:const r=n[++a],l=n[++a],c=t.data[o];"string"==typeof c?Ya(e[11],e[o],null,c,r,s,l):Fa(t,c,e,r,s,e[11],l,!1);break;case 0:const d=e[o];null!==d&&Cr(e[11],d,s);break;case 2:pu(t,eu(t,o),e,s);break;case 3:du(t,eu(t,o),i,e)}}}}else{const s=n[r+1];if(s>0&&3==(3&s)){const n=eu(t,s>>>2);e[n.currentCaseLViewIndex]<0&&du(t,n,i,e)}}r+=o}}function du(t,e,n,i){let s=i[e.currentCaseLViewIndex];if(null!==s){let r=au;s<0&&(s=i[e.currentCaseLViewIndex]=~s,r=-1),cu(t,i,e.update[s],n,r)}}function pu(t,e,n,i){const s=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const i=function(t,e){const n=Lp(e)(parseInt(t,10)),i=Bp[n];return void 0!==i?i:"other"}(e,Wp);n=t.cases.indexOf(i),-1===n&&"other"!==i&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return-1===n?null:n}(e,i);if(iu(e,n)!==s&&(uu(t,e,n),n[e.currentCaseLViewIndex]=null===s?null:~s,null!==s)){const i=n[e.anchorIdx];i&&lu(t,e.create[s],n,i)}}function uu(t,e,n){let i=iu(e,n);if(null!==i){const s=e.remove[i];for(let e=0;e<s.length;e++){const i=s[e];if(i>0){const t=Bt(i,n);null!==t&&$r(n[11],t)}else uu(t,eu(t,~i),n)}}}function hu(){const t=[];let e,n,i=-1;function s(t,e){i=0;const s=iu(t,e);n=null!==s?t.remove[s]:$}function r(){if(i<n.length){const a=n[i++];if(a>0){const t=e[a];return t}{t.push(i,n);const o=~a,l=e[1].data[o];return s(l,e),r()}}return 0===t.length?null:(n=t.pop(),i=t.pop(),r())}return function(n,i){for(e=i;t.length;)t.pop();return s(n.value,i),r}}const mu=/\ufffd(\d+):?\d*\ufffd/gi,fu=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,gu=/\ufffd(\d+)\ufffd/,bu=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,vu=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,yu=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,_u=/\uE500/g;function wu(t,e,n,i,s,r){const a=oe(),o=[],l=[],c=[[]];s=function(t,e){if(function(t){return-1===t}(e))return Eu(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,i=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return Eu(t.substring(n,i))}}(s,r);const d=(p=s,p.replace(_u," ")).split(yu);var p;for(let u=0;u<d.length;u++){let i=d[u];if(0==(1&u)){const r=Du(i);for(let i=0;i<r.length;i++){let d=r[i];if(0==(1&i)){const e=d;""!==e&&Cu(t,a,c[0],o,l,n,e)}else{const i=d;if("object"!=typeof i)throw new Error(`Unable to parse ICU expression in "${s}" message.`);const r=xu(t,a,c[0],n,o,"",!0).index;Iu(t,n,l,e,i,r)}}}else{const e=47===i.charCodeAt(0),n=(i.charCodeAt(e?1:0),20+Number.parseInt(i.substring(e?2:1)));if(e)c.shift(),le(oe(),!1);else{const e=nu(t,c[0],n);c.unshift([]),le(e,!0)}}}t.data[i]={create:o,update:l}}function xu(t,e,n,i,s,r,a){const o=Sa(t,i,1,null);let l=o<<$p.SHIFT,c=oe();var d;e===c&&(c=null),null===c&&(l|=$p.APPEND_EAGERLY),a&&(l|=$p.COMMENT,d=hu,void 0===hr&&(hr=d())),s.push(l,null===r?"":r);const p=Ca(t,o,a?32:1,null===r?"":r,null);Zp(n,p);const u=p.index;return le(p,!1),null!==c&&e!==c&&function(t,e){let n=t.insertBeforeIndex;null===n?(Hr(Gp,Kp),n=t.insertBeforeIndex=[null,e]):(g(Array.isArray(n),!0,"Expecting array here"),n.push(e))}(c,u),p}function Cu(t,e,n,i,s,r,a){const o=a.match(mu),l=xu(t,e,n,r,i,o?null:a,!1);o&&Su(s,a,l.index)}function Su(t,e,n,i,s=null){const r=t.length,a=r+1;t.push(null,null);const o=r+2;const l=e.split(mu);let c=0;for(let d=0;d<l.length;d++){const e=l[d];if(1&d){const n=parseInt(e,10);t.push(-1-n),c|=ku(n)}else""!==e&&t.push(e)}return t.push(n<<2|(i?1:0)),i&&t.push(i,s),t[r]=c,t[a]=t.length-o,c}function ku(t){return 1<<Math.min(t,31)}function Eu(t){let e,n,i="",s=0,r=!1;for(;null!==(e=vu.exec(t));)r?e[0]===`\ufffd/*${n}\ufffd`&&(s=e.index,r=!1):(i+=t.substring(s,e.index+e[0].length),n=e[1],r=!0);return i+=t.substr(s),i}function Iu(t,e,n,i,s,r){let a=0;const o={type:s.type,currentCaseLViewIndex:Sa(t,e,1,null),anchorIdx:r,cases:[],create:[],remove:[],update:[]};!function(t,e,n){t.push(ku(e.mainBinding),2,-1-e.mainBinding,n<<2|2)}(n,s,r),function(t,e,n){const i=t.data[e];null===i?t.data[e]=n:i.value=n}(t,r,o);const l=s.values;for(let c=0;c<l.length;c++){const r=l[c],d=[];for(let t=0;t<r.length;t++){const e=r[t];if("string"!=typeof e){const n=d.push(e)-1;r[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}a=Tu(t,o,e,n,i,s.cases[c],r.join(""),d)|a}a&&function(t,e,n){t.push(e,1,n<<2|3)}(n,a,r)}function Au(t){const e=[],n=[];let i=1,s=0;const r=Du(t=t.replace(bu,function(t,e,n){return i="select"===n?0:1,s=parseInt(e.substr(1),10),""}));for(let a=0;a<r.length;){let t=r[a++].trim();1===i&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const s=Du(r[a++]);e.length>n.length&&n.push(s)}return{type:i,mainBinding:s,cases:e,values:n}}function Du(t){if(!t)return[];let e=0;const n=[],i=[],s=/[{}]/g;let r;for(s.lastIndex=0;r=s.exec(t);){const s=r.index;if("}"==r[0]){if(n.pop(),0==n.length){const n=t.substring(e,s);bu.test(n)?i.push(Au(n)):i.push(n),e=s+1}}else{if(0==n.length){const n=t.substring(e,s);i.push(n),e=s+1}n.push("{")}}const a=t.substring(e);return i.push(a),i}function Tu(t,e,n,i,s,r,a,o){const l=[],c=[],d=[];e.cases.push(r),e.create.push(l),e.remove.push(c),e.update.push(d);const p=es(Rt()).getInertBodyElement(a),u=Ds(p)||p;return u?Ou(t,e,n,i,l,c,d,u,s,o,0):0}function Ou(t,e,n,i,s,r,a,o,l,c,d){let p=0,u=o.firstChild;for(;u;){const o=Sa(t,n,1,null);switch(u.nodeType){case Node.ELEMENT_NODE:const h=u,m=h.tagName.toLowerCase();if(gs.hasOwnProperty(m)){Mu(s,Up,m,l,o),t.data[o]=m;const f=h.attributes;for(let t=0;t<f.length;t++){const e=f.item(t),n=e.name.toLowerCase();!!e.value.match(mu)?ws.hasOwnProperty(n)&&(bs[n]?Su(a,e.value,o,e.name,as):vs[n]?Su(a,e.value,o,e.name,os):Su(a,e.value,o,e.name)):Ru(s,o,e)}p=Ou(t,e,n,i,s,r,a,u,o,c,d+1)|p,Pu(r,o,d)}break;case Node.TEXT_NODE:const f=u.textContent||"",g=f.match(mu);Mu(s,null,g?"":f,l,o),Pu(r,o,d),g&&(p=Su(a,f,o)|p);break;case Node.COMMENT_NODE:const b=gu.exec(u.textContent||"");if(b){const e=parseInt(b[1],10),a=c[e];Mu(s,qp,"",l,o),Iu(t,n,i,l,a,o),Nu(r,o,d)}}u=u.nextSibling}return p}function Pu(t,e,n){0===n&&t.push(e)}function Nu(t,e,n){0===n&&(t.push(~e),t.push(e))}function Mu(t,e,n,i,s){null!==e&&t.push(e),t.push(n,s,0|i<<17|s<<1)}function Ru(t,e,n){t.push(e<<1|1,n.name,n.value)}const Lu=/\[(\ufffd.+?\ufffd?)\]/,Fu=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,ju=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Vu=/{([A-Z0-9_]+)}/g,Bu=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Hu=/\/\*/,zu=/\d+\:(\d+)/;function Uu(t,e={}){let n=t;if(Lu.test(t)){const t={},e=[0];n=n.replace(Fu,(n,i,s)=>{const r=i||s,a=t[r]||[];if(a.length||(r.split("|").forEach(t=>{const e=t.match(zu),n=e?parseInt(e[1],10):0,i=Hu.test(t);a.push([n,i,t])}),t[r]=a),!a.length)throw new Error(`i18n postprocess: unmatched placeholder - ${r}`);const o=e[e.length-1];let l=0;for(let t=0;t<a.length;t++)if(a[t][0]===o){l=t;break}const[c,d,p]=a[l];return d?e.pop():o!==c&&e.push(c),a.splice(l,1),p})}return Object.keys(e).length?(n=n.replace(ju,(t,n,i,s,r,a)=>e.hasOwnProperty(i)?`${n}${e[i]}${a}`:t),n=n.replace(Vu,(t,n)=>e.hasOwnProperty(n)?e[n]:t),n=n.replace(Bu,(t,n)=>{if(e.hasOwnProperty(n)){const i=e[n];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${t} with key: ${n}`);return i.shift()}return t}),n):n}function qu(t,e,n=-1){const i=ie(),s=ne(),r=20+t,a=Kt(i.consts,e),o=oe();i.firstCreatePass&&wu(i,null===o?0:o.index,s,r,a,n);const l=i.data[r],c=Pr(i,o===s[6]?null:o,s),d=o&&8&o.type?s[o.index]:null;!function(t,e,n,i){const s=t[11];for(let r=0;r<e.length;r++){const a=e[r++],o=e[r],l=(a&$p.COMMENT)===$p.COMMENT,c=(a&$p.APPEND_EAGERLY)===$p.APPEND_EAGERLY,d=a>>>$p.SHIFT;let p=t[d];null===p&&(p=t[d]=l?s.createComment(o):xr(s,o)),c&&null!==n&&Nr(s,n,p,i,!1)}}(s,l.create,c,d),ve(!0)}function $u(){ve(!1)}function Wu(t,e,n){qu(t,e,n),$u()}function Yu(t,e){const n=ie();!function(t,e,n){const i=re().index,s=[];if(t.firstCreatePass&&null===t.data[e]){for(let t=0;t<n.length;t+=2){const e=n[t],r=n[t+1];if(""!==r){if(fu.test(r))throw new Error(`ICU expressions are not supported in attributes. Message: "${r}".`);Su(s,r,i,e)}}t.data[e]=s}}(n,t+20,Kt(n.consts,e))}function Gu(t){const e=ne();return Tl(e,ge(),t)&&(au|=1<<Math.min(ou,31)),ou++,Gu}function Ku(t){!function(t,e,n){if(ou>0){const i=t.data[n];cu(t,e,Array.isArray(i)?i:i.update,me()-ou-1,au)}au=0,ou=0}(ie(),ne(),t+20)}function Zu(t,e={}){return Uu(t,e)}function Xu(t,e,n,i,s){if(t=m(t),Array.isArray(t))for(let r=0;r<t.length;r++)Xu(t[r],e,n,i,s);else{const r=ie(),a=ne();let o=Po(t)?t:m(t.provide),l=Do(t);const c=re(),d=1048575&c.providerIndexes,p=c.directiveStart,u=c.providerIndexes>>20;if(Po(t)||!t.multi){const i=new $e(l,s,Rc),h=th(o,e,s?d:d+u,p);-1===h?(ln(sn(c,a),r,o),Qu(r,t,e.length),e.push(o),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(i),a.push(i)):(n[h]=i,a[h]=i)}else{const h=th(o,e,d+u,p),m=th(o,e,d,d+u),f=h>=0&&n[h],g=m>=0&&n[m];if(s&&!g||!s&&!f){ln(sn(c,a),r,o);const d=function(t,e,n,i,s){const r=new $e(t,n,Rc);return r.multi=[],r.index=e,r.componentProviders=0,Ju(r,s,i&&!n),r}(s?nh:eh,n.length,s,i,l);!s&&g&&(n[m].providerFactory=d),Qu(r,t,e.length,0),e.push(o),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),n.push(d),a.push(d)}else{Qu(r,t,h>-1?h:m,Ju(n[s?m:h],l,!s&&i))}!s&&i&&g&&n[m].componentProviders++}}}function Qu(t,e,n,i){const s=Po(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const a=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=a.indexOf(n);-1===t?a.push(n,[i,r]):a[t+1].push(i,r)}else a.push(n,r)}}}function Ju(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function th(t,e,n,i){for(let s=n;s<i;s++)if(e[s]===t)return s;return-1}function eh(t,e,n,i){return ih(this.multi,[])}function nh(t,e,n,i){const s=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=bn(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),ih(s,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],ih(s,r);return r}function ih(t,e){for(let n=0;n<t.length;n++){const i=t[n];e.push(i())}return e}function sh(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=ie();if(i.firstCreatePass){const s=yt(t);Xu(n,i.data,i.blueprint,s,!0),Xu(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class rh{}class ah{}function oh(t){const e=Error(`No component factory found for ${d(t)}. Did you add it to @NgModule.entryComponents?`);return e[lh]=t,e}const lh="ngComponent";class ch{}ch.NULL=new class{resolveComponentFactory(t){throw oh(t)}};class dh{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let i=0;i<t.length;i++){const e=t[i];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw oh(t);return new ph(e,this._ngModule)}}class ph extends ah{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,i){return this.factory.create(t,e,n,i||this.ngModule)}}function uh(...t){}function hh(){return mh(re(),ne())}function mh(t,e){return new bh(Ht(t,e))}const fh=hh,gh=uh;class bh{constructor(t){this.nativeElement=t}}bh.__NG_ELEMENT_ID__=gh;new Nn("Renderer2Interceptor");class vh{}class yh{}yh.__NG_ELEMENT_ID__=()=>wh();const _h=xh,wh=uh;function xh(){const t=ne(),e=qt(re().index,t);return function(t){return t[11]}(mt(e)?e:t)}class Ch{}Ch.\u0275prov=y({token:Ch,providedIn:"root",factory:()=>null});class Sh{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const kh=new Sh("11.0.9");class Eh{constructor(){}supports(t){return El(t)}create(t){return new Ah(t)}}const Ih=(t,e)=>e;class Ah{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||Ih}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex<Ph(n,i,s)?e:n,a=Ph(r,i,s),o=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{s||(s=[]);const t=a-i,e=o-i;if(t!=e){for(let n=0;n<t;n++){const i=n<s.length?s[n]:s[n]=0,r=i+n;e<=r&&r<t&&(s[n]=i+1)}s[r.previousIndex]=e-t}}a!==o&&t(r,a,o)}}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=[]),!El(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,i,s=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,n,i,e)),Object.is(s.item,n)||this._addIdentityChange(s,n)):(s=this._mismatch(s,n,i,e),r=!0),s=s._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[Cl()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),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,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Dh(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,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),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Oh),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||(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Oh),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,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}}class Dh{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 Th{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 Oh{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Th,this.map.set(e,n)),n.add(t)}get(t,e){const n=t,i=this.map.get(n);return i?i.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 Ph(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i<n.length&&(s=n[i]),i+e+s}class Nh{constructor(){}supports(t){return t instanceof Map||Il(t)}create(){return new Mh}}class Mh{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||Il(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 i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new Rh(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 Rh{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}}class Lh{constructor(t){this.factories=t}static create(t,e){if(null!=e){const n=e.factories.slice();t=t.concat(n)}return new Lh(t)}static extend(t){return{provide:Lh,useFactory:e=>{if(!e)throw new Error("Cannot extend IterableDiffers without a parent injector");return Lh.create(t,e)},deps:[[Lh,new ui,new di]]}}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}}Lh.\u0275prov=y({token:Lh,providedIn:"root",factory:()=>new Lh([new Eh])});class Fh{constructor(t){this.factories=t}static create(t,e){if(e){const n=e.factories.slice();t=t.concat(n)}return new Fh(t)}static extend(t){return{provide:Fh,useFactory:e=>{if(!e)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return Fh.create(t,e)},deps:[[Fh,new ui,new di]]}}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}'`)}}function jh(t,e,n,i,s=!1){for(;null!==n;){const r=e[n.index];if(null!==r&&i.push(Vt(r)),ft(r))for(let t=10;t<r.length;t++){const e=r[t],n=e[1].firstChild;null!==n&&jh(e[1],e,n,i)}const a=n.type;if(8&a)jh(t,e,n.child,i);else if(32&a){const t=mr(n,e);let s;for(;s=t();)i.push(s)}else if(16&a){const t=e[16],s=t[6],r=n.projection,a=s.projection[r];if(Array.isArray(a))i.push(...a);else{const e=fr(t);jh(e[1],e,a,i,!0)}}n=s?n.projectionNext:n.next}return i}Fh.\u0275prov=y({token:Fh,providedIn:"root",factory:()=>new Fh([new Nh])});class Vh{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 jh(e,t,e.firstChild,[])}get context(){return this._lView[8]}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(ft(t)){const e=t[8],n=e?e.indexOf(this):-1;n>-1&&(Ar(t,n),Kn(e,n))}this._attachedToViewContainer=!1}Dr(this._lView[1],this._lView)}onDestroy(t){Ra(this._lView[1],this._lView,null,t)}markForCheck(){eo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){io(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ue(!0);try{io(t,e,n)}finally{ue(!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,e;this._appRef=null,t=this._lView[1],e=this._lView,Yr(t,e,e[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Bh extends Vh{constructor(t){super(t),this._view=t}detectChanges(){so(this._view)}checkNoChanges(){!function(t){ue(!0);try{so(t)}finally{ue(!1)}}(this._view)}get context(){return null}}const Hh=qh,zh=uh;class Uh{}function qh(t=!1){return function(t,e,n){if(!n&&bt(t)){const n=qt(t.index,e);return new Vh(n,n)}if(47&t.type){const t=e[16];return new Vh(t,e)}return null}(re(),ne(),t)}Uh.__NG_ELEMENT_ID__=zh,Uh.__ChangeDetectorRef__=!0;const $h=[new Nh],Wh=[new Eh],Yh=new Lh(Wh),Gh=new Fh($h),Kh=tm,Zh=uh;class Xh{}Xh.__NG_ELEMENT_ID__=Zh;const Qh=Xh,Jh=class extends Qh{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=wa(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null),i=this._declarationLView[this._declarationTContainer.index];n[17]=i;const s=this._declarationLView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),ka(e,n,t),new Vh(n)}};function tm(){return em(re(),ne())}function em(t,e){return 4&t.type?new Jh(e,t,mh(t,e)):null}class nm{}class im{}const sm=om,rm=uh;class am{}function om(){return um(re(),ne())}am.__NG_ELEMENT_ID__=rm;const lm=am,cm=class extends lm{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return mh(this._hostTNode,this._hostLView)}get injector(){return new _n(this._hostTNode,this._hostLView)}get parentInjector(){const t=on(this._hostTNode,this._hostLView);if(Xe(t)){const e=Je(t,this._hostLView),n=Qe(t),i=e[1].data[n+8];return new _n(i,e)}return new _n(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=dm(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(nm,null);t&&(s=t)}const a=t.create(r,i,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){const n=t._lView,i=n[1];if(ft(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new cm(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;Er(i,n,r,s);const a=qr(s,r),o=n[11],l=Lr(o,r[7]);return null!==l&&function(t,e,n,i,s,r){i[0]=s,i[6]=e,Yr(t,i,n,1,s,r)}(i,r[6],o,n,l,a),t.attachToViewContainerRef(),Gn(pm(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=dm(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Ar(this._lContainer,e);n&&(Kn(pm(this._lContainer),e),Dr(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Ar(this._lContainer,e);return n&&null!=Kn(pm(this._lContainer),e)?new Vh(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function dm(t){return t[8]}function pm(t){return t[8]||(t[8]=[])}function um(t,e){let n;const i=e[t.index];if(ft(i))n=i;else{let s;if(8&t.type)s=Vt(i);else{const n=e[11];s=n.createComment("");const i=Ht(t,e);Nr(n,Lr(n,i),s,function(t,e){return Ft(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=Za(i,e,s,t),to(e,n)}return new cm(n,t,e)}function hm(t,e,n,i){let s=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return i&&(s+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return mm(n,e),n}(s,t)}function mm(t,e){t.ngDebugContext=e,t.ngErrorLogger=e.logError.bind(e)}function fm(t){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${t}`)}function gm(t,e,n){const i=t.state,s=1792&i;return s===e?(t.state=-1793&i|n,t.initIndex=-1,!0):s===n}function bm(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function vm(t,e){return t.nodes[e]}function ym(t,e){return t.nodes[e]}function _m(t,e){return t.nodes[e]}function wm(t,e){return t.nodes[e]}function xm(t,e){return t.nodes[e]}class Cm{}const Sm={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},km=()=>{},Em=new Map;function Im(t){let e=Em.get(t);return e||(e=d(t)+"_"+Em.size,Em.set(t,e)),e}function Am(t,e,n,i){if(kl.isWrapped(i)){i=kl.unwrap(i);const s=t.def.nodes[e].bindingIndex+n,r=kl.unwrap(t.oldValues[s]);t.oldValues[s]=new kl(r)}return i}function Dm(t){return{id:"$$undefined",styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let Tm=0;function Om(t,e,n,i){const s=t.oldValues;return!(!(2&t.state)&&Object.is(s[e.bindingIndex+n],i))}function Pm(t,e,n,i){return!!Om(t,e,n,i)&&(t.oldValues[e.bindingIndex+n]=i,!0)}function Nm(t,e,n,i){const s=t.oldValues[e.bindingIndex+n];if(1&t.state||!Sl(s,i)){const r=e.bindings[n].name;throw hm(Sm.createDebugContext(t,e.nodeIndex),`${r}: ${s}`,`${r}: ${i}`,0!=(1&t.state))}}function Mm(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Rm(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Lm(t,e,n,i){try{const s=t.def.nodes[e];return Mm(33554432&s.flags?ym(t,e).componentView:t),Sm.handleEvent(t,e,n,i)}catch(s){t.root.errorHandler.handleError(s)}}function Fm(t){if(t.parent){return ym(t.parent,t.parentNodeDef.nodeIndex)}return null}function jm(t){return t.parent?t.parentNodeDef.parent:null}function Vm(t,e){switch(201347067&e.flags){case 1:return ym(t,e.nodeIndex).renderElement;case 2:return vm(t,e.nodeIndex).renderText}}function Bm(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Hm(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function zm(t){return 1<<t%32}function Um(t){const e={};let n=0;const i={};return t&&t.forEach(([t,s])=>{"number"==typeof t?(e[t]=s,n|=zm(t)):i[t]=s}),{matchedQueries:e,references:i,matchedQueryIds:n}}function qm(t,e){return t.map(t=>{let n,i;return Array.isArray(t)?[i,n]=t:(i=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,"__source",{value:e,configurable:!0}),{flags:i,token:n,tokenKey:Im(n)}})}function $m(t,e,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&(i.element.componentRendererType.encapsulation===F.ShadowDom||1===i.element.componentRendererType.encapsulation)?ym(t,n.renderParent.nodeIndex).renderElement:void 0:e}const Wm=new WeakMap;function Ym(t){let e=Wm.get(t);return e||(e=t(()=>km),e.factory=t,Wm.set(t,e)),e}function Gm(t,e,n,i,s){3===e&&(n=t.renderer.parentNode(Vm(t,t.def.lastRenderRootNode))),Km(t,e,0,t.def.nodes.length-1,n,i,s)}function Km(t,e,n,i,s,r,a){for(let o=n;o<=i;o++){const n=t.def.nodes[o];11&n.flags&&Xm(t,n,e,s,r,a),o+=n.childCount}}function Zm(t,e,n,i,s,r){let a=t;for(;a&&!Bm(a);)a=a.parent;const o=a.parent,l=jm(a),c=l.nodeIndex+1,d=l.nodeIndex+l.childCount;for(let p=c;p<=d;p++){const t=o.def.nodes[p];t.ngContentIndex===e&&Xm(o,t,n,i,s,r),p+=t.childCount}if(!o.parent){const a=t.root.projectableNodes[e];if(a)for(let e=0;e<a.length;e++)Qm(t,a[e],n,i,s,r)}}function Xm(t,e,n,i,s,r){if(8&e.flags)Zm(t,e.ngContent.index,n,i,s,r);else{const a=Vm(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&Qm(t,a,n,i,s,r),32&e.bindingFlags){Qm(ym(t,e.nodeIndex).componentView,a,n,i,s,r)}}else Qm(t,a,n,i,s,r);if(16777216&e.flags){const a=ym(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<a.length;t++)Gm(a[t],n,i,s,r)}1&e.flags&&!e.element.name&&Km(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,i,s,r)}}function Qm(t,e,n,i,s,r){const a=t.renderer;switch(n){case 1:a.appendChild(i,e);break;case 2:a.insertBefore(i,e,s);break;case 3:a.removeChild(i,e);break;case 0:r.push(e)}}const Jm=/^:([^:]+):(.+)$/;function tf(t){if(":"===t[0]){const e=t.match(Jm);return[e[1],e[2]]}return["",t]}function ef(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}function nf(t,e){let n="";for(let i=0;i<2*t;i+=2)n=n+e[i]+rf(e[i+1]);return n+e[2*t]}function sf(t,e,n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b,v,y){switch(t){case 1:return e+rf(n)+i;case 2:return e+rf(n)+i+rf(s)+r;case 3:return e+rf(n)+i+rf(s)+r+rf(a)+o;case 4:return e+rf(n)+i+rf(s)+r+rf(a)+o+rf(l)+c;case 5:return e+rf(n)+i+rf(s)+r+rf(a)+o+rf(l)+c+rf(d)+p;case 6:return e+rf(n)+i+rf(s)+r+rf(a)+o+rf(l)+c+rf(d)+p+rf(u)+h;case 7:return e+rf(n)+i+rf(s)+r+rf(a)+o+rf(l)+c+rf(d)+p+rf(u)+h+rf(m)+f;case 8:return e+rf(n)+i+rf(s)+r+rf(a)+o+rf(l)+c+rf(d)+p+rf(u)+h+rf(m)+f+rf(g)+b;case 9:return e+rf(n)+i+rf(s)+r+rf(a)+o+rf(l)+c+rf(d)+p+rf(u)+h+rf(m)+f+rf(g)+b+rf(v)+y;default:throw new Error("Does not support more than 9 expressions")}}function rf(t){return null!=t?t.toString():""}const af=[],of={},lf={},cf=Im(Ro),df=Im(bo),pf=Im(nm);function uf(t,e,n,i){n=m(n);return{index:-1,deps:qm(i,d(e)),flags:t,token:e,value:n}}function hf(t){const e={},n=[];let i=null;for(let s=0;s<t.length;s++){const r=t[s];r.token===yo&&(i=r.value),1073741824&r.flags&&n.push(r.token),r.index=s,e[Im(r.token)]=r}return{factory:null,providersByKey:e,providers:t,modules:n,scope:i}}function mf(t,e,n=Ro.THROW_IF_NOT_FOUND){const i=Ai(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const s=e.tokenKey;switch(s){case cf:case df:case pf:return t}const r=t._def.providersByKey[s];let a;if(r){let e=t._providers[r.index];return void 0===e&&(e=t._providers[r.index]=ff(t,r)),e===lf?void 0:e}if((a=x(e.token))&&function(t,e){const n=e.providedIn;return null!=n&&("any"===n||n===t._def.scope||function(t,e){return t._def.modules.indexOf(e)>-1}(t,n))}(t,a)){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:e.token},t._providers[n]=lf,t._providers[n]=ff(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Ai(i)}}function ff(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const i=n.length;switch(i){case 0:return new e;case 1:return new e(mf(t,n[0]));case 2:return new e(mf(t,n[0]),mf(t,n[1]));case 3:return new e(mf(t,n[0]),mf(t,n[1]),mf(t,n[2]));default:const s=[];for(let e=0;e<i;e++)s[e]=mf(t,n[e]);return new e(...s)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const i=n.length;switch(i){case 0:return e();case 1:return e(mf(t,n[0]));case 2:return e(mf(t,n[0]),mf(t,n[1]));case 3:return e(mf(t,n[0]),mf(t,n[1]),mf(t,n[2]));default:const s=[];for(let e=0;e<i;e++)s[e]=mf(t,n[e]);return e(...s)}}(t,e.value,e.deps);break;case 2048:n=mf(t,e.deps[0]);break;case 256:n=e.value}return n===lf||null===n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?lf:n}function gf(t,e,n,i){let s=e.viewContainer._embeddedViews;null==n&&(n=s.length),i.viewContainerParent=t,Gn(s,n,i),function(t,e){const n=Fm(e);if(!n||n===t||16&e.state)return;e.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]);i.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,i),Sm.dirtyParentQueries(i);vf(e,n>0?s[n-1]:null,i)}function bf(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const i=n[e];return i.viewContainerParent=null,Kn(n,e),Sm.dirtyParentQueries(i),yf(i),i}function vf(t,e,n){const i=e?Vm(e,e.def.lastRenderRootNode):t.renderElement,s=n.renderer.parentNode(i),r=n.renderer.nextSibling(i);Gm(n,2,s,r,void 0)}function yf(t){Gm(t,3,null,null,void 0)}const _f={};function wf(t,e,n,i,s,r){return new Cf(t,e,n,i,s,r)}function xf(t){return t.viewDefFactory}class Cf extends ah{constructor(t,e,n,i,s,r){super(),this.selector=t,this.componentType=e,this._inputs=i,this._outputs=s,this.ngContentSelectors=r,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e){const i=e[n];t.push({propName:n,templateName:i})}return t}get outputs(){const t=[];for(let e in this._outputs){const n=this._outputs[e];t.push({propName:e,templateName:n})}return t}create(t,e,n,i){if(!i)throw new Error("ngModule should be provided");const s=Ym(this.viewDefFactory),r=s.nodes[0].element.componentProvider.nodeIndex,a=Sm.createRootView(t,e||[],n,s,i,_f),o=_m(a,r).instance;return n&&a.renderer.setAttribute(ym(a,0).renderElement,"ng-version",kh.full),new Sf(a,new Af(a),o)}}class Sf extends rh{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new bh(ym(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Pf(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function kf(t,e,n){return new Ef(t,e,n)}class Ef{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new bh(this._data.renderElement)}get injector(){return new Pf(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=jm(t),t=t.parent;return t?new Pf(t,e):new Pf(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=bf(this._data,t);Sm.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new Af(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;s||t instanceof ph||(s=r.get(nm));const a=t.create(r,i,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t,i=n._view;return gf(this._view,this._data,e,i),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const i=t.viewContainer._embeddedViews,s=i[e];Kn(i,e),null==n&&(n=i.length),Gn(i,n,s),Sm.dirtyParentQueries(s),yf(s),vf(t,n>0?i[n-1]:null,s)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=bf(this._data,t);e&&Sm.destroyView(e)}detach(t){const e=bf(this._data,t);return e?new Af(e):null}}function If(t){return new Af(t)}class Af{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return Gm(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Mm(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{Sm.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){Sm.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Sm.destroyView(this._view)}detachFromAppRef(){this._appRef=null,yf(this._view),Sm.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function Df(t,e){return new Tf(t,e)}class Tf extends Xh{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new Af(Sm.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new bh(ym(this._parentView,this._def.nodeIndex).renderElement)}}function Of(t,e){return new Pf(t,e)}class Pf{constructor(t,e){this.view=t,this.elDef=e}get(t,e=Ro.THROW_IF_NOT_FOUND){const n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Sm.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Im(t)},e)}}function Nf(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=ym(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return vm(t,n.nodeIndex).renderText;if(20240&n.flags)return _m(t,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${e}`)}function Mf(t,e,n,i){return new Rf(t,e,n,i)}class Rf{constructor(t,e,n,i){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=Zn(e.providers.length);for(let i=0;i<e.providers.length;i++){const s=e.providers[i];4096&s.flags||void 0===n[i]&&(n[i]=ff(t,s))}}(this)}get(t,e=Ro.THROW_IF_NOT_FOUND,n=D.Default){let i=0;return n&D.SkipSelf?i|=1:n&D.Self&&(i|=4),mf(this,{token:t,tokenKey:Im(t),flags:i},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(ch)}destroy(){if(this._destroyed)throw new Error(`The ng module ${d(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,i=new Set;for(let s=0;s<n.providers.length;s++)if(131072&n.providers[s].flags){const e=t._providers[s];if(e&&e!==lf){const t=e.ngOnDestroy;"function"!=typeof t||i.has(e)||(t.apply(e),i.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const Lf=Im(yh),Ff=Im(bh),jf=Im(am),Vf=Im(Xh),Bf=Im(Uh),Hf=Im(Ro),zf=Im(bo);function Uf(t,e,n,i,s,r,a,o){const l=[];if(a)for(let d in a){const[t,e]=a[d];l[t]={flags:8,name:d,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const c=[];if(o)for(let d in o)c.push({type:1,propName:d,target:null,eventName:o[d]});return Wf(t,e|=16384,n,i,s,s,r,l,c)}function qf(t,e,n){return Wf(-1,t|=16,null,0,e,e,n)}function $f(t,e,n,i,s){return Wf(-1,t,e,0,n,i,s)}function Wf(t,e,n,i,s,r,a,o,l){const{matchedQueries:c,references:p,matchedQueryIds:u}=Um(n);l||(l=[]),o||(o=[]),r=m(r);const h=qm(a,d(s));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:u,references:p,ngContentIndex:-1,childCount:i,bindings:o,bindingFlags:ef(o),outputs:l,element:null,provider:{token:s,value:r,deps:h},text:null,query:null,ngContent:null}}function Yf(t,e){return Xf(t,e)}function Gf(t,e){let n=t;for(;n.parent&&!Bm(n);)n=n.parent;return Qf(n.parent,jm(n),!0,e.provider.value,e.provider.deps)}function Kf(t,e){const n=(32768&e.flags)>0,i=Qf(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(let s=0;s<e.outputs.length;s++){const n=e.outputs[s],r=i[n.propName];if(!Gc(r))throw new Error(`@Output ${n.propName} not initialized in '${i.constructor.name}'.`);{const i=r.subscribe(Zf(t,e.parent.nodeIndex,n.eventName));t.disposables[e.outputIndex+s]=i.unsubscribe.bind(i)}}return i}function Zf(t,e,n){return i=>Lm(t,e,n,i)}function Xf(t,e){const n=(8192&e.flags)>0,i=e.provider;switch(201347067&e.flags){case 512:return Qf(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,s){const r=s.length;switch(r){case 0:return i();case 1:return i(tg(t,e,n,s[0]));case 2:return i(tg(t,e,n,s[0]),tg(t,e,n,s[1]));case 3:return i(tg(t,e,n,s[0]),tg(t,e,n,s[1]),tg(t,e,n,s[2]));default:const a=[];for(let i=0;i<r;i++)a.push(tg(t,e,n,s[i]));return i(...a)}}(t,e.parent,n,i.value,i.deps);case 2048:return tg(t,e.parent,n,i.deps[0]);case 256:return i.value}}function Qf(t,e,n,i,s){const r=s.length;switch(r){case 0:return new i;case 1:return new i(tg(t,e,n,s[0]));case 2:return new i(tg(t,e,n,s[0]),tg(t,e,n,s[1]));case 3:return new i(tg(t,e,n,s[0]),tg(t,e,n,s[1]),tg(t,e,n,s[2]));default:const a=[];for(let i=0;i<r;i++)a.push(tg(t,e,n,s[i]));return new i(...a)}}const Jf={};function tg(t,e,n,i,s=Ro.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const r=t;2&i.flags&&(s=null);const a=i.tokenKey;a===Bf&&(n=!(!e||!e.element.componentView)),e&&1&i.flags&&(n=!1,e=e.parent);let o=t;for(;o;){if(e)switch(a){case Lf:return eg(o,e,n).renderer;case Ff:return new bh(ym(o,e.nodeIndex).renderElement);case jf:return ym(o,e.nodeIndex).viewContainer;case Vf:if(e.element.template)return ym(o,e.nodeIndex).template;break;case Bf:return If(eg(o,e,n));case Hf:case zf:return Of(o,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[a];if(t){let e=_m(o,t.nodeIndex);return e||(e={instance:Xf(o,t)},o.nodes[t.nodeIndex]=e),e.instance}}n=Bm(o),e=jm(o),o=o.parent,4&i.flags&&(o=null)}const l=r.root.injector.get(i.token,Jf);return l!==Jf||s===Jf?l:r.root.ngModule.injector.get(i.token,s)}function eg(t,e,n){let i;if(n)i=ym(t,e.nodeIndex).componentView;else for(i=t;i.parent&&!Bm(i);)i=i.parent;return i}function ng(t,e,n,i,s,r){if(32768&n.flags){const e=ym(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}const a=n.bindings[i].name;if(e.instance[a]=s,524288&n.flags){r=r||{};const e=kl.unwrap(t.oldValues[n.bindingIndex+i]);r[n.bindings[i].nonMinifiedName]=new It(e,s,0!=(2&t.state))}return t.oldValues[n.bindingIndex+i]=s,r}function ig(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let i=0;for(let s=0;s<n.length;s++){const r=n[s];let a=r.parent;for(!a&&r.flags&e&&rg(t,s,r.flags&e,i++),0==(r.childFlags&e)&&(s+=r.childCount);a&&1&a.flags&&s===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(i=sg(t,a,e,i)),a=a.parent}}function sg(t,e,n,i){for(let s=e.nodeIndex+1;s<=e.nodeIndex+e.childCount;s++){const e=t.def.nodes[s];e.flags&n&&rg(t,s,e.flags&n,i++),s+=e.childCount}return i}function rg(t,e,n,i){const s=_m(t,e);if(!s)return;const r=s.instance;r&&(Sm.setCurrentNode(t,e),1048576&n&&bm(t,512,i)&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&bm(t,768,i)&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}class ag extends ch{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=dt(t);return new cg(e,this.ngModule)}}function og(t){const e=[];for(let n in t)if(t.hasOwnProperty(n)){const i=t[n];e.push({propName:i,templateName:n})}return e}const lg=new Nn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>or});class cg extends ah{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(oa).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return og(this.componentDef.inputs)}get outputs(){return og(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Jf,s);return r!==Jf||i===Jf?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(vh,jt),a=s.get(Ch,null),o=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?Ma(o,n,this.componentDef.encapsulation):kr(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)),d=this.componentDef.onPush?576:528,p=dl(),u=Na(0,null,null,1,0,null,null,null,null,null),h=wa(null,u,p,d,null,null,r,o,a,s);let m,f;Ee(h);try{const t=ll(c,this.componentDef,h,r,o);if(c)if(n)We(o,c,["ng-version",kh.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===s?""!==r&&e.push(r,t[++i]):8===s&&n.push(r);else{if(!na(s))break;s=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&We(o,c,t),e&&e.length>0&&Zr(o,c,e.join(" "))}if(f=zt(u,20),void 0!==e){const t=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}m=cl(t,this.componentDef,h,p,[pl]),ka(u,h,null)}finally{Oe()}return new dg(this.componentType,m,mh(f,h),h,f)}}new ag;class dg extends rh{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Bh(i),this.componentType=t}get injector(){return new _n(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function pg(t,e,n,i){return M(()=>{const s=t;null!==e&&(s.hasOwnProperty("decorators")&&void 0!==s.decorators?s.decorators.push(...e):s.decorators=e),null!==n&&(s.ctorParameters=n),null!==i&&(s.hasOwnProperty("propDecorators")&&void 0!==s.propDecorators?s.propDecorators=Object.assign(Object.assign({},s.propDecorators),i):s.propDecorators=i)})}const ug=new Map;function hg(t,e){const n=ug.get(t);mg(t,n&&n.moduleType,e.moduleType),ug.set(t,e)}function mg(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${d(e)} vs ${d(e.name)}`)}function fg(t){const e=new Set;!function t(n){const i=ht(n,!0),s=i.id;if(null!==s){const t=ug.get(s);mg(s,t,n),ug.set(s,n)}const r=pr(i.imports);for(const a of r)e.has(a)||(e.add(a),t(a))}(t)}function gg(t){return ug.get(t)||st[t]}class bg extends nm{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ag(this);const n=ht(t),i=t[Z]||null;i&&Yp(i),this._bootstrapComponents=pr(n.bootstrap),this._r3Injector=Eo(t,e,[{provide:nm,useValue:this},{provide:ch,useValue:this.componentFactoryResolver}],d(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ro.THROW_IF_NOT_FOUND,n=D.Default){return t===Ro||t===nm||t===bo?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 vg extends im{constructor(t){super(),this.moduleType=t;null!==ht(t)&&fg(t)}create(t){return new bg(this.moduleType,t)}}function yg(t,e,n){const i=he()+t,s=ne();return s[i]===la?Al(s,i,n?e.call(n):e()):Dl(s,i)}function _g(t,e,n,i){return Tg(ne(),he(),t,e,n,i)}function wg(t,e,n,i,s){return Og(ne(),he(),t,e,n,i,s)}function xg(t,e,n,i,s,r){return Pg(ne(),he(),t,e,n,i,s,r)}function Cg(t,e,n,i,s,r,a){return Ng(ne(),he(),t,e,n,i,s,r,a)}function Sg(t,e,n,i,s,r,a,o){const l=he()+t,c=ne(),d=Nl(c,l,n,i,s,r);return Tl(c,l+4,a)||d?Al(c,l+5,o?e.call(o,n,i,s,r,a):e(n,i,s,r,a)):Dl(c,l+5)}function kg(t,e,n,i,s,r,a,o,l){const c=he()+t,d=ne(),p=Nl(d,c,n,i,s,r);return Ol(d,c+4,a,o)||p?Al(d,c+6,l?e.call(l,n,i,s,r,a,o):e(n,i,s,r,a,o)):Dl(d,c+6)}function Eg(t,e,n,i,s,r,a,o,l,c){const d=he()+t,p=ne();let u=Nl(p,d,n,i,s,r);return Pl(p,d+4,a,o,l)||u?Al(p,d+7,c?e.call(c,n,i,s,r,a,o,l):e(n,i,s,r,a,o,l)):Dl(p,d+7)}function Ig(t,e,n,i,s,r,a,o,l,c,d){const p=he()+t,u=ne(),h=Nl(u,p,n,i,s,r);return Nl(u,p+4,a,o,l,c)||h?Al(u,p+8,d?e.call(d,n,i,s,r,a,o,l,c):e(n,i,s,r,a,o,l,c)):Dl(u,p+8)}function Ag(t,e,n,i){return Mg(ne(),he(),t,e,n,i)}function Dg(t,e){const n=t[e];return n===la?void 0:n}function Tg(t,e,n,i,s,r){const a=e+n;return Tl(t,a,s)?Al(t,a+1,r?i.call(r,s):i(s)):Dg(t,a+1)}function Og(t,e,n,i,s,r,a){const o=e+n;return Ol(t,o,s,r)?Al(t,o+2,a?i.call(a,s,r):i(s,r)):Dg(t,o+2)}function Pg(t,e,n,i,s,r,a,o){const l=e+n;return Pl(t,l,s,r,a)?Al(t,l+3,o?i.call(o,s,r,a):i(s,r,a)):Dg(t,l+3)}function Ng(t,e,n,i,s,r,a,o,l){const c=e+n;return Nl(t,c,s,r,a,o)?Al(t,c+4,l?i.call(l,s,r,a,o):i(s,r,a,o)):Dg(t,c+4)}function Mg(t,e,n,i,s,r){let a=e+n,o=!1;for(let l=0;l<s.length;l++)Tl(t,a++,s[l])&&(o=!0);return o?Al(t,a,i.apply(r,s)):Dg(t,a)}function Rg(t,e){const n=ie();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new wt("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=_t(i.type)),a=P(Rc);try{const t=en(!1),e=r();return en(t),tc(n,ne(),s,e),e}finally{P(a)}}function Lg(t,e,n){const i=t+20,s=ne(),r=Ut(s,i);return zg(s,Hg(s,i)?Tg(s,he(),e,r.transform,n,r):r.transform(n))}function Fg(t,e,n,i){const s=t+20,r=ne(),a=Ut(r,s);return zg(r,Hg(r,s)?Og(r,he(),e,a.transform,n,i,a):a.transform(n,i))}function jg(t,e,n,i,s){const r=t+20,a=ne(),o=Ut(a,r);return zg(a,Hg(a,r)?Pg(a,he(),e,o.transform,n,i,s,o):o.transform(n,i,s))}function Vg(t,e,n,i,s,r){const a=t+20,o=ne(),l=Ut(o,a);return zg(o,Hg(o,a)?Ng(o,he(),e,l.transform,n,i,s,r,l):l.transform(n,i,s,r))}function Bg(t,e,n){const i=t+20,s=ne(),r=Ut(s,i);return zg(s,Hg(s,i)?Mg(s,he(),e,r.transform,n,r):r.transform.apply(r,n))}function Hg(t,e){return t[1].data[e].pure}function zg(t,e){if(kl.isWrapped(e)){e=kl.unwrap(e);t[me()]=la}return e}class Ug extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,a=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(a=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(a=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(i,r,a);return t instanceof s.a&&t.add(o),o}}const qg=Ug;function $g(){return this._results[Cl()]()}class Wg{constructor(){this.dirty=!0,this._results=[],this.changes=new qg,this.length=0;const t=Cl(),e=Wg.prototype;e[t]||(e[t]=$g)}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){this._results=Wn(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Yg{constructor(t){this.queryList=t,this.matches=null}clone(){return new Yg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Gg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t),s=this.queries[n.indexInDeclarationView];i.push(s.clone())}return new Gg(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==ub(t,e).matches&&this.queries[e].setDirty()}}class Kg{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class Zg{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 i=null!==e?e.length:0,s=this.getByIndex(n).embeddedTView(t,i);s&&(s.indexInDeclarationView=n,null!==e?e.push(s):e=[s])}return null!==e?new Zg(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 Xg{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 Xg(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){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 i=0;i<n.length;i++){const s=n[i];this.matchTNodeWithReadOption(t,e,Qg(e,s)),this.matchTNodeWithReadOption(t,e,gn(e,t,s,!1,!1))}else n===Xh?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,gn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===bh||i===am||i===Xh&&4&e.type)this.addMatch(e.index,-2);else{const n=gn(e,t,i,!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 Qg(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Jg(t,e,n,i){return-1===n?function(t,e){return 11&t.type?mh(t,e):4&t.type?em(t,e):null}(e,t):-2===n?function(t,e,n){if(n===bh)return mh(e,t);if(n===Xh)return em(e,t);if(n===am)return um(e,t)}(t,e,i):bn(t,t[1],n,e)}function tb(t,e,n,i){const s=e[19].queries[i];if(null===s.matches){const i=t.data,r=n.matches,a=[];for(let t=0;t<r.length;t+=2){const s=r[t];if(s<0)a.push(null);else{const o=i[s];a.push(Jg(e,o,r[t+1],n.metadata.read))}}s.matches=a}return s.matches}function eb(t,e,n,i){const s=t.queries.getByIndex(n),r=s.matches;if(null!==r){const a=tb(t,e,s,n);for(let t=0;t<r.length;t+=2){const n=r[t];if(n>0)i.push(a[t/2]);else{const s=r[t+1],a=e[-n];for(let t=10;t<a.length;t++){const e=a[t];e[17]===e[3]&&eb(e[1],e,s,i)}if(null!==a[9]){const t=a[9];for(let e=0;e<t.length;e++){const n=t[e];eb(n[1],n,s,i)}}}}}return i}function nb(t){const e=ne(),n=ie(),i=xe();Ce(i+1);const s=ub(n,i);if(t.dirty&&Yt(e)===s.metadata.isStatic){if(null===s.matches)t.reset([]);else{const r=s.crossesNgTemplate?eb(n,e,i,[]):tb(n,e,s,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}function ib(t,e,n){rb(ie(),ne(),t,e,n,!0)}function sb(t,e,n){rb(ie(),ne(),t,e,n,!1)}function rb(t,e,n,i,s,r){t.firstCreatePass&&(pb(t,new Kg(n,i,r,s),-1),r&&(t.staticViewQueries=!0)),db(t,e)}function ab(t,e,n,i){lb(ie(),ne(),e,n,i,!1,re(),t)}function ob(t,e,n,i){lb(ie(),ne(),e,n,i,!0,re(),t)}function lb(t,e,n,i,s,r,a,o){t.firstCreatePass&&(pb(t,new Kg(n,i,r,s),a.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]),i=n.length?n[n.length-1]:-1;e!==i&&n.push(t.queries.length-1,e)}(t,o),r&&(t.staticContentQueries=!0)),db(t,e)}function cb(){return t=ne(),e=xe(),t[19].queries[e].queryList;var t,e}function db(t,e){const n=new Wg;Ra(t,e,n,n.destroy),null===e[19]&&(e[19]=new Gg),e[19].queries.push(new Yg(n))}function pb(t,e,n){null===t.queries&&(t.queries=new Zg),t.queries.track(new Xg(e,n))}function ub(t,e){return t.queries.getByIndex(e)}function hb(t,e){return em(t,e)}function mb(t=D.Default){const e=qh(!0);if(null!=e||t&D.Optional)return e;Et("ChangeDetectorRef")}const fb={"\u0275\u0275attribute":Ml,"\u0275\u0275attributeInterpolate1":ql,"\u0275\u0275attributeInterpolate2":$l,"\u0275\u0275attributeInterpolate3":Wl,"\u0275\u0275attributeInterpolate4":Yl,"\u0275\u0275attributeInterpolate5":Gl,"\u0275\u0275attributeInterpolate6":Kl,"\u0275\u0275attributeInterpolate7":Zl,"\u0275\u0275attributeInterpolate8":Xl,"\u0275\u0275attributeInterpolateV":Ql,"\u0275\u0275defineComponent":tt,"\u0275\u0275defineDirective":lt,"\u0275\u0275defineInjectable":y,"\u0275\u0275defineInjector":w,"\u0275\u0275defineNgModule":rt,"\u0275\u0275definePipe":ct,"\u0275\u0275directiveInject":Rc,"\u0275\u0275getFactoryOf":wn,"\u0275\u0275getInheritedFactory":xn,"\u0275\u0275inject":Ti,"\u0275\u0275injectAttribute":Cn,"\u0275\u0275invalidFactory":Lc,"\u0275\u0275invalidFactoryDep":Oi,"\u0275\u0275injectPipeChangeDetectorRef":mb,"\u0275\u0275templateRefExtractor":hb,"\u0275\u0275NgOnChangesFeature":At,"\u0275\u0275ProvidersFeature":sh,"\u0275\u0275CopyDefinitionFeature":wl,"\u0275\u0275InheritDefinitionFeature":ml,"\u0275\u0275nextContext":td,"\u0275\u0275namespaceHTML":je,"\u0275\u0275namespaceMathML":Fe,"\u0275\u0275namespaceSVG":Le,"\u0275\u0275enableBindings":te,"\u0275\u0275disableBindings":ee,"\u0275\u0275elementStart":Bc,"\u0275\u0275elementEnd":Hc,"\u0275\u0275element":zc,"\u0275\u0275elementContainerStart":Uc,"\u0275\u0275elementContainerEnd":qc,"\u0275\u0275elementContainer":$c,"\u0275\u0275pureFunction0":yg,"\u0275\u0275pureFunction1":_g,"\u0275\u0275pureFunction2":wg,"\u0275\u0275pureFunction3":xg,"\u0275\u0275pureFunction4":Cg,"\u0275\u0275pureFunction5":Sg,"\u0275\u0275pureFunction6":kg,"\u0275\u0275pureFunction7":Eg,"\u0275\u0275pureFunction8":Ig,"\u0275\u0275pureFunctionV":Ag,"\u0275\u0275getCurrentView":Wc,"\u0275\u0275restoreView":se,"\u0275\u0275listener":Kc,"\u0275\u0275projection":id,"\u0275\u0275syntheticHostProperty":Dp,"\u0275\u0275syntheticHostListener":Zc,"\u0275\u0275pipeBind1":Lg,"\u0275\u0275pipeBind2":Fg,"\u0275\u0275pipeBind3":jg,"\u0275\u0275pipeBind4":Vg,"\u0275\u0275pipeBindV":Bg,"\u0275\u0275projectionDef":nd,"\u0275\u0275hostProperty":Ap,"\u0275\u0275property":Fc,"\u0275\u0275propertyInterpolate":sd,"\u0275\u0275propertyInterpolate1":rd,"\u0275\u0275propertyInterpolate2":ad,"\u0275\u0275propertyInterpolate3":od,"\u0275\u0275propertyInterpolate4":ld,"\u0275\u0275propertyInterpolate5":cd,"\u0275\u0275propertyInterpolate6":dd,"\u0275\u0275propertyInterpolate7":pd,"\u0275\u0275propertyInterpolate8":ud,"\u0275\u0275propertyInterpolateV":hd,"\u0275\u0275pipe":Rg,"\u0275\u0275queryRefresh":nb,"\u0275\u0275viewQuery":sb,"\u0275\u0275staticViewQuery":ib,"\u0275\u0275staticContentQuery":ob,"\u0275\u0275loadQuery":cb,"\u0275\u0275contentQuery":ab,"\u0275\u0275reference":ec,"\u0275\u0275classMap":Od,"\u0275\u0275classMapInterpolate1":ep,"\u0275\u0275classMapInterpolate2":np,"\u0275\u0275classMapInterpolate3":ip,"\u0275\u0275classMapInterpolate4":sp,"\u0275\u0275classMapInterpolate5":rp,"\u0275\u0275classMapInterpolate6":ap,"\u0275\u0275classMapInterpolate7":op,"\u0275\u0275classMapInterpolate8":lp,"\u0275\u0275classMapInterpolateV":cp,"\u0275\u0275styleMap":Dd,"\u0275\u0275styleMapInterpolate1":dp,"\u0275\u0275styleMapInterpolate2":pp,"\u0275\u0275styleMapInterpolate3":up,"\u0275\u0275styleMapInterpolate4":hp,"\u0275\u0275styleMapInterpolate5":mp,"\u0275\u0275styleMapInterpolate6":fp,"\u0275\u0275styleMapInterpolate7":gp,"\u0275\u0275styleMapInterpolate8":bp,"\u0275\u0275styleMapInterpolateV":vp,"\u0275\u0275styleProp":Id,"\u0275\u0275stylePropInterpolate1":yp,"\u0275\u0275stylePropInterpolate2":_p,"\u0275\u0275stylePropInterpolate3":wp,"\u0275\u0275stylePropInterpolate4":xp,"\u0275\u0275stylePropInterpolate5":Cp,"\u0275\u0275stylePropInterpolate6":Sp,"\u0275\u0275stylePropInterpolate7":kp,"\u0275\u0275stylePropInterpolate8":Ep,"\u0275\u0275stylePropInterpolateV":Ip,"\u0275\u0275classProp":Ad,"\u0275\u0275advance":ca,"\u0275\u0275template":Jl,"\u0275\u0275text":qd,"\u0275\u0275textInterpolate":$d,"\u0275\u0275textInterpolate1":Wd,"\u0275\u0275textInterpolate2":Yd,"\u0275\u0275textInterpolate3":Gd,"\u0275\u0275textInterpolate4":Kd,"\u0275\u0275textInterpolate5":Zd,"\u0275\u0275textInterpolate6":Xd,"\u0275\u0275textInterpolate7":Qd,"\u0275\u0275textInterpolate8":Jd,"\u0275\u0275textInterpolateV":tp,"\u0275\u0275i18n":Wu,"\u0275\u0275i18nAttributes":Yu,"\u0275\u0275i18nExp":Gu,"\u0275\u0275i18nStart":qu,"\u0275\u0275i18nEnd":$u,"\u0275\u0275i18nApply":Ku,"\u0275\u0275i18nPostprocess":Zu,"\u0275\u0275resolveWindow":lr,"\u0275\u0275resolveDocument":cr,"\u0275\u0275resolveBody":dr,"\u0275\u0275setComponentScope":et,"\u0275\u0275setNgModuleScope":at,"\u0275\u0275sanitizeHtml":Os,"\u0275\u0275sanitizeStyle":Ps,"\u0275\u0275sanitizeResourceUrl":Ms,"\u0275\u0275sanitizeScript":Rs,"\u0275\u0275sanitizeUrl":Ns,"\u0275\u0275sanitizeUrlOrResourceUrl":Bs,"\u0275\u0275trustConstantHtml":Ls,"\u0275\u0275trustConstantScript":Fs,"\u0275\u0275trustConstantResourceUrl":js};let gb=null;function bb(){gb=null}const vb=[],yb=[];let _b=!1;function wb(){if(!_b){_b=!0;try{for(let t=yb.length-1;t>=0;t--){const{moduleType:e,ngModule:n}=yb[t];n.declarations&&n.declarations.every(xb)&&(yb.splice(t,1),Ab(e,n))}}finally{_b=!1}}}function xb(t){return Array.isArray(t)?t.every(xb):!!m(t)}function Cb(t,e={}){Sb(t,e),function(t,e){yb.push({moduleType:t,ngModule:e})}(t,e)}function Sb(t,e,n=!1){const i=Wn(e.declarations||vb);let s=null;Object.defineProperty(t,K,{configurable:!0,get:()=>(null===s&&(s=Un().compileNgModule(fb,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:Wn(e.bootstrap||vb).map(m),declarations:i.map(m),imports:Wn(e.imports||vb).map(m).map(Ob),exports:Wn(e.exports||vb).map(m).map(Ob),schemas:e.schemas?Wn(e.schemas):null,id:e.id||null}),s.schemas||(s.schemas=[])),s)});let r=null;Object.defineProperty(t,E,{get:()=>{if(null===r){const n={name:t.name,type:t,deps:gi(t),providers:e.providers||vb,imports:[(e.imports||vb).map(m),(e.exports||vb).map(m)]};r=Un().compileInjector(fb,`ng:///${t.name}/\u0275inj.js`,n)}return r},configurable:!1})}let kb=new Map,Eb=new Map;function Ib(){kb=new Map,Eb=new Map,yb.length=0}function Ab(t,e){const n=Wn(e.declarations||vb),i=Tb(t);n.forEach(e=>{if(e.hasOwnProperty(W)){Db(dt(e),i)}else e.hasOwnProperty(Y)||e.hasOwnProperty(G)||(e.ngSelectorScope=t)})}function Db(t,e){t.directiveDefs=()=>Array.from(e.compilation.directives).map(t=>t.hasOwnProperty(W)?dt(t):pt(t)).filter(t=>!!t),t.pipeDefs=()=>Array.from(e.compilation.pipes).map(t=>ut(t)),t.schemas=e.schemas,t.tView=null}function Tb(t){if(!Pb(t))throw new Error(`${t.name} does not have a module def (\u0275mod property)`);const e=ht(t);if(null!==e.transitiveCompileScopes)return e.transitiveCompileScopes;const n={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return pr(e.imports).forEach(t=>{const e=t;if(!Pb(e))throw new Error(`Importing ${e.name} which does not have a \u0275mod property`);const i=Tb(e);i.exported.directives.forEach(t=>n.compilation.directives.add(t)),i.exported.pipes.forEach(t=>n.compilation.pipes.add(t))}),pr(e.declarations).forEach(t=>{ut(t)?n.compilation.pipes.add(t):n.compilation.directives.add(t)}),pr(e.exports).forEach(t=>{const e=t;if(Pb(e)){const t=Tb(e);t.exported.directives.forEach(t=>{n.compilation.directives.add(t),n.exported.directives.add(t)}),t.exported.pipes.forEach(t=>{n.compilation.pipes.add(t),n.exported.pipes.add(t)})}else ut(e)?n.exported.pipes.add(e):n.exported.directives.add(e)}),e.transitiveCompileScopes=n,n}function Ob(t){return function(t){return void 0!==t.ngModule}(t)?t.ngModule:t}function Pb(t){return!!ht(t)}let Nb=0;function Mb(t,e){let n=null;!function(t,e){wi(e)&&(yi.set(t,e),_i.add(t))}(t,e),Fb(t,e),Object.defineProperty(t,W,{get:()=>{if(null===n){const i=Un();if(wi(e)){const n=[`Component '${t.name}' is not resolved:`];throw e.templateUrl&&n.push(` - templateUrl: ${e.templateUrl}`),e.styleUrls&&e.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(e.styleUrls)}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const s=gb;let r=e.preserveWhitespaces;void 0===r&&(r=null!==s&&void 0!==s.preserveWhitespaces&&s.preserveWhitespaces);let a=e.encapsulation;void 0===a&&(a=null!==s&&void 0!==s.defaultEncapsulation?s.defaultEncapsulation:F.Emulated);const o=e.templateUrl||`ng:///${t.name}/template.html`,l=Object.assign(Object.assign({},Vb(t,e)),{typeSourceSpan:i.createParseSourceSpan("Component",t.name,o),template:e.template||"",preserveWhitespaces:r,styles:e.styles||$,animations:e.animations,directives:[],changeDetection:e.changeDetection,pipes:new Map,encapsulation:a,interpolation:e.interpolation,viewProviders:e.viewProviders||null});Nb++;try{l.usesInheritance&&Bb(t),n=i.compileComponent(fb,o,l)}finally{Nb--}if(0===Nb&&wb(),void 0!==t.ngSelectorScope){const e=Tb(t.ngSelectorScope);Db(n,e)}}return n},configurable:!1})}function Rb(t,e){let n=null;Fb(t,e||{}),Object.defineProperty(t,Y,{get:()=>{if(null===n){const i=Lb(t,e||{});n=Un().compileDirective(fb,i.sourceMapUrl,i.metadata)}return n},configurable:!1})}function Lb(t,e){const n=t&&t.name,i=`ng:///${n}/\u0275dir.js`,s=Un(),r=Vb(t,e);return r.typeSourceSpan=s.createParseSourceSpan("Directive",n,i),r.usesInheritance&&Bb(t),{metadata:r,sourceMapUrl:i}}function Fb(t,e){let n=null;Object.defineProperty(t,X,{get:()=>{if(null===n){const i=Lb(t,e),s=Un();n=s.compileFactory(fb,`ng:///${t.name}/\u0275fac.js`,Object.assign(Object.assign({},i.metadata),{injectFn:"directiveInject",target:s.R3FactoryTarget.Directive}))}return n},configurable:!1})}function jb(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function Vb(t,e){const n=fi(),i=n.ownPropMetadata(t);return{name:t.name,type:t,typeArgumentCount:0,selector:void 0!==e.selector?e.selector:null,deps:gi(t),host:e.host||q,propMetadata:i,inputs:e.inputs||$,outputs:e.outputs||$,queries:zb(t,i,Ub),lifecycle:{usesOnChanges:n.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!jb(t),exportAs:(s=e.exportAs,void 0===s?null:Wb(s)),providers:e.providers||null,viewQueries:zb(t,i,qb)};var s}function Bb(t){const e=Object.prototype;let n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==e;)pt(n)||dt(n)||!Gb(n)||Rb(n,null),n=Object.getPrototypeOf(n)}function Hb(t,e){return{propertyName:t,predicate:(n=e.selector,"string"==typeof n?Wb(n):m(n)),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static};var n}function zb(t,e,n){const i=[];for(const s in e)if(e.hasOwnProperty(s)){const r=e[s];r.forEach(e=>{if(n(e)){if(!e.selector)throw new Error(`Can't construct a query for the property "${s}" of "${St(t)}" since the query selector wasn't defined.`);if(r.some($b))throw new Error("Cannot combine @Input decorators with query decorators");i.push(Hb(s,e))}})}return i}function Ub(t){const e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function qb(t){const e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function $b(t){return"Input"===t.ngMetadataName}function Wb(t){return t.split(",").map(t=>t.trim())}const Yb=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Gb(t){const e=fi();if(Yb.some(n=>e.hasLifecycleHook(t,n)))return!0;const n=e.propMetadata(t);for(const i in n){const t=n[i];for(let e=0;e<t.length;e++){const n=t[e],i=n.ngMetadataName;if($b(n)||Ub(n)||qb(n)||"Output"===i||"HostBinding"===i||"HostListener"===i)return!0}}return!1}function Kb(t,e){let n=null,i=null;Object.defineProperty(t,X,{get:()=>{if(null===i){const n=Zb(t,e),s=Un();i=s.compileFactory(fb,`ng:///${n.name}/\u0275fac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:s.R3FactoryTarget.Pipe}))}return i},configurable:!1}),Object.defineProperty(t,G,{get:()=>{if(null===n){const i=Zb(t,e);n=Un().compilePipe(fb,`ng:///${i.name}/\u0275pipe.js`,i)}return n},configurable:!1})}function Zb(t,e){return{type:t,typeArgumentCount:0,name:t.name,deps:gi(t),pipeName:e.name,pure:void 0===e.pure||e.pure}}const Xb=In("Directive",(t={})=>t,void 0,void 0,(t,e)=>lv(t,e)),Qb=In("Component",(t={})=>Object.assign({changeDetection:R.Default},t),Xb,void 0,(t,e)=>ov(t,e)),Jb=In("Pipe",t=>Object.assign({pure:!0},t),void 0,void 0,(t,e)=>cv(t,e)),tv=Tn("Input",t=>({bindingPropertyName:t})),ev=Tn("Output",t=>({bindingPropertyName:t})),nv=Tn("HostBinding",t=>({hostPropertyName:t})),iv=Tn("HostListener",(t,e)=>({eventName:t,args:e})),sv=Mb,rv=Rb,av=Kb,ov=uh,lv=uh,cv=uh,dv=In("NgModule",t=>t,void 0,void 0,(t,e)=>uv(t,e));const pv=Cb,uv=function(t,e){let n=e&&e.imports||[];e&&e.exports&&(n=[...n,e.exports]),t.\u0275inj=w({factory:cc(t,{useClass:t}),providers:e&&e.providers,imports:n})},hv=new Nn("Application Initializer");class mv{constructor(t){this.appInits=t,this.resolve=uh,this.reject=uh,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]();Yc(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}mv.decorators=[{type:dc}],mv.ctorParameters=()=>[{type:Array,decorators:[{type:ci,args:[hv]},{type:di}]}];const fv=new Nn("AppId");function gv(){return`${vv()}${vv()}${vv()}`}const bv={provide:fv,useFactory:gv,deps:[]};function vv(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const yv=new Nn("Platform Initializer"),_v=new Nn("Platform ID"),wv=new Nn("appBootstrapListener"),xv=new Nn("Application Packages Root URL");class Cv{log(t){console.log(t)}warn(t){console.warn(t)}}Cv.decorators=[{type:dc}];const Sv=new Nn("LocaleId"),kv=new Nn("DefaultCurrencyCode"),Ev=new Nn("Translations"),Iv=new Nn("TranslationsFormat");var Av;!function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(Av||(Av={}));const Dv=!0,Tv=!1;class Ov{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}function Pv(){throw new Error("Runtime compiler is not loaded")}const Nv=function(t){return new vg(t)},Mv=Pv,Rv=function(t){return Promise.resolve(Nv(t))},Lv=Pv,Fv=function(t){const e=Nv(t),n=pr(ht(t).declarations).reduce((t,e)=>{const n=dt(e);return n&&t.push(new cg(n)),t},[]);return new Ov(e,n)},jv=Pv,Vv=function(t){return Promise.resolve(Fv(t))},Bv=Pv;class Hv{constructor(){this.compileModuleSync=Mv,this.compileModuleAsync=Lv,this.compileModuleAndAllComponentsSync=jv,this.compileModuleAndAllComponentsAsync=Bv}clearCache(){}clearCacheFor(t){}getModuleId(t){}}Hv.decorators=[{type:dc}];const zv=new Nn("compilerOptions");class Uv{}const qv=Promise.resolve(0);function $v(t){"undefined"==typeof Zone?qv.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Wv{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qg(!1),this.onMicrotaskEmpty=new qg(!1),this.onStable=new qg(!1),this.onError=new qg(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=U.requestAnimationFrame,e=U.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){if(-1!==t.lastRequestAnimationFrameId)return;t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(U,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Kv(t),Gv(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Kv(t)}(t)},n=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&e;t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:n},onInvokeTask:(e,i,s,r,a,o)=>{try{return Zv(t),e.invokeTask(s,r,a,o)}finally{n&&"eventTask"===r.type&&n(),Xv(t)}},onInvoke:(e,n,i,s,r,a,o)=>{try{return Zv(t),e.invoke(i,s,r,a,o)}finally{Xv(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Kv(t),Gv(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Wv.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Wv.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,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,Yv,uh,uh);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const Yv={};function Gv(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 Kv(t){t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Zv(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Xv(t){t._nesting--,Gv(t)}class Qv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qg,this.onMicrotaskEmpty=new qg,this.onStable=new qg,this.onError=new qg}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,i){return t.apply(e,n)}}class Jv{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:()=>{Wv.assertNotInAngularZone(),$v(()=>{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())$v(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,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/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}Jv.decorators=[{type:dc}],Jv.ctorParameters=()=>[{type:Wv}];class ty{constructor(){this._applications=new Map,iy.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 iy.findTestabilityInTree(this,t,e)}}ty.decorators=[{type:dc}],ty.ctorParameters=()=>[];function ey(t){iy=t}let ny,iy=new class{addToWindow(t){}findTestabilityInTree(t,e,n){return null}},sy=!0,ry=!1;function ay(){return ry=!0,sy}function oy(){if(ry)throw new Error("Cannot enable prod mode after platform setup.");sy=!1}let ly=function(t,e,n){const i=t.get(Uv);return i.createCompiler([e]).compileModuleAsync(n)};function cy(t,e,n){const i=new vg(n);if("undefined"!=typeof ngJitMode&&!ngJitMode)return Promise.resolve(i);const s=t.get(zv,[]).concat(e);if(function(t){if(null!==gb){if(t.defaultEncapsulation!==gb.defaultEncapsulation)return;if(t.preserveWhitespaces!==gb.preserveWhitespaces)return}gb=t}({defaultEncapsulation:Sy(s.map(t=>t.defaultEncapsulation)),preserveWhitespaces:Sy(s.map(t=>t.preserveWhitespaces))}),0===yi.size)return Promise.resolve(i);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(s.map(t=>t.providers));if(0===r.length)return Promise.resolve(i);const a=Un(),o=Ro.create({providers:r}).get(a.ResourceLoader);return vi(t=>Promise.resolve(o.get(t))).then(()=>i)}let dy=function(){},py=function(t){return t instanceof ph};function uy(t){return t.isBoundToModule}const hy=new Nn("AllowMultipleToken");class my{constructor(t,e){this.name=t,this.token=e}}function fy(t){if(ny&&!ny.destroyed&&!ny.injector.get(hy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");dy(),ny=t.get(_y);const e=t.get(yv,null);return e&&e.forEach(t=>t()),ny}function gy(t,e,n=[]){const i=`Platform: ${e}`,s=new Nn(i);return(e=[])=>{let r=yy();if(!r||r.injector.get(hy,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:yo,useValue:"platform"});fy(Ro.create({providers:t,name:i}))}return by(s)}}function by(t){const e=yy();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}function vy(){ny&&!ny.destroyed&&ny.destroy()}function yy(){return ny&&!ny.destroyed?ny:null}class _y{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;n="noop"===t?new Qv:("zone.js"===t?void 0:t)||new Wv({enableLongStackTrace:ay(),shouldCoalesceEventChangeDetection:e});return n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Wv,useValue:n}];return n.run(()=>{const e=Ro.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get($s,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)}});s.onDestroy(()=>{Cy(this._modules,s),t.unsubscribe()})}),function(t,e,n){try{const i=n();return Yc(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(mv);return t.runInitializers(),t.donePromise.then(()=>{if(Tv){Yp(s.injector.get(Sv,Hp)||Hp)}return this._moduleDoBootstrap(s),s})})})}bootstrapModule(t,e=[]){const n=wy({},e);return ly(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(xy);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}}function wy(t,e){return t=Array.isArray(e)?e.reduce(wy,t):Object.assign(Object.assign({},t),e)}_y.decorators=[{type:dc}],_y.ctorParameters=()=>[{type:Ro}];class xy{constructor(t,e,n,i,s,l){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=l,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 c=new r.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),d=new r.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Wv.assertNotInAngularZone(),$v(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Wv.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(a.a)(c,d.pipe(Object(o.a)()))}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 ah?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=py(n)?void 0:this._injector.get(nm),s=e||n.selector,r=n.create(Ro.NULL,[],s,i),a=r.location.nativeElement,o=r.injector.get(Jv,null),l=o&&r.injector.get(ty);return o&&l&&l.registerApplication(a,o),r.onDestroy(()=>{this.detachView(r.hostView),Cy(this.components,r),l&&l.unregisterApplication(a)}),this._loadComponent(r),ay()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();0}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;Cy(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);this._injector.get(wv,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}function Cy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Sy(t){for(let e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}xy.decorators=[{type:dc}],xy.ctorParameters=()=>[{type:Wv},{type:Cv},{type:Ro},{type:$s},{type:ch},{type:mv}];class ky{}function Ey(t){const e=gg(t);if(!e)throw Dy(t);return e}function Iy(t){const e=gg(t);if(!e)throw Dy(t);return new vg(e)}const Ay=Ey;function Dy(t){return new Error(`No module with ID ${t} loaded`)}class Ty{}const Oy={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Py{constructor(t,e){this._compiler=t,this._config=e||Oy}load(t){return!Tv&&this._compiler instanceof Hv?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Ny(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Ny(t,e,i))}}function Ny(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}Py.decorators=[{type:dc}],Py.ctorParameters=()=>[{type:Hv},{type:Ty,decorators:[{type:di}]}];class My extends Uh{}class Ry extends My{}class Ly{constructor(t,e){this.name=t,this.callback=e}}class Fy{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof jy&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class jy extends Fy{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return By(this,t,e),e}queryAllNodes(t){const e=[];return Hy(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof jy)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}function Vy(t){return t.map(t=>t.nativeElement)}function By(t,e,n){t.childNodes.forEach(t=>{t instanceof jy&&(e(t)&&n.push(t),By(t,e,n))})}function Hy(t,e,n){t instanceof jy&&t.childNodes.forEach(t=>{e(t)&&n.push(t),t instanceof jy&&Hy(t,e,n)})}class zy{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Uy(t):null}get injector(){return Zo(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Wo(t)||Go(t))}get context(){return Wo(this.nativeNode)||Yo(this.nativeNode)}get listeners(){return tl(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(t){const e=Qo(t,!1);return null===e?{}:(void 0===e.localRefs&&(e.localRefs=function(t,e){const n=t[1].data[e];if(n&&n.localNames){const e={};let i=n.index+1;for(let s=0;s<n.localNames.length;s+=2)e[n.localNames[s]]=t[i],i++;return e}return null}(e.lView,e.nodeIndex)),e.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(t){const e=Qo(t,!1);if(null===e)return[];const n=e.lView[1],i=n.data[e.nodeIndex],s=[],r=1048575&i.providerIndexes,a=i.directiveEnd;for(let l=r;l<a;l++){let t=n.data[l];void 0!==(o=t).type&&void 0!==o.template&&void 0!==o.declaredInputs&&(t=t.type),s.push(t)}var o;return s}(this.nativeNode)}}class Uy extends zy{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){try{const t=Qo(this.nativeNode),e=t.lView[1].data;return e[t.nodeIndex].value}catch(t){return this.nativeNode.nodeName}}get properties(){const t=Qo(this.nativeNode,!1);if(null==t)return{};const e=t.lView,n=e[1].data,i=n[t.nodeIndex],s={};return function(t,e){if(t){let n=Object.getPrototypeOf(t);const i=Node.prototype;for(;null!==n&&n!==i;){const i=Object.getOwnPropertyDescriptors(n);for(let n in i)if(!n.startsWith("__")&&!n.startsWith("on")){const i=t[n];qy(i)&&(e[n]=i)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,s),function(t,e,n,i){let s=e.propertyBindings;if(null!==s)for(let r=0;r<s.length;r++){const e=s[r],a=i[e].split("\ufffd"),o=a[0];if(a.length>1){let i=a[1];for(let t=1;t<a.length-1;t++)i+=Ct(n[e+t-1])+a[t+1];t[o]=i}else t[o]=n[e]}}(s,i,e,n),s}get attributes(){const t={},e=this.nativeElement;if(!e)return t;const n=Qo(e,!1);if(null==n)return{};const i=n.lView[1].data[n.nodeIndex].attrs,s=[];if(i){let e=0;for(;e<i.length;){const n=i[e];if("string"!=typeof n)break;const r=i[e+1];t[n]=r,s.push(n.toLowerCase()),e+=2}}const r=e.attributes;for(let a=0;a<r.length;a++){const e=r[a],n=e.name.toLowerCase();-1===s.indexOf(n)&&(t[n]=e.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},e=this.nativeElement.className;return(e&&"string"!=typeof e?e.baseVal.split(" "):e.split(" ")).forEach(e=>t[e]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,e=[];for(let n=0;n<t.length;n++){const i=t[n];e.push(Qy(i))}return e}get children(){const t=this.nativeElement;if(!t)return[];const e=t.children,n=[];for(let i=0;i<e.length;i++){const t=e[i];n.push(Qy(t))}return n}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return $y(this,t,e,!0),e}queryAllNodes(t){const e=[];return $y(this,t,e,!1),e}triggerEventHandler(t,e){const n=this.nativeNode,i=[];this.listeners.forEach(s=>{if(s.name===t){const t=s.callback;t.call(n,e),i.push(t)}}),"function"==typeof n.eventListeners&&n.eventListeners(t).forEach(t=>{if(-1!==t.toString().indexOf("__ngUnwrap__")){const s=t("__ngUnwrap__");return-1===i.indexOf(s)&&s.call(n,e)}})}}function qy(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t||null===t}function $y(t,e,n,i){const s=Qo(t.nativeNode,!1);if(null!==s){Wy(s.lView[1].data[s.nodeIndex],s.lView,e,n,i,t.nativeNode)}else Ky(t.nativeNode,e,n,i)}function Wy(t,e,n,i,s,r){const a=function(t,e){const n=null===t?-1:t.index;if(-1!==n){return Vt(e[n])}return null}(t,e);if(11&t.type){if(Gy(a,n,i,s,r),bt(t)){const a=qt(t.index,e);a&&a[1].firstChild&&Wy(a[1].firstChild,a,n,i,s,r)}else t.child&&Wy(t.child,e,n,i,s,r),a&&Ky(a,n,i,s);const o=e[t.index];ft(o)&&Yy(o,n,i,s,r)}else if(4&t.type){const a=e[t.index];Gy(a[7],n,i,s,r),Yy(a,n,i,s,r)}else if(16&t.type){const a=e[16],o=a[6].projection[t.projection];if(Array.isArray(o))for(let t of o)Gy(t,n,i,s,r);else if(o){const t=a[3];Wy(t[1].data[o.index],t,n,i,s,r)}}else t.child&&Wy(t.child,e,n,i,s,r);if(r!==a){const a=4&t.flags?t.projectionNext:t.next;a&&Wy(a,e,n,i,s,r)}}function Yy(t,e,n,i,s){for(let r=10;r<t.length;r++){const a=t[r],o=a[1].firstChild;o&&Wy(o,a,e,n,i,s)}}function Gy(t,e,n,i,s){if(s!==t){const s=Jy(t);if(!s)return;(i&&s instanceof Uy&&e(s)&&-1===n.indexOf(s)||!i&&e(s)&&-1===n.indexOf(s))&&n.push(s)}}function Ky(t,e,n,i){const s=t.childNodes,r=s.length;for(let a=0;a<r;a++){const t=s[a],r=Jy(t);r&&((i&&r instanceof Uy&&e(r)&&-1===n.indexOf(r)||!i&&e(r)&&-1===n.indexOf(r))&&n.push(r),Ky(t,e,n,i))}}const Zy=new Map;function Xy(t){return Zy.get(t)||null}function Qy(t){return t instanceof Node?(t.hasOwnProperty("__ng_debug__")||(t.__ng_debug__=t.nodeType==Node.ELEMENT_NODE?new Uy(t):new zy(t)),t.__ng_debug__):null}const Jy=Xy;function t_(t){return Xy(t)}const e_=t_;function n_(t){Zy.set(t.nativeNode,t)}const i_=Fy,s_=jy,r_=gy(null,"core",[{provide:_v,useValue:"unknown"},{provide:_y,deps:[Ro]},{provide:ty,deps:[]},{provide:Cv,deps:[]}]);function a_(){return Yh}function o_(){return Gh}function l_(t){return t=t||Tv&&"undefined"!=typeof $localize&&$localize.locale||Hp,Tv&&Yp(t),t}const c_=zp,d_=[{provide:xy,useClass:xy,deps:[Wv,Cv,Ro,$s,ch,mv]},{provide:lg,deps:[Wv],useFactory:p_},{provide:mv,useClass:mv,deps:[[new di,hv]]},{provide:Hv,useClass:Hv,deps:[]},bv,{provide:Lh,useFactory:a_,deps:[]},{provide:Fh,useFactory:o_,deps:[]},{provide:Sv,useFactory:l_,deps:[[new ci(Sv),new di,new ui]]},{provide:kv,useValue:c_}];function p_(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}class u_{constructor(t){}}function h_(t,e,n,i,s,r){t|=1;const{matchedQueries:a,references:o,matchedQueryIds:l}=Um(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:l,references:o,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:r?Ym(r):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:s||km},provider:null,text:null,query:null,ngContent:null}}function m_(t,e,n,i,s,r,a=[],o,l,c,d,p){c||(c=km);const{matchedQueries:u,references:h,matchedQueryIds:m}=Um(n);let f=null,g=null;r&&([f,g]=tf(r)),o=o||[];const b=[];for(let _=0;_<o.length;_++){const[t,e,n]=o[_],[i,s]=tf(e);let r,a;switch(15&t){case 4:a=n;break;case 1:case 8:r=n}b[_]={flags:t,ns:i,name:s,nonMinifiedName:s,securityContext:r,suffix:a}}l=l||[];const v=[];for(let _=0;_<l.length;_++){const[t,e]=l[_];v[_]={type:0,target:t,eventName:e,propName:null}}const y=(a=a||[]).map(([t,e])=>{const[n,i]=tf(t);return[n,i,e]});return p=function(t){if(t&&"$$undefined"===t.id){const e=null!=t.encapsulation&&t.encapsulation!==F.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Tm++:"$$empty"}return t&&"$$empty"===t.id&&(t=null),t||null}(p),d&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:m,references:h,ngContentIndex:i,childCount:s,bindings:b,bindingFlags:ef(b),outputs:v,element:{ns:f,name:g,attrs:y,template:null,componentProvider:null,componentView:d||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:c||km},provider:null,text:null,query:null,ngContent:null}}function f_(t,e,n){const i=n.element,s=t.root.selectorOrNode,r=t.renderer;let a;if(t.parent||!s){a=i.name?r.createElement(i.name,i.ns):r.createComment("");const s=$m(t,e,n);s&&r.appendChild(s,a)}else{const t=!!i.componentRendererType&&i.componentRendererType.encapsulation===F.ShadowDom;a=r.selectRootElement(s,t)}if(i.attrs)for(let o=0;o<i.attrs.length;o++){const[t,e,n]=i.attrs[o];r.setAttribute(a,e,n,t)}return a}function g_(t,e,n,i){for(let a=0;a<n.outputs.length;a++){const o=n.outputs[a],l=b_(t,n.nodeIndex,(s=o.target,r=o.eventName,s?`${s}:${r}`:r));let c=o.target,d=t;"component"===o.target&&(c=null,d=e);const p=d.renderer.listen(c||i,o.eventName,l);t.disposables[n.outputIndex+a]=p}var s,r}function b_(t,e,n){return i=>Lm(t,e,n,i)}function v_(t,e,n,i){if(!Pm(t,e,n,i))return!1;const s=e.bindings[n],r=ym(t,e.nodeIndex),a=r.renderElement,o=s.name;switch(15&s.flags){case 1:!function(t,e,n,i,s,r){const a=e.securityContext;let o=a?t.root.sanitizer.sanitize(a,r):r;o=null!=o?o.toString():null;const l=t.renderer;null!=r?l.setAttribute(n,s,o,i):l.removeAttribute(n,s,i)}(t,s,a,s.ns,o,i);break;case 2:!function(t,e,n,i){const s=t.renderer;i?s.addClass(e,n):s.removeClass(e,n)}(t,a,o,i);break;case 4:!function(t,e,n,i,s){let r=t.root.sanitizer.sanitize(Ts.STYLE,s);if(null!=r){r=r.toString();const t=e.suffix;null!=t&&(r+=t)}else r=null;const a=t.renderer;null!=r?a.setStyle(n,i,r):a.removeStyle(n,i)}(t,s,a,o,i);break;case 8:!function(t,e,n,i,s){const r=e.securityContext;let a=r?t.root.sanitizer.sanitize(r,s):s;t.renderer.setProperty(n,i,a)}(33554432&e.flags&&32&s.flags?r.componentView:t,s,a,o,i)}return!0}function y_(t,e,n){let i=[];for(let s in n){const t=n[s];i.push({propName:s,bindingType:t})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:zm(e),bindings:i},ngContent:null}}function __(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&Hm(t);){let n=t.parentNodeDef;t=t.parent;const i=n.nodeIndex+n.childCount;for(let s=0;s<=i;s++){const i=t.def.nodes[s];67108864&i.flags&&536870912&i.flags&&(i.query.filterId&e)===i.query.filterId&&xm(t,s).setDirty(),!(1&i.flags&&s+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(s+=i.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&xm(t,n).setDirty(),n+=e.childCount}}function w_(t,e){const n=xm(t,e.nodeIndex);if(!n.dirty)return;let i,s;if(67108864&e.flags){const n=e.parent.parent;s=x_(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),i=_m(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(s=x_(t,0,t.def.nodes.length-1,e.query,[]),i=t.component);n.reset(s);const r=e.query.bindings;let a=!1;for(let o=0;o<r.length;o++){const t=r[o];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,a=!0}i[t.propName]=e}a&&n.notifyOnChanges()}function x_(t,e,n,i,s){for(let r=e;r<=n;r++){const e=t.def.nodes[r],n=e.matchedQueries[i.id];if(null!=n&&s.push(C_(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const n=ym(t,r);if((e.childMatchedQueries&i.filterId)===i.filterId&&(x_(t,r+1,r+e.childCount,i,s),r+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const r=t[e],a=Fm(r);a&&a===n&&x_(r,0,r.def.nodes.length-1,i,s)}}const a=n.template._projectedViews;if(a)for(let t=0;t<a.length;t++){const e=a[t];x_(e,0,e.def.nodes.length-1,i,s)}}(e.childMatchedQueries&i.filterId)!==i.filterId&&(r+=e.childCount)}return s}function C_(t,e,n){if(null!=n)switch(n){case 1:return ym(t,e.nodeIndex).renderElement;case 0:return new bh(ym(t,e.nodeIndex).renderElement);case 2:return ym(t,e.nodeIndex).template;case 3:return ym(t,e.nodeIndex).viewContainer;case 4:return _m(t,e.nodeIndex).instance}}function S_(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function k_(t,e,n){const i=$m(t,e,n);if(!i)return;Zm(t,n.ngContent.index,1,i,null,void 0)}function E_(t,e){return D_(128,t,Zn(e+1))}function I_(t,e){return D_(32,t,Zn(e))}function A_(t,e){const n=Object.keys(e),i=n.length,s=[];for(let r=0;r<i;r++){const t=n[r];e[t];s.push(t)}return D_(64,t,s)}function D_(t,e,n){const i=[];for(let s=0;s<n.length;s++){const t=n[s];i.push({flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:ef(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function T_(t,e,n){const i=[];for(let s=1;s<n.length;s++)i[s-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[s]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function O_(t,e,n){let i;const s=t.renderer;i=s.createText(n.text.prefix);const r=$m(t,e,n);return r&&s.appendChild(r,i),{renderText:i}}function P_(t,e){return(null!=t?t.toString():"")+e.suffix}function N_(t,e,n,i){let s=0,r=0,a=0,o=0,l=0,c=null,d=null,p=!1,u=!1,h=null;for(let m=0;m<e.length;m++){const t=e[m];if(t.nodeIndex=m,t.parent=c,t.bindingIndex=s,t.outputIndex=r,t.renderParent=d,a|=t.flags,l|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=c?c.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,p=!1,u=!1,t.element.template&&(l|=t.element.template.nodeMatchedQueries)}if(R_(c,t,e.length),s+=t.bindings.length,r+=t.outputs.length,!d&&3&t.flags&&(h=t),20224&t.flags){p||(p=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const e=0!=(8192&t.flags),n=0!=(32768&t.flags);!e||n?c.element.publicProviders[Im(t.provider.token)]=t:(u||(u=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Im(t.provider.token)]=t),n&&(c.element.componentProvider=t)}if(c?(c.childFlags|=t.flags,c.directChildFlags|=t.flags,c.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(c.childMatchedQueries|=t.element.template.nodeMatchedQueries)):o|=t.flags,t.childCount>0)c=t,M_(t)||(d=t);else for(;c&&m===c.nodeIndex+c.childCount;){const t=c.parent;t&&(t.childFlags|=c.childFlags,t.childMatchedQueries|=c.childMatchedQueries),c=t,d=c&&M_(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:o,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||km,updateRenderer:i||km,handleEvent:(t,n,i,s)=>e[n].element.handleEvent(t,i,s),bindingCount:s,outputCount:r,lastRenderRootNode:h}}function M_(t){return 0!=(1&t.flags)&&null===t.element.name}function R_(t,e,n){const i=e.element&&e.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags){if(0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`)}if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function L_(t,e,n,i){const s=V_(t.root,t.renderer,t,e,n);return B_(s,t.component,i),H_(s),s}function F_(t,e,n){const i=V_(t,t.renderer,null,null,e);return B_(i,n,n),H_(i),i}function j_(t,e,n,i){const s=e.element.componentRendererType;let r;return r=s?t.root.rendererFactory.createRenderer(i,s):t.root.renderer,V_(t.root,r,t,e.element.componentProvider,n)}function V_(t,e,n,i,s){const r=new Array(s.nodes.length),a=s.outputCount?new Array(s.outputCount):null;return{def:s,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:r,state:13,root:t,renderer:e,oldValues:new Array(s.bindingCount),disposables:a,initIndex:-1}}function B_(t,e,n){t.component=e,t.context=n}function H_(t){let e;if(Bm(t)){const n=t.parentNodeDef;e=ym(t.parent,n.parent.nodeIndex).renderElement}const n=t.def,i=t.nodes;for(let s=0;s<n.nodes.length;s++){const r=n.nodes[s];let a;switch(Sm.setCurrentNode(t,s),201347067&r.flags){case 1:const n=f_(t,e,r);let o;if(33554432&r.flags){const e=Ym(r.element.componentView);o=Sm.createComponentView(t,r,e,n)}g_(t,o,r,n),a={renderElement:n,componentView:o,viewContainer:null,template:r.element.template?Df(t,r):void 0},16777216&r.flags&&(a.viewContainer=kf(t,r,a));break;case 2:a=O_(t,e,r);break;case 512:case 1024:case 2048:case 256:if(a=i[s],!(a||4096&r.flags)){a={instance:Yf(t,r)}}break;case 16:a={instance:Gf(t,r)};break;case 16384:if(a=i[s],!a){a={instance:Kf(t,r)}}if(32768&r.flags){B_(ym(t,r.parent.nodeIndex).componentView,a.instance,a.instance)}break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new Wg;break;case 8:k_(t,e,r),a=void 0}i[s]=a}Z_(t,K_.CreateViewNodes),tw(t,201326592,268435456,0)}function z_(t){$_(t),Sm.updateDirectives(t,1),X_(t,K_.CheckNoChanges),Sm.updateRenderer(t,1),Z_(t,K_.CheckNoChanges),t.state&=-97}function U_(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,gm(t,0,256),$_(t),Sm.updateDirectives(t,0),X_(t,K_.CheckAndUpdate),tw(t,67108864,536870912,0);let e=gm(t,256,512);ig(t,2097152|(e?1048576:0)),Sm.updateRenderer(t,0),Z_(t,K_.CheckAndUpdate),tw(t,134217728,536870912,0),e=gm(t,512,768),ig(t,8388608|(e?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,gm(t,768,1024)}function q_(t,e,n,i,s,r,a,o,l,c,d,p,u){return 0===n?function(t,e,n,i,s,r,a,o,l,c,d,p){switch(201347067&e.flags){case 1:return function(t,e,n,i,s,r,a,o,l,c,d,p){const u=e.bindings.length;let h=!1;return u>0&&v_(t,e,0,n)&&(h=!0),u>1&&v_(t,e,1,i)&&(h=!0),u>2&&v_(t,e,2,s)&&(h=!0),u>3&&v_(t,e,3,r)&&(h=!0),u>4&&v_(t,e,4,a)&&(h=!0),u>5&&v_(t,e,5,o)&&(h=!0),u>6&&v_(t,e,6,l)&&(h=!0),u>7&&v_(t,e,7,c)&&(h=!0),u>8&&v_(t,e,8,d)&&(h=!0),u>9&&v_(t,e,9,p)&&(h=!0),h}(t,e,n,i,s,r,a,o,l,c,d,p);case 2:return function(t,e,n,i,s,r,a,o,l,c,d,p){let u=!1;const h=e.bindings,m=h.length;if(m>0&&Pm(t,e,0,n)&&(u=!0),m>1&&Pm(t,e,1,i)&&(u=!0),m>2&&Pm(t,e,2,s)&&(u=!0),m>3&&Pm(t,e,3,r)&&(u=!0),m>4&&Pm(t,e,4,a)&&(u=!0),m>5&&Pm(t,e,5,o)&&(u=!0),m>6&&Pm(t,e,6,l)&&(u=!0),m>7&&Pm(t,e,7,c)&&(u=!0),m>8&&Pm(t,e,8,d)&&(u=!0),m>9&&Pm(t,e,9,p)&&(u=!0),u){let u=e.text.prefix;m>0&&(u+=P_(n,h[0])),m>1&&(u+=P_(i,h[1])),m>2&&(u+=P_(s,h[2])),m>3&&(u+=P_(r,h[3])),m>4&&(u+=P_(a,h[4])),m>5&&(u+=P_(o,h[5])),m>6&&(u+=P_(l,h[6])),m>7&&(u+=P_(c,h[7])),m>8&&(u+=P_(d,h[8])),m>9&&(u+=P_(p,h[9]));const f=vm(t,e.nodeIndex).renderText;t.renderer.setValue(f,u)}return u}(t,e,n,i,s,r,a,o,l,c,d,p);case 16384:return function(t,e,n,i,s,r,a,o,l,c,d,p){const u=_m(t,e.nodeIndex),h=u.instance;let m,f=!1;const g=e.bindings.length;return g>0&&Om(t,e,0,n)&&(f=!0,m=ng(t,u,e,0,n,m)),g>1&&Om(t,e,1,i)&&(f=!0,m=ng(t,u,e,1,i,m)),g>2&&Om(t,e,2,s)&&(f=!0,m=ng(t,u,e,2,s,m)),g>3&&Om(t,e,3,r)&&(f=!0,m=ng(t,u,e,3,r,m)),g>4&&Om(t,e,4,a)&&(f=!0,m=ng(t,u,e,4,a,m)),g>5&&Om(t,e,5,o)&&(f=!0,m=ng(t,u,e,5,o,m)),g>6&&Om(t,e,6,l)&&(f=!0,m=ng(t,u,e,6,l,m)),g>7&&Om(t,e,7,c)&&(f=!0,m=ng(t,u,e,7,c,m)),g>8&&Om(t,e,8,d)&&(f=!0,m=ng(t,u,e,8,d,m)),g>9&&Om(t,e,9,p)&&(f=!0,m=ng(t,u,e,9,p,m)),m&&h.ngOnChanges(m),65536&e.flags&&bm(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),f}(t,e,n,i,s,r,a,o,l,c,d,p);case 32:case 64:case 128:return function(t,e,n,i,s,r,a,o,l,c,d,p){const u=e.bindings;let h=!1;const m=u.length;if(m>0&&Pm(t,e,0,n)&&(h=!0),m>1&&Pm(t,e,1,i)&&(h=!0),m>2&&Pm(t,e,2,s)&&(h=!0),m>3&&Pm(t,e,3,r)&&(h=!0),m>4&&Pm(t,e,4,a)&&(h=!0),m>5&&Pm(t,e,5,o)&&(h=!0),m>6&&Pm(t,e,6,l)&&(h=!0),m>7&&Pm(t,e,7,c)&&(h=!0),m>8&&Pm(t,e,8,d)&&(h=!0),m>9&&Pm(t,e,9,p)&&(h=!0),h){const h=wm(t,e.nodeIndex);let f;switch(201347067&e.flags){case 32:f=[],m>0&&f.push(n),m>1&&f.push(i),m>2&&f.push(s),m>3&&f.push(r),m>4&&f.push(a),m>5&&f.push(o),m>6&&f.push(l),m>7&&f.push(c),m>8&&f.push(d),m>9&&f.push(p);break;case 64:f={},m>0&&(f[u[0].name]=n),m>1&&(f[u[1].name]=i),m>2&&(f[u[2].name]=s),m>3&&(f[u[3].name]=r),m>4&&(f[u[4].name]=a),m>5&&(f[u[5].name]=o),m>6&&(f[u[6].name]=l),m>7&&(f[u[7].name]=c),m>8&&(f[u[8].name]=d),m>9&&(f[u[9].name]=p);break;case 128:const t=n;switch(m){case 1:f=t.transform(n);break;case 2:f=t.transform(i);break;case 3:f=t.transform(i,s);break;case 4:f=t.transform(i,s,r);break;case 5:f=t.transform(i,s,r,a);break;case 6:f=t.transform(i,s,r,a,o);break;case 7:f=t.transform(i,s,r,a,o,l);break;case 8:f=t.transform(i,s,r,a,o,l,c);break;case 9:f=t.transform(i,s,r,a,o,l,c,d);break;case 10:f=t.transform(i,s,r,a,o,l,c,d,p)}}h.value=f}return h}(t,e,n,i,s,r,a,o,l,c,d,p);default:throw"unreachable"}}(t,e,i,s,r,a,o,l,c,d,p,u):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let i=!1;for(let s=0;s<n.length;s++)v_(t,e,s,n[s])&&(i=!0);return i}(t,e,n);case 2:return function(t,e,n){const i=e.bindings;let s=!1;for(let r=0;r<n.length;r++)Pm(t,e,r,n[r])&&(s=!0);if(s){let s="";for(let t=0;t<n.length;t++)s+=P_(n[t],i[t]);s=e.text.prefix+s;const r=vm(t,e.nodeIndex).renderText;t.renderer.setValue(r,s)}return s}(t,e,n);case 16384:return function(t,e,n){const i=_m(t,e.nodeIndex),s=i.instance;let r,a=!1;for(let o=0;o<n.length;o++)Om(t,e,o,n[o])&&(a=!0,r=ng(t,i,e,o,n[o],r));return r&&s.ngOnChanges(r),65536&e.flags&&bm(t,256,e.nodeIndex)&&s.ngOnInit(),262144&e.flags&&s.ngDoCheck(),a}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const i=e.bindings;let s=!1;for(let r=0;r<n.length;r++)Pm(t,e,r,n[r])&&(s=!0);if(s){const s=wm(t,e.nodeIndex);let r;switch(201347067&e.flags){case 32:r=n;break;case 64:r={};for(let s=0;s<n.length;s++)r[i[s].name]=n[s];break;case 128:const t=n[0],e=n.slice(1);r=t.transform(...e)}s.value=r}return s}(t,e,n);default:throw"unreachable"}}(t,e,i)}function $_(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const i=e.nodes[n];if(4&i.flags){const e=ym(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const i=e[n];i.state|=32,Rm(i,t)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function W_(t,e,n,i,s,r,a,o,l,c,d,p,u){return 0===n?function(t,e,n,i,s,r,a,o,l,c,d,p){const u=e.bindings.length;u>0&&Nm(t,e,0,n);u>1&&Nm(t,e,1,i);u>2&&Nm(t,e,2,s);u>3&&Nm(t,e,3,r);u>4&&Nm(t,e,4,a);u>5&&Nm(t,e,5,o);u>6&&Nm(t,e,6,l);u>7&&Nm(t,e,7,c);u>8&&Nm(t,e,8,d);u>9&&Nm(t,e,9,p)}(t,e,i,s,r,a,o,l,c,d,p,u):function(t,e,n){for(let i=0;i<n.length;i++)Nm(t,e,i,n[i])}(t,e,i),!1}function Y_(t,e){if(xm(t,e.nodeIndex).dirty)throw hm(Sm.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function G_(t){if(!(128&t.state)){if(X_(t,K_.Destroy),Z_(t,K_.Destroy),ig(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(!(16&t.state))return;const e=Fm(t);if(e){const n=e.template._projectedViews;n&&(Kn(n,n.indexOf(t)),Sm.dirtyParentQueries(t))}}(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(ym(t,n).renderElement):2&e.flags?t.renderer.destroyNode(vm(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&xm(t,n).destroy()}}(t),Bm(t)&&t.renderer.destroy(),t.state|=128}}var K_;function Z_(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];33554432&s.flags?Q_(ym(t,i).componentView,e):0==(33554432&s.childFlags)&&(i+=s.childCount)}}function X_(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];if(16777216&s.flags){const n=ym(t,i).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)Q_(n[t],e)}else 0==(16777216&s.childFlags)&&(i+=s.childCount)}}function Q_(t,e){const n=t.state;switch(e){case K_.CheckNoChanges:0==(128&n)&&(12==(12&n)?z_(t):64&n&&J_(t,K_.CheckNoChangesProjectedViews));break;case K_.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?z_(t):64&n&&J_(t,e));break;case K_.CheckAndUpdate:0==(128&n)&&(12==(12&n)?U_(t):64&n&&J_(t,K_.CheckAndUpdateProjectedViews));break;case K_.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?U_(t):64&n&&J_(t,e));break;case K_.Destroy:G_(t);break;case K_.CreateViewNodes:H_(t)}}function J_(t,e){X_(t,e),Z_(t,e)}function tw(t,e,n,i){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const s=t.def.nodes.length;for(let r=0;r<s;r++){const s=t.def.nodes[r];if(s.flags&e&&s.flags&n)switch(Sm.setCurrentNode(t,s.nodeIndex),i){case 0:w_(t,s);break;case 1:Y_(t,s)}s.childFlags&e&&s.childFlags&n||(r+=s.childCount)}}u_.decorators=[{type:dv,args:[{providers:d_}]}],u_.ctorParameters=()=>[{type:xy}],function(t){t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy"}(K_||(K_={}));let ew=!1;function nw(){if(ew)return;ew=!0;const t=ay()?{setCurrentNode:kw,createRootView:sw,createEmbeddedView:aw,createComponentView:ow,createNgModuleRef:lw,overrideProvider:uw,overrideComponentView:hw,clearOverrides:mw,checkAndUpdateView:vw,checkNoChangesView:yw,destroyView:_w,createDebugContext:(t,e)=>new Nw(t,e),handleEvent:Ew,updateDirectives:Iw,updateRenderer:Aw}:{setCurrentNode:()=>{},createRootView:iw,createEmbeddedView:L_,createComponentView:j_,createNgModuleRef:Mf,overrideProvider:km,overrideComponentView:km,clearOverrides:km,checkAndUpdateView:U_,checkNoChangesView:z_,destroyView:G_,createDebugContext:(t,e)=>new Nw(t,e),handleEvent:(t,e,n,i)=>t.def.handleEvent(t,e,n,i),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?gw:bw,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?gw:bw,t)};Sm.setCurrentNode=t.setCurrentNode,Sm.createRootView=t.createRootView,Sm.createEmbeddedView=t.createEmbeddedView,Sm.createComponentView=t.createComponentView,Sm.createNgModuleRef=t.createNgModuleRef,Sm.overrideProvider=t.overrideProvider,Sm.overrideComponentView=t.overrideComponentView,Sm.clearOverrides=t.clearOverrides,Sm.checkAndUpdateView=t.checkAndUpdateView,Sm.checkNoChangesView=t.checkNoChangesView,Sm.destroyView=t.destroyView,Sm.resolveDep=tg,Sm.createDebugContext=t.createDebugContext,Sm.handleEvent=t.handleEvent,Sm.updateDirectives=t.updateDirectives,Sm.updateRenderer=t.updateRenderer,Sm.dirtyParentQueries=__}function iw(t,e,n,i,s,r){const a=s.injector.get(vh);return F_(rw(t,s,a,e,n),i,r)}function sw(t,e,n,i,s,r){const a=s.injector.get(vh),o=rw(t,s,new Fw(a),e,n),l=fw(i);return Rw(ww.create,F_,null,[o,l,r])}function rw(t,e,n,i,s){const r=e.injector.get(Ch),a=e.injector.get($s),o=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:i,selectorOrNode:s,sanitizer:r,rendererFactory:n,renderer:o,errorHandler:a}}function aw(t,e,n,i){const s=fw(n);return Rw(ww.create,L_,null,[t,e,s,i])}function ow(t,e,n,i){const s=pw.get(e.element.componentProvider.provider.token);return n=s||fw(n),Rw(ww.create,j_,null,[t,e,n,i])}function lw(t,e,n,i){return Mf(t,e,n,function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=i(t);if(!e)return t;return s(t=t.factory(()=>km)),t;function i(t){let e=!1,n=!1;return 0===cw.size||(t.providers.forEach(t=>{const i=cw.get(t.token);3840&t.flags&&i&&(e=!0,n=n||i.deprecatedBehavior)}),t.modules.forEach(t=>{dw.forEach((i,s)=>{x(s).providedIn===t&&(e=!0,n=n||i.deprecatedBehavior)})})),{hasOverrides:e,hasDeprecatedOverrides:n}}function s(t){for(let e=0;e<t.providers.length;e++){const i=t.providers[e];n&&(i.flags|=4096);const s=cw.get(i.token);s&&(i.flags=-3841&i.flags|s.flags,i.deps=qm(s.deps),i.value=s.value)}if(dw.size>0){let e=new Set(t.modules);dw.forEach((i,s)=>{if(e.has(x(s).providedIn)){let e={token:s,flags:i.flags|(n?4096:0),deps:qm(i.deps),value:i.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Im(s)]=e}})}}}(i))}const cw=new Map,dw=new Map,pw=new Map;function uw(t){let e;cw.set(t.token,t),"function"==typeof t.token&&(e=x(t.token))&&"function"==typeof e.providedIn&&dw.set(t.token,t)}function hw(t,e){const n=Ym(xf(e)),i=Ym(n.nodes[0].element.componentView);pw.set(t,i)}function mw(){cw.clear(),dw.clear(),pw.clear()}function fw(t){if(0===cw.size)return t;const e=function(t){const e=[];let n=null;for(let i=0;i<t.nodes.length;i++){const s=t.nodes[i];1&s.flags&&(n=s),n&&3840&s.flags&&cw.has(s.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>km);for(let i=0;i<e.length;i++)n(t,e[i]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=cw.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=qm(n.deps),t.value=n.value)}}}}function gw(t,e,n,i,s,r,a,o,l,c,d,p,u){const h=t.def.nodes[e];return q_(t,h,n,i,s,r,a,o,l,c,d,p,u),224&h.flags?wm(t,e).value:void 0}function bw(t,e,n,i,s,r,a,o,l,c,d,p,u){const h=t.def.nodes[e];return W_(t,h,n,i,s,r,a,o,l,c,d,p,u),224&h.flags?wm(t,e).value:void 0}function vw(t){return Rw(ww.detectChanges,U_,null,[t])}function yw(t){return Rw(ww.checkNoChanges,z_,null,[t])}function _w(t){return Rw(ww.destroy,G_,null,[t])}var ww;let xw,Cw,Sw;function kw(t,e){Cw=t,Sw=e}function Ew(t,e,n,i){return kw(t,e),Rw(ww.handleEvent,t.def.handleEvent,null,[t,e,n,i])}function Iw(t,e){if(128&t.state)throw fm(ww[xw]);return kw(t,Ow(t,0)),t.def.updateDirectives(function(t,n,i,...s){const r=t.def.nodes[n];0===e?Dw(t,r,i,s):Tw(t,r,i,s);16384&r.flags&&kw(t,Ow(t,n));return 224&r.flags?wm(t,r.nodeIndex).value:void 0},t)}function Aw(t,e){if(128&t.state)throw fm(ww[xw]);return kw(t,Pw(t,0)),t.def.updateRenderer(function(t,n,i,...s){const r=t.def.nodes[n];0===e?Dw(t,r,i,s):Tw(t,r,i,s);3&r.flags&&kw(t,Pw(t,n));return 224&r.flags?wm(t,r.nodeIndex).value:void 0},t)}function Dw(t,e,n,i){if(q_(t,e,n,...i)){const s=1===n?i[0]:i;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const i=e.bindings[t],r=s[t];8&i.flags&&(n[Zs(i.nonMinifiedName)]=Qs(r))}const i=e.parent,r=ym(t,i.nodeIndex).renderElement;if(i.element.name)for(let e in n){const i=n[e];null!=i?t.renderer.setAttribute(r,e,i):t.renderer.removeAttribute(r,e)}else t.renderer.setValue(r,Ks(`bindings=${JSON.stringify(n,null,2)}`))}}}function Tw(t,e,n,i){W_(t,e,n,...i)}function Ow(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function Pw(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}!function(t){t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent"}(ww||(ww={}));class Nw{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,i=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&i;)n=jm(i),i=i.parent;this.elDef=n,this.elView=i}get elOrCompView(){return ym(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Of(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){Mw(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&Mw(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!Bm(t);)t=t.parent;if(t.parent)return ym(t.parent,jm(t).nodeIndex);return null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?Vm(this.view,this.nodeDef):Vm(this.elView,this.elDef)}logError(t,...e){let n,i;2&this.nodeDef.flags?(n=this.view.def,i=this.nodeDef.nodeIndex):(n=this.elView.def,i=this.elDef.nodeIndex);const s=function(t,e){let n=-1;for(let i=0;i<=e;i++){3&t.nodes[i].flags&&n++}return n}(n,i);let r=-1;n.factory(()=>(r++,r===s?t.error.bind(t,...e):km)),r<s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function Mw(t,e,n){for(let i in e.references)n[i]=C_(t,e,e.references[i])}function Rw(t,e,n,i){const s=xw,r=Cw,a=Sw;try{xw=t;const o=e.apply(n,i);return Cw=r,Sw=a,xw=s,o}catch(o){if(zs(o)||!Cw)throw o;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),mm(t,e),t}(o,Lw())}}function Lw(){return Cw?new Nw(Cw,Sw):null}class Fw{constructor(t){this.delegate=t}createRenderer(t,e){return new jw(this.delegate.createRenderer(t,e))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class jw{constructor(t){this.delegate=t,this.debugContextFactory=Lw,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const e=Jy(t);!function(t){Zy.delete(t.nativeNode)}(e),e instanceof Fy&&(e.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),i=this.createDebugContext(n);if(i){const e=new jy(n,null,i);e.name=t,n_(e)}return n}createComment(t){const e=this.delegate.createComment(Ks(t)),n=this.createDebugContext(e);return n&&n_(new Fy(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&n_(new Fy(e,null,n)),e}appendChild(t,e){const n=Jy(t),i=Jy(e);n&&i&&n instanceof jy&&n.addChild(i),this.delegate.appendChild(t,e)}insertBefore(t,e,n,i){const s=Jy(t),r=Jy(e),a=Jy(n);s&&r&&s instanceof jy&&s.insertBefore(a,r),this.delegate.insertBefore(t,e,n,i)}removeChild(t,e){const n=Jy(t),i=Jy(e);n&&i&&n instanceof jy&&n.removeChild(i),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),i=Lw();return i&&n_(new jy(n,null,i)),n}setAttribute(t,e,n,i){const s=Jy(t);if(s&&s instanceof jy){const t=i?i+":"+e:e;s.attributes[t]=n}this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){const i=Jy(t);if(i&&i instanceof jy){const t=n?n+":"+e:e;i.attributes[t]=null}this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=Jy(t);n&&n instanceof jy&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=Jy(t);n&&n instanceof jy&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,i){const s=Jy(t);s&&s instanceof jy&&(s.styles[e]=n),this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){const i=Jy(t);i&&i instanceof jy&&(i.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const i=Jy(t);i&&i instanceof jy&&(i.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const i=Jy(t);i&&i.listeners.push(new Ly(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function Vw(t){return nw(),Sm.overrideProvider(t)}function Bw(t,e){return nw(),Sm.overrideComponentView(t,e)}function Hw(){return nw(),Sm.clearOverrides()}function zw(t,e,n){return new Uw(t,e,n)}class Uw extends im{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){nw();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),i={};for(const s in t.providersByKey)i[s]=t.providersByKey[s];return{factory:t.factory,scope:t.scope,providers:e,modules:n,providersByKey:i}}(Ym(this._ngModuleDefFactory));return Sm.createNgModuleRef(this.moduleType,t||Ro.NULL,this._bootstrapComponents,e)}}},"92bn":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("BdNY")},"95Tn":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=function(){function t(t,e,n,i,s){this.displayableId=t,this.name=e,this.identityProvider=n,this.userIdentifier=i,this.idToken=s}return t.createUser=function(e,n,s){var r,a;n?(r=n.uid,a=n.utid):(r="",a="");var o=i.Utils.base64EncodeStringUrlSafe(r)+"."+i.Utils.base64EncodeStringUrlSafe(a);return new t(e.preferredName,e.name,e.issuer,o,e.decodedIdToken)},t}();e.User=s},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},ADT6:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("kU1M");e.filter=function(t,e){return i.filter(t,e)(this)}},BFxc:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function a(t){return function(e){return 0===t?Object(r.b)():e.lift(new o(t))}}class o{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;if(e.length<n)e.push(t);else{e[i%n]=t}}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;s<n;s++){const s=e++%n;t.next(i[s])}}t.complete()}}},BdNY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("4Hgy");i.Observable.prototype.do=s._do,i.Observable.prototype._do=s._do},BilO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp");i.Observable.of=i.of},Bx81:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,s=n("wpu4");!function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose"}(i=e.LogLevel||(e.LogLevel={}));var r=function(){function t(t,e){void 0===e&&(e={}),this._level=i.Info;var n=e.correlationId,s=void 0===n?"":n,r=e.level,a=void 0===r?i.Info:r,o=e.piiLoggingEnabled,l=void 0!==o&&o;this._localCallback=t,this._correlationId=s,this._level=a,this._piiLoggingEnabled=l}return t.prototype.logMessage=function(t,e,n){if(!(t>this._level||!this._piiLoggingEnabled&&n)){var r,a=(new Date).toUTCString();r=s.Utils.isEmpty(this._correlationId)?a+":"+s.Utils.getLibraryVersion()+"-"+i[t]+" "+e:a+":"+this._correlationId+"-"+s.Utils.getLibraryVersion()+"-"+i[t]+" "+e,this.executeCallback(t,r,n)}},t.prototype.executeCallback=function(t,e,n){this._localCallback&&this._localCallback(t,e,n)},t.prototype.error=function(t){this.logMessage(i.Error,t,!1)},t.prototype.errorPii=function(t){this.logMessage(i.Error,t,!0)},t.prototype.warning=function(t){this.logMessage(i.Warning,t,!1)},t.prototype.warningPii=function(t){this.logMessage(i.Warning,t,!0)},t.prototype.info=function(t){this.logMessage(i.Info,t,!1)},t.prototype.infoPii=function(t){this.logMessage(i.Info,t,!0)},t.prototype.verbose=function(t){this.logMessage(i.Verbose,t,!1)},t.prototype.verbosePii=function(t){this.logMessage(i.Verbose,t,!0)},t}();e.Logger=r},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("SeVD"),r=n("7HRe");function a(t,e){return e?Object(r.a)(t,e):t instanceof i.a?t:new i.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return r});var i=n("3N8a");const s=new(n("IjjT").a)(i.a),r=s},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=Array.isArray||(t=>t&&"number"==typeof t.length)},EQ5u:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return c});var i=n("XNiG"),s=n("HDdC"),r=n("7o/Q"),a=n("quSY"),o=n("x+ZX");class l extends s.a{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 a.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=a.a.EMPTY)),t}refCount(){return Object(o.a)()(this)}}const c=(()=>{const t=l.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 d extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}r.a},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var i=n("HDdC");const s=new i.a(t=>t.complete());function r(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):s}},ErMB:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this._token="",this._tokenType="",this._token=t,e&&(this._tokenType=e)}return Object.defineProperty(t.prototype,"token",{get:function(){return this._token},set:function(t){this._token=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tokenType",{get:function(){return this._tokenType},set:function(t){this._tokenType=t},enumerable:!0,configurable:!0}),t}();e.AuthenticationResult=i},"F97/":function(t,e,n){"use strict";function i(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,"a",function(){return i})},FGkh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){this.authority="https://login.microsoftonline.com/common",this.validateAuthority=!0,this.cacheLocation="sessionStorage",this.storeAuthStateInCookie=!1,this.loadFrameTimeout=6e3,this.navigateToLoginRequestUrl=!0};e.MsalConfig=i},FS4P:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("NrNb"),s=n("21Mn"),r=n("0bRH"),a=n("bBXD"),o=n("frRk"),l=n("Ru/W"),c=n("/p4D"),d=n("Bx81"),p=n("Yw2L"),u=n("2Grz"),h=n("95Tn"),m=n("wpu4"),f=n("UFqO"),g="id_token",b="token",v="id_token token",y=function(t,e,n){var i=n.value;return n.value=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this.isInIframe()?new Promise(function(){}):i.apply(this,t)},n},_=function(){function t(t,e,n,i){void 0===i&&(i={}),this._cacheLocations={localStorage:"localStorage",sessionStorage:"sessionStorage"},this._clockSkew=300,this._tokenReceivedCallback=null,this._isAngular=!1;var s=i.validateAuthority,r=void 0===s||s,a=i.cacheLocation,o=void 0===a?"sessionStorage":a,c=i.redirectUri,u=void 0===c?window.location.href.split("?")[0].split("#")[0]:c,h=i.postLogoutRedirectUri,m=void 0===h?window.location.href.split("?")[0].split("#")[0]:h,f=i.logger,g=void 0===f?new d.Logger(null):f,b=i.loadFrameTimeout,v=void 0===b?6e3:b,y=i.navigateToLoginRequestUrl,_=void 0===y||y,w=i.state,x=void 0===w?"":w,C=i.isAngular,S=void 0!==C&&C,k=i.unprotectedResources,E=void 0===k?new Array:k,I=i.protectedResourceMap,A=void 0===I?new Map:I,D=i.storeAuthStateInCookie,T=void 0!==D&&D;if(this.loadFrameTimeout=v,this.clientId=t,this.validateAuthority=r,this.authority=e||"https://login.microsoftonline.com/common",this._tokenReceivedCallback=n,this._redirectUri=u,this._postLogoutredirectUri=m,this._loginInProgress=!1,this._acquireTokenInProgress=!1,this._cacheLocation=o,this._navigateToLoginRequestUrl=_,this._state=x,this._isAngular=S,this._unprotectedResources=E,this._protectedResourceMap=A,!this._cacheLocations[o])throw new Error("Cache Location is not valid. Provided value:"+this._cacheLocation+".Possible values are: "+this._cacheLocations.localStorage+", "+this._cacheLocations.sessionStorage);this._cacheStorage=new p.Storage(this._cacheLocation),this._logger=g,this.storeAuthStateInCookie=T,window.openedWindows=[],window.activeRenewals={},window.renewStates=[],window.callBackMappedToRenewStates={},window.callBacksMappedToRenewStates={},window.msal=this;var O=window.location.hash,P=this.isCallback(O);if(!this._isAngular)if(P)this.handleAuthenticationResponse.call(this,O);else{var N=this._cacheStorage.getItem(l.Constants.urlHash);N&&this.processCallBack(N)}}return Object.defineProperty(t.prototype,"cacheLocation",{get:function(){return this._cacheLocation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"authority",{get:function(){return this.authorityInstance.CanonicalAuthority},set:function(t){this.authorityInstance=f.AuthorityFactory.CreateInstance(t,this.validateAuthority)},enumerable:!0,configurable:!0}),t.prototype.processCallBack=function(t){this._logger.info("Processing the callback from redirect response");var e=this.getRequestInfo(t);this.saveTokenFromHash(e);var n,i=e.parameters[l.Constants.accessToken]||e.parameters[l.Constants.idToken],s=e.parameters[l.Constants.errorDescription],r=e.parameters[l.Constants.error];n=e.parameters[l.Constants.accessToken]?l.Constants.accessToken:l.Constants.idToken,this._cacheStorage.removeItem(l.Constants.urlHash);try{this._tokenReceivedCallback&&(this._cacheStorage.clearCookie(),this._tokenReceivedCallback.call(this,s,i,r,n,this.getUserState(this._cacheStorage.getItem(l.Constants.stateLogin))))}catch(a){this._logger.error("Error occurred in token received callback function: "+a)}},t.prototype.loginRedirect=function(t,e){var n=this;if(this._loginInProgress&&this._tokenReceivedCallback)this._tokenReceivedCallback(l.ErrorDescription.loginProgressError,null,l.ErrorCodes.loginProgressError,l.Constants.idToken,this.getUserState(this._cacheStorage.getItem(l.Constants.stateLogin)));else{if(t){var i=this.validateInputScope(t);if(i&&!m.Utils.isEmpty(i)&&this._tokenReceivedCallback)return void this._tokenReceivedCallback(l.ErrorDescription.inputScopesError,null,l.ErrorCodes.inputScopesError,l.Constants.idToken,this.getUserState(this._cacheStorage.getItem(l.Constants.stateLogin)));t=this.filterScopes(t)}this._loginInProgress=!0,this.authorityInstance.ResolveEndpointsAsync().then(function(){var i=new a.AuthenticationRequestParameters(n.authorityInstance,n.clientId,t,g,n._redirectUri,n._state);e&&(i.extraQueryParameters=e);var s=n._cacheStorage.getItem(l.Constants.angularLoginRequest);s&&""!==s?n._cacheStorage.setItem(l.Constants.angularLoginRequest,""):s=window.location.href,n._cacheStorage.setItem(l.Constants.loginRequest,s,n.storeAuthStateInCookie),n._cacheStorage.setItem(l.Constants.loginError,""),n._cacheStorage.setItem(l.Constants.stateLogin,i.state,n.storeAuthStateInCookie),n._cacheStorage.setItem(l.Constants.nonceIdToken,i.nonce,n.storeAuthStateInCookie),n._cacheStorage.setItem(l.Constants.msalError,""),n._cacheStorage.setItem(l.Constants.msalErrorDescription,"");var r=l.Constants.authority+l.Constants.resourceDelimeter+i.state;m.Utils.isEmpty(n._cacheStorage.getItem(r))&&n._cacheStorage.setItem(r,n.authority);var o=i.createNavigateUrl(t)+"&prompt=select_account&response_mode=fragment";n.promptUser(o)})}},t.prototype.loginPopup=function(t,e){var n=this;return new Promise(function(i,s){if(n._loginInProgress)s(l.ErrorCodes.loginProgressError+"|"+l.ErrorDescription.loginProgressError);else{if(t){var r=n.validateInputScope(t);if(r&&!m.Utils.isEmpty(r))return void s(l.ErrorCodes.inputScopesError+"|"+l.ErrorDescription.inputScopesError);t=n.filterScopes(t)}else t=[n.clientId];var o=t.join(" ").toLowerCase(),c=n.openWindow("about:blank","_blank",1,n,i,s);c&&(n._loginInProgress=!0,n.authorityInstance.ResolveEndpointsAsync().then(function(){var r=new a.AuthenticationRequestParameters(n.authorityInstance,n.clientId,t,g,n._redirectUri,n._state);e&&(r.extraQueryParameters=e),n._cacheStorage.setItem(l.Constants.loginRequest,window.location.href),n._cacheStorage.setItem(l.Constants.loginError,""),n._cacheStorage.setItem(l.Constants.nonceIdToken,r.nonce),n._cacheStorage.setItem(l.Constants.msalError,""),n._cacheStorage.setItem(l.Constants.msalErrorDescription,"");var d=l.Constants.authority+l.Constants.resourceDelimeter+r.state;m.Utils.isEmpty(n._cacheStorage.getItem(d))&&n._cacheStorage.setItem(d,n.authority);var p=r.createNavigateUrl(t)+"&prompt=select_account&response_mode=fragment";window.renewStates.push(r.state),window.requestType=l.Constants.login,n.registerCallback(r.state,o,i,s),c&&(n._logger.infoPii("Navigated Popup window to:"+p),c.location.href=p)},function(){n._logger.info(l.ErrorCodes.endpointResolutionError+":"+l.ErrorDescription.endpointResolutionError),n._cacheStorage.setItem(l.Constants.msalError,l.ErrorCodes.endpointResolutionError),n._cacheStorage.setItem(l.Constants.msalErrorDescription,l.ErrorDescription.endpointResolutionError),s&&s(l.ErrorCodes.endpointResolutionError+":"+l.ErrorDescription.endpointResolutionError),c&&c.close()}).catch(function(t){n._logger.warning("could not resolve endpoints"),s(t)}))}})},t.prototype.promptUser=function(t){t&&!m.Utils.isEmpty(t)?(this._logger.infoPii("Navigate to:"+t),window.location.replace(t)):this._logger.info("Navigate url is empty")},t.prototype.openWindow=function(t,e,n,i,s,r){var a=this,o=this.openPopup(t,e,l.Constants.popUpWidth,l.Constants.popUpHeight);if(null==o)return i._loginInProgress=!1,i._acquireTokenInProgress=!1,this._logger.info(l.ErrorCodes.popUpWindowError+":"+l.ErrorDescription.popUpWindowError),this._cacheStorage.setItem(l.Constants.msalError,l.ErrorCodes.popUpWindowError),this._cacheStorage.setItem(l.Constants.msalErrorDescription,l.ErrorDescription.popUpWindowError),r&&r(l.ErrorCodes.popUpWindowError+"|"+l.ErrorDescription.popUpWindowError),null;window.openedWindows.push(o);var c=window.setInterval(function(){if(o&&o.closed&&i._loginInProgress){if(r&&r(l.ErrorCodes.userCancelledError+"|"+l.ErrorDescription.userCancelledError),window.clearInterval(c),a._isAngular)return void a.broadcast("msal:popUpClosed",l.ErrorCodes.userCancelledError+"|"+l.ErrorDescription.userCancelledError);i._loginInProgress=!1,i._acquireTokenInProgress=!1}try{var t=o.location;if(-1!==t.href.indexOf(a._redirectUri)&&(window.clearInterval(c),i._loginInProgress=!1,i._acquireTokenInProgress=!1,a._logger.info("Closing popup window"),a._isAngular)){a.broadcast("msal:popUpHashChanged",t.hash);for(var e=0;e<window.openedWindows.length;e++)window.openedWindows[e].close()}}catch(n){}},n);return o},t.prototype.broadcast=function(t,e){var n=new CustomEvent(t,{detail:e});window.dispatchEvent(n)},t.prototype.logout=function(){this.clearCache(),this._user=null;var t="";this._postLogoutredirectUri&&(t="post_logout_redirect_uri="+encodeURIComponent(this._postLogoutredirectUri));var e=this.authority+"/oauth2/v2.0/logout?"+t;this.promptUser(e)},t.prototype.clearCache=function(){window.renewStates=[];for(var t=this._cacheStorage.getAllAccessTokens(l.Constants.clientId,l.Constants.userIdentifier),e=0;e<t.length;e++)this._cacheStorage.removeItem(JSON.stringify(t[e].key));this._cacheStorage.resetCacheItems(),this._cacheStorage.clearCookie()},t.prototype.clearCacheForScope=function(t){for(var e=this._cacheStorage.getAllAccessTokens(l.Constants.clientId,l.Constants.userIdentifier),n=0;n<e.length;n++){var i=e[n];i.value.accessToken==t&&this._cacheStorage.removeItem(JSON.stringify(i.key))}},t.prototype.openPopup=function(t,e,n,i){try{var s=window.screenLeft?window.screenLeft:window.screenX,r=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,l=a/2-n/2+s,c=o/2-i/2+r,d=window.open(t,e,"width="+n+", height="+i+", top="+c+", left="+l);return d.focus&&d.focus(),d}catch(p){return this._logger.error("error opening popup "+p.message),this._loginInProgress=!1,this._acquireTokenInProgress=!1,null}},t.prototype.validateInputScope=function(t){if(!t||t.length<1)return"Scopes cannot be passed as an empty array";if(!Array.isArray(t))throw new Error("API does not accept non-array scopes");return t.indexOf(this.clientId)>-1&&t.length>1?"ClientId can only be provided as a single scope":""},t.prototype.filterScopes=function(t){return t=(t=t.filter(function(t){return"openid"!==t})).filter(function(t){return"profile"!==t})},t.prototype.registerCallback=function(t,e,n,i){var s=this;window.activeRenewals[e]=t,window.callBacksMappedToRenewStates[t]||(window.callBacksMappedToRenewStates[t]=[]),window.callBacksMappedToRenewStates[t].push({resolve:n,reject:i}),window.callBackMappedToRenewStates[t]||(window.callBackMappedToRenewStates[t]=function(n,i,r,a){window.activeRenewals[e]=null;for(var o=0;o<window.callBacksMappedToRenewStates[t].length;++o)try{n||r?window.callBacksMappedToRenewStates[t][o].reject(n+"|"+r):i&&window.callBacksMappedToRenewStates[t][o].resolve(i)}catch(l){s._logger.warning(l)}window.callBacksMappedToRenewStates[t]=null,window.callBackMappedToRenewStates[t]=null})},t.prototype.getCachedTokenInternal=function(t,e){var n=e||this.getUser();if(n){var i,s=this.authorityInstance?this.authorityInstance:f.AuthorityFactory.CreateInstance(this.authority,this.validateAuthority);return i=m.Utils.compareObjects(n,this.getUser())?t.indexOf(this.clientId)>-1?new a.AuthenticationRequestParameters(s,this.clientId,t,g,this._redirectUri,this._state):new a.AuthenticationRequestParameters(s,this.clientId,t,b,this._redirectUri,this._state):new a.AuthenticationRequestParameters(s,this.clientId,t,v,this._redirectUri,this._state),this.getCachedToken(i,e)}},t.prototype.getCachedToken=function(t,e){var n=null,i=t.scopes,s=this._cacheStorage.getAllAccessTokens(this.clientId,e?e.userIdentifier:null);if(0===s.length)return null;var r=[];if(t.authority){for(a=0;a<s.length;a++){l=(o=s[a]).key.scopes.split(" ");m.Utils.containsScope(l,i)&&o.key.authority===t.authority&&r.push(o)}if(0===r.length)return null;if(1!==r.length)return{errorDesc:"The cache contains multiple tokens satisfying the requirements.Call AcquireToken again providing more requirements like authority",token:null,error:"multiple_matching_tokens_detected"};n=r[0]}else{for(var a=0;a<s.length;a++){var o,l=(o=s[a]).key.scopes.split(" ");m.Utils.containsScope(l,i)&&r.push(o)}if(1===r.length)n=r[0],t.authorityInstance=f.AuthorityFactory.CreateInstance(n.key.authority,this.validateAuthority);else{if(r.length>1)return{errorDesc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements like authority",token:null,error:"multiple_matching_tokens_detected"};var c=this.getUniqueAuthority(s,"authority");if(c.length>1)return{errorDesc:"Multiple authorities found in the cache. Pass authority in the API overload.",token:null,error:"multiple_matching_tokens_detected"};t.authorityInstance=f.AuthorityFactory.CreateInstance(c[0],this.validateAuthority)}}if(null!=n){var d=Number(n.value.expiresIn),p=this._clockSkew||300;return d&&d>m.Utils.now()+p?{errorDesc:null,token:n.value.accessToken,error:null}:(this._cacheStorage.removeItem(JSON.stringify(r[0].key)),null)}return null},t.prototype.getAllUsers=function(){for(var t=[],e=this._cacheStorage.getAllAccessTokens(l.Constants.clientId,l.Constants.userIdentifier),n=0;n<e.length;n++){var i=new c.IdToken(e[n].value.idToken),s=new o.ClientInfo(e[n].value.clientInfo),r=h.User.createUser(i,s,this.authority);t.push(r)}return this.getUniqueUsers(t)},t.prototype.getUniqueUsers=function(t){if(!t||t.length<=1)return t;for(var e=[],n=[],i=0;i<t.length;++i)t[i].userIdentifier&&-1===e.indexOf(t[i].userIdentifier)&&(e.push(t[i].userIdentifier),n.push(t[i]));return n},t.prototype.getUniqueAuthority=function(t,e){var n=[],i=[];return t.forEach(function(t){t.key.hasOwnProperty(e)&&-1===i.indexOf(t.key[e])&&(i.push(t.key[e]),n.push(t.key[e]))}),n},t.prototype.addHintParameters=function(t,e){var n=e||this.getUser(),i=n.userIdentifier.split("."),s=m.Utils.base64DecodeStringUrlSafe(i[0]),r=m.Utils.base64DecodeStringUrlSafe(i[1]);return this.urlContainsQueryStringParameter("login_hint",t)||!n.displayableId||m.Utils.isEmpty(n.displayableId)||(t+="&login_hint="+encodeURIComponent(e.displayableId)),m.Utils.isEmpty(s)||m.Utils.isEmpty(r)||(this.urlContainsQueryStringParameter("domain_req",t)||m.Utils.isEmpty(r)||(t+="&domain_req="+encodeURIComponent(r)),this.urlContainsQueryStringParameter("login_req",t)||m.Utils.isEmpty(s)||(t+="&login_req="+encodeURIComponent(s)),this.urlContainsQueryStringParameter("domain_hint",t)||m.Utils.isEmpty(r)||(t+="9188040d-6c67-4c5b-b112-36a304b66dad"===r?"&domain_hint="+encodeURIComponent("consumers"):"&domain_hint="+encodeURIComponent("organizations"))),t},t.prototype.urlContainsQueryStringParameter=function(t,e){return new RegExp("[\\?&]"+t+"=").test(e)},t.prototype.acquireTokenRedirect=function(t,e,n,i){var s=this,r=this.validateInputScope(t);if(r&&!m.Utils.isEmpty(r)&&this._tokenReceivedCallback)this._tokenReceivedCallback(l.ErrorDescription.inputScopesError,null,l.ErrorCodes.inputScopesError,l.Constants.accessToken,this.getUserState(this._cacheStorage.getItem(l.Constants.stateLogin)));else{t&&(t=this.filterScopes(t));var o=n||this.getUser();if(!this._acquireTokenInProgress){t.join(" ").toLowerCase();if(o||!this._tokenReceivedCallback){var c;this._acquireTokenInProgress=!0;var d=e?f.AuthorityFactory.CreateInstance(e,this.validateAuthority):this.authorityInstance;d.ResolveEndpointsAsync().then(function(){c=m.Utils.compareObjects(o,s.getUser())?t.indexOf(s.clientId)>-1?new a.AuthenticationRequestParameters(d,s.clientId,t,g,s._redirectUri,s._state):new a.AuthenticationRequestParameters(d,s.clientId,t,b,s._redirectUri,s._state):new a.AuthenticationRequestParameters(d,s.clientId,t,v,s._redirectUri,s._state),s._cacheStorage.setItem(l.Constants.nonceIdToken,c.nonce);var e=l.Constants.acquireTokenUser+l.Constants.resourceDelimeter+o.userIdentifier+l.Constants.resourceDelimeter+c.state;m.Utils.isEmpty(s._cacheStorage.getItem(e))&&s._cacheStorage.setItem(e,JSON.stringify(o));var n=l.Constants.authority+l.Constants.resourceDelimeter+c.state;m.Utils.isEmpty(s._cacheStorage.getItem(n))&&s._cacheStorage.setItem(n,d.CanonicalAuthority),i&&(c.extraQueryParameters=i);var r=c.createNavigateUrl(t)+"&prompt=select_account&response_mode=fragment";(r=s.addHintParameters(r,o))&&(s._cacheStorage.setItem(l.Constants.stateAcquireToken,c.state),window.location.replace(r))})}else this._tokenReceivedCallback(l.ErrorDescription.userLoginError,null,l.ErrorCodes.userLoginError,l.Constants.accessToken,this.getUserState(this._cacheStorage.getItem(l.Constants.stateLogin)))}}},t.prototype.acquireTokenPopup=function(t,e,n,i){var s=this;return new Promise(function(r,o){var c=s.validateInputScope(t);c&&!m.Utils.isEmpty(c)&&o(l.ErrorCodes.inputScopesError+"|"+c),t&&(t=s.filterScopes(t));var d=n||s.getUser();if(s._acquireTokenInProgress)o(l.ErrorCodes.acquireTokenProgressError+"|"+l.ErrorDescription.acquireTokenProgressError);else{var p=t.join(" ").toLowerCase();if(d){var u;s._acquireTokenInProgress=!0;var h=e?f.AuthorityFactory.CreateInstance(e,s.validateAuthority):s.authorityInstance,y=s.openWindow("about:blank","_blank",1,s,r,o);y&&h.ResolveEndpointsAsync().then(function(){u=m.Utils.compareObjects(d,s.getUser())?t.indexOf(s.clientId)>-1?new a.AuthenticationRequestParameters(h,s.clientId,t,g,s._redirectUri,s._state):new a.AuthenticationRequestParameters(h,s.clientId,t,b,s._redirectUri,s._state):new a.AuthenticationRequestParameters(h,s.clientId,t,v,s._redirectUri,s._state),s._cacheStorage.setItem(l.Constants.nonceIdToken,u.nonce),u.state=u.state;var e=l.Constants.acquireTokenUser+l.Constants.resourceDelimeter+d.userIdentifier+l.Constants.resourceDelimeter+u.state;m.Utils.isEmpty(s._cacheStorage.getItem(e))&&s._cacheStorage.setItem(e,JSON.stringify(d));var n=l.Constants.authority+l.Constants.resourceDelimeter+u.state;m.Utils.isEmpty(s._cacheStorage.getItem(n))&&s._cacheStorage.setItem(n,h.CanonicalAuthority),i&&(u.extraQueryParameters=i);var c=u.createNavigateUrl(t)+"&prompt=select_account&response_mode=fragment";c=s.addHintParameters(c,d),window.renewStates.push(u.state),window.requestType=l.Constants.renewToken,s.registerCallback(u.state,p,r,o),y&&(y.location.href=c)},function(){s._logger.info(l.ErrorCodes.endpointResolutionError+":"+l.ErrorDescription.endpointResolutionError),s._cacheStorage.setItem(l.Constants.msalError,l.ErrorCodes.endpointResolutionError),s._cacheStorage.setItem(l.Constants.msalErrorDescription,l.ErrorDescription.endpointResolutionError),o&&o(l.ErrorCodes.endpointResolutionError+"|"+l.ErrorDescription.endpointResolutionError),y&&y.close()}).catch(function(t){s._logger.warning("could not resolve endpoints"),o(t)})}else o(l.ErrorCodes.userLoginError+"|"+l.ErrorDescription.userLoginError)}})},t.prototype.acquireTokenSilent=function(t,e,n,i){var s=this;return new Promise(function(r,o){var c=s.validateInputScope(t);if(!c||m.Utils.isEmpty(c)){t&&(t=s.filterScopes(t));var d,p=t.join(" ").toLowerCase(),u=n||s.getUser();if(!u)return void o(l.ErrorCodes.userLoginError+"|"+l.ErrorDescription.userLoginError);var h=e?f.AuthorityFactory.CreateInstance(e,s.validateAuthority):s.authorityInstance;d=m.Utils.compareObjects(u,s.getUser())?t.indexOf(s.clientId)>-1?new a.AuthenticationRequestParameters(h,s.clientId,t,g,s._redirectUri,s._state):new a.AuthenticationRequestParameters(h,s.clientId,t,b,s._redirectUri,s._state):new a.AuthenticationRequestParameters(h,s.clientId,t,v,s._redirectUri,s._state);var y=s.getCachedToken(d,u);if(y){if(y.token)return s._logger.info("Token is already in cache for scope:"+p),void r(y.token);if(y.errorDesc||y.error)return s._logger.infoPii(y.errorDesc+":"+y.error),void o(y.errorDesc+"|"+y.error)}else s._logger.verbose("Token is not in cache for scope:"+p);return h.ResolveEndpointsAsync().then(function(){window.activeRenewals[p]?(s._logger.verbose("Renew token for scope: "+p+" is in progress. Registering callback"),s.registerCallback(window.activeRenewals[p],p,r,o)):t&&t.indexOf(s.clientId)>-1&&1===t.length?(s._logger.verbose("renewing idToken"),s.renewIdToken(t,r,o,u,d,i)):(s._logger.verbose("renewing accesstoken"),s.renewToken(t,r,o,u,d,i))}).catch(function(t){s._logger.warning("could not resolve endpoints"),o(t)})}o(l.ErrorCodes.inputScopesError+"|"+c)})},t.prototype.loadIframeTimeout=function(t,e,n){var i=this,s=window.activeRenewals[n];this._logger.verbose("Set loading state to pending for: "+n+":"+s),this._cacheStorage.setItem(l.Constants.renewStatus+s,l.Constants.tokenRenewStatusInProgress),this.loadFrame(t,e),setTimeout(function(){i._cacheStorage.getItem(l.Constants.renewStatus+s)===l.Constants.tokenRenewStatusInProgress&&(i._logger.verbose("Loading frame has timed out after: "+i.loadFrameTimeout/1e3+" seconds for scope "+n+":"+s),s&&window.callBackMappedToRenewStates[s]&&window.callBackMappedToRenewStates[s]("Token renewal operation failed due to timeout",null,"Token Renewal Failed",l.Constants.accessToken),i._cacheStorage.setItem(l.Constants.renewStatus+s,l.Constants.tokenRenewStatusCancelled))},this.loadFrameTimeout)},t.prototype.loadFrame=function(t,e){var n=this;this._logger.info("LoadFrame: "+e);var i=e;setTimeout(function(){var s=n.addAdalFrame(i);""!==s.src&&"about:blank"!==s.src||(s.src=t,n._logger.infoPii("Frame Name : "+e+" Navigated to: "+t))},500)},t.prototype.addAdalFrame=function(t){if(void 0===t)return null;this._logger.info("Add msal frame to document:"+t);var e=document.getElementById(t);if(!e){if(document.createElement&&document.documentElement&&-1===window.navigator.userAgent.indexOf("MSIE 5.0")){var n=document.createElement("iframe");n.setAttribute("id",t),n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height="0",n.style.border="0",e=document.getElementsByTagName("body")[0].appendChild(n)}else document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeend",'<iframe name="'+t+'" id="'+t+'" style="display:none"></iframe>');window.frames&&window.frames[t]&&(e=window.frames[t])}return e},t.prototype.renewToken=function(t,e,n,i,s,r){var a=t.join(" ").toLowerCase();this._logger.verbose("renewToken is called for scope:"+a);var o=this.addAdalFrame("msalRenewFrame"+a);r&&(s.extraQueryParameters=r);var c=l.Constants.acquireTokenUser+l.Constants.resourceDelimeter+i.userIdentifier+l.Constants.resourceDelimeter+s.state;m.Utils.isEmpty(this._cacheStorage.getItem(c))&&this._cacheStorage.setItem(c,JSON.stringify(i));var d=l.Constants.authority+l.Constants.resourceDelimeter+s.state;m.Utils.isEmpty(this._cacheStorage.getItem(d))&&this._cacheStorage.setItem(d,s.authority),this._cacheStorage.setItem(l.Constants.nonceIdToken,s.nonce),this._logger.verbose("Renew token Expected state: "+s.state);var p=s.createNavigateUrl(t)+"&prompt=none";p=this.addHintParameters(p,i),window.renewStates.push(s.state),window.requestType=l.Constants.renewToken,this.registerCallback(s.state,a,e,n),this._logger.infoPii("Navigate to:"+p),o.src="about:blank",this.loadIframeTimeout(p,"msalRenewFrame"+a,a)},t.prototype.renewIdToken=function(t,e,n,i,s,r){t.join(" ").toLowerCase();this._logger.info("renewidToken is called");var a=this.addAdalFrame("msalIdTokenFrame");r&&(s.extraQueryParameters=r);var o=l.Constants.acquireTokenUser+l.Constants.resourceDelimeter+i.userIdentifier+l.Constants.resourceDelimeter+s.state;m.Utils.isEmpty(this._cacheStorage.getItem(o))&&this._cacheStorage.setItem(o,JSON.stringify(i));var c=l.Constants.authority+l.Constants.resourceDelimeter+s.state;m.Utils.isEmpty(this._cacheStorage.getItem(c))&&this._cacheStorage.setItem(c,s.authority),this._cacheStorage.setItem(l.Constants.nonceIdToken,s.nonce),this._logger.verbose("Renew Idtoken Expected state: "+s.state);var d=s.createNavigateUrl(t)+"&prompt=none";d=this.addHintParameters(d,i),window.renewStates.push(s.state),window.requestType=l.Constants.renewToken,this.registerCallback(s.state,this.clientId,e,n),this._logger.infoPii("Navigate to:"+d),a.src="about:blank",this.loadIframeTimeout(d,"msalIdTokenFrame",this.clientId)},t.prototype.getUser=function(){if(this._user)return this._user;var t=this._cacheStorage.getItem(l.Constants.idTokenKey),e=this._cacheStorage.getItem(l.Constants.msalClientInfo);if(!m.Utils.isEmpty(t)&&!m.Utils.isEmpty(e)){var n=new c.IdToken(t),i=new o.ClientInfo(e);return this._user=h.User.createUser(n,i,this.authority),this._user}return null},t.prototype.handleAuthenticationResponse=function(t){null==t&&(t=window.location.hash);var e=null,n=!1,i=!1;try{i=window.opener&&window.opener.msal&&window.opener.msal!==window.msal}catch(u){i=!1}i?(e=window.opener.msal,n=!0):window.parent&&window.parent.msal&&(e=window.parent.msal);var s,r=e.getRequestInfo(t),a=null,o=null;if(e._logger.info("Returned from redirect url"),window.parent!==window&&window.parent.msal)o=window.parent.callBackMappedToRenewStates[r.stateResponse];else if(i)o=window.opener.callBackMappedToRenewStates[r.stateResponse];else{if(e._navigateToLoginRequestUrl)return o=null,e._cacheStorage.setItem(l.Constants.urlHash,t),!1,void(window.parent!==window||n||(window.location.href=e._cacheStorage.getItem(l.Constants.loginRequest,this.storeAuthStateInCookie)));o=e._tokenReceivedCallback,window.location.hash=""}e.saveTokenFromHash(r),r.requestType===l.Constants.renewToken&&window.parent?(window.parent!==window?e._logger.verbose("Window is in iframe, acquiring token silently"):e._logger.verbose("acquiring token interactive in progress"),a=r.parameters[l.Constants.accessToken]||r.parameters[l.Constants.idToken],s=l.Constants.accessToken):r.requestType===l.Constants.login&&(a=r.parameters[l.Constants.idToken],s=l.Constants.idToken);var c=r.parameters[l.Constants.errorDescription],d=r.parameters[l.Constants.error];try{o&&o.call(e,c,a,d,s)}catch(u){e._logger.error("Error occurred in token received callback function: "+u)}if(i)for(var p=0;p<window.opener.openedWindows.length;p++)window.opener.openedWindows[p].close()},t.prototype.saveAccessToken=function(t,e,n,i,a){var c,d=new o.ClientInfo(i);if(e.parameters.hasOwnProperty("scope")){for(var p=(c=e.parameters.scope).split(" "),u=this._cacheStorage.getAllAccessTokens(this.clientId,t),h=0;h<u.length;h++){var f=u[h];if(f.key.userIdentifier===n.userIdentifier){var g=f.key.scopes.split(" ");m.Utils.isIntersectingScopes(g,p)&&this._cacheStorage.removeItem(JSON.stringify(f.key))}}var b=new s.AccessTokenKey(t,this.clientId,c,d.uid,d.utid),v=new r.AccessTokenValue(e.parameters[l.Constants.accessToken],a.rawIdToken,m.Utils.expiresIn(e.parameters[l.Constants.expiresIn]).toString(),i);this._cacheStorage.setItem(JSON.stringify(b),JSON.stringify(v))}else{c=this.clientId;b=new s.AccessTokenKey(t,this.clientId,c,d.uid,d.utid),v=new r.AccessTokenValue(e.parameters[l.Constants.idToken],e.parameters[l.Constants.idToken],a.expiration,i);this._cacheStorage.setItem(JSON.stringify(b),JSON.stringify(v))}},t.prototype.saveTokenFromHash=function(t){this._logger.info("State status:"+t.stateMatch+"; Request type:"+t.requestType),this._cacheStorage.setItem(l.Constants.msalError,""),this._cacheStorage.setItem(l.Constants.msalErrorDescription,"");var e="",n="",i="";if(e=t.parameters.hasOwnProperty("scope")?t.parameters.scope.toLowerCase():this.clientId,t.parameters.hasOwnProperty(l.Constants.errorDescription)||t.parameters.hasOwnProperty(l.Constants.error)){if(this._logger.infoPii("Error :"+t.parameters[l.Constants.error]+"; Error description:"+t.parameters[l.Constants.errorDescription]),this._cacheStorage.setItem(l.Constants.msalError,t.parameters.error),this._cacheStorage.setItem(l.Constants.msalErrorDescription,t.parameters[l.Constants.errorDescription]),t.requestType===l.Constants.login&&(this._loginInProgress=!1,this._cacheStorage.setItem(l.Constants.loginError,t.parameters[l.Constants.errorDescription]+":"+t.parameters[l.Constants.error]),n=l.Constants.authority+l.Constants.resourceDelimeter+t.stateResponse),t.requestType===l.Constants.renewToken){this._acquireTokenInProgress=!1,n=l.Constants.authority+l.Constants.resourceDelimeter+t.stateResponse;var s=null!==this.getUser()?this.getUser().userIdentifier:"";i=l.Constants.acquireTokenUser+l.Constants.resourceDelimeter+s+l.Constants.resourceDelimeter+t.stateResponse}}else if(t.stateMatch){var r;this._logger.info("State is right"),t.parameters.hasOwnProperty(l.Constants.sessionState)&&this._cacheStorage.setItem(l.Constants.msalSessionState,t.parameters[l.Constants.sessionState]);var a="";if(t.parameters.hasOwnProperty(l.Constants.accessToken)){this._logger.info("Fragment has access token"),this._acquireTokenInProgress=!1;var d=void 0;r=t.parameters.hasOwnProperty(l.Constants.idToken)?new c.IdToken(t.parameters[l.Constants.idToken]):new c.IdToken(this._cacheStorage.getItem(l.Constants.idTokenKey)),n=l.Constants.authority+l.Constants.resourceDelimeter+t.stateResponse;var p=void 0;m.Utils.isEmpty(this._cacheStorage.getItem(n))||(p=this._cacheStorage.getItem(n),p=m.Utils.replaceFirstPath(p,r.tenantId)),t.parameters.hasOwnProperty(l.Constants.clientInfo)?(a=t.parameters[l.Constants.clientInfo],d=h.User.createUser(r,new o.ClientInfo(a),p)):(this._logger.warning("ClientInfo not received in the response from AAD"),d=h.User.createUser(r,new o.ClientInfo(a),p)),i=l.Constants.acquireTokenUser+l.Constants.resourceDelimeter+d.userIdentifier+l.Constants.resourceDelimeter+t.stateResponse;var u=void 0;m.Utils.isEmpty(this._cacheStorage.getItem(i))||(u=JSON.parse(this._cacheStorage.getItem(i)),d&&u&&m.Utils.compareObjects(d,u)?(this.saveAccessToken(p,t,d,a,r),this._logger.info("The user object received in the response is the same as the one passed in the acquireToken request")):this._logger.warning("The user object created from the response is not the same as the one passed in the acquireToken request"))}if(t.parameters.hasOwnProperty(l.Constants.idToken)&&e.indexOf(this.clientId)>-1){this._logger.info("Fragment has id token"),this._loginInProgress=!1,r=new c.IdToken(t.parameters[l.Constants.idToken]),t.parameters.hasOwnProperty(l.Constants.clientInfo)?a=t.parameters[l.Constants.clientInfo]:this._logger.warning("ClientInfo not received in the response from AAD"),n=l.Constants.authority+l.Constants.resourceDelimeter+t.stateResponse;p=void 0;m.Utils.isEmpty(this._cacheStorage.getItem(n))||(p=this._cacheStorage.getItem(n),p=m.Utils.replaceFirstPath(p,r.tenantId)),this._user=h.User.createUser(r,new o.ClientInfo(a),p),r&&r.nonce?r.nonce!==this._cacheStorage.getItem(l.Constants.nonceIdToken,this.storeAuthStateInCookie)?(this._user=null,this._cacheStorage.setItem(l.Constants.loginError,"Nonce Mismatch. Expected Nonce: "+this._cacheStorage.getItem(l.Constants.nonceIdToken)+",Actual Nonce: "+r.nonce),this._logger.error("Nonce Mismatch.Expected Nonce: "+this._cacheStorage.getItem(l.Constants.nonceIdToken)+",Actual Nonce: "+r.nonce)):(this._cacheStorage.setItem(l.Constants.idTokenKey,t.parameters[l.Constants.idToken]),this._cacheStorage.setItem(l.Constants.msalClientInfo,a),this.saveAccessToken(p,t,this._user,a,r)):(n=t.stateResponse,i=t.stateResponse,this._logger.error("Invalid id_token received in the response"),t.parameters.error="invalid idToken",t.parameters.error_description="Invalid idToken. idToken: "+t.parameters[l.Constants.idToken],this._cacheStorage.setItem(l.Constants.msalError,"invalid idToken"),this._cacheStorage.setItem(l.Constants.msalErrorDescription,"Invalid idToken. idToken: "+t.parameters[l.Constants.idToken]))}}else n=t.stateResponse,i=t.stateResponse,this._logger.error("State Mismatch.Expected State: "+this._cacheStorage.getItem(l.Constants.stateLogin)+",Actual State: "+t.stateResponse),t.parameters.error="Invalid_state",t.parameters.error_description="Invalid_state. state: "+t.stateResponse,this._cacheStorage.setItem(l.Constants.msalError,"Invalid_state"),this._cacheStorage.setItem(l.Constants.msalErrorDescription,"Invalid_state. state: "+t.stateResponse);this._cacheStorage.setItem(l.Constants.renewStatus+t.stateResponse,l.Constants.tokenRenewStatusCompleted),this._cacheStorage.removeAcquireTokenEntries(n,i)},t.prototype.isCallback=function(t){t=this.getHash(t);var e=m.Utils.deserialize(t);return e.hasOwnProperty(l.Constants.errorDescription)||e.hasOwnProperty(l.Constants.error)||e.hasOwnProperty(l.Constants.accessToken)||e.hasOwnProperty(l.Constants.idToken)},t.prototype.getHash=function(t){return t.indexOf("#/")>-1?t=t.substring(t.indexOf("#/")+2):t.indexOf("#")>-1&&(t=t.substring(1)),t},t.prototype.getRequestInfo=function(t){t=this.getHash(t);var e=m.Utils.deserialize(t),n=new u.TokenResponse;if(e&&(n.parameters=e,e.hasOwnProperty(l.Constants.errorDescription)||e.hasOwnProperty(l.Constants.error)||e.hasOwnProperty(l.Constants.accessToken)||e.hasOwnProperty(l.Constants.idToken))){n.valid=!0;var i=void 0;if(!e.hasOwnProperty("state"))return n;if(i=e.state,n.stateResponse=i,i===this._cacheStorage.getItem(l.Constants.stateLogin,this.storeAuthStateInCookie))return n.requestType=l.Constants.login,n.stateMatch=!0,n;if(i===this._cacheStorage.getItem(l.Constants.stateAcquireToken))return n.requestType=l.Constants.renewToken,n.stateMatch=!0,n;if(!n.stateMatch){n.requestType=window.requestType;for(var s=window.renewStates,r=0;r<s.length;r++)if(s[r]===n.stateResponse){n.stateMatch=!0;break}}}return n},t.prototype.getScopeFromState=function(t){if(t){var e=t.indexOf("|");if(e>-1&&e+1<t.length)return t.substring(e+1)}return""},t.prototype.getUserState=function(t){if(t){var e=t.indexOf("|");if(e>-1&&e+1<t.length)return t.substring(e+1)}return""},t.prototype.isInIframe=function(){return window.parent!==window},t.prototype.loginInProgress=function(){return!!this._cacheStorage.getItem(l.Constants.urlHash)||this._loginInProgress},t.prototype.getHostFromUri=function(t){var e=String(t).replace(/^(https?:)\/\//,"");return e=e.split("/")[0]},t.prototype.getScopesForEndpoint=function(t){if(this._unprotectedResources.length>0)for(var e=0;e<this._unprotectedResources.length;e++)if(t.indexOf(this._unprotectedResources[e])>-1)return null;if(this._protectedResourceMap.size>0)for(var n=0,i=Array.from(this._protectedResourceMap.keys());n<i.length;n++){var s=i[n];if(t.indexOf(s)>-1)return this._protectedResourceMap.get(s)}return t.indexOf("http://")>-1||t.indexOf("https://")>-1?this.getHostFromUri(t)===this.getHostFromUri(this._redirectUri)?new Array(this.clientId):null:new Array(this.clientId)},t.prototype.setloginInProgress=function(t){this._loginInProgress=t},t.prototype.getAcquireTokenInProgress=function(){return this._acquireTokenInProgress},t.prototype.setAcquireTokenInProgress=function(t){this._acquireTokenInProgress=t},t.prototype.getLogger=function(){return this._logger},i.__decorate([y],t.prototype,"acquireTokenSilent",null),t}();e.UserAgentApplication=_},GJmQ:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e=!1){return n=>n.lift(new r(t,e))}class r{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new a(t,this.predicate,this.inclusive))}}class a extends i.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}},GhFG:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("7+k4")},GyhO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("LRne"),s=n("0EUg");function r(...t){return Object(s.a)()(Object(i.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("8Qeq"),s=n("7o/Q"),r=n("2QA8"),a=n("gRHU");var o=n("kJWO"),l=n("mCNh"),c=n("2fFW");class d{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const e=new d;return e.source=this,e.operator=t,e}subscribe(t,e,n){const{operator:i}=this,o=function(t,e,n){if(t){if(t instanceof s.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new s.a(t,e,n):new s.a(a.a)}(t,e,n);if(i?o.add(i.call(o,this.source)):o.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),c.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(i.a)(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=p(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:Object(l.b)(t)(this)}toPromise(t){return new(t=p(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}function p(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}d.create=t=>new d(t)},Hm89:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp");e.BehaviorSubject=i.BehaviorSubject},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IheW:function(t,e,n){"use strict";n.r(e),n.d(e,"HTTP_INTERCEPTORS",function(){return A}),n.d(e,"HttpBackend",function(){return u}),n.d(e,"HttpClient",function(){return E}),n.d(e,"HttpClientJsonpModule",function(){return Y}),n.d(e,"HttpClientModule",function(){return W}),n.d(e,"HttpClientXsrfModule",function(){return $}),n.d(e,"HttpErrorResponse",function(){return S}),n.d(e,"HttpEventType",function(){return i}),n.d(e,"HttpHandler",function(){return p}),n.d(e,"HttpHeaderResponse",function(){return x}),n.d(e,"HttpHeaders",function(){return h}),n.d(e,"HttpParams",function(){return g}),n.d(e,"HttpRequest",function(){return _}),n.d(e,"HttpResponse",function(){return C}),n.d(e,"HttpResponseBase",function(){return w}),n.d(e,"HttpUrlEncodingCodec",function(){return m}),n.d(e,"HttpXhrBackend",function(){return F}),n.d(e,"HttpXsrfTokenExtractor",function(){return B}),n.d(e,"JsonpClientBackend",function(){return P}),n.d(e,"JsonpInterceptor",function(){return N}),n.d(e,"XhrFactory",function(){return R}),n.d(e,"\u0275HttpInterceptingHandler",function(){return U}),n.d(e,"\u0275angular_packages_common_http_http_a",function(){return D}),n.d(e,"\u0275angular_packages_common_http_http_b",function(){return O}),n.d(e,"\u0275angular_packages_common_http_http_c",function(){return q}),n.d(e,"\u0275angular_packages_common_http_http_d",function(){return L}),n.d(e,"\u0275angular_packages_common_http_http_e",function(){return j}),n.d(e,"\u0275angular_packages_common_http_http_f",function(){return V}),n.d(e,"\u0275angular_packages_common_http_http_g",function(){return H}),n.d(e,"\u0275angular_packages_common_http_http_h",function(){return z});var i,s=n("8Y7J"),r=n("LRne"),a=n("HDdC"),o=n("bOdf"),l=n("pLZG"),c=n("lJxs"),d=n("SVse");class p{}class u{}class h{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),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 h?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 h;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof h?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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.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 m{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,"/")}class g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new m,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],a=n.get(s)||[];a.push(r),n.set(s,a)});return 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"})}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 g({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(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(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)}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _{constructor(t,e,n,i){let s;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)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new h),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?"),i=-1===n?"?":n<e.length-1?"&":"";this.urlWithParams=e+i+t}}else this.params=new g,this.urlWithParams=e}serializeBody(){return null===this.body?null:b(this.body)||v(this.body)||y(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?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||y(this.body)?null:v(this.body)?this.body.type||null:b(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let o=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(o=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new _(e,n,s,{params:l,headers:o,reportProgress:a,responseType:i,withCredentials:r})}}!function(t){t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User"}(i||(i={}));class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new h,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 x extends w{constructor(t={}){super(t),this.type=i.ResponseHeader}clone(t={}){return new x({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 C extends w{constructor(t={}){super(t),this.type=i.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({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 S extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`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,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}class E{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof _)i=t;else{let s,r;s=n.headers instanceof h?n.headers:new h(n.headers),n.params&&(r=n.params instanceof g?n.params:new g({fromObject:n.params})),i=new _(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof _||"events"===n.observe)return s;const a=s.pipe(Object(l.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(Object(c.a)(t=>t.body))}case"response":return a;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 g).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))}}E.decorators=[{type:s.Injectable}],E.ctorParameters=()=>[{type:p}];class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const A=new s.InjectionToken("HTTP_INTERCEPTORS");class D{intercept(t,e){return e.handle(t)}}D.decorators=[{type:s.Injectable}];let T=0;class O{}class P{constructor(t,e){this.callbackMap=t,this.document=e,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+T++}handle(t){if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new a.a(e=>{const n=this.nextCallback(),s=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${n}$1`),r=this.document.createElement("script");r.src=s;let a=null,o=!1,l=!1;this.callbackMap[n]=t=>{delete this.callbackMap[n],l||(a=t,o=!0)};const c=()=>{r.parentNode&&r.parentNode.removeChild(r),delete this.callbackMap[n]},d=t=>{l||this.resolvedPromise.then(()=>{c(),o?(e.next(new C({body:a,status:200,statusText:"OK",url:s})),e.complete()):e.error(new S({url:s,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},p=t=>{l||(c(),e.error(new S({error:t,status:0,statusText:"JSONP Error",url:s})))};return r.addEventListener("load",d),r.addEventListener("error",p),this.document.body.appendChild(r),e.next({type:i.Sent}),()=>{l=!0,r.removeEventListener("load",d),r.removeEventListener("error",p),c()}})}}P.decorators=[{type:s.Injectable}],P.ctorParameters=()=>[{type:O},{type:void 0,decorators:[{type:s.Inject,args:[d.DOCUMENT]}]}];class N{constructor(t){this.jsonp=t}intercept(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)}}N.decorators=[{type:s.Injectable}],N.ctorParameters=()=>[{type:P}];const M=/^\)\]\}',?\n/;class R{}class L{constructor(){}build(){return new XMLHttpRequest}}L.decorators=[{type:s.Injectable}],L.ctorParameters=()=>[];class F{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.a(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 r=null;const a=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new h(n.getAllResponseHeaders()),a=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 r=new x({headers:s,status:e,statusText:i,url:a}),r},o=()=>{let{headers:i,status:s,statusText:r,url:o}=a(),l=null;204!==s&&(l=void 0===n.response?n.responseText:n.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(M,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=t,c&&(c=!1,l={error:d,text:l})}}c?(e.next(new C({body:l,headers:i,status:s,statusText:r,url:o||void 0})),e.complete()):e.error(new S({error:l,headers:i,status:s,statusText:r,url:o||void 0}))},l=t=>{const{url:i}=a(),s=new S({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let c=!1;const d=s=>{c||(e.next(a()),c=!0);let r={type:i.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(r.total=s.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},p=t=>{let n={type:i.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",l),t.reportProgress&&(n.addEventListener("progress",d),null!==s&&n.upload&&n.upload.addEventListener("progress",p)),n.send(s),e.next({type:i.Sent}),()=>{n.removeEventListener("error",l),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",d),null!==s&&n.upload&&n.upload.removeEventListener("progress",p)),n.readyState!==n.DONE&&n.abort()}})}}F.decorators=[{type:s.Injectable}],F.ctorParameters=()=>[{type:R}];const j=new s.InjectionToken("XSRF_COOKIE_NAME"),V=new s.InjectionToken("XSRF_HEADER_NAME");class B{}class H{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=Object(d["\u0275parseCookieValue"])(t,this.cookieName),this.lastCookieString=t),this.lastToken}}H.decorators=[{type:s.Injectable}],H.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[d.DOCUMENT]}]},{type:String,decorators:[{type:s.Inject,args:[s.PLATFORM_ID]}]},{type:String,decorators:[{type:s.Inject,args:[j]}]}];class z{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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}z.decorators=[{type:s.Injectable}],z.ctorParameters=()=>[{type:B},{type:String,decorators:[{type:s.Inject,args:[V]}]}];class U{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(A,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}function q(){return"object"==typeof window?window:{}}U.decorators=[{type:s.Injectable}],U.ctorParameters=()=>[{type:u},{type:s.Injector}];class ${static disable(){return{ngModule:$,providers:[{provide:z,useClass:D}]}}static withOptions(t={}){return{ngModule:$,providers:[t.cookieName?{provide:j,useValue:t.cookieName}:[],t.headerName?{provide:V,useValue:t.headerName}:[]]}}}$.decorators=[{type:s.NgModule,args:[{providers:[z,{provide:A,useExisting:z,multi:!0},{provide:B,useClass:H},{provide:j,useValue:"XSRF-TOKEN"},{provide:V,useValue:"X-XSRF-TOKEN"}]}]}];class W{}W.decorators=[{type:s.NgModule,args:[{imports:[$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[E,{provide:p,useClass:U},F,{provide:u,useExisting:F},L,{provide:R,useExisting:L}]}]}];class Y{}Y.decorators=[{type:s.NgModule,args:[{providers:[P,{provide:O,useFactory:q},{provide:A,useClass:N,multi:!0}]}]}]},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("Y/cZ");class s extends i.a{constructor(t,e=i.a.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.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}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function a(t){return e=>0===t?Object(r.b)():e.lift(new o(t))}class o{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends i.a{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()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("zx2A");function s(t){return function(e){const n=new r(t),i=e.lift(n);return n.caught=i}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new a(t,this.selector,this.caught))}}class a extends i.b{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 s=new i.a(this);this.add(s);const r=Object(i.c)(n,s);r!==s&&this.add(r)}}}},"JX/b":function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r=n("8Y7J"),a=n("SVse"),o=n("oWlK"),l=n("dQgk"),c=n("WFZd");r.Injectable();var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(Window);e.WindowWrapper=d;var p=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:o.MSAL_CONFIG,useValue:e},o.MsalService,{provide:d,useValue:window}]}},t.decorators=[{type:r.NgModule,args:[{imports:[a.CommonModule],declarations:[],providers:[l.MsalGuard,c.BroadcastService]}]}],t.ctorParameters=function(){return[]},t}();e.MsalModule=p},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("GyhO"),s=n("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},K4wu:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("3Qpg")},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("D0XW");function r(t,e=s.a){return n=>n.lift(new a(t,e))}class a{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new o(t,this.dueTime,this.scheduler))}}class o extends i.a{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()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new r(t,e,n))}}class r{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))}}class a extends i.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,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(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}},KqfI:function(t,e,n){"use strict";function i(){}n.d(e,"a",function(){return i})},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("z+Ro"),s=n("yCtX"),r=n("jZKg");function a(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},"NHP+":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("XNiG"),s=n("quSY");class r extends i.a{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(t){return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),s.a.EMPTY):super._subscribe(t)}next(t){this.hasCompleted||(this.value=t,this.hasNext=!0)}error(t){this.hasCompleted||super.error(t)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return i})},NJ9Y:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("sVev"),s=n("pLZG"),r=n("BFxc"),a=n("XDbj"),o=n("xbPD"),l=n("SpAZ");function c(t,e){const n=arguments.length>=2;return c=>c.pipe(t?Object(s.a)((e,n)=>t(e,n,c)):l.a,Object(r.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new i.a))}},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("Cfvw"),r=n("EY2u");function a(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(s.a)(n):Object(r.b)()).subscribe(e)})}},NrNb:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return s}),n.d(e,"__assign",function(){return r}),n.d(e,"__rest",function(){return a}),n.d(e,"__decorate",function(){return o}),n.d(e,"__param",function(){return l}),n.d(e,"__metadata",function(){return c}),n.d(e,"__awaiter",function(){return d}),n.d(e,"__generator",function(){return p}),n.d(e,"__exportStar",function(){return u}),n.d(e,"__values",function(){return h}),n.d(e,"__read",function(){return m}),n.d(e,"__spread",function(){return f}),n.d(e,"__await",function(){return g}),n.d(e,"__asyncGenerator",function(){return b}),n.d(e,"__asyncDelegator",function(){return v}),n.d(e,"__asyncValues",function(){return y});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function s(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&(n[i[s]]=t[i[s]])}return n}function o(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,i){e(n,i,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,i){return new(n||(n=Promise))(function(s,r){function a(t){try{l(i.next(t))}catch(e){r(e)}}function o(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){t.done?s(t.value):new n(function(e){e(t.value)}).then(a,o)}l((i=i.apply(t,e||[])).next())})}function p(t,e){var n,i,s,r,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(r){return function(o){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(s=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[0,s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(s=a.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(o){r=[6,o],i=0}finally{n=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}}function u(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function h(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function f(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function b(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,s=n.apply(t,e||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){s[t]&&(i[t]=function(e){return new Promise(function(n,i){r.push([t,e,n,i])>1||o(t,e)})})}function o(t,e){try{(n=s[t](e)).value instanceof g?Promise.resolve(n.value.v).then(l,c):d(r[0][2],n)}catch(i){d(r[0][3],i)}var n}function l(t){o("next",t)}function c(t){o("throw",t)}function d(t,e){t(e),r.shift(),r.length&&o(r[0][0],r[0][1])}}function v(t){var e,n;return e={},i("next"),i("throw",function(t){throw t}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,s){t[i]&&(e[i]=function(e){return(n=!n)?{value:g(t[i](e)),done:"return"===i}:s?s(e):e})}}function y(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):h(t)}},Nv8m:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("DH7j"),s=n("yCtX"),r=n("l7GE"),a=n("ZUHj");function o(...t){if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(s.a)(t,void 0).lift(new l)}class l{call(t,e){return e.subscribe(new c(t))}}class c extends r.a{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n<e&&!this.hasFirst;n++){const e=t[n],i=Object(a.a)(this,e,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}}notifyNext(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==n){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}},OA6I:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("wGW3")},OQgR:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return p});var i=n("7o/Q"),s=n("quSY"),r=n("HDdC"),a=n("XNiG");function o(t,e,n,i){return s=>s.lift(new l(t,e,n,i))}class l{constructor(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}call(t,e){return e.subscribe(new c(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class c extends i.a{constructor(t,e,n,i,s){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=s,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let i,s=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(r){this.error(r)}else i=t;if(!s){s=this.subjectSelector?this.subjectSelector():new a.a,n.set(e,s);const t=new p(e,s,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new p(e,s))}catch(r){return void this.error(r)}this.add(t.subscribe(new d(e,s,this)))}}s.closed||s.next(i)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class d extends i.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class p extends r.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new s.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&e.add(new u(n)),e.add(i.subscribe(t)),e}}class u extends s.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}},PSD3:function(t,e,n){t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function c(t,e,n){return(c=l()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var s=new(Function.bind.apply(t,i));return n&&o(s,n.prototype),s}).apply(null,arguments)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?d(t):e}function u(t){var e=l();return function(){var n,i=a(t);if(e){var s=a(this).constructor;n=Reflect.construct(i,arguments,s)}else n=i.apply(this,arguments);return p(this,n)}}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}function m(t,e,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=h(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(n):s.value}})(t,e,n||t)}var f="SweetAlert2:",g=function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e},b=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},v=function(t){return Object.keys(t).map(function(e){return t[e]})},y=function(t){return Array.prototype.slice.call(t)},_=function(e){console.warn("".concat(f," ").concat("object"===t(e)?e.join(" "):e))},w=function(t){console.error("".concat(f," ").concat(t))},x=[],C=function(t){-1===x.indexOf(t)&&(x.push(t),_(t))},S=function(t,e){C('"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'))},k=function(t){return"function"==typeof t?t():t},E=function(t){return t&&"function"==typeof t.toPromise},I=function(t){return E(t)?t.toPromise():Promise.resolve(t)},A=function(t){return t&&Promise.resolve(t)===t},D=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),T=function(e){return"object"===t(e)&&e.jquery},O=function(t){return t instanceof Element||T(t)},P=function(e){var n={};return"object"!==t(e[0])||O(e[0])?["title","html","icon"].forEach(function(i,s){var r=e[s];"string"==typeof r||O(r)?n[i]=r:void 0!==r&&w("Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(t(r)))}):s(n,e[0]),n},N="swal2-",M=function(t){var e={};for(var n in t)e[t[n]]=N+t[n];return e},R=M(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),L=M(["success","warning","info","question","error"]),F=function(){return document.body.querySelector(".".concat(R.container))},j=function(t){var e=F();return e?e.querySelector(t):null},V=function(t){return j(".".concat(t))},B=function(){return V(R.popup)},H=function(){return V(R.icon)},z=function(){return V(R.title)},U=function(){return V(R.content)},q=function(){return V(R["html-container"])},$=function(){return V(R.image)},W=function(){return V(R["progress-steps"])},Y=function(){return V(R["validation-message"])},G=function(){return j(".".concat(R.actions," .").concat(R.confirm))},K=function(){return j(".".concat(R.actions," .").concat(R.deny))},Z=function(){return V(R["input-label"])},X=function(){return j(".".concat(R.loader))},Q=function(){return j(".".concat(R.actions," .").concat(R.cancel))},J=function(){return V(R.actions)},tt=function(){return V(R.header)},et=function(){return V(R.footer)},nt=function(){return V(R["timer-progress-bar"])},it=function(){return V(R.close)},st='\n  a[href],\n  area[href],\n  input:not([disabled]),\n  select:not([disabled]),\n  textarea:not([disabled]),\n  button:not([disabled]),\n  iframe,\n  object,\n  embed,\n  [tabindex="0"],\n  [contenteditable],\n  audio[controls],\n  video[controls],\n  summary\n',rt=function(){var t=y(B().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return(t=parseInt(t.getAttribute("tabindex")))>(e=parseInt(e.getAttribute("tabindex")))?1:t<e?-1:0}),e=y(B().querySelectorAll(st)).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return g(t.concat(e)).filter(function(t){return Et(t)})},at=function(){return!ot()&&!document.body.classList.contains(R["no-backdrop"])},ot=function(){return document.body.classList.contains(R["toast-shown"])},lt=function(){return B().hasAttribute("data-loading")},ct={previousBodyPadding:null},dt=function(t,e){if(t.textContent="",e){var n=(new DOMParser).parseFromString(e,"text/html");y(n.querySelector("head").childNodes).forEach(function(e){t.appendChild(e)}),y(n.querySelector("body").childNodes).forEach(function(e){t.appendChild(e)})}},pt=function(t,e){if(!e)return!1;for(var n=e.split(/\s+/),i=0;i<n.length;i++)if(!t.classList.contains(n[i]))return!1;return!0},ut=function(t,e){y(t.classList).forEach(function(n){-1===v(R).indexOf(n)&&-1===v(L).indexOf(n)&&-1===v(e.showClass).indexOf(n)&&t.classList.remove(n)})},ht=function(e,n,i){if(ut(e,n),n.customClass&&n.customClass[i]){if("string"!=typeof n.customClass[i]&&!n.customClass[i].forEach)return _("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(t(n.customClass[i]),'"'));vt(e,n.customClass[i])}};function mt(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return _t(t,R[e]);case"checkbox":return t.querySelector(".".concat(R.checkbox," input"));case"radio":return t.querySelector(".".concat(R.radio," input:checked"))||t.querySelector(".".concat(R.radio," input:first-child"));case"range":return t.querySelector(".".concat(R.range," input"));default:return _t(t,R.input)}}var ft,gt=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}},bt=function(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))},vt=function(t,e){bt(t,e,!0)},yt=function(t,e){bt(t,e,!1)},_t=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(pt(t.childNodes[n],e))return t.childNodes[n]},wt=function(t,e,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)},xt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.display=e},Ct=function(t){t.style.display="none"},St=function(t,e,n,i){var s=t.querySelector(e);s&&(s.style[n]=i)},kt=function(t,e,n){e?xt(t,n):Ct(t)},Et=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},It=function(){return!Et(G())&&!Et(K())&&!Et(Q())},At=function(t){return!!(t.scrollHeight>t.clientHeight)},Dt=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),i=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||i>0},Tt=function(t,e){if("function"==typeof t.contains)return t.contains(e)},Ot=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=nt();Et(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(function(){n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"},10))},Pt=function(){var t=nt(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),i=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")},Nt=function(){return"undefined"==typeof window||"undefined"==typeof document},Mt='\n <div aria-labelledby="'.concat(R.title,'" aria-describedby="').concat(R.content,'" class="').concat(R.popup,'" tabindex="-1">\n   <div class="').concat(R.header,'">\n     <ul class="').concat(R["progress-steps"],'"></ul>\n     <div class="').concat(R.icon,'"></div>\n     <img class="').concat(R.image,'" />\n     <h2 class="').concat(R.title,'" id="').concat(R.title,'"></h2>\n     <button type="button" class="').concat(R.close,'"></button>\n   </div>\n   <div class="').concat(R.content,'">\n     <div id="').concat(R.content,'" class="').concat(R["html-container"],'"></div>\n     <input class="').concat(R.input,'" />\n     <input type="file" class="').concat(R.file,'" />\n     <div class="').concat(R.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(R.select,'"></select>\n     <div class="').concat(R.radio,'"></div>\n     <label for="').concat(R.checkbox,'" class="').concat(R.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(R.label,'"></span>\n     </label>\n     <textarea class="').concat(R.textarea,'"></textarea>\n     <div class="').concat(R["validation-message"],'" id="').concat(R["validation-message"],'"></div>\n   </div>\n   <div class="').concat(R.actions,'">\n     <div class="').concat(R.loader,'"></div>\n     <button type="button" class="').concat(R.confirm,'"></button>\n     <button type="button" class="').concat(R.deny,'"></button>\n     <button type="button" class="').concat(R.cancel,'"></button>\n   </div>\n   <div class="').concat(R.footer,'"></div>\n   <div class="').concat(R["timer-progress-bar-container"],'">\n     <div class="').concat(R["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),Rt=function(){var t=F();return!!t&&(t.parentNode.removeChild(t),yt([document.documentElement,document.body],[R["no-backdrop"],R["toast-shown"],R["has-column"]]),!0)},Lt=function(t){hs.isVisible()&&ft!==t.target.value&&hs.resetValidationMessage(),ft=t.target.value},Ft=function(){var t=U(),e=_t(t,R.input),n=_t(t,R.file),i=t.querySelector(".".concat(R.range," input")),s=t.querySelector(".".concat(R.range," output")),r=_t(t,R.select),a=t.querySelector(".".concat(R.checkbox," input")),o=_t(t,R.textarea);e.oninput=Lt,n.onchange=Lt,r.onchange=Lt,a.onchange=Lt,o.oninput=Lt,i.oninput=function(t){Lt(t),s.value=i.value},i.onchange=function(t){Lt(t),i.nextSibling.value=i.value}},jt=function(t){return"string"==typeof t?document.querySelector(t):t},Vt=function(t){var e=B();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Bt=function(t){"rtl"===window.getComputedStyle(t).direction&&vt(F(),R.rtl)},Ht=function(t){var e=Rt();if(Nt())w("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=R.container,e&&vt(n,R["no-transition"]),dt(n,Mt);var i=jt(t.target);i.appendChild(n),Vt(t),Bt(i),Ft()}},zt=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?Ut(e,n):e&&dt(n,e)},Ut=function(t,e){t.jquery?qt(e,t):dt(e,t.toString())},qt=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},$t=function(){if(Nt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}(),Wt=function(){var t=document.createElement("div");t.className=R["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Yt=function(t,e){var n=J(),i=X(),s=G(),r=K(),a=Q();e.showConfirmButton||e.showDenyButton||e.showCancelButton||Ct(n),ht(n,e,"actions"),Kt(s,"confirm",e),Kt(r,"deny",e),Kt(a,"cancel",e),Gt(s,r,a,e),e.reverseButtons&&(n.insertBefore(a,i),n.insertBefore(r,i),n.insertBefore(s,i)),dt(i,e.loaderHtml),ht(i,e,"loader")};function Gt(t,e,n,i){if(!i.buttonsStyling)return yt([t,e,n],R.styled);vt([t,e,n],R.styled),i.confirmButtonColor&&(t.style.backgroundColor=i.confirmButtonColor),i.denyButtonColor&&(e.style.backgroundColor=i.denyButtonColor),i.cancelButtonColor&&(n.style.backgroundColor=i.cancelButtonColor)}function Kt(t,e,n){kt(t,n["show".concat(b(e),"Button")],"inline-block"),dt(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=R[e],ht(t,n,"".concat(e,"Button")),vt(t,n["".concat(e,"ButtonClass")])}function Zt(t,e){"string"==typeof e?t.style.background=e:e||vt([document.documentElement,document.body],R["no-backdrop"])}function Xt(t,e){e in R?vt(t,R[e]):(_('The "position" parameter is not valid, defaulting to "center"'),vt(t,R.center))}function Qt(t,e){if(e&&"string"==typeof e){var n="grow-".concat(e);n in R&&vt(t,R[n])}}var Jt=function(t,e){var n=F();if(n){Zt(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&_('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),Xt(n,e.position),Qt(n,e.grow),ht(n,e,"container");var i=document.body.getAttribute("data-swal2-queue-step");i&&(n.setAttribute("data-queue-step",i),document.body.removeAttribute("data-swal2-queue-step"))}},te={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},ee=["input","file","range","select","radio","checkbox","textarea"],ne=function(t,e){var n=U(),i=te.innerParams.get(t),s=!i||e.input!==i.input;ee.forEach(function(t){var i=R[t],r=_t(n,i);re(t,e.inputAttributes),r.className=i,s&&Ct(r)}),e.input&&(s&&ie(e),ae(e))},ie=function(t){if(!de[t.input])return w('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=ce(t.input),n=de[t.input](e,t);xt(n),setTimeout(function(){gt(n)})},se=function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}},re=function(t,e){var n=mt(U(),t);if(n)for(var i in se(n),e)"range"===t&&"placeholder"===i||n.setAttribute(i,e[i])},ae=function(t){var e=ce(t.input);t.customClass&&vt(e,t.customClass.input)},oe=function(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},le=function(t,e,n){if(n.inputLabel){t.id=R.input;var i=document.createElement("label"),s=R["input-label"];i.setAttribute("for",t.id),i.className=s,vt(i,n.customClass.inputLabel),i.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",i)}},ce=function(t){var e=R[t]?R[t]:R.input;return _t(U(),e)},de={};de.text=de.email=de.password=de.number=de.tel=de.url=function(e,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?e.value=n.inputValue:A(n.inputValue)||_('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(n.inputValue),'"')),le(e,e,n),oe(e,n),e.type=n.input,e},de.file=function(t,e){return le(t,t,e),oe(t,e),t},de.range=function(t,e){var n=t.querySelector("input"),i=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,i.value=e.inputValue,le(n,t,e),t},de.select=function(t,e){if(t.textContent="",e.inputPlaceholder){var n=document.createElement("option");dt(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return le(t,t,e),t},de.radio=function(t){return t.textContent="",t},de.checkbox=function(t,e){var n=mt(U(),"checkbox");n.value=1,n.id=R.checkbox,n.checked=Boolean(e.inputValue);var i=t.querySelector("span");return dt(i,e.inputPlaceholder),t},de.textarea=function(t,e){t.value=e.inputValue,oe(t,e),le(t,t,e);var n=function(t){return parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight)};if("MutationObserver"in window){var i=parseInt(window.getComputedStyle(B()).width);new MutationObserver(function(){var e=t.offsetWidth+n(B())+n(U());B().style.width=e>i?"".concat(e,"px"):null}).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var pe=function(t,e){var n=q();ht(n,e,"htmlContainer"),e.html?(zt(e.html,n),xt(n,"block")):e.text?(n.textContent=e.text,xt(n,"block")):Ct(n),ne(t,e),ht(U(),e,"content")},ue=function(t,e){var n=et();kt(n,e.footer),e.footer&&zt(e.footer,n),ht(n,e,"footer")},he=function(t,e){var n=it();dt(n,e.closeButtonHtml),ht(n,e,"closeButton"),kt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},me=function(t,e){var n=te.innerParams.get(t),i=H();return n&&e.icon===n.icon?(be(i,e),void fe(i,e)):e.icon||e.iconHtml?e.icon&&-1===Object.keys(L).indexOf(e.icon)?(w('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),Ct(i)):(xt(i),be(i,e),fe(i,e),void vt(i,e.showClass.icon)):Ct(i)},fe=function(t,e){for(var n in L)e.icon!==n&&yt(t,L[n]);vt(t,L[e.icon]),ve(t,e),ge(),ht(t,e,"icon")},ge=function(){for(var t=B(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),i=0;i<n.length;i++)n[i].style.backgroundColor=e},be=function(t,e){t.textContent="",e.iconHtml?dt(t,ye(e.iconHtml)):"success"===e.icon?dt(t,'\n      <div class="swal2-success-circular-line-left"></div>\n      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    '):"error"===e.icon?dt(t,'\n      <span class="swal2-x-mark">\n        <span class="swal2-x-mark-line-left"></span>\n        <span class="swal2-x-mark-line-right"></span>\n      </span>\n    '):dt(t,ye({question:"?",warning:"!",info:"i"}[e.icon]))},ve=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var n=0,i=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<i.length;n++){var s=i[n];St(t,s,"backgroundColor",e.iconColor)}St(t,".swal2-success-ring","borderColor",e.iconColor)}},ye=function(t){return'<div class="'.concat(R["icon-content"],'">').concat(t,"</div>")},_e=function(t,e){var n=$();if(!e.imageUrl)return Ct(n);xt(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),wt(n,"width",e.imageWidth),wt(n,"height",e.imageHeight),n.className=R.image,ht(n,e,"image")},we=[],xe=function(t){S("Swal.queue()","async/await");var e=this;we=t;var n=function(t,e){we=[],t(e)},i=[];return new Promise(function(t){!function s(r,a){r<we.length?(document.body.setAttribute("data-swal2-queue-step",r),e.fire(we[r]).then(function(e){void 0!==e.value?(i.push(e.value),s(r+1,a)):n(t,{dismiss:e.dismiss})})):n(t,{value:i})}(0)})},Ce=function(){return F()&&F().getAttribute("data-queue-step")},Se=function(t,e){return e&&e<we.length?we.splice(e,0,t):we.push(t)},ke=function(t){void 0!==we[t]&&we.splice(t,1)},Ee=function(t){var e=document.createElement("li");return vt(e,R["progress-step"]),dt(e,t),e},Ie=function(t){var e=document.createElement("li");return vt(e,R["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Ae=function(t,e){var n=W();if(!e.progressSteps||0===e.progressSteps.length)return Ct(n);xt(n),n.textContent="";var i=parseInt(void 0===e.currentProgressStep?Ce():e.currentProgressStep);i>=e.progressSteps.length&&_("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(function(t,s){var r=Ee(t);if(n.appendChild(r),s===i&&vt(r,R["active-progress-step"]),s!==e.progressSteps.length-1){var a=Ie(e);n.appendChild(a)}})},De=function(t,e){var n=z();kt(n,e.title||e.titleText,"block"),e.title&&zt(e.title,n),e.titleText&&(n.innerText=e.titleText),ht(n,e,"title")},Te=function(t,e){var n=tt();ht(n,e,"header"),Ae(t,e),me(t,e),_e(t,e),De(t,e),he(t,e)},Oe=function(t,e){var n=F(),i=B();e.toast?(wt(n,"width",e.width),i.style.width="100%"):wt(i,"width",e.width),wt(i,"padding",e.padding),e.background&&(i.style.background=e.background),Ct(Y()),Pe(i,e)},Pe=function(t,e){t.className="".concat(R.popup," ").concat(Et(t)?e.showClass.popup:""),e.toast?(vt([document.documentElement,document.body],R["toast-shown"]),vt(t,R.toast)):vt(t,R.modal),ht(t,e,"popup"),"string"==typeof e.customClass&&vt(t,e.customClass),e.icon&&vt(t,R["icon-".concat(e.icon)])},Ne=function(t,e){Oe(t,e),Jt(t,e),Te(t,e),pe(t,e),Yt(t,e),ue(t,e),"function"==typeof e.didRender?e.didRender(B()):"function"==typeof e.onRender&&e.onRender(B())},Me=function(){return Et(B())},Re=function(){return G()&&G().click()},Le=function(){return K()&&K().click()},Fe=function(){return Q()&&Q().click()};function je(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return c(t,n)}function Ve(t){return function(n){r(l,n);var o=u(l);function l(){return e(this,l),o.apply(this,arguments)}return i(l,[{key:"_main",value:function(e,n){return m(a(l.prototype),"_main",this).call(this,e,s({},t,n))}}]),l}(this)}var Be=function(t){var e=B();e||hs.fire(),e=B();var n=J(),i=X();!t&&Et(G())&&(t=G()),xt(n),t&&(Ct(t),i.setAttribute("data-button-to-replace",t.className)),i.parentNode.insertBefore(i,t),vt([e,n],R.loading),xt(i),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},He=100,ze={},Ue=function(){ze.previousActiveElement&&ze.previousActiveElement.focus?(ze.previousActiveElement.focus(),ze.previousActiveElement=null):document.body&&document.body.focus()},qe=function(t){return new Promise(function(e){if(!t)return e();var n=window.scrollX,i=window.scrollY;ze.restoreFocusTimeout=setTimeout(function(){Ue(),e()},He),void 0!==n&&void 0!==i&&window.scrollTo(n,i)})},$e=function(){return ze.timeout&&ze.timeout.getTimerLeft()},We=function(){if(ze.timeout)return Pt(),ze.timeout.stop()},Ye=function(){if(ze.timeout){var t=ze.timeout.start();return Ot(t),t}},Ge=function(){var t=ze.timeout;return t&&(t.running?We():Ye())},Ke=function(t){if(ze.timeout){var e=ze.timeout.increase(t);return Ot(e,!0),e}},Ze=function(){return ze.timeout&&ze.timeout.isRunning()},Xe=!1,Qe={};function Je(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template";Qe[t]=this,Xe||(document.body.addEventListener("click",tn),Xe=!0)}var tn=function(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var n in Qe){var i=e.getAttribute(n);if(i)return void Qe[n].fire({template:i})}},en={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},nn=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],sn={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},rn=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],an=function(t){return Object.prototype.hasOwnProperty.call(en,t)},on=function(t){return-1!==nn.indexOf(t)},ln=function(t){return sn[t]},cn=function(t){an(t)||_('Unknown parameter "'.concat(t,'"'))},dn=function(t){-1!==rn.indexOf(t)&&_('The parameter "'.concat(t,'" is incompatible with toasts'))},pn=function(t){ln(t)&&S(t,ln(t))},un=function(t){for(var e in t)cn(e),t.toast&&dn(e),pn(e)},hn=Object.freeze({isValidParameter:an,isUpdatableParameter:on,isDeprecatedParameter:ln,argsToParams:P,isVisible:Me,clickConfirm:Re,clickDeny:Le,clickCancel:Fe,getContainer:F,getPopup:B,getTitle:z,getContent:U,getHtmlContainer:q,getImage:$,getIcon:H,getInputLabel:Z,getCloseButton:it,getActions:J,getConfirmButton:G,getDenyButton:K,getCancelButton:Q,getLoader:X,getHeader:tt,getFooter:et,getTimerProgressBar:nt,getFocusableElements:rt,getValidationMessage:Y,isLoading:lt,fire:je,mixin:Ve,queue:xe,getQueueStep:Ce,insertQueueStep:Se,deleteQueueStep:ke,showLoading:Be,enableLoading:Be,getTimerLeft:$e,stopTimer:We,resumeTimer:Ye,toggleTimer:Ge,increaseTimer:Ke,isTimerRunning:Ze,bindClickHandler:Je});function mn(){if(te.innerParams.get(this)){var t=te.domCache.get(this);Ct(t.loader);var e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?xt(e[0],"inline-block"):It()&&Ct(t.actions),yt([t.popup,t.actions],R.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}function fn(t){var e=te.innerParams.get(t||this),n=te.domCache.get(t||this);return n?mt(n.content,e.input):null}var gn=function(){null===ct.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(ct.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(ct.previousBodyPadding+Wt(),"px"))},bn=function(){null!==ct.previousBodyPadding&&(document.body.style.paddingRight="".concat(ct.previousBodyPadding,"px"),ct.previousBodyPadding=null)},vn=function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!pt(document.body,R.iosfix)){var t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),vt(document.body,R.iosfix),_n(),yn()}},yn=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){var t=44;B().scrollHeight>window.innerHeight-t&&(F().style.paddingBottom="".concat(t,"px"))}},_n=function(){var t,e=F();e.ontouchstart=function(e){t=wn(e)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},wn=function(t){var e=t.target,n=F();return!(xn(t)||Cn(t)||e!==n&&(At(n)||"INPUT"===e.tagName||At(U())&&U().contains(e)))},xn=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},Cn=function(t){return t.touches&&t.touches.length>1},Sn=function(){if(pt(document.body,R.iosfix)){var t=parseInt(document.body.style.top,10);yt(document.body,R.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},kn=function(){return!!window.MSInputMethodContext&&!!document.documentMode},En=function(){var t=F(),e=B();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},In=function(){"undefined"!=typeof window&&kn()&&(En(),window.addEventListener("resize",En))},An=function(){"undefined"!=typeof window&&kn()&&window.removeEventListener("resize",En)},Dn=function(){y(document.body.children).forEach(function(t){t===F()||Tt(t,F())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})},Tn=function(){y(document.body.children).forEach(function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},On={swalPromiseResolve:new WeakMap};function Pn(t,e,n,i){ot()?Vn(t,i):(qe(n).then(function(){return Vn(t,i)}),ze.keydownTarget.removeEventListener("keydown",ze.keydownHandler,{capture:ze.keydownListenerCapture}),ze.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),at()&&(bn(),Sn(),An(),Tn()),Nn()}function Nn(){yt([document.documentElement,document.body],[R.shown,R["height-auto"],R["no-backdrop"],R["toast-shown"]])}function Mn(t){var e=B();if(e){t=Rn(t);var n=te.innerParams.get(this);if(n&&!pt(e,n.hideClass.popup)){var i=On.swalPromiseResolve.get(this);yt(e,n.showClass.popup),vt(e,n.hideClass.popup);var s=F();yt(s,n.showClass.backdrop),vt(s,n.hideClass.backdrop),Ln(this,e,n),i(t)}}}var Rn=function(t){return void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:s({isConfirmed:!1,isDenied:!1,isDismissed:!1},t)},Ln=function(t,e,n){var i=F(),s=$t&&Dt(e),r=n.onClose,a=n.onAfterClose,o=n.willClose,l=n.didClose;Fn(e,o,r),s?jn(t,e,i,n.returnFocus,l||a):Pn(t,i,n.returnFocus,l||a)},Fn=function(t,e,n){null!==e&&"function"==typeof e?e(t):null!==n&&"function"==typeof n&&n(t)},jn=function(t,e,n,i,s){ze.swalCloseEventFinishedCallback=Pn.bind(null,t,n,i,s),e.addEventListener($t,function(t){t.target===e&&(ze.swalCloseEventFinishedCallback(),delete ze.swalCloseEventFinishedCallback)})},Vn=function(t,e){setTimeout(function(){"function"==typeof e&&e(),t._destroy()})};function Bn(t,e,n){var i=te.domCache.get(t);e.forEach(function(t){i[t].disabled=n})}function Hn(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),i=0;i<n.length;i++)n[i].disabled=e;else t.disabled=e}function zn(){Bn(this,["confirmButton","denyButton","cancelButton"],!1)}function Un(){Bn(this,["confirmButton","denyButton","cancelButton"],!0)}function qn(){return Hn(this.getInput(),!1)}function $n(){return Hn(this.getInput(),!0)}function Wn(t){var e=te.domCache.get(this),n=te.innerParams.get(this);dt(e.validationMessage,t),e.validationMessage.className=R["validation-message"],n.customClass&&n.customClass.validationMessage&&vt(e.validationMessage,n.customClass.validationMessage),xt(e.validationMessage);var i=this.getInput();i&&(i.setAttribute("aria-invalid",!0),i.setAttribute("aria-describedBy",R["validation-message"]),gt(i),vt(i,R.inputerror))}function Yn(){var t=te.domCache.get(this);t.validationMessage&&Ct(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),yt(e,R.inputerror))}function Gn(){return te.domCache.get(this).progressSteps}var Kn=function(){function t(n,i){e(this,t),this.callback=n,this.remaining=i,this.running=!1,this.start()}return i(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),Zn={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function Xn(t){t.inputValidator||Object.keys(Zn).forEach(function(e){t.input===e&&(t.inputValidator=Zn[e])})}function Qn(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(_('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Jn(t){Xn(t),t.showLoaderOnConfirm&&!t.preConfirm&&_("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=k(t.animation),Qn(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),Ht(t)}var ti=["swal-title","swal-html","swal-footer"],ei=function(t){var e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};var n=e.content||e;return li(n),s(ni(n),ii(n),si(n),ri(n),ai(n),oi(n,ti))},ni=function(e){var n={};return y(e.querySelectorAll("swal-param")).forEach(function(e){ci(e,["name","value"]);var i=e.getAttribute("name"),s=e.getAttribute("value");"boolean"==typeof en[i]&&"false"===s&&(s=!1),"object"===t(en[i])&&(s=JSON.parse(s)),n[i]=s}),n},ii=function(t){var e={};return y(t.querySelectorAll("swal-button")).forEach(function(t){ci(t,["type","color","aria-label"]);var n=t.getAttribute("type");e["".concat(n,"ButtonText")]=t.innerHTML,e["show".concat(b(n),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(n,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(n,"ButtonAriaLabel")]=t.getAttribute("aria-label"))}),e},si=function(t){var e={},n=t.querySelector("swal-image");return n&&(ci(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},ri=function(t){var e={},n=t.querySelector("swal-icon");return n&&(ci(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},ai=function(t){var e={},n=t.querySelector("swal-input");n&&(ci(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));var i=t.querySelectorAll("swal-input-option");return i.length&&(e.inputOptions={},y(i).forEach(function(t){ci(t,["value"]);var n=t.getAttribute("value"),i=t.innerHTML;e.inputOptions[n]=i})),e},oi=function(t,e){var n={};for(var i in e){var s=e[i],r=t.querySelector(s);r&&(ci(r,[]),n[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},li=function(t){var e=ti.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);y(t.querySelectorAll("*")).forEach(function(n){if(n.parentNode===t){var i=n.tagName.toLowerCase();-1===e.indexOf(i)&&_("Unrecognized element <".concat(i,">"))}})},ci=function(t,e){y(t.attributes).forEach(function(n){-1===e.indexOf(n.name)&&_(['Unrecognized attribute "'.concat(n.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])})},di=10,pi=function(t){var e=F(),n=B();"function"==typeof t.willOpen?t.willOpen(n):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var i=window.getComputedStyle(document.body).overflowY;gi(e,n,t),setTimeout(function(){mi(e,n)},di),at()&&(fi(e,t.scrollbarPadding,i),Dn()),ot()||ze.previousActiveElement||(ze.previousActiveElement=document.activeElement),ui(n,t),yt(e,R["no-transition"])},ui=function(t,e){"function"==typeof e.didOpen?setTimeout(function(){return e.didOpen(t)}):"function"==typeof e.onOpen&&setTimeout(function(){return e.onOpen(t)})},hi=function t(e){var n=B();if(e.target===n){var i=F();n.removeEventListener($t,t),i.style.overflowY="auto"}},mi=function(t,e){$t&&Dt(e)?(t.style.overflowY="hidden",e.addEventListener($t,hi)):t.style.overflowY="auto"},fi=function(t,e,n){vn(),In(),e&&"hidden"!==n&&gn(),setTimeout(function(){t.scrollTop=0})},gi=function(t,e,n){vt(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),xt(e),setTimeout(function(){vt(e,n.showClass.popup),e.style.removeProperty("opacity")},di),vt([document.documentElement,document.body],R.shown),n.heightAuto&&n.backdrop&&!n.toast&&vt([document.documentElement,document.body],R["height-auto"])},bi=function(t,e){"select"===e.input||"radio"===e.input?xi(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(E(e.inputValue)||A(e.inputValue))&&Ci(t,e)},vi=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return yi(n);case"radio":return _i(n);case"file":return wi(n);default:return e.inputAutoTrim?n.value.trim():n.value}},yi=function(t){return t.checked?1:0},_i=function(t){return t.checked?t.value:null},wi=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},xi=function(e,n){var i=U(),s=function(t){return Si[n.input](i,ki(t),n)};E(n.inputOptions)||A(n.inputOptions)?(Be(G()),I(n.inputOptions).then(function(t){e.hideLoading(),s(t)})):"object"===t(n.inputOptions)?s(n.inputOptions):w("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},Ci=function(t,e){var n=t.getInput();Ct(n),I(e.inputValue).then(function(i){n.value="number"===e.input?parseFloat(i)||0:"".concat(i),xt(n),n.focus(),t.hideLoading()}).catch(function(e){w("Error in inputValue promise: ".concat(e)),n.value="",xt(n),n.focus(),t.hideLoading()})},Si={select:function(t,e,n){var i=_t(t,R.select),s=function(t,e,i){var s=document.createElement("option");s.value=i,dt(s,e),s.selected=Ei(i,n.inputValue),t.appendChild(s)};e.forEach(function(t){var e=t[0],n=t[1];if(Array.isArray(n)){var r=document.createElement("optgroup");r.label=e,r.disabled=!1,i.appendChild(r),n.forEach(function(t){return s(r,t[1],t[0])})}else s(i,n,e)}),i.focus()},radio:function(t,e,n){var i=_t(t,R.radio);e.forEach(function(t){var e=t[0],s=t[1],r=document.createElement("input"),a=document.createElement("label");r.type="radio",r.name=R.radio,r.value=e,Ei(e,n.inputValue)&&(r.checked=!0);var o=document.createElement("span");dt(o,s),o.className=R.label,a.appendChild(r),a.appendChild(o),i.appendChild(a)});var s=i.querySelectorAll("input");s.length&&s[0].focus()}},ki=function e(n){var i=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach(function(n,s){var r=n;"object"===t(r)&&(r=e(r)),i.push([s,r])}):Object.keys(n).forEach(function(s){var r=n[s];"object"===t(r)&&(r=e(r)),i.push([s,r])}),i},Ei=function(t,e){return e&&e.toString()===t.toString()},Ii=function(t,e){t.disableButtons(),e.input?Ti(t,e,"confirm"):Mi(t,e,!0)},Ai=function(t,e){t.disableButtons(),e.returnInputValueOnDeny?Ti(t,e,"deny"):Pi(t,e,!1)},Di=function(t,e){t.disableButtons(),e(D.cancel)},Ti=function(t,e,n){var i=vi(t,e);e.inputValidator?Oi(t,e,i):t.getInput().checkValidity()?"deny"===n?Pi(t,e,i):Mi(t,e,i):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},Oi=function(t,e,n){t.disableInput(),Promise.resolve().then(function(){return I(e.inputValidator(n,e.validationMessage))}).then(function(i){t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):Mi(t,e,n)})},Pi=function(t,e,n){e.showLoaderOnDeny&&Be(K()),e.preDeny?Promise.resolve().then(function(){return I(e.preDeny(n,e.validationMessage))}).then(function(e){!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===e?n:e})}):t.closePopup({isDenied:!0,value:n})},Ni=function(t,e){t.closePopup({isConfirmed:!0,value:e})},Mi=function(t,e,n){e.showLoaderOnConfirm&&Be(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then(function(){return I(e.preConfirm(n,e.validationMessage))}).then(function(e){Et(Y())||!1===e?t.hideLoading():Ni(t,void 0===e?n:e)})):Ni(t,n)},Ri=function(t,e,n,i){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return Bi(t,e,i)},e.keydownTarget=n.keydownListenerCapture?window:B(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Li=function(t,e,n){var i=rt();if(i.length)return(e+=n)===i.length?e=0:-1===e&&(e=i.length-1),i[e].focus();B().focus()},Fi=["ArrowRight","ArrowDown","Right","Down"],ji=["ArrowLeft","ArrowUp","Left","Up"],Vi=["Escape","Esc"],Bi=function(t,e,n){var i=te.innerParams.get(t);i&&(i.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Hi(t,e,i):"Tab"===e.key?zi(e,i):-1!==[].concat(Fi,ji).indexOf(e.key)?Ui(e.key):-1!==Vi.indexOf(e.key)&&qi(e,i,n))},Hi=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Re(),e.preventDefault()}},zi=function(t,e){for(var n=t.target,i=rt(),s=-1,r=0;r<i.length;r++)if(n===i[r]){s=r;break}t.shiftKey?Li(e,s,-1):Li(e,s,1),t.stopPropagation(),t.preventDefault()},Ui=function(t){if(-1!==[G(),K(),Q()].indexOf(document.activeElement)){var e=-1!==Fi.indexOf(t)?"nextElementSibling":"previousElementSibling",n=document.activeElement[e];n&&n.focus()}},qi=function(t,e,n){k(e.allowEscapeKey)&&(t.preventDefault(),n(D.esc))},$i=function(t,e,n){te.innerParams.get(t).toast?Wi(t,e,n):(Gi(e),Ki(e),Zi(t,e,n))},Wi=function(t,e,n){e.popup.onclick=function(){var e=te.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||n(D.close)}},Yi=!1,Gi=function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Yi=!0)}}},Ki=function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Yi=!0)}}},Zi=function(t,e,n){e.container.onclick=function(i){var s=te.innerParams.get(t);Yi?Yi=!1:i.target===e.container&&k(s.allowOutsideClick)&&n(D.backdrop)}};function Xi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};un(s({},e,t)),ze.currentInstance&&ze.currentInstance._destroy(),ze.currentInstance=this;var n=Qi(t,e);Jn(n),Object.freeze(n),ze.timeout&&(ze.timeout.stop(),delete ze.timeout),clearTimeout(ze.restoreFocusTimeout);var i=ts(this);return Ne(this,n),te.innerParams.set(this,n),Ji(this,i,n)}var Qi=function(t,e){var n=ei(t),i=s({},en,e,n,t);return i.showClass=s({},en.showClass,i.showClass),i.hideClass=s({},en.hideClass,i.hideClass),!1===t.animation&&(i.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},i.hideClass={}),i},Ji=function(t,e,n){return new Promise(function(i){var s=function(e){t.closePopup({isDismissed:!0,dismiss:e})};On.swalPromiseResolve.set(t,i),e.confirmButton.onclick=function(){return Ii(t,n)},e.denyButton.onclick=function(){return Ai(t,n)},e.cancelButton.onclick=function(){return Di(t,s)},e.closeButton.onclick=function(){return s(D.close)},$i(t,e,s),Ri(t,ze,n,s),bi(t,n),pi(n),es(ze,n,s),ns(e,n),setTimeout(function(){e.container.scrollTop=0})})},ts=function(t){var e={popup:B(),container:F(),content:U(),actions:J(),confirmButton:G(),denyButton:K(),cancelButton:Q(),loader:X(),closeButton:it(),validationMessage:Y(),progressSteps:W()};return te.domCache.set(t,e),e},es=function(t,e,n){var i=nt();Ct(i),e.timer&&(t.timeout=new Kn(function(){n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(xt(i),setTimeout(function(){t.timeout&&t.timeout.running&&Ot(e.timer)})))},ns=function(t,e){if(!e.toast)return k(e.allowEnterKey)?void(is(t,e)||Li(e,-1,1)):ss()},is=function(t,e){return e.focusDeny&&Et(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Et(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!Et(t.confirmButton)||(t.confirmButton.focus(),0))},ss=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};function rs(t){var e=B(),n=te.innerParams.get(this);if(!e||pt(e,n.hideClass.popup))return _("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var i={};Object.keys(t).forEach(function(e){hs.isUpdatableParameter(e)?i[e]=t[e]:_('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))});var r=s({},n,i);Ne(this,r),te.innerParams.set(this,r),Object.defineProperties(this,{params:{value:s({},this.params,t),writable:!1,enumerable:!0}})}function as(){var t=te.domCache.get(this),e=te.innerParams.get(this);e&&(t.popup&&ze.swalCloseEventFinishedCallback&&(ze.swalCloseEventFinishedCallback(),delete ze.swalCloseEventFinishedCallback),ze.deferDisposalTimer&&(clearTimeout(ze.deferDisposalTimer),delete ze.deferDisposalTimer),ls(e),cs(this))}var os,ls=function(t){"function"==typeof t.didDestroy?t.didDestroy():"function"==typeof t.onDestroy&&t.onDestroy()},cs=function(t){delete t.params,delete ze.keydownHandler,delete ze.keydownTarget,ds(te),ds(On)},ds=function(t){for(var e in t)t[e]=new WeakMap},ps=Object.freeze({hideLoading:mn,disableLoading:mn,getInput:fn,close:Mn,closePopup:Mn,closeModal:Mn,closeToast:Mn,enableButtons:zn,disableButtons:Un,enableInput:qn,disableInput:$n,showValidationMessage:Wn,resetValidationMessage:Yn,getProgressSteps:Gn,_main:Xi,update:rs,_destroy:as}),us=function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&w("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),os=this;for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];var r=Object.freeze(this.constructor.argsToParams(i));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});var a=this._main(this.params);te.promise.set(this,a)}}return i(t,[{key:"then",value:function(t){return te.promise.get(this).then(t)}},{key:"finally",value:function(t){return te.promise.get(this).finally(t)}}]),t}();s(us.prototype,ps),s(us,hn),Object.keys(ps).forEach(function(t){us[t]=function(){var e;if(os)return(e=os)[t].apply(e,arguments)}}),us.DismissReason=D,us.version="10.16.9";var hs=us;return hs.default=hs,hs}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var n=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=e);else try{n.innerHTML=e}catch(t){n.innerText=e}}(document,'.swal2-popup.swal2-toast{flex-direction:column;align-items:stretch;width:auto;padding:1.25em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;margin:0 .625em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container{padding:.625em 0 0}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex:1;flex-basis:auto!important;align-self:stretch;width:auto;height:2.2em;height:auto;margin:0 .3125em;margin-top:.3125em;padding:0}.swal2-popup.swal2-toast .swal2-styled{margin:.125em .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(100,150,200,.5)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:5px;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#2778c4;color:#fff;font-size:1em}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#d14529;color:#fff;font-size:1em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#757575;color:#fff;font-size:1em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto}.swal2-validation-message{align-items:center;justify-content:center;margin:0 -2.7em;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}')},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),s=n("D0XW"),r=n("Y7HM"),a=n("z+Ro");function o(t=0,e,n){let o=-1;return Object(r.a)(e)?o=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=s.a),new i.a(e=>{const i=Object(r.a)(t)?t:+t-n.now();return n.schedule(l,i,{index:0,period:o,subscriber:e})})}function l(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},"Ru/W":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return Object.defineProperty(t,"errorDescription",{get:function(){return"error_description"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"error",{get:function(){return"error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"scope",{get:function(){return"scope"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"acquireTokenUser",{get:function(){return"msal.acquireTokenUser"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"clientInfo",{get:function(){return"client_info"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"clientId",{get:function(){return"clientId"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"authority",{get:function(){return"msal.authority"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"idToken",{get:function(){return"id_token"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"accessToken",{get:function(){return"access_token"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"expiresIn",{get:function(){return"expires_in"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"sessionState",{get:function(){return"session_state"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"msalClientInfo",{get:function(){return"msal.client.info"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"msalError",{get:function(){return"msal.error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"msalErrorDescription",{get:function(){return"msal.error.description"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"msalSessionState",{get:function(){return"msal.session.state"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tokenKeys",{get:function(){return"msal.token.keys"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"accessTokenKey",{get:function(){return"msal.access.token.key"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"expirationKey",{get:function(){return"msal.expiration.key"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"stateLogin",{get:function(){return"msal.state.login"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"stateAcquireToken",{get:function(){return"msal.state.acquireToken"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"stateRenew",{get:function(){return"msal.state.renew"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"nonceIdToken",{get:function(){return"msal.nonce.idtoken"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"userName",{get:function(){return"msal.username"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"idTokenKey",{get:function(){return"msal.idtoken"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"loginRequest",{get:function(){return"msal.login.request"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"loginError",{get:function(){return"msal.login.error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"renewStatus",{get:function(){return"msal.token.renew.status"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"msal",{get:function(){return"msal"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"resourceDelimeter",{get:function(){return"|"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tokenRenewStatusCancelled",{get:function(){return"Canceled"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tokenRenewStatusCompleted",{get:function(){return"Completed"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"tokenRenewStatusInProgress",{get:function(){return"In Progress"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"popUpWidth",{get:function(){return this._popUpWidth},set:function(t){this._popUpWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"popUpHeight",{get:function(){return this._popUpHeight},set:function(t){this._popUpHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"login",{get:function(){return"LOGIN"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"renewToken",{get:function(){return"RENEW_TOKEN"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"unknown",{get:function(){return"UNKNOWN"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"urlHash",{get:function(){return"msal.urlHash"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"angularLoginRequest",{get:function(){return"msal.angular.login.request"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"userIdentifier",{get:function(){return"userIdentifier"},enumerable:!0,configurable:!0}),t._popUpWidth=483,t._popUpHeight=600,t}();e.Constants=i;var s=function(){function t(){}return Object.defineProperty(t,"loginProgressError",{get:function(){return"login_progress_error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"acquireTokenProgressError",{get:function(){return"acquiretoken_progress_error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"inputScopesError",{get:function(){return"input_scopes_error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"endpointResolutionError",{get:function(){return"endpoints_resolution_error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"popUpWindowError",{get:function(){return"popup_window_error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"userLoginError",{get:function(){return"user_login_error"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"userCancelledError",{get:function(){return"user_cancelled"},enumerable:!0,configurable:!0}),t}();e.ErrorCodes=s;var r=function(){function t(){}return Object.defineProperty(t,"loginProgressError",{get:function(){return"Login is in progress"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"acquireTokenProgressError",{get:function(){return"Acquire token is in progress"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"inputScopesError",{get:function(){return"Invalid value of input scopes provided"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"endpointResolutionError",{get:function(){return"Endpoints cannot be resolved"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"popUpWindowError",{get:function(){return"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},enumerable:!0,configurable:!0}),Object.defineProperty(t,"userLoginError",{get:function(){return"User login is required"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"userCancelledError",{get:function(){return"User closed the popup window and cancelled the flow"},enumerable:!0,configurable:!0}),t}();e.ErrorDescription=r},SVse:function(t,e,n){"use strict";n.r(e),n.d(e,"APP_BASE_HREF",function(){return _}),n.d(e,"AsyncPipe",function(){return ee}),n.d(e,"CommonModule",function(){return _e}),n.d(e,"CurrencyPipe",function(){return fe}),n.d(e,"DOCUMENT",function(){return l}),n.d(e,"DatePipe",function(){return ae}),n.d(e,"DecimalPipe",function(){return he}),n.d(e,"FormStyle",function(){return D}),n.d(e,"FormatWidth",function(){return O}),n.d(e,"HashLocationStrategy",function(){return x}),n.d(e,"I18nPluralPipe",function(){return le}),n.d(e,"I18nSelectPipe",function(){return ce}),n.d(e,"JsonPipe",function(){return de}),n.d(e,"KeyValuePipe",function(){return pe}),n.d(e,"LOCATION_INITIALIZED",function(){return p}),n.d(e,"Location",function(){return C}),n.d(e,"LocationStrategy",function(){return v}),n.d(e,"LowerCasePipe",function(){return ne}),n.d(e,"NgClass",function(){return Rt}),n.d(e,"NgComponentOutlet",function(){return Lt}),n.d(e,"NgForOf",function(){return jt}),n.d(e,"NgForOfContext",function(){return Ft}),n.d(e,"NgIf",function(){return Bt}),n.d(e,"NgIfContext",function(){return Ht}),n.d(e,"NgLocaleLocalization",function(){return Pt}),n.d(e,"NgLocalization",function(){return Tt}),n.d(e,"NgPlural",function(){return Yt}),n.d(e,"NgPluralCase",function(){return Gt}),n.d(e,"NgStyle",function(){return Kt}),n.d(e,"NgSwitch",function(){return qt}),n.d(e,"NgSwitchCase",function(){return $t}),n.d(e,"NgSwitchDefault",function(){return Wt}),n.d(e,"NgTemplateOutlet",function(){return Zt}),n.d(e,"NumberFormatStyle",function(){return I}),n.d(e,"NumberSymbol",function(){return P}),n.d(e,"PathLocationStrategy",function(){return w}),n.d(e,"PercentPipe",function(){return me}),n.d(e,"PlatformLocation",function(){return c}),n.d(e,"Plural",function(){return A}),n.d(e,"SlicePipe",function(){return ve}),n.d(e,"TitleCasePipe",function(){return se}),n.d(e,"TranslationWidth",function(){return T}),n.d(e,"UpperCasePipe",function(){return re}),n.d(e,"VERSION",function(){return De}),n.d(e,"ViewportScroller",function(){return Te}),n.d(e,"WeekDay",function(){return N}),n.d(e,"formatCurrency",function(){return kt}),n.d(e,"formatDate",function(){return dt}),n.d(e,"formatNumber",function(){return It}),n.d(e,"formatPercent",function(){return Et}),n.d(e,"getCurrencySymbol",function(){return nt}),n.d(e,"getLocaleCurrencyCode",function(){return G}),n.d(e,"getLocaleCurrencyName",function(){return Y}),n.d(e,"getLocaleCurrencySymbol",function(){return W}),n.d(e,"getLocaleDateFormat",function(){return H}),n.d(e,"getLocaleDateTimeFormat",function(){return U}),n.d(e,"getLocaleDayNames",function(){return L}),n.d(e,"getLocaleDayPeriods",function(){return R}),n.d(e,"getLocaleDirection",function(){return J}),n.d(e,"getLocaleEraNames",function(){return j}),n.d(e,"getLocaleExtraDayPeriodRules",function(){return X}),n.d(e,"getLocaleExtraDayPeriods",function(){return Q}),n.d(e,"getLocaleFirstDayOfWeek",function(){return V}),n.d(e,"getLocaleId",function(){return M}),n.d(e,"getLocaleMonthNames",function(){return F}),n.d(e,"getLocaleNumberFormat",function(){return $}),n.d(e,"getLocaleNumberSymbol",function(){return q}),n.d(e,"getLocalePluralCase",function(){return K}),n.d(e,"getLocaleTimeFormat",function(){return z}),n.d(e,"getLocaleWeekEndRange",function(){return B}),n.d(e,"getNumberOfCurrencyDigits",function(){return it}),n.d(e,"isPlatformBrowser",function(){return ke}),n.d(e,"isPlatformServer",function(){return Ee}),n.d(e,"isPlatformWorkerApp",function(){return Ie}),n.d(e,"isPlatformWorkerUi",function(){return Ae}),n.d(e,"registerLocaleData",function(){return Nt}),n.d(e,"\u0275BrowserPlatformLocation",function(){return u}),n.d(e,"\u0275DomAdapter",function(){return o}),n.d(e,"\u0275NullViewportScroller",function(){return Ne}),n.d(e,"\u0275PLATFORM_BROWSER_ID",function(){return we}),n.d(e,"\u0275PLATFORM_SERVER_ID",function(){return xe}),n.d(e,"\u0275PLATFORM_WORKER_APP_ID",function(){return Ce}),n.d(e,"\u0275PLATFORM_WORKER_UI_ID",function(){return Se}),n.d(e,"\u0275angular_packages_common_common_a",function(){return d}),n.d(e,"\u0275angular_packages_common_common_b",function(){return m}),n.d(e,"\u0275angular_packages_common_common_c",function(){return S}),n.d(e,"\u0275angular_packages_common_common_d",function(){return y}),n.d(e,"\u0275angular_packages_common_common_e",function(){return Xt}),n.d(e,"\u0275angular_packages_common_common_f",function(){return ye}),n.d(e,"\u0275getDOM",function(){return r}),n.d(e,"\u0275parseCookieValue",function(){return Mt}),n.d(e,"\u0275setRootDomAdapter",function(){return a});var i=n("8Y7J");let s=null;function r(){return s}function a(t){s||(s=t)}class o{}const l=new i.InjectionToken("DocumentToken");class c{}function d(){return Object(i["\u0275\u0275inject"])(u)}c.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:d,token:c,providedIn:"platform"}),c.decorators=[{type:i.Injectable,args:[{providedIn:"platform",useFactory:d}]}];const p=new i.InjectionToken("Location Initialized");class u extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=r().getLocation(),this._history=r().getHistory()}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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){h()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){h()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}function h(){return!!window.history.pushState}function m(){return new u(Object(i["\u0275\u0275inject"])(l))}function f(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 g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length,i=n-("/"===t[n-1]?1:0);return t.slice(0,i)+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}u.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:m,token:u,providedIn:"platform"}),u.decorators=[{type:i.Injectable,args:[{providedIn:"platform",useFactory:m}]}],u.ctorParameters=()=>[{type:void 0,decorators:[{type:i.Inject,args:[l]}]}];class v{}function y(t){const e=Object(i["\u0275\u0275inject"])(l).location;return new w(Object(i["\u0275\u0275inject"])(c),e&&e.origin||"")}v.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:y,token:v,providedIn:"root"}),v.decorators=[{type:i.Injectable,args:[{providedIn:"root",useFactory:y}]}];const _=new i.InjectionToken("appBaseHref");class w extends v{constructor(t,e){if(super(),this._platformLocation=t,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}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}w.decorators=[{type:i.Injectable}],w.ctorParameters=()=>[{type:c},{type:String,decorators:[{type:i.Optional},{type:i.Inject,args:[_]}]}];class x extends v{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){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=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}x.decorators=[{type:i.Injectable}],x.ctorParameters=()=>[{type:c},{type:String,decorators:[{type:i.Optional},{type:i.Inject,args:[_]}]}];class C{constructor(t,e){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(k(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+b(e))}normalize(t){return C.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,k(t)))}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+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}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})}}function S(){return new C(Object(i["\u0275\u0275inject"])(v),Object(i["\u0275\u0275inject"])(c))}function k(t){return t.replace(/\/index.html$/,"")}C.normalizeQueryParams=b,C.joinWithSlash=f,C.stripTrailingSlash=g,C.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:S,token:C,providedIn:"root"}),C.decorators=[{type:i.Injectable,args:[{providedIn:"root",useFactory:S}]}],C.ctorParameters=()=>[{type:v},{type:c}];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 I,A,D,T,O,P,N;function M(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].LocaleId]}function R(t,e,n){const s=Object(i["\u0275findLocaleData"])(t),r=tt([s[i["\u0275LocaleDataIndex"].DayPeriodsFormat],s[i["\u0275LocaleDataIndex"].DayPeriodsStandalone]],e);return tt(r,n)}function L(t,e,n){const s=Object(i["\u0275findLocaleData"])(t),r=tt([s[i["\u0275LocaleDataIndex"].DaysFormat],s[i["\u0275LocaleDataIndex"].DaysStandalone]],e);return tt(r,n)}function F(t,e,n){const s=Object(i["\u0275findLocaleData"])(t),r=tt([s[i["\u0275LocaleDataIndex"].MonthsFormat],s[i["\u0275LocaleDataIndex"].MonthsStandalone]],e);return tt(r,n)}function j(t,e){return tt(Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].Eras],e)}function V(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].FirstDayOfWeek]}function B(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].WeekendRange]}function H(t,e){return tt(Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].DateFormat],e)}function z(t,e){return tt(Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].TimeFormat],e)}function U(t,e){return tt(Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].DateTimeFormat],e)}function q(t,e){const n=Object(i["\u0275findLocaleData"])(t),s=n[i["\u0275LocaleDataIndex"].NumberSymbols][e];if(void 0===s){if(e===P.CurrencyDecimal)return n[i["\u0275LocaleDataIndex"].NumberSymbols][P.Decimal];if(e===P.CurrencyGroup)return n[i["\u0275LocaleDataIndex"].NumberSymbols][P.Group]}return s}function $(t,e){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].NumberFormats][e]}function W(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].CurrencySymbol]||null}function Y(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].CurrencyName]||null}function G(t){return Object(i["\u0275getLocaleCurrencyCode"])(t)}!function(t){t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific"}(I||(I={})),function(t){t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other"}(A||(A={})),function(t){t[t.Format=0]="Format",t[t.Standalone=1]="Standalone"}(D||(D={})),function(t){t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short"}(T||(T={})),function(t){t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full"}(O||(O={})),function(t){t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup"}(P||(P={})),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(N||(N={}));const K=i["\u0275getLocalePluralCase"];function Z(t){if(!t[i["\u0275LocaleDataIndex"].ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i["\u0275LocaleDataIndex"].LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function X(t){const e=Object(i["\u0275findLocaleData"])(t);Z(e);return(e[i["\u0275LocaleDataIndex"].ExtraData][2]||[]).map(t=>"string"==typeof t?et(t):[et(t[0]),et(t[1])])}function Q(t,e,n){const s=Object(i["\u0275findLocaleData"])(t);Z(s);const r=tt([s[i["\u0275LocaleDataIndex"].ExtraData][0],s[i["\u0275LocaleDataIndex"].ExtraData][1]],e)||[];return tt(r,n)||[]}function J(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].Directionality]}function tt(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 et(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}function nt(t,e,n="en"){const s=function(t){return Object(i["\u0275findLocaleData"])(t)[i["\u0275LocaleDataIndex"].Currencies]}(n)[t]||E[t]||[],r=s[1];return"narrow"===e&&"string"==typeof r?r:s[0]||t}function it(t){let e;const n=E[t];return n&&(e=n[2]),"number"==typeof e?e:2}const st=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,rt={},at=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?: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}|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 ot,lt,ct;function dt(t,e,n,i){let s=function(t){if(xt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(st))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11]));s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-n,o=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,a,o,l,c),e}(n)}const e=new Date(t);if(!xt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=pt(n,e)||e;let r,a=[];for(;e;){if(r=at.exec(e),!r){a.push(e);break}{a=a.concat(r.slice(1));const t=a.pop();if(!t)break;e=t}}let o=s.getTimezoneOffset();i&&(o=wt(i,o),s=function(t,e,n){const i=n?-1:1,s=t.getTimezoneOffset(),r=wt(e,s);return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,i*(r-s))}(s,i,!0));let l="";return a.forEach(t=>{const e=function(t){if(_t[t])return _t[t];let e;switch(t){case"G":case"GG":case"GGG":e=ft(ct.Eras,T.Abbreviated);break;case"GGGG":e=ft(ct.Eras,T.Wide);break;case"GGGGG":e=ft(ct.Eras,T.Narrow);break;case"y":e=mt(lt.FullYear,1,0,!1,!0);break;case"yy":e=mt(lt.FullYear,2,0,!0,!0);break;case"yyy":e=mt(lt.FullYear,3,0,!1,!0);break;case"yyyy":e=mt(lt.FullYear,4,0,!1,!0);break;case"Y":e=yt(1);break;case"YY":e=yt(2,!0);break;case"YYY":e=yt(3);break;case"YYYY":e=yt(4);break;case"M":case"L":e=mt(lt.Month,1,1);break;case"MM":case"LL":e=mt(lt.Month,2,1);break;case"MMM":e=ft(ct.Months,T.Abbreviated);break;case"MMMM":e=ft(ct.Months,T.Wide);break;case"MMMMM":e=ft(ct.Months,T.Narrow);break;case"LLL":e=ft(ct.Months,T.Abbreviated,D.Standalone);break;case"LLLL":e=ft(ct.Months,T.Wide,D.Standalone);break;case"LLLLL":e=ft(ct.Months,T.Narrow,D.Standalone);break;case"w":e=vt(1);break;case"ww":e=vt(2);break;case"W":e=vt(1,!0);break;case"d":e=mt(lt.Date,1);break;case"dd":e=mt(lt.Date,2);break;case"E":case"EE":case"EEE":e=ft(ct.Days,T.Abbreviated);break;case"EEEE":e=ft(ct.Days,T.Wide);break;case"EEEEE":e=ft(ct.Days,T.Narrow);break;case"EEEEEE":e=ft(ct.Days,T.Short);break;case"a":case"aa":case"aaa":e=ft(ct.DayPeriods,T.Abbreviated);break;case"aaaa":e=ft(ct.DayPeriods,T.Wide);break;case"aaaaa":e=ft(ct.DayPeriods,T.Narrow);break;case"b":case"bb":case"bbb":e=ft(ct.DayPeriods,T.Abbreviated,D.Standalone,!0);break;case"bbbb":e=ft(ct.DayPeriods,T.Wide,D.Standalone,!0);break;case"bbbbb":e=ft(ct.DayPeriods,T.Narrow,D.Standalone,!0);break;case"B":case"BB":case"BBB":e=ft(ct.DayPeriods,T.Abbreviated,D.Format,!0);break;case"BBBB":e=ft(ct.DayPeriods,T.Wide,D.Format,!0);break;case"BBBBB":e=ft(ct.DayPeriods,T.Narrow,D.Format,!0);break;case"h":e=mt(lt.Hours,1,-12);break;case"hh":e=mt(lt.Hours,2,-12);break;case"H":e=mt(lt.Hours,1);break;case"HH":e=mt(lt.Hours,2);break;case"m":e=mt(lt.Minutes,1);break;case"mm":e=mt(lt.Minutes,2);break;case"s":e=mt(lt.Seconds,1);break;case"ss":e=mt(lt.Seconds,2);break;case"S":e=mt(lt.FractionalSeconds,1);break;case"SS":e=mt(lt.FractionalSeconds,2);break;case"SSS":e=mt(lt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=gt(ot.Short);break;case"ZZZZZ":e=gt(ot.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=gt(ot.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=gt(ot.Long);break;default:return null}return _t[t]=e,e}(t);l+=e?e(s,n,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function pt(t,e){const n=M(t);if(rt[n]=rt[n]||{},rt[n][e])return rt[n][e];let i="";switch(e){case"shortDate":i=H(t,O.Short);break;case"mediumDate":i=H(t,O.Medium);break;case"longDate":i=H(t,O.Long);break;case"fullDate":i=H(t,O.Full);break;case"shortTime":i=z(t,O.Short);break;case"mediumTime":i=z(t,O.Medium);break;case"longTime":i=z(t,O.Long);break;case"fullTime":i=z(t,O.Full);break;case"short":const e=pt(t,"shortTime"),n=pt(t,"shortDate");i=ut(U(t,O.Short),[e,n]);break;case"medium":const s=pt(t,"mediumTime"),r=pt(t,"mediumDate");i=ut(U(t,O.Medium),[s,r]);break;case"long":const a=pt(t,"longTime"),o=pt(t,"longDate");i=ut(U(t,O.Long),[a,o]);break;case"full":const l=pt(t,"fullTime"),c=pt(t,"fullDate");i=ut(U(t,O.Full),[l,c])}return i&&(rt[n][e]=i),i}function ut(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function ht(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let a=String(t);for(;a.length<e;)a="0"+a;return i&&(a=a.substr(a.length-e)),r+a}function mt(t,e,n=0,i=!1,s=!1){return function(r,a){let o=function(t,e){switch(t){case lt.FullYear:return e.getFullYear();case lt.Month:return e.getMonth();case lt.Date:return e.getDate();case lt.Hours:return e.getHours();case lt.Minutes:return e.getMinutes();case lt.Seconds:return e.getSeconds();case lt.FractionalSeconds:return e.getMilliseconds();case lt.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||o>-n)&&(o+=n),t===lt.Hours)0===o&&-12===n&&(o=12);else if(t===lt.FractionalSeconds)return l=e,ht(o,3).substr(0,l);var l;const c=q(a,P.MinusSign);return ht(o,e,c,i,s)}}function ft(t,e,n=D.Format,i=!1){return function(s,r){return function(t,e,n,i,s,r){switch(n){case ct.Months:return F(e,s,i)[t.getMonth()];case ct.Days:return L(e,s,i)[t.getDay()];case ct.DayPeriods:const a=t.getHours(),o=t.getMinutes();if(r){const t=X(e),n=Q(e,s,i),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&o>=e.minutes,s=a<n.hours||a===n.hours&&o<n.minutes;if(e.hours<n.hours){if(i&&s)return!0}else if(i||s)return!0}else if(t.hours===a&&t.minutes===o)return!0;return!1});if(-1!==r)return n[r]}return R(e,s,i)[a<12?0:1];case ct.Eras:return j(e,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(s,r,t,e,n,i)}}function gt(t){return function(e,n,i){const s=-1*i,r=q(n,P.MinusSign),a=s>0?Math.floor(s/60):Math.ceil(s/60);switch(t){case ot.Short:return(s>=0?"+":"")+ht(a,2,r)+ht(Math.abs(s%60),2,r);case ot.ShortGMT:return"GMT"+(s>=0?"+":"")+ht(a,1,r);case ot.Long:return"GMT"+(s>=0?"+":"")+ht(a,2,r)+":"+ht(Math.abs(s%60),2,r);case ot.Extended:return 0===i?"Z":(s>=0?"+":"")+ht(a,2,r)+":"+ht(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}!function(t){t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended"}(ot||(ot={})),function(t){t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day"}(lt||(lt={})),function(t){t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras"}(ct||(ct={}));function bt(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function vt(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=bt(n),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();s=1+Math.round(i/6048e5)}return ht(s,t,q(i,P.MinusSign))}}function yt(t,e=!1){return function(n,i){return ht(bt(n).getFullYear(),t,q(i,P.MinusSign),e)}}const _t={};function wt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function xt(t){return t instanceof Date&&!isNaN(t.valueOf())}const Ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function St(t,e,n,i,s,r,a=!1){let o="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,s,r,a=Math.abs(t)+"",o=0;(n=a.indexOf("."))>-1&&(a=a.replace(".",""));(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length);for(i=0;"0"===a.charAt(i);i++);if(i===(r=a.length))e=[0],n=1;else{for(r--;"0"===a.charAt(r);)r--;for(n-=i,e=[],s=0;i<=r;i++,s++)e[s]=Number(a.charAt(i))}n>22&&(e=e.splice(0,21),o=n-1,n=1);return{digits:e,exponent:o,integerLen:n}}(t);a&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2);return t}(c));let d=e.minInt,p=e.minFrac,u=e.maxFrac;if(r){const t=r.match(Ct);if(null===t)throw new Error(`${r} is not a valid digit info`);const e=t[1],n=t[3],i=t[5];null!=e&&(d=Dt(e)),null!=n&&(p=Dt(n)),null!=i?u=Dt(i):null!=n&&p>u&&(u=p)}!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 i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let a=r+t.integerLen,o=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(let t=a;t<i.length;t++)i[t]=0}else{s=Math.max(0,s),t.integerLen=1,i.length=Math.max(1,a=r+1),i[0]=0;for(let t=1;t<a;t++)i[t]=0}if(o>=5)if(a-1<0){for(let e=0;e>a;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;s<Math.max(0,r);s++)i.push(0);let l=0!==r;const c=e+t.integerLen,d=i.reduceRight(function(t,e,n,i){return e+=t,i[n]=e<10?e:e-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),e>=10?1:0},0);d&&(i.unshift(d),t.integerLen++)}(c,p,u);let h=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=h.every(t=>!t);m<d;m++)h.unshift(0);for(;m<0;m++)h.unshift(0);m>0?g=h.splice(m,h.length):(g=h,h=[0]);const b=[];for(h.length>=e.lgSize&&b.unshift(h.splice(-e.lgSize,h.length).join(""));h.length>e.gSize;)b.unshift(h.splice(-e.gSize,h.length).join(""));h.length&&b.unshift(h.join("")),o=b.join(q(n,i)),g.length&&(o+=q(n,s)+g.join("")),f&&(o+=q(n,P.Exponential)+"+"+f)}else o=q(n,P.Infinity);return o=t<0&&!l?e.negPre+o+e.negSuf:e.posPre+o+e.posSuf,o}function kt(t,e,n,i,s){const r=At($(e,I.Currency),q(e,P.MinusSign));r.minFrac=it(i),r.maxFrac=r.minFrac;return St(t,r,e,P.CurrencyGroup,P.CurrencyDecimal,s).replace("\xa4",n).replace("\xa4","").trim()}function Et(t,e,n){return St(t,At($(e,I.Percent),q(e,P.MinusSign)),e,P.Group,P.Decimal,n,!0).replace(new RegExp("%","g"),q(e,P.PercentSign))}function It(t,e,n){return St(t,At($(e,I.Decimal),q(e,P.MinusSign)),e,P.Group,P.Decimal,n)}function At(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],a=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],o=a[0],l=a[1]||"";n.posPre=o.substr(0,o.indexOf("#"));for(let d=0;d<l.length;d++){const t=l.charAt(d);"0"===t?n.minFrac=n.maxFrac=d+1:"#"===t?n.maxFrac=d+1:n.posSuf+=t}const c=o.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=s.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 Dt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class Tt{}function Ot(t,e,n,i){let s=`=${t}`;if(e.indexOf(s)>-1)return s;if(s=n.getPluralCategory(t,i),e.indexOf(s)>-1)return s;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}class Pt extends Tt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(K(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"}}}function Nt(t,e,n){return Object(i["\u0275registerLocaleData"])(t,e,n)}function Mt(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}Pt.decorators=[{type:i.Injectable}],Pt.ctorParameters=()=>[{type:String,decorators:[{type:i.Inject,args:[i.LOCALE_ID]}]}];class Rt{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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&&(Object(i["\u0275isListLikeIterable"])(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 ${Object(i["\u0275stringify"])(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)})}}Rt.decorators=[{type:i.Directive,args:[{selector:"[ngClass]"}]}],Rt.ctorParameters=()=>[{type:i.IterableDiffers},{type:i.KeyValueDiffers},{type:i.ElementRef},{type:i.Renderer2}],Rt.propDecorators={klass:[{type:i.Input,args:["class"]}],ngClass:[{type:i.Input,args:["ngClass"]}]};class Lt{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}Lt.decorators=[{type:i.Directive,args:[{selector:"[ngComponentOutlet]"}]}],Lt.ctorParameters=()=>[{type:i.ViewContainerRef}],Lt.propDecorators={ngComponentOutlet:[{type:i.Input}],ngComponentOutletInjector:[{type:i.Input}],ngComponentOutletContent:[{type:i.Input}],ngComponentOutletNgModuleFactory:[{type:i.Input}]};class Ft{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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}}class jt{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,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new Ft(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new Vt(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new Vt(t,s);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,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}}jt.decorators=[{type:i.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],jt.ctorParameters=()=>[{type:i.ViewContainerRef},{type:i.TemplateRef},{type:i.IterableDiffers}],jt.propDecorators={ngForOf:[{type:i.Input}],ngForTrackBy:[{type:i.Input}],ngForTemplate:[{type:i.Input}]};class Vt{constructor(t,e){this.record=t,this.view=e}}class Bt{constructor(t,e){this._viewContainer=t,this._context=new Ht,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){zt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){zt("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}}Bt.decorators=[{type:i.Directive,args:[{selector:"[ngIf]"}]}],Bt.ctorParameters=()=>[{type:i.ViewContainerRef},{type:i.TemplateRef}],Bt.propDecorators={ngIf:[{type:i.Input}],ngIfThen:[{type:i.Input}],ngIfElse:[{type:i.Input}]};class Ht{constructor(){this.$implicit=null,this.ngIf=null}}function zt(t,e){if(!!(e&&!e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Object(i["\u0275stringify"])(e)}'.`)}class Ut{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}class qt{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++){this._defaultViews[e].enforceState(t)}}}}qt.decorators=[{type:i.Directive,args:[{selector:"[ngSwitch]"}]}],qt.propDecorators={ngSwitch:[{type:i.Input}]};class $t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Ut(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}$t.decorators=[{type:i.Directive,args:[{selector:"[ngSwitchCase]"}]}],$t.ctorParameters=()=>[{type:i.ViewContainerRef},{type:i.TemplateRef},{type:qt,decorators:[{type:i.Host}]}],$t.propDecorators={ngSwitchCase:[{type:i.Input}]};class Wt{constructor(t,e,n){n._addDefault(new Ut(t,e))}}Wt.decorators=[{type:i.Directive,args:[{selector:"[ngSwitchDefault]"}]}],Wt.ctorParameters=()=>[{type:i.ViewContainerRef},{type:i.TemplateRef},{type:qt,decorators:[{type:i.Host}]}];class Yt{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=Ot(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}Yt.decorators=[{type:i.Directive,args:[{selector:"[ngPlural]"}]}],Yt.ctorParameters=()=>[{type:Tt}],Yt.propDecorators={ngPlural:[{type:i.Input}]};class Gt{constructor(t,e,n,i){this.value=t;const s=!isNaN(Number(t));i.addCase(s?`=${t}`:t,new Ut(n,e))}}Gt.decorators=[{type:i.Directive,args:[{selector:"[ngPluralCase]"}]}],Gt.ctorParameters=()=>[{type:String,decorators:[{type:i.Attribute,args:["ngPluralCase"]}]},{type:i.TemplateRef},{type:i.ViewContainerRef},{type:Yt,decorators:[{type:i.Host}]}];class Kt{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,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`: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))}}Kt.decorators=[{type:i.Directive,args:[{selector:"[ngStyle]"}]}],Kt.ctorParameters=()=>[{type:i.ElementRef},{type:i.KeyValueDiffers},{type:i.Renderer2}],Kt.propDecorators={ngStyle:[{type:i.Input,args:["ngStyle"]}]};class Zt{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){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&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}Zt.decorators=[{type:i.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],Zt.ctorParameters=()=>[{type:i.ViewContainerRef}],Zt.propDecorators={ngTemplateOutletContext:[{type:i.Input}],ngTemplateOutlet:[{type:i.Input}]};const Xt=[Rt,Lt,jt,Bt,Zt,Kt,qt,$t,Wt,Yt,Gt];function Qt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i["\u0275stringify"])(t)}'`)}const Jt=new class{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}},te=new class{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}};class ee{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(t){if(Object(i["\u0275isPromise"])(t))return Jt;if(Object(i["\u0275isObservable"])(t))return te;throw Qt(ee,t)}_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())}}ee.decorators=[{type:i.Pipe,args:[{name:"async",pure:!1}]}],ee.ctorParameters=()=>[{type:i.ChangeDetectorRef}];class ne{transform(t){if(null==t)return null;if("string"!=typeof t)throw Qt(ne,t);return t.toLowerCase()}}ne.decorators=[{type:i.Pipe,args:[{name:"lowercase"}]}];const ie=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;class se{transform(t){if(null==t)return null;if("string"!=typeof t)throw Qt(se,t);return t.replace(ie,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}se.decorators=[{type:i.Pipe,args:[{name:"titlecase"}]}];class re{transform(t){if(null==t)return null;if("string"!=typeof t)throw Qt(re,t);return t.toUpperCase()}}re.decorators=[{type:i.Pipe,args:[{name:"uppercase"}]}];class ae{constructor(t){this.locale=t}transform(t,e="mediumDate",n,i){if(null==t||""===t||t!=t)return null;try{return dt(t,e,i||this.locale,n)}catch(s){throw Qt(ae,s.message)}}}ae.decorators=[{type:i.Pipe,args:[{name:"date",pure:!0}]}],ae.ctorParameters=()=>[{type:String,decorators:[{type:i.Inject,args:[i.LOCALE_ID]}]}];const oe=/#/g;class le{constructor(t){this._localization=t}transform(t,e,n){if(null==t)return"";if("object"!=typeof e||null===e)throw Qt(le,e);return e[Ot(t,Object.keys(e),this._localization,n)].replace(oe,t.toString())}}le.decorators=[{type:i.Pipe,args:[{name:"i18nPlural",pure:!0}]}],le.ctorParameters=()=>[{type:Tt}];class ce{transform(t,e){if(null==t)return"";if("object"!=typeof e||"string"!=typeof t)throw Qt(ce,e);return e.hasOwnProperty(t)?e[t]:e.hasOwnProperty("other")?e.other:""}}ce.decorators=[{type:i.Pipe,args:[{name:"i18nSelect",pure:!0}]}];class de{transform(t){return JSON.stringify(t,null,2)}}de.decorators=[{type:i.Pipe,args:[{name:"json",pure:!1}]}];class pe{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=ue){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{var e,n;this.keyValues.push((e=t.key,n=t.currentValue,{key:e,value:n}))}),this.keyValues.sort(e)),this.keyValues}}function ue(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const s=String(n),r=String(i);return s==r?0:s<r?-1:1}pe.decorators=[{type:i.Pipe,args:[{name:"keyvalue",pure:!1}]}],pe.ctorParameters=()=>[{type:i.KeyValueDiffers}];class he{constructor(t){this._locale=t}transform(t,e,n){if(!ge(t))return null;n=n||this._locale;try{return It(be(t),n,e)}catch(i){throw Qt(he,i.message)}}}he.decorators=[{type:i.Pipe,args:[{name:"number"}]}],he.ctorParameters=()=>[{type:String,decorators:[{type:i.Inject,args:[i.LOCALE_ID]}]}];class me{constructor(t){this._locale=t}transform(t,e,n){if(!ge(t))return null;n=n||this._locale;try{return Et(be(t),n,e)}catch(i){throw Qt(me,i.message)}}}me.decorators=[{type:i.Pipe,args:[{name:"percent"}]}],me.ctorParameters=()=>[{type:String,decorators:[{type:i.Inject,args:[i.LOCALE_ID]}]}];class fe{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(t,e,n="symbol",i,s){if(!ge(t))return null;s=s||this._locale,"boolean"==typeof n&&(n=n?"symbol":"code");let r=e||this._defaultCurrencyCode;"code"!==n&&(r="symbol"===n||"symbol-narrow"===n?nt(r,"symbol"===n?"wide":"narrow",s):n);try{return kt(be(t),s,r,e,i)}catch(a){throw Qt(fe,a.message)}}}function ge(t){return!(null==t||""===t||t!=t)}function be(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}fe.decorators=[{type:i.Pipe,args:[{name:"currency"}]}],fe.ctorParameters=()=>[{type:String,decorators:[{type:i.Inject,args:[i.LOCALE_ID]}]},{type:String,decorators:[{type:i.Inject,args:[i.DEFAULT_CURRENCY_CODE]}]}];class ve{transform(t,e,n){if(null==t)return null;if(!this.supports(t))throw Qt(ve,t);return t.slice(e,n)}supports(t){return"string"==typeof t||Array.isArray(t)}}ve.decorators=[{type:i.Pipe,args:[{name:"slice",pure:!1}]}];const ye=[ee,re,ne,de,ve,he,me,se,fe,ae,le,ce,pe];class _e{}_e.decorators=[{type:i.NgModule,args:[{declarations:[Xt,ye],exports:[Xt,ye],providers:[{provide:Tt,useClass:Pt}]}]}];const we="browser",xe="server",Ce="browserWorkerApp",Se="browserWorkerUi";function ke(t){return t===we}function Ee(t){return t===xe}function Ie(t){return t===Ce}function Ae(t){return t===Se}const De=new i.Version("11.0.9");class Te{}Te.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({token:Te,providedIn:"root",factory:()=>new Oe(Object(i["\u0275\u0275inject"])(l),window)});class Oe{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=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){var e;if(!this.supportsScrolling())return;const n=null!==(e=this.document.getElementById(t))&&void 0!==e?e:this.document.getElementsByName(t)[0];void 0!==n&&(this.scrollToElement(n),this.attemptFocus(n))}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,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Pe(this.window.history)||Pe(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 Pe(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Ne{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}}},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("ngJS"),s=n("NJ4a");var r=n("Lhse");var a=n("kJWO");var o=n("I55L"),l=n("c2HN"),c=n("XoHu");const d=t=>{if(t&&"function"==typeof t[a.a])return d=t,t=>{const e=d[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(o.a)(t))return Object(i.a)(t);if(Object(l.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[r.a])return e=t,t=>{const n=e[r.a]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),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=Object(c.a)(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,d}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",function(){return i})},SxV6:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("sVev"),s=n("pLZG"),r=n("IzEk"),a=n("xbPD"),o=n("XDbj"),l=n("SpAZ");function c(t,e){const n=arguments.length>=2;return c=>c.pipe(t?Object(s.a)((e,n)=>t(e,n,c)):l.a,Object(r.a)(1),n?Object(a.a)(e):Object(o.a)(()=>new i.a))}},UFqO:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=n("2Eqy"),r=n("YiGY"),a=n("4kE/"),o=n("tvAs"),l=function(){function t(){}return t.DetectAuthorityFromUrl=function(t){switch(t=i.Utils.CanonicalizeUri(t),i.Utils.GetUrlComponents(t).PathSegments[0]){case"tfp":return a.AuthorityType.B2C;case"adfs":return a.AuthorityType.Adfs;default:return a.AuthorityType.Aad}},t.CreateInstance=function(e,n){switch(t.DetectAuthorityFromUrl(e)){case a.AuthorityType.B2C:return new r.B2cAuthority(e,n);case a.AuthorityType.Aad:return new s.AadAuthority(e,n);default:throw o.ErrorMessage.invalidAuthorityType}},t}();e.AuthorityFactory=l},UXun:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("jtHE");function s(t,e,n){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:s}){let r,a,o=0,l=!1,c=!1;return function(d){let p;o++,!r||l?(l=!1,r=new i.a(t,e,s),p=r.subscribe(this),a=d.subscribe({next(t){r.next(t)},error(t){l=!0,r.error(t)},complete(){c=!0,a=void 0,r.complete()}}),c&&(a=void 0)):p=r.subscribe(this),this.add(()=>{o--,p.unsubscribe(),p=void 0,a&&!c&&n&&0===o&&(a.unsubscribe(),a=void 0,r=void 0)})}}(s))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),s=n("z+Ro"),r=n("bHdf"),a=n("yCtX");function o(...t){let e=Number.POSITIVE_INFINITY,n=null,o=t[t.length-1];return Object(s.a)(o)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof o&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(r.a)(e)(Object(a.a)(t,n))}},"W+46":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("FS4P");e.UserAgentApplication=i.UserAgentApplication;var s=n("Bx81");e.Logger=s.Logger;var r=n("Bx81");e.LogLevel=r.LogLevel;var a=n("95Tn");e.User=a.User;var o=n("Ru/W");e.Constants=o.Constants;var l=n("2Grz");e.TokenResponse=l.TokenResponse;var c=n("4kE/");e.Authority=c.Authority},WFZd:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8Y7J");n("fjAU"),n("4XzM");var s=n("nDsj"),r=function(){function t(){this._msalSubject=new s.BehaviorSubject(1),this.msalItem$=this._msalSubject.asObservable()}return t.prototype.broadcast=function(t,e){this._msalSubject.next({type:t,payload:e})},t.prototype.getMSALSubject=function(){return this._msalSubject},t.prototype.getMSALItem=function(){return this.msalItem$},t.prototype.subscribe=function(t,e){return this.msalItem$.filter(function(e){return e.type===t}).map(function(t){return t.payload}).subscribe(e)},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}();e.BroadcastService=r},WMd4:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var i,s=n("EY2u"),r=n("LRne"),a=n("z6cu");!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(i||(i={}));class o{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 Object(r.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(s.b)()}throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new o("N",t):o.undefinedValueNotification}static createError(t){return new o("E",void 0,t)}static createComplete(){return o.completeNotification}}o.completeNotification=new o("C"),o.undefinedValueNotification=new o("N",void 0)},XDbj:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("sVev"),s=n("7o/Q");function r(t=l){return e=>e.lift(new a(t))}class a{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new o(t,this.errorFactory))}}class o extends s.a{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 l(){return new i.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return d});var i=n("HDdC"),s=n("7o/Q"),r=n("quSY"),a=n("9ppp"),o=n("Ylt2"),l=n("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}class d extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new p(this,this);return e.operator=t,e}next(t){if(this.closed)throw new a.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].next(t)}}error(t){if(this.closed)throw new a.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let s=0;s<n;s++)i[s].error(t);this.observers.length=0}complete(){if(this.closed)throw new a.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new a.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new a.a;return this.hasError?(t.error(this.thrownError),r.a.EMPTY):this.isStopped?(t.complete(),r.a.EMPTY):(this.observers.push(t),new o.a(this,t))}asObservable(){const t=new i.a;return t.source=this,t}}d.create=(t,e)=>new p(t,e);class p extends d{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.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return i})},"Y/cZ":function(t,e,n){"use strict";n.d(e,"a",function(){return i});class i{constructor(t,e=i.now){this.SchedulerAction=t,this.now=e}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}i.now=()=>Date.now()},Y6u4:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})()},Y7HM:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("DH7j");function s(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},YiGY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("NrNb"),s=n("2Eqy"),r=n("4kE/"),a=n("tvAs"),o=n("wpu4"),l=function(t){function e(e,n){var i=t.call(this,e,n)||this,s=o.Utils.GetUrlComponents(e),r=s.PathSegments;if(r.length<3)throw a.ErrorMessage.b2cAuthorityUriInvalidPath;return i.CanonicalAuthority="https://"+s.HostNameAndPort+"/"+r[0]+"/"+r[1]+"/"+r[2]+"/",i}return i.__extends(e,t),Object.defineProperty(e.prototype,"AuthorityType",{get:function(){return r.AuthorityType.B2C},enumerable:!0,configurable:!0}),e.prototype.GetOpenIdConfigurationEndpointAsync=function(){var t=this,e=new Promise(function(e,n){return e(t.DefaultOpenIdConfigurationEndpoint)});return this.IsValidationEnabled?this.IsInTrustedHostList(this.CanonicalAuthorityUrlComponents.HostNameAndPort)?e:new Promise(function(t,e){return e(a.ErrorMessage.unsupportedAuthorityValidation)}):e},e}(s.AadAuthority);e.B2cAuthority=l},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("quSY");class s extends i.a{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)}}},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},Yw2L:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Ru/W"),s=n("8Kws"),r=function(){function t(e){if(t._instance)return t._instance;if(this._cacheLocation=e,this._localStorageSupported=void 0!==window[this._cacheLocation]&&null!=window[this._cacheLocation],this._sessionStorageSupported=void 0!==window[e]&&null!=window[e],t._instance=this,!this._localStorageSupported&&!this._sessionStorageSupported)throw new Error("localStorage and sessionStorage not supported");return t._instance}return t.prototype.setItem=function(t,e,n){n&&this.setItemCookie(t,e),window[this._cacheLocation]&&window[this._cacheLocation].setItem(t,e)},t.prototype.getItem=function(t,e){return e?this.getItemCookie(t):window[this._cacheLocation]?window[this._cacheLocation].getItem(t):void 0},t.prototype.removeItem=function(t){if(window[this._cacheLocation])return window[this._cacheLocation].removeItem(t)},t.prototype.clear=function(){if(window[this._cacheLocation])return window[this._cacheLocation].clear()},t.prototype.getAllAccessTokens=function(t,e){var n,i=[],r=window[this._cacheLocation];if(r){var a=void 0;for(a in r)if(r.hasOwnProperty(a)&&a.match(t)&&a.match(e)){var o=this.getItem(a);o&&(n=new s.AccessTokenCacheItem(JSON.parse(a),JSON.parse(o)),i.push(n))}}return i},t.prototype.removeAcquireTokenEntries=function(t,e){var n=window[this._cacheLocation];if(n){var i=void 0;for(i in n)n.hasOwnProperty(i)&&(""!=t&&i.indexOf(t)>-1||""!=e&&i.indexOf(e)>-1)&&this.removeItem(i)}},t.prototype.resetCacheItems=function(){var t=window[this._cacheLocation];if(t){var e=void 0;for(e in t)t.hasOwnProperty(e)&&-1!==e.indexOf(i.Constants.msal)&&this.setItem(e,""),t.hasOwnProperty(e)&&-1!==e.indexOf(i.Constants.renewStatus)&&this.removeItem(e)}},t.prototype.setItemCookie=function(t,e,n){var i=t+"="+e+";";n&&(i+="expires="+this.setExpirationCookie(n)+";");document.cookie=i},t.prototype.getItemCookie=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var s=n[i];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return""},t.prototype.setExpirationCookie=function(t){var e=new Date;return new Date(e.getTime()+24*t*60*60*1e3).toUTCString()},t.prototype.clearCookie=function(){this.setItemCookie(i.Constants.nonceIdToken,"",-1),this.setItemCookie(i.Constants.stateLogin,"",-1),this.setItemCookie(i.Constants.loginRequest,"",-1)},t}();e.Storage=r},ZR4w:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("kU1M");e.map=function(t,e){return i.map(t,e)(this)}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q");class s extends i.a{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 r=n("SeVD"),a=n("HDdC");function o(t,e,n,i,o=new s(t,n,i)){if(!o.closed)return e instanceof a.a?e.subscribe(o):Object(r.a)(e)(o)}},Zy1z:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(){return t=>t.lift(new r)}class r{call(t,e){return e.subscribe(new a(t))}}class a extends i.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},bBXD:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=function(){function t(t,e,n,s,r,a){this.authorityInstance=t,this.clientId=e,this.scopes=n,this.responseType=s,this.redirectUri=r,this.correlationId=i.Utils.createNewGuid(),this.state=a&&!i.Utils.isEmpty(a)?i.Utils.createNewGuid()+"|"+a:i.Utils.createNewGuid(),this.nonce=i.Utils.createNewGuid(),this.xClientSku="MSAL.JS",this.xClientVer=i.Utils.getLibraryVersion()}return Object.defineProperty(t.prototype,"authority",{get:function(){return this.authorityInstance.CanonicalAuthority},enumerable:!0,configurable:!0}),t.prototype.createNavigateUrl=function(t){var e=this.createNavigationUrlString(t),n=this.authorityInstance.AuthorizationEndpoint;return n.indexOf("?")<0?n+="?":n+="&",""+n+e.join("&")},t.prototype.createNavigationUrlString=function(t){t||(t=[this.clientId]),-1===t.indexOf(this.clientId)&&t.push(this.clientId);var e=[];return e.push("response_type="+this.responseType),this.translateclientIdUsedInScope(t),e.push("scope="+encodeURIComponent(this.parseScope(t))),e.push("client_id="+encodeURIComponent(this.clientId)),e.push("redirect_uri="+encodeURIComponent(this.redirectUri)),e.push("state="+encodeURIComponent(this.state)),e.push("nonce="+encodeURIComponent(this.nonce)),e.push("client_info=1"),e.push("x-client-SKU="+this.xClientSku),e.push("x-client-Ver="+this.xClientVer),this.extraQueryParameters&&e.push(this.extraQueryParameters),e.push("client-request-id="+encodeURIComponent(this.correlationId)),e},t.prototype.translateclientIdUsedInScope=function(t){var e=t.indexOf(this.clientId);e>=0&&(t.splice(e,1),-1===t.indexOf("openid")&&t.push("openid"),-1===t.indexOf("profile")&&t.push("profile"))},t.prototype.parseScope=function(t){var e="";if(t)for(var n=0;n<t.length;++n)e+=n!==t.length-1?t[n]+" ":t[n];return e},t}();e.AuthenticationRequestParameters=s},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5+tZ"),s=n("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(i.b)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("5+tZ");function s(t,e){return Object(i.b)(t,e,1)}},bd5T:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("kU1M");e.delay=function(t,e){return void 0===e&&(e=i.asyncScheduler),s.delay(t,e)(this)}},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},cDf5:function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},cIZT:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.prototype.sendRequestAsync=function(t,e,n){var i=this;return new Promise(function(n,s){var r=new XMLHttpRequest;if(r.open(e,t,!0),r.onload=function(t){(r.status<200||r.status>=300)&&s(i.handleError(r.responseText));try{var e=JSON.parse(r.responseText)}catch(a){s(i.handleError(r.responseText))}n(e)},r.onerror=function(t){s(r.status)},"GET"!==e)throw"not implemented";r.send()})},t.prototype.handleError=function(t){var e;try{if((e=JSON.parse(t)).error)return e.error;throw t}catch(n){return t}},t}();e.XhrClient=i},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("HDdC"),s=n("DH7j"),r=n("lJxs"),a=n("XoHu"),o=n("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(a.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,a=0;for(let l=0;l<i;l++){const c=Object(o.a)(t[l]);let d=!1;n.add(c.subscribe({next:t=>{d||(d=!0,a++),s[l]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&d||(a===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},dQgk:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("8Y7J"),s=n("iInd"),r=n("oWlK");n("fjAU"),n("GhFG");var a=n("SVse"),o=n("FGkh"),l=n("WFZd"),c=n("W+46"),d=n("la2H"),p=n("ErMB"),u=function(){function t(t,e,n,i,s,r,a){this.config=t,this.authService=e,this.router=n,this.activatedRoute=i,this.location=s,this.platformLocation=r,this.broadcastService=a,this.isEmpty=function(t){return void 0===t||!t||0===t.length}}return t.prototype.canActivate=function(t,e){var n=this;if(this.authService.getLogger().verbose("location change event from old url to new url"),this.authService.updateDataFromCache([this.config.clientID]),this.authService._oauthData.isAuthenticated||!this.isObjectEmpty(this.authService._oauthData.idToken))return!(!this.authService._oauthData.isAuthenticated&&!this.isObjectEmpty(this.authService._oauthData.idToken))||this.authService.acquireTokenSilent([this.config.clientID]).then(function(t){if(t){n.authService._oauthData.isAuthenticated=!0;var e=new p.AuthenticationResult(t);return n.broadcastService.broadcast("msal:loginSuccess",e),!0}},function(t){var e=t.split("|"),i=new d.MSALError(e[0],e[1],"");return n.broadcastService.broadcast("msal:loginFailure",i),!1});if(e.url&&!this.authService._renewActive&&!this.authService.loginInProgress()){var i=this.getBaseUrl()+e.url;if(null!==i&&this.authService.getCacheStorage().setItem(c.Constants.angularLoginRequest,i),this.config.popUp)return this.authService.loginPopup(this.config.consentScopes,this.config.extraQueryParameters).then(function(t){return!0},function(t){return!1});this.authService.loginRedirect(this.config.consentScopes,this.config.extraQueryParameters)}},t.prototype.getBaseUrl=function(){var t=window.location.href,e=this.location.path();if(this.isEmpty(e))return t.endsWith("/")&&(t=t.replace(/\/$/,"")),t;var n=t.indexOf(e);return t.substring(0,n)},t.prototype.isObjectEmpty=function(t){return 0===Object.keys(t).length},t.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[{type:o.MsalConfig,decorators:[{type:i.Inject,args:[r.MSAL_CONFIG]}]},{type:r.MsalService},{type:s.Router},{type:s.ActivatedRoute},{type:a.Location},{type:a.PlatformLocation},{type:l.BroadcastService}]},t}();e.MsalGuard=u},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("lJxs"),s=n("Cfvw"),r=n("zx2A");function a(t,e){return"function"==typeof e?n=>n.pipe(a((n,r)=>Object(s.a)(t(n,r)).pipe(Object(i.a)((t,i)=>e(n,t,r,i))))):e=>e.lift(new o(t))}class o{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.b{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(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new r.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(r.c)(t,n),this.innerSubscription!==n&&i.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)}}},eNwd:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return l});var i=n("3N8a");class s extends i.a{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)}}var r=n("IjjT");class a extends r.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<s&&(t=e.shift()));if(this.active=!1,n){for(;++i<s&&(t=e.shift());)t.unsubscribe();throw n}}}const o=new a(s),l=o},fjAU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("hswa")},frRk:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("wpu4"),s=function(){function t(t){if(!t||i.Utils.isEmpty(t))return this.uid="",void(this.utid="");try{var e=i.Utils.base64DecodeStringUrlSafe(t),n=JSON.parse(e);n&&(n.hasOwnProperty("uid")&&(this.uid=n.uid),n.hasOwnProperty("utid")&&(this.utid=n.utid))}catch(s){throw new Error(s)}}return Object.defineProperty(t.prototype,"uid",{get:function(){return this._uid?this._uid:""},set:function(t){this._uid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"utid",{get:function(){return this._utid?this._utid:""},set:function(t){this._utid=t},enumerable:!0,configurable:!0}),t}();e.ClientInfo=s},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("2fFW"),s=n("NJ4a");const r={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},hswa:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("ADT6");i.Observable.prototype.filter=s.filter},iD44:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("kU1M");e.mergeMap=function(t,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),i.mergeMap(t,e)(this)}},iInd:function(t,e,n){"use strict";n.r(e),n.d(e,"ActivatedRoute",function(){return Rt}),n.d(e,"ActivatedRouteSnapshot",function(){return Ft}),n.d(e,"ActivationEnd",function(){return $}),n.d(e,"ActivationStart",function(){return q}),n.d(e,"BaseRouteReuseStrategy",function(){return Xe}),n.d(e,"ChildActivationEnd",function(){return U}),n.d(e,"ChildActivationStart",function(){return z}),n.d(e,"ChildrenOutletContexts",function(){return nn}),n.d(e,"DefaultUrlSerializer",function(){return ht}),n.d(e,"GuardsCheckEnd",function(){return F}),n.d(e,"GuardsCheckStart",function(){return L}),n.d(e,"NavigationCancel",function(){return N}),n.d(e,"NavigationEnd",function(){return P}),n.d(e,"NavigationError",function(){return M}),n.d(e,"NavigationStart",function(){return O}),n.d(e,"NoPreloading",function(){return vn}),n.d(e,"OutletContext",function(){return en}),n.d(e,"PRIMARY_OUTLET",function(){return Y}),n.d(e,"PreloadAllModules",function(){return bn}),n.d(e,"PreloadingStrategy",function(){return gn}),n.d(e,"ROUTER_CONFIGURATION",function(){return xn}),n.d(e,"ROUTER_INITIALIZER",function(){return Fn}),n.d(e,"ROUTES",function(){return Je}),n.d(e,"ResolveEnd",function(){return V}),n.d(e,"ResolveStart",function(){return j}),n.d(e,"RouteConfigLoadEnd",function(){return H}),n.d(e,"RouteConfigLoadStart",function(){return B}),n.d(e,"RouteReuseStrategy",function(){return Ze}),n.d(e,"Router",function(){return cn}),n.d(e,"RouterEvent",function(){return T}),n.d(e,"RouterLink",function(){return dn}),n.d(e,"RouterLinkActive",function(){return hn}),n.d(e,"RouterLinkWithHref",function(){return pn}),n.d(e,"RouterModule",function(){return En}),n.d(e,"RouterOutlet",function(){return mn}),n.d(e,"RouterPreloader",function(){return yn}),n.d(e,"RouterState",function(){return Nt}),n.d(e,"RouterStateSnapshot",function(){return jt}),n.d(e,"RoutesRecognized",function(){return R}),n.d(e,"Scroll",function(){return W}),n.d(e,"UrlHandlingStrategy",function(){return sn}),n.d(e,"UrlSegment",function(){return dt}),n.d(e,"UrlSegmentGroup",function(){return ct}),n.d(e,"UrlSerializer",function(){return ut}),n.d(e,"UrlTree",function(){return lt}),n.d(e,"VERSION",function(){return Vn}),n.d(e,"convertToParamMap",function(){return K}),n.d(e,"provideRoutes",function(){return Tn}),n.d(e,"\u0275EmptyOutletComponent",function(){return pe}),n.d(e,"\u0275ROUTER_PROVIDERS",function(){return Sn}),n.d(e,"\u0275angular_packages_router_router_a",function(){return Cn}),n.d(e,"\u0275angular_packages_router_router_b",function(){return kn}),n.d(e,"\u0275angular_packages_router_router_c",function(){return In}),n.d(e,"\u0275angular_packages_router_router_d",function(){return An}),n.d(e,"\u0275angular_packages_router_router_e",function(){return Dn}),n.d(e,"\u0275angular_packages_router_router_f",function(){return On}),n.d(e,"\u0275angular_packages_router_router_g",function(){return Nn}),n.d(e,"\u0275angular_packages_router_router_h",function(){return Mn}),n.d(e,"\u0275angular_packages_router_router_i",function(){return Rn}),n.d(e,"\u0275angular_packages_router_router_j",function(){return Ln}),n.d(e,"\u0275angular_packages_router_router_k",function(){return jn}),n.d(e,"\u0275angular_packages_router_router_l",function(){return pe}),n.d(e,"\u0275angular_packages_router_router_m",function(){return At}),n.d(e,"\u0275angular_packages_router_router_n",function(){return Ot}),n.d(e,"\u0275angular_packages_router_router_o",function(){return _n}),n.d(e,"\u0275assignExtraOptionsToRouter",function(){return Pn}),n.d(e,"\u0275flatten",function(){return tt});var i=n("SVse"),s=n("8Y7J"),r=n("Cfvw"),a=n("LRne"),o=n("2Vo4"),l=n("itXk"),c=n("HDdC"),d=n("sVev"),p=n("GyhO"),u=n("NXyV"),h=n("EY2u"),m=n("XNiG"),f=n("lJxs"),g=n("eIep"),b=n("IzEk"),v=n("JX91"),y=n("Kqap"),_=n("pLZG"),w=n("JIr8"),x=n("bOdf"),C=n("NJ9Y"),S=n("SxV6"),k=n("5+tZ"),E=n("vkgz"),I=n("BFxc"),A=n("nYR2"),D=n("bHdf");class T{constructor(t,e){this.id=t,this.url=e}}class O extends T{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class P extends T{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class N extends T{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class M extends T{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class R extends T{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class L extends T{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class F extends T{constructor(t,e,n,i,s){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class j extends T{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class V extends T{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class B{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class H{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class z{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class U{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ${constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){const t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}}const Y="primary";class G{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 K(t){return new G(t)}function Z(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function X(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const s={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))s[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:s}}function Q(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let s;for(let r=0;r<n.length;r++)if(s=n[r],!J(t[s],e[s]))return!1;return!0}function J(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function tt(t){return Array.prototype.concat.apply([],t)}function et(t){return t.length>0?t[t.length-1]:null}function nt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function it(t){return Object(s["\u0275isObservable"])(t)?t:Object(s["\u0275isPromise"])(t)?Object(r.a)(Promise.resolve(t)):Object(a.a)(t)}function st(t,e,n){return n?function(t,e){return Q(t,e)}(t.queryParams,e.queryParams)&&rt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>J(t[n],e[n]))}(t.queryParams,e.queryParams)&&at(t.root,e.root)}function rt(t,e){if(!pt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!rt(t.children[n],e.children[n]))return!1}return!0}function at(t,e){return ot(t,e,e.segments)}function ot(t,e,n){if(t.segments.length>n.length){return!!pt(t.segments.slice(0,n.length),n)&&!e.hasChildren()}if(t.segments.length===n.length){if(!pt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!at(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!pt(t.segments,i)&&(!!t.children[Y]&&ot(t.children[Y],e,s))}}class lt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap}toString(){return mt.serialize(this)}}class ct{constructor(t,e){this.segments=t,this.children=e,this.parent=null,nt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ft(this)}}class dt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=K(this.parameters)),this._parameterMap}toString(){return xt(this)}}function pt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class ut{}class ht{parse(t){const e=new It(t);return new lt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${gt(t.root,!0)}`}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${vt(e)}=${vt(t)}`).join("&"):`${vt(e)}=${vt(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const mt=new ht;function ft(t){return t.segments.map(t=>xt(t)).join("/")}function gt(t,e){if(!t.hasChildren())return ft(t);if(e){const e=t.children[Y]?gt(t.children[Y],!1):"",n=[];return nt(t.children,(t,e)=>{e!==Y&&n.push(`${e}:${gt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return nt(t.children,(t,i)=>{i===Y&&(n=n.concat(e(t,i)))}),nt(t.children,(t,i)=>{i!==Y&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===Y?[gt(t.children[Y],!1)]:[`${n}:${gt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Y]?`${ft(t)}/${e[0]}`:`${ft(t)}/(${e.join("//")})`}}function bt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function vt(t){return bt(t).replace(/%3B/gi,";")}function yt(t){return bt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _t(t){return decodeURIComponent(t)}function wt(t){return _t(t.replace(/\+/g,"%20"))}function xt(t){return`${yt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${yt(t)}=${yt(e[t])}`).join("")}`;var e}const Ct=/^[^\/()?;=#]+/;function St(t){const e=t.match(Ct);return e?e[0]:""}const kt=/^[^=?&#]+/;const Et=/^[^?&#]+/;class It{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ct([],{}):new ct([],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[Y]=new ct(t,e)),n}parseSegment(){const t=St(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new dt(_t(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=St(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=St(this.remaining);t&&(n=t,this.capture(n))}t[_t(e)]=_t(n)}parseQueryParam(t){const e=function(t){const e=t.match(kt);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(Et);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=wt(e),s=wt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=St(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Y);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r[Y]:new ct([],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 At{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=Dt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Dt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Tt(t,this._root);if(e.length<2)return[];return e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Tt(t,this._root).map(t=>t.value)}}function Dt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Dt(t,n);if(e)return e}return null}function Tt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Tt(t,n);if(i.length)return i.unshift(e),i}return[]}class Ot{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Pt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Nt extends At{constructor(t,e){super(t),this.snapshot=e,Vt(this,t)}toString(){return this.snapshot.toString()}}function Mt(t,e){const n=function(t,e){const n=new Ft([],{},{},"",{},Y,e,null,t.root,-1,{});return new jt("",new Ot(n,[]))}(t,e),i=new o.a([new dt("",{})]),s=new o.a({}),r=new o.a({}),a=new o.a({}),l=new o.a(""),c=new Rt(i,s,a,l,r,Y,e,n.root);return c.snapshot=n.root,new Nt(new Ot(c,[]),n)}class Rt{constructor(t,e,n,i,s,r,a,o){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=a,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(f.a)(t=>K(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(t=>K(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Lt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class Ft{constructor(t,e,n,i,s,r,a,o,l,c,d){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=a,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}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=K(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=K(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class jt extends At{constructor(t,e){super(e),this.url=t,Vt(this,e)}toString(){return Bt(this._root)}}function Vt(t,e){e.value._routerState=t,e.children.forEach(e=>Vt(t,e))}function Bt(t){const e=t.children.length>0?` { ${t.children.map(Bt).join(", ")} } `:"";return`${t.value}${e}`}function Ht(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Q(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Q(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(!Q(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Q(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function zt(t,e){const n=Q(t.params,e.params)&&(i=t.url,s=e.url,pt(i,s)&&i.every((t,e)=>Q(t.parameters,s[e].parameters)));var i,s;const r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||zt(t.parent,e.parent))}function Ut(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Ut(t,e,i);return Ut(t,e)})}(t,e,n);return new Ot(i,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return qt(e,t),t}{const n=(i=e.value,new Rt(new o.a(i.url),new o.a(i.params),new o.a(i.queryParams),new o.a(i.fragment),new o.a(i.data),i.outlet,i.component,i)),s=e.children.map(e=>Ut(t,e));return new Ot(n,s)}}var i}function qt(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)qt(t.children[n],e.children[n])}function $t(t,e,n,i,s){if(0===n.length)return Gt(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Zt(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return nt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Zt(n,e,i)}(n);if(r.toRoot())return Gt(e.root,new ct([],{}),e,i,s);const a=function(t,e,n){if(t.isAbsolute)return new Xt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment,i=t===e.root;return new Xt(t,i,0)}const i=Wt(t.commands[0])?0:1,s=n.snapshot._lastPathIndex+i;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Xt(i,!1,s-r)}(n.snapshot._urlSegment,s,t.numberOfDoubleDots)}(r,e,t),o=a.processChildren?Jt(a.segmentGroup,a.index,r.commands):Qt(a.segmentGroup,a.index,r.commands);return Gt(a.segmentGroup,o,e,i,s)}function Wt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Yt(t){return"object"==typeof t&&null!=t&&t.outlets}function Gt(t,e,n,i,s){let r={};return i&&nt(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),n.root===t?new lt(e,r,s):new lt(Kt(n.root,t,e),r,s)}function Kt(t,e,n){const i={};return nt(t.children,(t,s)=>{i[s]=t===e?n:Kt(t,e,n)}),new ct(t.segments,i)}class Zt{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Wt(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Yt);if(i&&i!==et(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Xt{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Qt(t,e,n){if(t||(t=new ct([],{})),0===t.segments.length&&t.hasChildren())return Jt(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s<t.segments.length;){if(i>=n.length)return r;const e=t.segments[s],a=n[i];if(Yt(a))break;const o=`${a}`,l=i<n.length-1?n[i+1]:null;if(s>0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!ie(o,l,e))return r;i+=2}else{if(!ie(o,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new ct(t.segments.slice(0,i.pathIndex),{});return e.children[Y]=new ct(t.segments.slice(i.pathIndex),t.children),Jt(e,0,s)}return i.match&&0===s.length?new ct(t.segments,{}):i.match&&!t.hasChildren()?te(t,e,n):i.match?Jt(t,0,s):te(t,e,n)}function Jt(t,e,n){if(0===n.length)return new ct(t.segments,{});{const i=function(t){return Yt(t[0])?t[0].outlets:{[Y]:t}}(n),s={};return nt(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(s[i]=Qt(t.children[i],e,n))}),nt(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new ct(t.segments,s)}}function te(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s<n.length;){const r=n[s];if(Yt(r)){const t=ee(r.outlets);return new ct(i,t)}if(0===s&&Wt(n[0])){const r=t.segments[e];i.push(new dt(r.path,n[0])),s++;continue}const a=Yt(r)?r.outlets[Y]:`${r}`,o=s<n.length-1?n[s+1]:null;a&&o&&Wt(o)?(i.push(new dt(a,ne(o))),s+=2):(i.push(new dt(a,{})),s++)}return new ct(i,{})}function ee(t){const e={};return nt(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=te(new ct([],{}),0,t))}),e}function ne(t){const e={};return nt(t,(t,n)=>e[n]=`${t}`),e}function ie(t,e,n){return t==n.path&&Q(e,n.parameters)}class se{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ht(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Pt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),nt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&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(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,s=Pt(t);for(const r of Object.keys(s))this.deactivateRouteAndItsChildren(s[r],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}activateChildRoutes(t,e,n){const i=Pt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new $(t.value.snapshot))}),t.children.length&&this.forwardEvent(new U(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(Ht(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),re(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}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function re(t){Ht(t.value),t.children.forEach(re)}class ae{constructor(t,e){this.routes=t,this.module=e}}function oe(t){return"function"==typeof t}function le(t){return t instanceof lt}const ce=Symbol("INITIAL_VALUE");function de(){return Object(g.a)(t=>Object(l.b)(t.map(t=>t.pipe(Object(b.a)(1),Object(v.a)(ce)))).pipe(Object(y.a)((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==ce)return t;if(i===ce&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||le(i))return i}return t},t)},ce),Object(_.a)(t=>t!==ce),Object(f.a)(t=>le(t)?t:!0===t),Object(b.a)(1)))}class pe{}function ue(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];he(i,me(e,i))}}function he(t,e){t.children&&ue(t.children,e)}function me(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function fe(t){const e=t.children&&t.children.map(fe),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==Y&&(n.component=pe),n}function ge(t){return t.outlet||Y}function be(t,e){const n=t.filter(t=>ge(t)===e);return n.push(...t.filter(t=>ge(t)!==e)),n}pe.decorators=[{type:s.Component,args:[{template:"<router-outlet></router-outlet>"}]}];const ve={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function ye(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},ve):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const s=(e.matcher||X)(n,t,e);if(!s)return Object.assign({},ve);const r={};nt(s.posParams,(t,e)=>{r[e]=t.path});const a=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:a,positionalParamSegments:null!==(i=s.posParams)&&void 0!==i?i:{}}}function _e(t,e,n,i,s="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>we(t,e,n)&&ge(n)!==Y)}(t,n,i)){const s=new ct(e,function(t,e,n,i){const s={};s[Y]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&ge(r)!==Y){const n=new ct([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[ge(r)]=n}return s}(t,e,i,new ct(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>we(t,e,n))}(t,n,i)){const r=new ct(t.segments,function(t,e,n,i,s,r){const a={};for(const o of i)if(we(t,n,o)&&!s[ge(o)]){const n=new ct([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,a[ge(o)]=n}return Object.assign(Object.assign({},s),a)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new ct(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function we(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function xe(t,e,n,i){return!!(ge(t)===i||i!==Y&&we(e,n,t))&&("**"===t.path||ye(e,t,n).matched)}function Ce(t,e,n){return 0===e.length&&!t.children[n]}class Se{constructor(t){this.segmentGroup=t||null}}class ke{constructor(t){this.urlTree=t}}function Ee(t){return new c.a(e=>e.error(new Se(t)))}function Ie(t){return new c.a(e=>e.error(new ke(t)))}function Ae(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class De{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.NgModuleRef)}apply(){const t=_e(this.urlTree.root,[],[],this.config).segmentGroup,e=new ct(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Y).pipe(Object(f.a)(t=>this.createUrlTree(Te(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(w.a)(t=>{if(t instanceof ke)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Se)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Y).pipe(Object(f.a)(e=>this.createUrlTree(Te(e),t.queryParams,t.fragment))).pipe(Object(w.a)(t=>{if(t instanceof Se)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new ct([],{[Y]:t}):t;return new lt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(f.a)(t=>new ct([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const s of Object.keys(n.children))"primary"===s?i.unshift(s):i.push(s);return Object(r.a)(i).pipe(Object(x.a)(i=>{const s=n.children[i],r=be(e,i);return this.expandSegmentGroup(t,r,s,i).pipe(Object(f.a)(t=>({segment:t,outlet:i})))}),Object(y.a)((t,e)=>(t[e.outlet]=e.segment,t),{}),Object(C.a)())}expandSegment(t,e,n,i,s,o){return Object(r.a)(n).pipe(Object(x.a)(r=>this.expandSegmentAgainstRoute(t,e,n,r,i,s,o).pipe(Object(w.a)(t=>{if(t instanceof Se)return Object(a.a)(null);throw t}))),Object(S.a)(t=>!!t),Object(w.a)((t,n)=>{if(t instanceof d.a||"EmptyError"===t.name){if(Ce(e,i,s))return Object(a.a)(new ct([],{}));throw new Se(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,s,r,a){return xe(i,e,s,r)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):Ee(e):Ee(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ie(s):this.lineralizeSegments(n,s).pipe(Object(k.b)(n=>{const s=new ct(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:a,consumedSegments:o,lastChild:l,positionalParamSegments:c}=ye(e,i,s);if(!a)return Ee(e);const d=this.applyRedirectCommands(o,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ie(d):this.lineralizeSegments(i,d).pipe(Object(k.b)(i=>this.expandSegment(t,e,n,i.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i,s){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(f.a)(t=>(n._loadedConfig=t,new ct(i,{})))):Object(a.a)(new ct(i,{}));const{matched:r,consumedSegments:o,lastChild:l}=ye(e,n,i);if(!r)return Ee(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(k.b)(t=>{const i=t.module,r=t.routes,{segmentGroup:l,slicedSegments:d}=_e(e,o,c,r),p=new ct(l.segments,l.children);if(0===d.length&&p.hasChildren()){return this.expandChildren(i,r,p).pipe(Object(f.a)(t=>new ct(o,t)))}if(0===r.length&&0===d.length)return Object(a.a)(new ct(o,{}));const u=ge(n)===s;return this.expandSegment(i,p,r,d,u?Y:s,!0).pipe(Object(f.a)(t=>new ct(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(a.a)(new ae(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(k.b)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(f.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(Z(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(a.a)(new ae([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(a.a)(!0);const s=i.map(i=>{const s=t.get(i);let r;if(function(t){return t&&oe(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!oe(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return it(r)});return Object(a.a)(s).pipe(de(),Object(E.a)(t=>{if(!le(t))return;const e=Z(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(f.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(a.a)(n);if(i.numberOfChildren>1||!i.children[Y])return Ae(t.redirectTo);i=i.children[Y]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new lt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return nt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return nt(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new ct(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Te(t){const e={};for(const n of Object.keys(t.children)){const i=Te(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[Y]){const e=t.children[Y];return new ct(t.segments.concat(e.segments),e.children)}return t}(new ct(t.segments,e))}function Oe(t,e,n,i){return Object(g.a)(s=>function(t,e,n,i,s){return new De(t,e,n,i,s).apply()}(t,e,n,s.extractedUrl,i).pipe(Object(f.a)(t=>Object.assign(Object.assign({},s),{urlAfterRedirects:t}))))}class Pe{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ne{constructor(t,e){this.component=t,this.route=e}}function Me(t,e,n){const i=t._root;return Le(i,e?e._root:null,n,[i.value])}function Re(t,e,n){const i=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(i?i.module.injector:n).get(t)}function Le(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=Pt(e);return t.children.forEach(t=>{!function(t,e,n,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=e?e.value:null,o=n?n.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!pt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pt(t.url,e.url)||!Q(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!zt(t,e)||!Q(t.queryParams,e.queryParams);case"paramsChange":default:return!zt(t,e)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new Pe(i)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?Le(t,e,o?o.children:null,i,s):Le(t,e,n,i,s),l&&o&&o.outlet&&o.outlet.isActivated&&s.canDeactivateChecks.push(new Ne(o.outlet.component,a))}else a&&Fe(e,o,s),s.canActivateChecks.push(new Pe(i)),r.component?Le(t,null,o?o.children:null,i,s):Le(t,null,n,i,s)}(t,r[t.value.outlet],n,i.concat([t.value]),s),delete r[t.value.outlet]}),nt(r,(t,e)=>Fe(t,n.getContext(e),s)),s}function Fe(t,e,n){const i=Pt(t),s=t.value;nt(i,(t,i)=>{s.component?Fe(t,e?e.children.getContext(i):null,n):Fe(t,e,n)}),s.component&&e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new Ne(e.outlet.component,s)):n.canDeactivateChecks.push(new Ne(null,s))}function je(t,e){return Object(k.b)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:l}}=n;return 0===l.length&&0===o.length?Object(a.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(r.a)(t).pipe(Object(k.b)(t=>function(t,e,n,i,s){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(a.a)(!0);const o=r.map(r=>{const a=Re(r,e,s);let o;if(function(t){return t&&oe(t.canDeactivate)}(a))o=it(a.canDeactivate(t,e,n,i));else{if(!oe(a))throw new Error("Invalid CanDeactivate guard");o=it(a(t,e,n,i))}return o.pipe(Object(S.a)())});return Object(a.a)(o).pipe(de())}(t.component,t.route,n,e,i)),Object(S.a)(t=>!0!==t,!0))}(l,i,s,t).pipe(Object(k.b)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(r.a)(e).pipe(Object(x.a)(e=>Object(p.a)(function(t,e){null!==t&&e&&e(new z(t));return Object(a.a)(!0)}(e.route.parent,i),function(t,e){null!==t&&e&&e(new q(t));return Object(a.a)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],s=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=>Object(u.a)(()=>{const s=e.guards.map(s=>{const r=Re(s,e.node,n);let a;if(function(t){return t&&oe(t.canActivateChild)}(r))a=it(r.canActivateChild(i,t));else{if(!oe(r))throw new Error("Invalid CanActivateChild guard");a=it(r(i,t))}return a.pipe(Object(S.a)())});return Object(a.a)(s).pipe(de())}));return Object(a.a)(s).pipe(de())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(a.a)(!0);const s=i.map(i=>Object(u.a)(()=>{const s=Re(i,e,n);let r;if(function(t){return t&&oe(t.canActivate)}(s))r=it(s.canActivate(e,t));else{if(!oe(s))throw new Error("Invalid CanActivate guard");r=it(s(e,t))}return r.pipe(Object(S.a)())}));return Object(a.a)(s).pipe(de())}(t,e.route,n))),Object(S.a)(t=>!0!==t,!0))}(i,o,t,e):Object(a.a)(n)),Object(f.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}class Ve{}function Be(t){return new c.a(e=>e.error(t))}class He{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){const t=_e(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Y);if(null===e)return null;const n=new Ft([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Y,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ot(n,e),s=new jt(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(t){const e=t.value,n=Lt(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 s of Object.keys(e.children)){const i=e.children[s],r=be(t,s),a=this.processSegmentGroup(r,i,s);if(null===a)return null;n.push(...a)}const i=function(t){const e=[];for(const n of t){if(!ze(n)){e.push(n);continue}const t=e.find(t=>n.value.routeConfig===t.value.routeConfig);void 0!==t?t.children.push(...n.children):e.push(n)}return e}(n);return i.sort((t,e)=>t.value.outlet===Y?-1:e.value.outlet===Y?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const s of t){const t=this.processSegmentAgainstRoute(s,e,n,i);if(null!==t)return t}return Ce(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!xe(t,e,n,i))return null;let s,r=[],a=[];if("**"===t.path){const i=n.length>0?et(n).parameters:{};s=new Ft(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),ge(t),t.component,t,Ue(e),qe(e)+n.length,We(t))}else{const i=ye(e,t,n);if(!i.matched)return null;r=i.consumedSegments,a=n.slice(i.lastChild),s=new Ft(r,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,$e(t),ge(t),t.component,t,Ue(e),qe(e)+r.length,We(t))}const o=function(t){if(t.children)return t.children;if(t.loadChildren)return t._loadedConfig.routes;return[]}(t),{segmentGroup:l,slicedSegments:c}=_e(e,r,a,o.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return null===t?null:[new Ot(s,t)]}if(0===o.length&&0===c.length)return[new Ot(s,[])];const d=ge(t)===i,p=this.processSegment(o,l,c,d?Y:i);return null===p?null:[new Ot(s,p)]}}function ze(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Ue(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function qe(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 $e(t){return t.data||{}}function We(t){return t.resolve||{}}function Ye(t,e,n,i,s){return Object(k.b)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){try{const o=new He(t,e,n,i,s,r).recognize();return null===o?Be(new Ve):Object(a.a)(o)}catch(o){return Be(o)}}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(Object(f.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t}))))}function Ge(t,e){return Object(k.b)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:s}}=n;if(!s.length)return Object(a.a)(n);let o=0;return Object(r.a)(s).pipe(Object(x.a)(n=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Object(a.a)({});const o={};return Object(r.a)(s).pipe(Object(k.b)(s=>function(t,e,n,i){const s=Re(t,e,i);return s.resolve?it(s.resolve(e,n)):it(s(e,n))}(t[s],e,n,i).pipe(Object(E.a)(t=>{o[s]=t}))),Object(I.a)(1),Object(k.b)(()=>Object.keys(o).length===s.length?Object(a.a)(o):h.a))}(t._resolve,t,e,i).pipe(Object(f.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Lt(t,n).resolve),null)))}(n.route,i,t,e)),Object(E.a)(()=>o++),Object(I.a)(1),Object(k.b)(t=>o===s.length?Object(a.a)(n):h.a))})}function Ke(t){return Object(g.a)(e=>{const n=t(e);return n?Object(r.a)(n).pipe(Object(f.a)(()=>e)):Object(a.a)(e)})}class Ze{}class Xe{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}class Qe extends Xe{}const Je=new s.InjectionToken("ROUTES");class tn{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){this.onLoadStartListener&&this.onLoadStartListener(e);return this.loadModuleFactory(e.loadChildren).pipe(Object(f.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new ae(tt(i.injector.get(Je)).map(fe),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(r.a)(this.loader.load(t)):it(t()).pipe(Object(k.b)(t=>t instanceof s.NgModuleFactory?Object(a.a)(t):Object(r.a)(this.compiler.compileModuleAsync(t))))}}class en{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new nn,this.attachRef=null}}class nn{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 en,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class sn{}class rn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function an(t){throw t}function on(t,e,n){return e.parse("/")}function ln(t,e){return Object(a.a)(null)}class cn{constructor(t,e,n,i,r,a,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new m.a,this.errorHandler=an,this.malformedUriErrorHandler=on,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ln,afterPreactivation:ln},this.urlHandlingStrategy=new rn,this.routeReuseStrategy=new Qe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected";this.ngModule=r.get(s.NgModuleRef),this.console=r.get(s["\u0275Console"]);const d=r.get(s.NgZone);this.isNgZoneEnabled=d instanceof s.NgZone&&s.NgZone.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new lt(new ct([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new tn(a,l,t=>this.triggerEvent(new B(t)),t=>this.triggerEvent(new H(t))),this.routerState=Mt(this.currentUrlTree,this.rootComponentType),this.transitions=new o.a({id: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()}setupNavigations(t){const e=this.events;return t.pipe(Object(_.a)(t=>0!==t.id),Object(f.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(g.a)(t=>{let n=!1,i=!1;return Object(a.a)(t).pipe(Object(E.a)(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}}),Object(g.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(g.a)(t=>{const n=this.transitions.getValue();return e.next(new O(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?h.a:Promise.resolve(t)}),Oe(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Object(E.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),Ye(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(E.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects);const n=new R(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:r,extras:o}=t,l=new O(n,this.serializeUrl(i),s,r);e.next(l);const c=Mt(i,this.rootComponentType).snapshot;return Object(a.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),h.a}),Ke(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:a}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!a})}),Object(E.a)(t=>{const e=new L(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(f.a)(t=>Object.assign(Object.assign({},t),{guards:Me(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),je(this.ngModule.injector,t=>this.triggerEvent(t)),Object(E.a)(t=>{if(le(t.guardsResult)){const e=Z(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new F(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(_.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new N(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ke(t=>{if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(E.a)(t=>{const e=new j(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(g.a)(t=>{let n=!1;return Object(a.a)(t).pipe(Ge(this.paramsInheritanceStrategy,this.ngModule.injector),Object(E.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new N(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}))}),Object(E.a)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ke(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:a}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!a})}),Object(f.a)(t=>{const e=function(t,e,n){const i=Ut(t,e._root,n?n._root:void 0);return new Nt(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(E.a)(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.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,r=this.routeReuseStrategy,o=t=>this.triggerEvent(t),Object(f.a)(t=>(new se(r,t.targetRouterState,t.currentRouterState,o).activate(s),t))),Object(E.a)({next(){n=!0},complete(){n=!0}}),Object(A.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new N(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(w.a)(n=>{if(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=le(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new N(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new M(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return h.a}));var s,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:i}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(i,t,n,s)},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){ue(t),this.config=t.map(fe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:s,queryParamsHandling:r,preserveFragment:a}=e,o=n||this.routerState.root,l=a?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),$t(o,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=le(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"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){if(le(t))return st(this.currentUrlTree,t,e);const n=this.parseUrl(t);return st(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new P(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,s){const r=this.getTransition(),a="imperative"!==e&&"imperative"===(null==r?void 0:r.source),o=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(a&&o)return Promise.resolve(!0);let l,c,d;s?(l=s.resolve,c=s.reject,d=s.promise):d=new Promise((t,e)=>{l=t,c=e});const p=++this.navigationId;return this.setTransition({id:p,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}cn.decorators=[{type:s.Injectable}],cn.ctorParameters=()=>[{type:s.Type},{type:ut},{type:nn},{type:i.Location},{type:s.Injector},{type:s.NgModuleFactoryLoader},{type:s.Compiler},{type:void 0}];class dn{constructor(t,e,n,i,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new m.a,null==n&&i.setAttribute(s.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:un(this.skipLocationChange),replaceUrl:un(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:un(this.preserveFragment)})}}dn.decorators=[{type:s.Directive,args:[{selector:":not(a):not(area)[routerLink]"}]}],dn.ctorParameters=()=>[{type:cn},{type:Rt},{type:String,decorators:[{type:s.Attribute,args:["tabindex"]}]},{type:s.Renderer2},{type:s.ElementRef}],dn.propDecorators={queryParams:[{type:s.Input}],fragment:[{type:s.Input}],queryParamsHandling:[{type:s.Input}],preserveFragment:[{type:s.Input}],skipLocationChange:[{type:s.Input}],replaceUrl:[{type:s.Input}],state:[{type:s.Input}],routerLink:[{type:s.Input}],onClick:[{type:s.HostListener,args:["click"]}]};class pn{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new m.a,this.subscription=t.events.subscribe(t=>{t instanceof P&&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,i,s){if(0!==t||e||n||i||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:un(this.skipLocationChange),replaceUrl:un(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:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:un(this.preserveFragment)})}}function un(t){return""===t||!!t}pn.decorators=[{type:s.Directive,args:[{selector:"a[routerLink],area[routerLink]"}]}],pn.ctorParameters=()=>[{type:cn},{type:Rt},{type:i.LocationStrategy}],pn.propDecorators={target:[{type:s.HostBinding,args:["attr.target"]},{type:s.Input}],queryParams:[{type:s.Input}],fragment:[{type:s.Input}],queryParamsHandling:[{type:s.Input}],preserveFragment:[{type:s.Input}],skipLocationChange:[{type:s.Input}],replaceUrl:[{type:s.Input}],state:[{type:s.Input}],href:[{type:s.HostBinding}],routerLink:[{type:s.Input}],onClick:[{type:s.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.shiftKey","$event.altKey","$event.metaKey"]]}]};class hn{constructor(t,e,n,i,s,r){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=s,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof P&&this.update()})}ngAfterContentInit(){Object(a.a)(this.links.changes,this.linksWithHrefs.changes,Object(a.a)(null)).pipe(Object(D.a)()).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=Object(r.a)(e).pipe(Object(D.a)()).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){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}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)}}hn.decorators=[{type:s.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],hn.ctorParameters=()=>[{type:cn},{type:s.ElementRef},{type:s.Renderer2},{type:s.ChangeDetectorRef},{type:dn,decorators:[{type:s.Optional}]},{type:pn,decorators:[{type:s.Optional}]}],hn.propDecorators={links:[{type:s.ContentChildren,args:[dn,{descendants:!0}]}],linksWithHrefs:[{type:s.ContentChildren,args:[pn,{descendants:!0}]}],routerLinkActiveOptions:[{type:s.Input}],routerLinkActive:[{type:s.Input}]};class mn{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.EventEmitter,this.deactivateEvents=new s.EventEmitter,this.name=i||Y,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=t._futureSnapshot.routeConfig.component,i=(e=e||this.resolver).resolveComponentFactory(n),s=this.parentContexts.getOrCreateContext(this.name).children,r=new fn(t,s,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}mn.decorators=[{type:s.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],mn.ctorParameters=()=>[{type:nn},{type:s.ViewContainerRef},{type:s.ComponentFactoryResolver},{type:String,decorators:[{type:s.Attribute,args:["name"]}]},{type:s.ChangeDetectorRef}],mn.propDecorators={activateEvents:[{type:s.Output,args:["activate"]}],deactivateEvents:[{type:s.Output,args:["deactivate"]}]};class fn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Rt?this.route:t===nn?this.childContexts:this.parent.get(t,e)}}class gn{}class bn{preload(t,e){return e().pipe(Object(w.a)(()=>Object(a.a)(null)))}}class vn{preload(t,e){return Object(a.a)(null)}}class yn{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s;this.loader=new tn(e,n,e=>t.triggerEvent(new B(e)),e=>t.triggerEvent(new H(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(_.a)(t=>t instanceof P),Object(x.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.NgModuleRef);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(r.a)(n).pipe(Object(D.a)(),Object(f.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(k.b)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}yn.decorators=[{type:s.Injectable}],yn.ctorParameters=()=>[{type:cn},{type:s.NgModuleFactoryLoader},{type:s.Compiler},{type:s.Injector},{type:gn}];class _n{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 O?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof P&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof W&&(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 W(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}_n.decorators=[{type:s.Injectable}],_n.ctorParameters=()=>[{type:cn},{type:i.ViewportScroller},{type:void 0}];const wn=[mn,dn,pn,hn,pe],xn=new s.InjectionToken("ROUTER_CONFIGURATION"),Cn=new s.InjectionToken("ROUTER_FORROOT_GUARD"),Sn=[i.Location,{provide:ut,useClass:ht},{provide:cn,useFactory:On,deps:[ut,nn,i.Location,s.Injector,s.NgModuleFactoryLoader,s.Compiler,Je,xn,[sn,new s.Optional],[Ze,new s.Optional]]},nn,{provide:Rt,useFactory:Nn,deps:[cn]},{provide:s.NgModuleFactoryLoader,useClass:s.SystemJsNgModuleLoader},yn,vn,bn,{provide:xn,useValue:{enableTracing:!1}}];function kn(){return new s.NgProbeToken("Router",cn)}class En{constructor(t,e){}static forRoot(t,e){return{ngModule:En,providers:[Sn,Tn(t),{provide:Cn,useFactory:Dn,deps:[[cn,new s.Optional,new s.SkipSelf]]},{provide:xn,useValue:e||{}},{provide:i.LocationStrategy,useFactory:An,deps:[i.PlatformLocation,[new s.Inject(i.APP_BASE_HREF),new s.Optional],xn]},{provide:_n,useFactory:In,deps:[cn,i.ViewportScroller,xn]},{provide:gn,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:vn},{provide:s.NgProbeToken,multi:!0,useFactory:kn},jn()]}}static forChild(t){return{ngModule:En,providers:[Tn(t)]}}}function In(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new _n(t,e,n)}function An(t,e,n={}){return n.useHash?new i.HashLocationStrategy(t,e):new i.PathLocationStrategy(t,e)}function Dn(t){return"guarded"}function Tn(t){return[{provide:s.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Je,multi:!0,useValue:t}]}function On(t,e,n,s,r,a,o,l={},c,d){const p=new cn(null,t,e,n,s,r,a,tt(o));if(c&&(p.urlHandlingStrategy=c),d&&(p.routeReuseStrategy=d),Pn(l,p),l.enableTracing){const t=Object(i["\u0275getDOM"])();p.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return p}function Pn(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)}function Nn(t){return t.routerState.root}En.decorators=[{type:s.NgModule,args:[{declarations:wn,exports:wn,entryComponents:[pe]}]}],En.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cn]}]},{type:cn,decorators:[{type:s.Optional}]}];class Mn{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new m.a}appInitializer(){return this.injector.get(i.LOCATION_INITIALIZED,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(cn),i=this.injector.get(xn);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(a.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(xn),n=this.injector.get(yn),i=this.injector.get(_n),r=this.injector.get(cn),a=this.injector.get(s.ApplicationRef);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}function Rn(t){return t.appInitializer.bind(t)}function Ln(t){return t.bootstrapListener.bind(t)}Mn.decorators=[{type:s.Injectable}],Mn.ctorParameters=()=>[{type:s.Injector}];const Fn=new s.InjectionToken("Router Initializer");function jn(){return[Mn,{provide:s.APP_INITIALIZER,multi:!0,useFactory:Rn,deps:[Mn]},{provide:Fn,useFactory:Ln,deps:[Mn]},{provide:s.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Fn}]}const Vn=new s.Version("11.0.9")},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return d});var i=n("z+Ro"),s=n("DH7j"),r=n("l7GE"),a=n("ZUHj"),o=n("yCtX");const l={};function c(...t){let e,n;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(o.a)(t,n).lift(new d(e))}class d{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new p(t,this.resultSelector))}}class p extends r.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(l),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++){const e=t[n];this.add(Object(a.a)(this,e,void 0,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,s=i[n],r=this.toRespond?s===l?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},jZKg:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("HDdC"),s=n("quSY");function r(t,e){return new i.a(n=>{const i=new s.a;let r=0;return i.add(e.schedule(function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("XNiG"),s=n("qgXg"),r=n("quSY"),a=n("pxpQ"),o=n("9ppp"),l=n("Ylt2");class c extends i.a{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 d(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;let c;if(this.closed)throw new o.a;if(this.isStopped||this.hasError?c=r.a.EMPTY:(this.observers.push(t),c=new l.a(this,t)),i&&t.add(t=new a.a(t,i)),e)for(let r=0;r<s&&!t.closed;r++)t.next(n[r]);else for(let r=0;r<s&&!t.closed;r++)t.next(n[r].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),c}_getNow(){return(this.scheduler||s.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,s=i.length;let r=0;for(;r<s&&!(t-i[r].time<n);)r++;return s>e&&(r=Math.max(r,s-e)),r>0&&i.splice(0,r),i}}class d{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},kU1M:function(t,e,n){"use strict";n.r(e),n.d(e,"audit",function(){return i.a}),n.d(e,"auditTime",function(){return s.a}),n.d(e,"buffer",function(){return a}),n.d(e,"bufferCount",function(){return d}),n.d(e,"bufferTime",function(){return g}),n.d(e,"bufferToggle",function(){return E}),n.d(e,"bufferWhen",function(){return D}),n.d(e,"catchError",function(){return P.a}),n.d(e,"combineAll",function(){return M}),n.d(e,"combineLatest",function(){return F}),n.d(e,"concat",function(){return V}),n.d(e,"concatAll",function(){return B.a}),n.d(e,"concatMap",function(){return H.a}),n.d(e,"concatMapTo",function(){return z}),n.d(e,"count",function(){return U}),n.d(e,"debounce",function(){return W}),n.d(e,"debounceTime",function(){return K.a}),n.d(e,"defaultIfEmpty",function(){return Z.a}),n.d(e,"delay",function(){return X.a}),n.d(e,"delayWhen",function(){return J}),n.d(e,"dematerialize",function(){return st}),n.d(e,"distinct",function(){return ot}),n.d(e,"distinctUntilChanged",function(){return dt.a}),n.d(e,"distinctUntilKeyChanged",function(){return pt}),n.d(e,"elementAt",function(){return gt}),n.d(e,"endWith",function(){return vt}),n.d(e,"every",function(){return yt}),n.d(e,"exhaust",function(){return xt}),n.d(e,"exhaustMap",function(){return Et}),n.d(e,"expand",function(){return Dt}),n.d(e,"filter",function(){return ht.a}),n.d(e,"finalize",function(){return Pt.a}),n.d(e,"find",function(){return Nt}),n.d(e,"findIndex",function(){return Lt}),n.d(e,"first",function(){return Ft.a}),n.d(e,"groupBy",function(){return jt.b}),n.d(e,"ignoreElements",function(){return Vt}),n.d(e,"isEmpty",function(){return zt}),n.d(e,"last",function(){return $t.a}),n.d(e,"map",function(){return kt.a}),n.d(e,"mapTo",function(){return Wt}),n.d(e,"materialize",function(){return Zt}),n.d(e,"max",function(){return ie}),n.d(e,"merge",function(){return re}),n.d(e,"mergeAll",function(){return ae.a}),n.d(e,"mergeMap",function(){return oe.b}),n.d(e,"flatMap",function(){return oe.a}),n.d(e,"mergeMapTo",function(){return le}),n.d(e,"mergeScan",function(){return ce}),n.d(e,"min",function(){return ue}),n.d(e,"multicast",function(){return he.a}),n.d(e,"observeOn",function(){return me.b}),n.d(e,"onErrorResumeNext",function(){return fe}),n.d(e,"pairwise",function(){return ve.a}),n.d(e,"partition",function(){return _e}),n.d(e,"pluck",function(){return we}),n.d(e,"publish",function(){return Ce}),n.d(e,"publishBehavior",function(){return ke}),n.d(e,"publishLast",function(){return Ie}),n.d(e,"publishReplay",function(){return De}),n.d(e,"race",function(){return Oe}),n.d(e,"reduce",function(){return ne}),n.d(e,"repeat",function(){return Ne}),n.d(e,"repeatWhen",function(){return Le}),n.d(e,"retry",function(){return Ve.a}),n.d(e,"retryWhen",function(){return Be}),n.d(e,"refCount",function(){return Ue.a}),n.d(e,"sample",function(){return qe}),n.d(e,"sampleTime",function(){return Ye}),n.d(e,"scan",function(){return Jt.a}),n.d(e,"sequenceEqual",function(){return Xe}),n.d(e,"share",function(){return en.a}),n.d(e,"shareReplay",function(){return nn.a}),n.d(e,"single",function(){return rn}),n.d(e,"skip",function(){return ln.a}),n.d(e,"skipLast",function(){return cn}),n.d(e,"skipUntil",function(){return un}),n.d(e,"skipWhile",function(){return fn}),n.d(e,"startWith",function(){return vn.a}),n.d(e,"subscribeOn",function(){return xn}),n.d(e,"switchAll",function(){return En}),n.d(e,"switchMap",function(){return Sn.a}),n.d(e,"switchMapTo",function(){return In}),n.d(e,"take",function(){return ft.a}),n.d(e,"takeLast",function(){return te.a}),n.d(e,"takeUntil",function(){return An.a}),n.d(e,"takeWhile",function(){return Dn.a}),n.d(e,"tap",function(){return Tn.a}),n.d(e,"throttle",function(){return Pn}),n.d(e,"throttleTime",function(){return Rn}),n.d(e,"throwIfEmpty",function(){return mt.a}),n.d(e,"timeInterval",function(){return Bn}),n.d(e,"timeout",function(){return Gn}),n.d(e,"timeoutWith",function(){return qn}),n.d(e,"timestamp",function(){return Kn}),n.d(e,"toArray",function(){return Qn}),n.d(e,"window",function(){return Jn}),n.d(e,"windowCount",function(){return ni}),n.d(e,"windowTime",function(){return ri}),n.d(e,"windowToggle",function(){return ui}),n.d(e,"windowWhen",function(){return fi}),n.d(e,"withLatestFrom",function(){return vi.a}),n.d(e,"zip",function(){return _i}),n.d(e,"zipAll",function(){return wi});var i=n("tnsW"),s=n("3UWI"),r=n("zx2A");function a(t){return function(e){return e.lift(new o(t))}}class o{constructor(t){this.closingNotifier=t}call(t,e){return e.subscribe(new l(t,this.closingNotifier))}}class l extends r.b{constructor(t,e){super(t),this.buffer=[],this.add(Object(r.c)(e,new r.a(this)))}_next(t){this.buffer.push(t)}notifyNext(){const t=this.buffer;this.buffer=[],this.destination.next(t)}}var c=n("7o/Q");function d(t,e=null){return function(n){return n.lift(new p(t,e))}}class p{constructor(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?h:u}call(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))}}class u extends c.a{constructor(t,e){super(t),this.bufferSize=e,this.buffer=[]}_next(t){const e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])}_complete(){const t=this.buffer;t.length>0&&this.destination.next(t),super._complete()}}class h extends c.a{constructor(t,e,n){super(t),this.bufferSize=e,this.startBufferEvery=n,this.buffers=[],this.count=0}_next(t){const{bufferSize:e,startBufferEvery:n,buffers:i,count:s}=this;this.count++,s%n==0&&i.push([]);for(let r=i.length;r--;){const n=i[r];n.push(t),n.length===e&&(i.splice(r,1),this.destination.next(n))}}_complete(){const{buffers:t,destination:e}=this;for(;t.length>0;){let n=t.shift();n.length>0&&e.next(n)}super._complete()}}var m=n("D0XW"),f=n("z+Ro");function g(t){let e=arguments.length,n=m.a;Object(f.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);let i=null;e>=2&&(i=arguments[1]);let s=Number.POSITIVE_INFINITY;return e>=3&&(s=arguments[2]),function(e){return e.lift(new b(t,i,s,n))}}class b{constructor(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}call(t,e){return e.subscribe(new y(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class v{constructor(){this.buffer=[]}}class y extends c.a{constructor(t,e,n,i,s){super(t),this.bufferTimeSpan=e,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=s,this.contexts=[];const r=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly){const t={subscriber:this,context:r,bufferTimeSpan:e};this.add(r.closeAction=s.schedule(_,e,t))}else{const t={subscriber:this,context:r},i={bufferTimeSpan:e,bufferCreationInterval:n,subscriber:this,scheduler:s};this.add(r.closeAction=s.schedule(x,e,t)),this.add(s.schedule(w,n,i))}}_next(t){const e=this.contexts,n=e.length;let i;for(let s=0;s<n;s++){const n=e[s],r=n.buffer;r.push(t),r.length==this.maxBufferSize&&(i=n)}i&&this.onBufferFull(i)}_error(t){this.contexts.length=0,super._error(t)}_complete(){const{contexts:t,destination:e}=this;for(;t.length>0;){const n=t.shift();e.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(t){this.closeContext(t);const e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();const e=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:e};this.add(t.closeAction=this.scheduler.schedule(_,e,n))}}openContext(){const t=new v;return this.contexts.push(t),t}closeContext(t){this.destination.next(t.buffer);const e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}function _(t){const e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function w(t){const{bufferCreationInterval:e,bufferTimeSpan:n,subscriber:i,scheduler:s}=t,r=i.openContext(),a=this;i.closed||(i.add(r.closeAction=s.schedule(x,n,{subscriber:i,context:r})),a.schedule(t,e))}function x(t){const{subscriber:e,context:n}=t;e.closeContext(n)}var C=n("quSY"),S=n("ZUHj"),k=n("l7GE");function E(t,e){return function(n){return n.lift(new I(t,e))}}class I{constructor(t,e){this.openings=t,this.closingSelector=e}call(t,e){return e.subscribe(new A(t,this.openings,this.closingSelector))}}class A extends k.a{constructor(t,e,n){super(t),this.closingSelector=n,this.contexts=[],this.add(Object(S.a)(this,e))}_next(t){const e=this.contexts,n=e.length;for(let i=0;i<n;i++)e[i].buffer.push(t)}_error(t){const e=this.contexts;for(;e.length>0;){const t=e.shift();t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._error(t)}_complete(){const t=this.contexts;for(;t.length>0;){const e=t.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._complete()}notifyNext(t,e){t?this.closeBuffer(t):this.openBuffer(e)}notifyComplete(t){this.closeBuffer(t.context)}openBuffer(t){try{const e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(e){this._error(e)}}closeBuffer(t){const e=this.contexts;if(e&&t){const{buffer:n,subscription:i}=t;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(i),i.unsubscribe()}}trySubscribe(t){const e=this.contexts,n=new C.a,i={buffer:[],subscription:n};e.push(i);const s=Object(S.a)(this,t,i);!s||s.closed?this.closeBuffer(i):(s.context=i,this.add(s),n.add(s))}}function D(t){return function(e){return e.lift(new T(t))}}class T{constructor(t){this.closingSelector=t}call(t,e){return e.subscribe(new O(t,this.closingSelector))}}class O extends r.b{constructor(t,e){super(t),this.closingSelector=e,this.subscribing=!1,this.openBuffer()}_next(t){this.buffer.push(t)}_complete(){const t=this.buffer;t&&this.destination.next(t),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let{closingSubscription:t}=this;t&&(this.remove(t),t.unsubscribe());const e=this.buffer;let n;this.buffer&&this.destination.next(e),this.buffer=[];try{const{closingSelector:t}=this;n=t()}catch(i){return this.error(i)}t=new C.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(r.c)(n,new r.a(this))),this.subscribing=!1}}var P=n("JIr8"),N=n("itXk");function M(t){return e=>e.lift(new N.a(t))}var R=n("DH7j"),L=n("Cfvw");function F(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(R.a)(t[0])&&(t=t[0].slice()),n=>n.lift.call(Object(L.a)([n,...t]),new N.a(e))}var j=n("GyhO");function V(...t){return e=>e.lift.call(Object(j.a)(e,...t))}var B=n("0EUg"),H=n("bOdf");function z(t,e){return Object(H.a)(()=>t,e)}function U(t){return e=>e.lift(new q(t,e))}class q{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new $(t,this.predicate,this.source))}}class $ extends c.a{constructor(t,e,n){super(t),this.predicate=e,this.source=n,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}function W(t){return e=>e.lift(new Y(t))}class Y{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new G(t,this.durationSelector))}}class G extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(e){this.destination.error(e)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=Object(r.c)(e,new r.a(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}var K=n("Kj3r"),Z=n("xbPD"),X=n("3E0/"),Q=n("HDdC");function J(t,e){return e?n=>new nt(n,e).lift(new tt(t)):e=>e.lift(new tt(t))}class tt{constructor(t){this.delayDurationSelector=t}call(t,e){return e.subscribe(new et(t,this.delayDurationSelector))}}class et extends k.a{constructor(t,e){super(t),this.delayDurationSelector=e,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(t,e,n,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()}notifyError(t,e){this._error(t)}notifyComplete(t){const e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()}_next(t){const e=this.index++;try{const n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(n){this.destination.error(n)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(t){t.unsubscribe();const e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue}tryDelay(t,e){const n=Object(S.a)(this,t,e);if(n&&!n.closed){this.destination.add(n),this.delayNotifierSubscriptions.push(n)}}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class nt extends Q.a{constructor(t,e){super(),this.source=t,this.subscriptionDelay=e}_subscribe(t){this.subscriptionDelay.subscribe(new it(t,this.source))}}class it extends c.a{constructor(t,e){super(),this.parent=t,this.source=e,this.sourceSubscribed=!1}_next(t){this.subscribeToSource()}_error(t){this.unsubscribe(),this.parent.error(t)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}function st(){return function(t){return t.lift(new rt)}}class rt{call(t,e){return e.subscribe(new at(t))}}class at extends c.a{constructor(t){super(t)}_next(t){t.observe(this.destination)}}function ot(t,e){return n=>n.lift(new lt(t,e))}class lt{constructor(t,e){this.keySelector=t,this.flushes=e}call(t,e){return e.subscribe(new ct(t,this.keySelector,this.flushes))}}class ct extends r.b{constructor(t,e,n){super(t),this.keySelector=e,this.values=new Set,n&&this.add(Object(r.c)(n,new r.a(this)))}notifyNext(){this.values.clear()}notifyError(t){this._error(t)}_next(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)}_useKeySelector(t){let e;const{destination:n}=this;try{e=this.keySelector(t)}catch(i){return void n.error(i)}this._finalizeNext(e,t)}_finalizeNext(t,e){const{values:n}=this;n.has(t)||(n.add(t),this.destination.next(e))}}var dt=n("/uUt");function pt(t,e){return Object(dt.a)((n,i)=>e?e(n[t],i[t]):n[t]===i[t])}var ut=n("4I5i"),ht=n("pLZG"),mt=n("XDbj"),ft=n("IzEk");function gt(t,e){if(t<0)throw new ut.a;const n=arguments.length>=2;return i=>i.pipe(Object(ht.a)((e,n)=>n===t),Object(ft.a)(1),n?Object(Z.a)(e):Object(mt.a)(()=>new ut.a))}var bt=n("LRne");function vt(...t){return e=>Object(j.a)(e,Object(bt.a)(...t))}function yt(t,e){return n=>n.lift(new _t(t,e,n))}class _t{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new wt(t,this.predicate,this.thisArg,this.source))}}class wt extends c.a{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function xt(){return t=>t.lift(new Ct)}class Ct{call(t,e){return e.subscribe(new St(t))}}class St extends r.b{constructor(t){super(t),this.hasCompleted=!1,this.hasSubscription=!1}_next(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(r.c)(t,new r.a(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}var kt=n("lJxs");function Et(t,e){return e?n=>n.pipe(Et((n,i)=>Object(L.a)(t(n,i)).pipe(Object(kt.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new It(t))}class It{constructor(t){this.project=t}call(t,e){return e.subscribe(new At(t,this.project))}}class At extends r.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new r.a(this),n=this.destination;n.add(e);const i=Object(r.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}function Dt(t,e=Number.POSITIVE_INFINITY,n){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,i=>i.lift(new Tt(t,e,n))}class Tt{constructor(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}call(t,e){return e.subscribe(new Ot(t,this.project,this.concurrent,this.scheduler))}}class Ot extends r.b{constructor(t,e,n,i){super(t),this.project=e,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(t){const{subscriber:e,result:n,value:i,index:s}=t;e.subscribeToProjection(n,i,s)}_next(t){const e=this.destination;if(e.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){e.next(t);try{const{project:e}=this,i=e(t,n);if(this.scheduler){const e={subscriber:this,result:i,value:t,index:n};this.destination.add(this.scheduler.schedule(Ot.dispatch,0,e))}else this.subscribeToProjection(i,t,n)}catch(i){e.error(i)}}else this.buffer.push(t)}subscribeToProjection(t,e,n){this.active++;this.destination.add(Object(r.c)(t,new r.a(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this._next(t)}notifyComplete(){const t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}var Pt=n("nYR2");function Nt(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return n=>n.lift(new Mt(t,n,!1,e))}class Mt{constructor(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}call(t,e){return e.subscribe(new Rt(t,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class Rt extends c.a{constructor(t,e,n,i,s){super(t),this.predicate=e,this.source=n,this.yieldIndex=i,this.thisArg=s,this.index=0}notifyComplete(t){const e=this.destination;e.next(t),e.complete(),this.unsubscribe()}_next(t){const{predicate:e,thisArg:n}=this,i=this.index++;try{e.call(n||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(s){this.destination.error(s)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}function Lt(t,e){return n=>n.lift(new Mt(t,n,!0,e))}var Ft=n("SxV6"),jt=n("OQgR");function Vt(){return function(t){return t.lift(new Bt)}}class Bt{call(t,e){return e.subscribe(new Ht(t))}}class Ht extends c.a{_next(t){}}function zt(){return t=>t.lift(new Ut)}class Ut{call(t,e){return e.subscribe(new qt(t))}}class qt extends c.a{constructor(t){super(t)}notifyComplete(t){const e=this.destination;e.next(t),e.complete()}_next(t){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var $t=n("NJ9Y");function Wt(t){return e=>e.lift(new Yt(t))}class Yt{constructor(t){this.value=t}call(t,e){return e.subscribe(new Gt(t,this.value))}}class Gt extends c.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var Kt=n("WMd4");function Zt(){return function(t){return t.lift(new Xt)}}class Xt{call(t,e){return e.subscribe(new Qt(t))}}class Qt extends c.a{constructor(t){super(t)}_next(t){this.destination.next(Kt.a.createNext(t))}_error(t){const e=this.destination;e.next(Kt.a.createError(t)),e.complete()}_complete(){const t=this.destination;t.next(Kt.a.createComplete()),t.complete()}}var Jt=n("Kqap"),te=n("BFxc"),ee=n("mCNh");function ne(t,e){return arguments.length>=2?function(n){return Object(ee.a)(Object(Jt.a)(t,e),Object(te.a)(1),Object(Z.a)(e))(n)}:function(e){return Object(ee.a)(Object(Jt.a)((e,n,i)=>t(e,n,i+1)),Object(te.a)(1))(e)}}function ie(t){return ne("function"==typeof t?(e,n)=>t(e,n)>0?e:n:(t,e)=>t>e?t:e)}var se=n("VRyK");function re(...t){return e=>e.lift.call(Object(se.a)(e,...t))}var ae=n("bHdf"),oe=n("5+tZ");function le(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?Object(oe.b)(()=>t,e,n):("number"==typeof e&&(n=e),Object(oe.b)(()=>t,n))}function ce(t,e,n=Number.POSITIVE_INFINITY){return i=>i.lift(new de(t,e,n))}class de{constructor(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}call(t,e){return e.subscribe(new pe(t,this.accumulator,this.seed,this.concurrent))}}class pe extends r.b{constructor(t,e,n,i){super(t),this.accumulator=e,this.acc=n,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){if(this.active<this.concurrent){const n=this.index++,i=this.destination;let s;try{const{accumulator:e}=this;s=e(this.acc,t,n)}catch(e){return i.error(e)}this.active++,this._innerSub(s)}else this.buffer.push(t)}_innerSub(t){const e=new r.a(this),n=this.destination;n.add(e);const i=Object(r.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(t){const{destination:e}=this;this.acc=t,this.hasValue=!0,e.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}function ue(t){return ne("function"==typeof t?(e,n)=>t(e,n)<0?e:n:(t,e)=>t<e?t:e)}var he=n("oB13"),me=n("pxpQ");function fe(...t){return 1===t.length&&Object(R.a)(t[0])&&(t=t[0]),e=>e.lift(new ge(t))}class ge{constructor(t){this.nextSources=t}call(t,e){return e.subscribe(new be(t,this.nextSources))}}class be extends r.b{constructor(t,e){super(t),this.destination=t,this.nextSources=e}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(t){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const t=this.nextSources.shift();if(t){const e=new r.a(this),n=this.destination;n.add(e);const i=Object(r.c)(t,e);i!==e&&n.add(i)}else this.destination.complete()}}var ve=n("Zy1z"),ye=n("F97/");function _e(t,e){return n=>[Object(ht.a)(t,e)(n),Object(ht.a)(Object(ye.a)(t,e))(n)]}function we(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(kt.a)(function(t,e){return n=>{let i=n;for(let s=0;s<e;s++){const e=null!=i?i[t[s]]:void 0;if(void 0===e)return;i=e}return i}}(t,e))(n)}var xe=n("XNiG");function Ce(t){return t?Object(he.a)(()=>new xe.a,t):Object(he.a)(new xe.a)}var Se=n("2Vo4");function ke(t){return e=>Object(he.a)(new Se.a(t))(e)}var Ee=n("NHP+");function Ie(){return t=>Object(he.a)(new Ee.a)(t)}var Ae=n("jtHE");function De(t,e,n,i){n&&"function"!=typeof n&&(i=n);const s="function"==typeof n?n:void 0,r=new Ae.a(t,e,i);return t=>Object(he.a)(()=>r,s)(t)}var Te=n("Nv8m");function Oe(...t){return function(e){return 1===t.length&&Object(R.a)(t[0])&&(t=t[0]),e.lift.call(Object(Te.a)(e,...t))}}var Pe=n("EY2u");function Ne(t=-1){return e=>0===t?Object(Pe.b)():t<0?e.lift(new Me(-1,e)):e.lift(new Me(t-1,e))}class Me{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new Re(t,this.count,this.source))}}class Re extends c.a{constructor(t,e,n){super(t),this.count=e,this.source=n}complete(){if(!this.isStopped){const{source:t,count:e}=this;if(0===e)return super.complete();e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}}}function Le(t){return e=>e.lift(new Fe(t))}class Fe{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new je(t,this.notifier,e))}}class je extends r.b{constructor(t,e,n){super(t),this.notifier=e,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:t}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=t,this}subscribeToRetries(){let t;this.notifications=new xe.a;try{const{notifier:e}=this;t=e(this.notifications)}catch(e){return super.complete()}this.retries=t,this.retriesSubscription=Object(r.c)(t,new r.a(this))}}var Ve=n("un/a");function Be(t){return e=>e.lift(new He(t,e))}class He{constructor(t,e){this.notifier=t,this.source=e}call(t,e){return e.subscribe(new ze(t,this.notifier,this.source))}}class ze extends r.b{constructor(t,e,n){super(t),this.notifier=e,this.source=n}error(t){if(!this.isStopped){let n=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new xe.a;try{const{notifier:t}=this;i=t(n)}catch(e){return super.error(e)}s=Object(r.c)(i,new r.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=s,n.next(t)}}_unsubscribe(){const{errors:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:t}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)}}var Ue=n("x+ZX");function qe(t){return e=>e.lift(new $e(t))}class $e{constructor(t){this.notifier=t}call(t,e){const n=new We(t),i=e.subscribe(n);return i.add(Object(r.c)(this.notifier,new r.a(n))),i}}class We extends r.b{constructor(){super(...arguments),this.hasValue=!1}_next(t){this.value=t,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}function Ye(t,e=m.a){return n=>n.lift(new Ge(t,e))}class Ge{constructor(t,e){this.period=t,this.scheduler=e}call(t,e){return e.subscribe(new Ke(t,this.period,this.scheduler))}}class Ke extends c.a{constructor(t,e,n){super(t),this.period=e,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(Ze,e,{subscriber:this,period:e}))}_next(t){this.lastValue=t,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function Ze(t){let{subscriber:e,period:n}=t;e.notifyNext(),this.schedule(t,n)}function Xe(t,e){return n=>n.lift(new Qe(t,e))}class Qe{constructor(t,e){this.compareTo=t,this.comparator=e}call(t,e){return e.subscribe(new Je(t,this.compareTo,this.comparator))}}class Je extends c.a{constructor(t,e,n){super(t),this.compareTo=e,this.comparator=n,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(e.subscribe(new tn(t,this)))}_next(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:t,_b:e,comparator:n}=this;for(;t.length>0&&e.length>0;){let s=t.shift(),r=e.shift(),a=!1;try{a=n?n(s,r):s===r}catch(i){this.destination.error(i)}a||this.emit(!1)}}emit(t){const{destination:e}=this;e.next(t),e.complete()}nextB(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class tn extends c.a{constructor(t,e){super(t),this.parent=e}_next(t){this.parent.nextB(t)}_error(t){this.parent.error(t),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}var en=n("w1tV"),nn=n("UXun"),sn=n("sVev");function rn(t){return e=>e.lift(new an(t,e))}class an{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new on(t,this.predicate,this.source))}}class on extends c.a{constructor(t,e,n){super(t),this.predicate=e,this.source=n,this.seenValue=!1,this.index=0}applySingleValue(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)}_next(t){const e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)}tryNext(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(n){this.destination.error(n)}}_complete(){const t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new sn.a)}}var ln=n("zP0r");function cn(t){return e=>e.lift(new dn(t))}class dn{constructor(t){if(this._skipCount=t,this._skipCount<0)throw new ut.a}call(t,e){return 0===this._skipCount?e.subscribe(new c.a(t)):e.subscribe(new pn(t,this._skipCount))}}class pn extends c.a{constructor(t,e){super(t),this._skipCount=e,this._count=0,this._ring=new Array(e)}_next(t){const e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{const i=n%e,s=this._ring,r=s[i];s[i]=t,this.destination.next(r)}}}function un(t){return e=>e.lift(new hn(t))}class hn{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new mn(t,this.notifier))}}class mn extends r.b{constructor(t,e){super(t),this.hasValue=!1;const n=new r.a(this);this.add(n),this.innerSubscription=n;const i=Object(r.c)(e,n);i!==n&&(this.add(i),this.innerSubscription=i)}_next(t){this.hasValue&&super._next(t)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}function fn(t){return e=>e.lift(new gn(t))}class gn{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new bn(t,this.predicate))}}class bn extends c.a{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}var vn=n("JX91"),yn=n("7Hc7"),_n=n("Y7HM");class wn extends Q.a{constructor(t,e=0,n=yn.a){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Object(_n.a)(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=yn.a)}static create(t,e=0,n=yn.a){return new wn(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){const e=this.delayTime,n=this.source;return this.scheduler.schedule(wn.dispatch,e,{source:n,subscriber:t})}}function xn(t,e=0){return function(n){return n.lift(new Cn(t,e))}}class Cn{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new wn(e,this.delay,this.scheduler).subscribe(t)}}var Sn=n("eIep"),kn=n("SpAZ");function En(){return Object(Sn.a)(kn.a)}function In(t,e){return e?Object(Sn.a)(()=>t,e):Object(Sn.a)(()=>t)}var An=n("1G5W"),Dn=n("GJmQ"),Tn=n("vkgz");const On={leading:!0,trailing:!1};function Pn(t,e=On){return n=>n.lift(new Nn(t,!!e.leading,!!e.trailing))}class Nn{constructor(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}call(t,e){return e.subscribe(new Mn(t,this.durationSelector,this.leading,this.trailing))}}class Mn extends r.b{constructor(t,e,n,i){super(t),this.destination=t,this.durationSelector=e,this._leading=n,this._trailing=i,this._hasValue=!1}_next(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))}send(){const{_hasValue:t,_sendValue:e}=this;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0}throttle(t){const e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(r.c)(e,new r.a(this)))}tryDurationSelector(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}}throttlingDone(){const{_throttled:t,_trailing:e}=this;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}function Rn(t,e=m.a,n=On){return i=>i.lift(new Ln(t,e,n.leading,n.trailing))}class Ln{constructor(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}call(t,e){return e.subscribe(new Fn(t,this.duration,this.scheduler,this.leading,this.trailing))}}class Fn extends c.a{constructor(t,e,n,i,s){super(t),this.duration=e,this.scheduler=n,this.leading=i,this.trailing=s,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(jn,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function jn(t){const{subscriber:e}=t;e.clearThrottle()}var Vn=n("NXyV");function Bn(t=m.a){return e=>Object(Vn.a)(()=>e.pipe(Object(Jt.a)(({current:e},n)=>({value:n,current:t.now(),last:e}),{current:t.now(),value:void 0,last:void 0}),Object(kt.a)(({current:t,last:e,value:n})=>new Hn(n,t-e))))}class Hn{constructor(t,e){this.value=t,this.interval=e}}var zn=n("Y6u4"),Un=n("mlxB");function qn(t,e,n=m.a){return i=>{let s=Object(Un.a)(t),r=s?+t-n.now():Math.abs(t);return i.lift(new $n(r,s,e,n))}}class $n{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new Wn(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class Wn extends r.b{constructor(t,e,n,i,s){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=s,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(r.c)(e,new r.a(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(Wn.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var Yn=n("z6cu");function Gn(t,e=m.a){return qn(t,Object(Yn.a)(new zn.a),e)}function Kn(t=m.a){return Object(kt.a)(e=>new Zn(e,t.now()))}class Zn{constructor(t,e){this.value=t,this.timestamp=e}}function Xn(t,e,n){return 0===n?[e]:(t.push(e),t)}function Qn(){return ne(Xn,[])}function Jn(t){return function(e){return e.lift(new ti(t))}}class ti{constructor(t){this.windowBoundaries=t}call(t,e){const n=new ei(t),i=e.subscribe(n);return i.closed||n.add(Object(r.c)(this.windowBoundaries,new r.a(n))),i}}class ei extends r.b{constructor(t){super(t),this.window=new xe.a,t.next(this.window)}notifyNext(){this.openWindow()}notifyError(t){this._error(t)}notifyComplete(){this._complete()}_next(t){this.window.next(t)}_error(t){this.window.error(t),this.destination.error(t)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const t=this.window;t&&t.complete();const e=this.destination,n=this.window=new xe.a;e.next(n)}}function ni(t,e=0){return function(n){return n.lift(new ii(t,e))}}class ii{constructor(t,e){this.windowSize=t,this.startWindowEvery=e}call(t,e){return e.subscribe(new si(t,this.windowSize,this.startWindowEvery))}}class si extends c.a{constructor(t,e,n){super(t),this.destination=t,this.windowSize=e,this.startWindowEvery=n,this.windows=[new xe.a],this.count=0,t.next(this.windows[0])}_next(t){const e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,s=this.windows,r=s.length;for(let o=0;o<r&&!this.closed;o++)s[o].next(t);const a=this.count-i+1;if(a>=0&&a%e==0&&!this.closed&&s.shift().complete(),++this.count%e==0&&!this.closed){const t=new xe.a;s.push(t),n.next(t)}}_error(t){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)}_complete(){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}function ri(t){let e=m.a,n=null,i=Number.POSITIVE_INFINITY;return Object(f.a)(arguments[3])&&(e=arguments[3]),Object(f.a)(arguments[2])?e=arguments[2]:Object(_n.a)(arguments[2])&&(i=Number(arguments[2])),Object(f.a)(arguments[1])?e=arguments[1]:Object(_n.a)(arguments[1])&&(n=Number(arguments[1])),function(s){return s.lift(new ai(t,n,i,e))}}class ai{constructor(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}call(t,e){return e.subscribe(new li(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class oi extends xe.a{constructor(){super(...arguments),this._numberOfNextedValues=0}next(t){this._numberOfNextedValues++,super.next(t)}get numberOfNextedValues(){return this._numberOfNextedValues}}class li extends c.a{constructor(t,e,n,i,s){super(t),this.destination=t,this.windowTimeSpan=e,this.windowCreationInterval=n,this.maxWindowSize=i,this.scheduler=s,this.windows=[];const r=this.openWindow();if(null!==n&&n>=0){const t={subscriber:this,window:r,context:null},i={windowTimeSpan:e,windowCreationInterval:n,subscriber:this,scheduler:s};this.add(s.schedule(pi,e,t)),this.add(s.schedule(di,n,i))}else{const t={subscriber:this,window:r,windowTimeSpan:e};this.add(s.schedule(ci,e,t))}}_next(t){const e=this.windows,n=e.length;for(let i=0;i<n;i++){const n=e[i];n.closed||(n.next(t),n.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(n))}}_error(t){const e=this.windows;for(;e.length>0;)e.shift().error(t);this.destination.error(t)}_complete(){const t=this.windows;for(;t.length>0;){const e=t.shift();e.closed||e.complete()}this.destination.complete()}openWindow(){const t=new oi;this.windows.push(t);return this.destination.next(t),t}closeWindow(t){t.complete();const e=this.windows;e.splice(e.indexOf(t),1)}}function ci(t){const{subscriber:e,windowTimeSpan:n,window:i}=t;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function di(t){const{windowTimeSpan:e,subscriber:n,scheduler:i,windowCreationInterval:s}=t,r=n.openWindow();let a={action:this,subscription:null};const o={subscriber:n,window:r,context:a};a.subscription=i.schedule(pi,e,o),this.add(a.subscription),this.schedule(t,s)}function pi(t){const{subscriber:e,window:n,context:i}=t;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}function ui(t,e){return n=>n.lift(new hi(t,e))}class hi{constructor(t,e){this.openings=t,this.closingSelector=e}call(t,e){return e.subscribe(new mi(t,this.openings,this.closingSelector))}}class mi extends k.a{constructor(t,e,n){super(t),this.openings=e,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=Object(S.a)(this,e,e))}_next(t){const{contexts:e}=this;if(e){const n=e.length;for(let i=0;i<n;i++)e[i].window.next(t)}}_error(t){const{contexts:e}=this;if(this.contexts=null,e){const n=e.length;let i=-1;for(;++i<n;){const n=e[i];n.window.error(t),n.subscription.unsubscribe()}}super._error(t)}_complete(){const{contexts:t}=this;if(this.contexts=null,t){const e=t.length;let n=-1;for(;++n<e;){const e=t[n];e.window.complete(),e.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:t}=this;if(this.contexts=null,t){const e=t.length;let n=-1;for(;++n<e;){const e=t[n];e.window.unsubscribe(),e.subscription.unsubscribe()}}}notifyNext(t,e,n,i,s){if(t===this.openings){let t;try{const{closingSelector:n}=this;t=n(e)}catch(r){return this.error(r)}const n=new xe.a,i=new C.a,s={window:n,subscription:i};this.contexts.push(s);const a=Object(S.a)(this,t,s);a.closed?this.closeWindow(this.contexts.length-1):(a.context=s,i.add(a)),this.destination.next(n)}else this.closeWindow(this.contexts.indexOf(t))}notifyError(t){this.error(t)}notifyComplete(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))}closeWindow(t){if(-1===t)return;const{contexts:e}=this,n=e[t],{window:i,subscription:s}=n;e.splice(t,1),i.complete(),s.unsubscribe()}}function fi(t){return function(e){return e.lift(new gi(t))}}class gi{constructor(t){this.closingSelector=t}call(t,e){return e.subscribe(new bi(t,this.closingSelector))}}class bi extends k.a{constructor(t,e){super(t),this.destination=t,this.closingSelector=e,this.openWindow()}notifyNext(t,e,n,i,s){this.openWindow(s)}notifyError(t){this._error(t)}notifyComplete(t){this.openWindow(t)}_next(t){this.window.next(t)}_error(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(t=null){t&&(this.remove(t),t.unsubscribe());const e=this.window;e&&e.complete();const n=this.window=new xe.a;let i;this.destination.next(n);try{const{closingSelector:t}=this;i=t()}catch(s){return this.destination.error(s),void this.window.error(s)}this.add(this.closingNotification=Object(S.a)(this,i))}}var vi=n("zp1y"),yi=n("1uah");function _i(...t){return function(e){return e.lift.call(Object(yi.b)(e,...t))}}function wi(t){return e=>e.lift(new yi.a(t))}},l5mm:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("D0XW"),r=n("Y7HM");function a(t=0,e=s.a){return(!Object(r.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=s.a),new i.a(n=>(n.add(e.schedule(o,t,{subscriber:n,counter:0,period:t})),n))}function o(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");class s extends i.a{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(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 a(t,this.project,this.thisArg))}}class a extends i.a{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)}}},la2H:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n){this._error="",this._errorDesc="",this._scopes="",this._error=t,e&&(this._errorDesc=e),n&&(this._scopes=n)}return Object.defineProperty(t.prototype,"error",{get:function(){return this._error},set:function(t){this._error=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorDesc",{get:function(){return this._errorDesc},set:function(t){this._errorDesc=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scopes",{get:function(){return this._scopes},set:function(t){this._scopes=t},enumerable:!0,configurable:!0}),t}();e.MSALError=i},mCNh:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return r});var i=n("SpAZ");function s(...t){return r(t)}function r(t){return 0===t.length?i.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mlxB:function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",function(){return i})},n2g9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("bd5T");i.Observable.prototype.delay=s.delay},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},nDsj:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n("Hm89"))},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q"),s=n("quSY");function r(t){return e=>e.lift(new a(t))}class a{constructor(t){this.callback=t}call(t,e){return e.subscribe(new o(t,this.callback))}}class o extends i.a{constructor(t,e){super(t),this.add(new s.a(e))}}},neMA:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("BilO")},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},oB13:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("EQ5u");function s(t,e){return function(n){let s;if(s="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new r(s,e));const a=Object.create(n,i.b);return a.source=n,a.subjectFactory=s,a}}class r{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,i=this.subjectFactory(),s=n(i).subscribe(t);return s.add(e.subscribe(i)),s}}},oWlK:function(t,e,n){"use strict";var i,s=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var r=n("8Y7J"),a=n("FGkh");n("neMA"),n("92bn"),n("yYKy");var o=n("W+46"),l=n("iInd"),c=n("WFZd"),d=n("ErMB"),p=n("la2H");e.MSAL_CONFIG=new r.InjectionToken("MSAL_CONFIG");var u=function(t){function n(e,n,i){var s=t.call(this,e.clientID,e.authority,null,{validateAuthority:e.validateAuthority,cacheLocation:e.cacheLocation,storeAuthStateInCookie:e.storeAuthStateInCookie,redirectUri:e.redirectUri,postLogoutRedirectUri:e.postLogoutRedirectUri,logger:new o.Logger(e.logger,{correlationId:e.correlationId,level:e.level,piiLoggingEnabled:e.piiLoggingEnabled}),loadFrameTimeout:e.loadFrameTimeout,navigateToLoginRequestUrl:e.navigateToLoginRequestUrl,isAngular:!0,unprotectedResources:e.unprotectedResources,protectedResourceMap:new Map(e.protectedResourceMap)})||this;s.config=e,s.router=n,s.broadcastService=i,s._oauthData={isAuthenticated:!1,userName:"",loginError:"",idToken:{}},s.loginScopes=[s.clientId,"openid","profile","user.read"],s.updateDataFromCache(s.loginScopes);var r=window.location.hash;return s.processHash(r),window.addEventListener("msal:popUpHashChanged",function(t){s._logger.verbose("popUpHashChanged "),s.processHash(t.detail)}),window.addEventListener("msal:popUpClosed",function(t){var e=t.detail.split("|"),n=new p.MSALError(e[0],e[1]);s.loginInProgress()?(i.broadcast("msal:loginFailure",n),s.setloginInProgress(!1)):s.getAcquireTokenInProgress()&&(i.broadcast("msal:acquireTokenFailure",n),s.setAcquireTokenInProgress(!1))}),s.router.events.subscribe(function(t){for(var e=0;e<n.config.length;e++)n.config[e].canActivate||s.config&&s.config.unprotectedResources&&(s.isUnprotectedResource(n.config[e].path)||s.isEmpty(n.config[e].path)||s.config.unprotectedResources.push(n.config[e].path))}),s}return s(n,t),n.prototype.updateDataFromCache=function(e){var n;n=t.prototype.getCachedTokenInternal.call(this,e,this.getUser()),this._oauthData.isAuthenticated=null!=n&&null!==n.token&&n.token.length>0;var i=this.getUser();i&&(this._oauthData.userName=i.name,this._oauthData.idToken=i.idToken),n&&n.error&&(this._oauthData.loginError=null==n?"":n.error)},n.prototype.processHash=function(t){var e=this;if(this.isCallback(t)){var n,i=!1,s=null,r=null;if(window.openedWindows.length>0&&window.openedWindows[window.openedWindows.length-1].opener&&window.openedWindows[window.openedWindows.length-1].opener.msal){var a=window.openedWindows[window.openedWindows.length-1].opener;i=!0,s=(n=a.msal).getRequestInfo(t),a.callBackMappedToRenewStates[s.stateResponse]&&(r=a.callBackMappedToRenewStates[s.stateResponse])}else window.parent&&window.parent.msal&&(s=(n=window.parent.msal).getRequestInfo(t),r=window.parent!==window&&window.parent.callBackMappedToRenewStates[s.stateResponse]?window.parent.callBackMappedToRenewStates[s.stateResponse]:n._tokenReceivedCallback);this.getLogger().verbose("Processing the hash: "+t),this.saveTokenFromHash(s);var l=s.parameters.access_token||s.parameters.id_token,c=s.parameters.error,u=s.parameters.error_description,h=null,m=new p.MSALError(c,u),f=new d.AuthenticationResult(l);if(s.stateMatch){if("RENEW_TOKEN"===s.requestType?(h=o.Constants.accessToken,f.tokenType=h,this._renewActive=!1,window.parent!==window||window.parent.callBackMappedToRenewStates[s.stateResponse]||(l?this.broadcastService.broadcast("msal:acquireTokenSuccess",f):c&&u&&this.broadcastService.broadcast("msal:acquireTokenFailure",m))):"LOGIN"===s.requestType&&(h=o.Constants.idToken,f.tokenType=h,this.updateDataFromCache(this.loginScopes),this._oauthData.userName?(setTimeout(function(){e.updateDataFromCache(e.loginScopes)},1),this.broadcastService.broadcast("msal:loginSuccess",f)):this.broadcastService.broadcast("msal:loginFailure",m)),r&&"function"==typeof r&&r(u,l,c,h),window.parent!==window)return void(event&&event.preventDefault&&event.preventDefault());if(window.parent===window&&!i)if(this._navigateToLoginRequestUrl){var g=this._cacheStorage.getItem(o.Constants.loginRequest);this._cacheStorage.setItem(o.Constants.urlHash,t),void 0!==g&&g&&0!==g.length&&(this._logger.verbose("Redirecting to start page: "+g),window.location.href=g)}else window.location.hash=""}else this.broadcastService.broadcast("msal:stateMismatch",m)}else{var b=this._cacheStorage.getItem(o.Constants.urlHash);b&&this.processRedirectCallBack(b)}},n.prototype.processRedirectCallBack=function(t){this._logger.info("Processing the callback from redirect response");var e,n=this.getRequestInfo(t),i=n.parameters[o.Constants.accessToken]||n.parameters[o.Constants.idToken],s=n.parameters[o.Constants.errorDescription],r=n.parameters[o.Constants.error];this._cacheStorage.removeItem(o.Constants.urlHash);var a=new p.MSALError(r,s),l=new d.AuthenticationResult(i);n.parameters[o.Constants.accessToken]?(e=o.Constants.accessToken,i?(l.tokenType=e,this.broadcastService.broadcast("msal:acquireTokenSuccess",l)):r&&s&&this.broadcastService.broadcast("msal:acquireTokenFailure",a)):(e=o.Constants.idToken,i?(l.tokenType=e,this.broadcastService.broadcast("msal:loginSuccess",l)):r&&s&&this.broadcastService.broadcast("msal:loginFailure",a))},n.prototype.isUnprotectedResource=function(t){if(this.config&&this.config.unprotectedResources)for(var e=0;e<this.config.unprotectedResources.length;e++)if(t.indexOf(this.config.unprotectedResources[e])>-1)return!0;return!1},n.prototype.isEmpty=function(t){return void 0===t||!t||0===t.length},n.prototype.authCallback=function(t,e,n,i){},n.prototype.clearCache=function(){t.prototype.clearCache.call(this)},n.prototype.getLogger=function(){return t.prototype.getLogger.call(this)},n.prototype.getCacheStorage=function(){return this._cacheStorage},n.prototype.isCallback=function(e){return t.prototype.isCallback.call(this,e)},n.prototype.loginRedirect=function(e,n){this._logger.verbose("login redirect flow"),t.prototype.loginRedirect.call(this,e,n)},n.prototype.loginPopup=function(e,n){var i=this;return this._logger.verbose("login popup flow"),t.prototype.loginPopup.call(this,e,n).then(function(t){var e=new d.AuthenticationResult(t,"idToken");return i.broadcastService.broadcast("msal:loginSuccess",e),t},function(t){var e=t.split("|"),n=new p.MSALError(e[0],e[1]);throw i._logger.error("Error during login:\n"+t),i.broadcastService.broadcast("msal:loginFailure",n),t})},n.prototype.logout=function(){this.user=null,t.prototype.logout.call(this)},n.prototype.getCachedTokenInternal=function(e){return t.prototype.getCachedTokenInternal.call(this,e,this.getUser())},n.prototype.acquireTokenSilent=function(e,n,i,s){var r=this;return t.prototype.acquireTokenSilent.call(this,e,n,i,s).then(function(t){r._renewActive=!1;var e=new d.AuthenticationResult(t);return r.broadcastService.broadcast("msal:acquireTokenSuccess",e),t},function(t){var n=t.split("|"),i=new p.MSALError(n[0],n[1]);throw r._renewActive=!1,r.broadcastService.broadcast("msal:acquireTokenFailure",i),r._logger.error("Error when acquiring token for scopes: "+e+" "+t),t})},n.prototype.acquireTokenPopup=function(e,n,i,s){var r=this;return t.prototype.acquireTokenPopup.call(this,e,n,i,s).then(function(t){r._renewActive=!1;var e=new d.AuthenticationResult(t);return r.broadcastService.broadcast("msal:acquireTokenSuccess",e),t},function(t){var n=t.split("|"),i=new p.MSALError(n[0],n[1]);throw r._renewActive=!1,r.broadcastService.broadcast("msal:acquireTokenFailure",i),r._logger.error("Error when acquiring token for scopes : "+e+" "+t),t})},n.prototype.acquireTokenRedirect=function(e,n,i,s){var r=this._cacheStorage.getItem(o.Constants.loginRequest);window.location.href!==r&&this._cacheStorage.setItem(o.Constants.loginRequest,window.location.href),t.prototype.acquireTokenRedirect.call(this,e,n,i,s)},n.prototype.loginInProgress=function(){return t.prototype.loginInProgress.call(this)},n.prototype.getUser=function(){return t.prototype.getUser.call(this)},n.prototype.getScopesForEndpoint=function(e){return t.prototype.getScopesForEndpoint.call(this,e)},n.prototype.clearCacheForScope=function(e){t.prototype.clearCacheForScope.call(this,e)},n.prototype.info=function(t){this._logger.info(t)},n.prototype.verbose=function(t){this._logger.verbose(t)},n.prototype.removeItem=function(t){this._cacheStorage.removeItem(t)},n.decorators=[{type:r.Injectable}],n.ctorParameters=function(){return[{type:a.MsalConfig,decorators:[{type:r.Inject,args:[e.MSAL_CONFIG]}]},{type:l.Router},{type:c.BroadcastService}]},n}(o.UserAgentApplication);e.MsalService=u},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(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 a(t,this.predicate,this.thisArg))}}class a extends i.a{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)}}},pjAE:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{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})()},pxpQ:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o});var i=n("7o/Q"),s=n("WMd4");function r(t,e=0){return function(n){return n.lift(new a(t,e))}}class a{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new o(t,this.scheduler,this.delay))}}class o extends i.a{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(o.dispatch,this.delay,new l(t,this.destination)))}_next(t){this.scheduleMessage(s.a.createNext(t))}_error(t){this.scheduleMessage(s.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(s.a.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.notification=t,this.destination=e}}},qCKp:function(t,e,n){"use strict";n.r(e),n.d(e,"Observable",function(){return i.a}),n.d(e,"ConnectableObservable",function(){return s.a}),n.d(e,"GroupedObservable",function(){return r.a}),n.d(e,"observable",function(){return a.a}),n.d(e,"Subject",function(){return o.a}),n.d(e,"BehaviorSubject",function(){return l.a}),n.d(e,"ReplaySubject",function(){return c.a}),n.d(e,"AsyncSubject",function(){return d.a}),n.d(e,"asap",function(){return p.a}),n.d(e,"asapScheduler",function(){return p.b}),n.d(e,"async",function(){return u.a}),n.d(e,"asyncScheduler",function(){return u.b}),n.d(e,"queue",function(){return h.a}),n.d(e,"queueScheduler",function(){return h.b}),n.d(e,"animationFrame",function(){return m.a}),n.d(e,"animationFrameScheduler",function(){return m.b}),n.d(e,"VirtualTimeScheduler",function(){return b}),n.d(e,"VirtualAction",function(){return v}),n.d(e,"Scheduler",function(){return y.a}),n.d(e,"Subscription",function(){return _.a}),n.d(e,"Subscriber",function(){return w.a}),n.d(e,"Notification",function(){return x.a}),n.d(e,"NotificationKind",function(){return x.b}),n.d(e,"pipe",function(){return C.a}),n.d(e,"noop",function(){return S.a}),n.d(e,"identity",function(){return k.a}),n.d(e,"isObservable",function(){return E.a}),n.d(e,"ArgumentOutOfRangeError",function(){return I.a}),n.d(e,"EmptyError",function(){return A.a}),n.d(e,"ObjectUnsubscribedError",function(){return D.a}),n.d(e,"UnsubscriptionError",function(){return T.a}),n.d(e,"TimeoutError",function(){return O.a}),n.d(e,"bindCallback",function(){return L}),n.d(e,"bindNodeCallback",function(){return V}),n.d(e,"combineLatest",function(){return U.b}),n.d(e,"concat",function(){return q.a}),n.d(e,"defer",function(){return $.a}),n.d(e,"empty",function(){return W.b}),n.d(e,"forkJoin",function(){return Y.a}),n.d(e,"from",function(){return G.a}),n.d(e,"fromEvent",function(){return K.a}),n.d(e,"fromEventPattern",function(){return X}),n.d(e,"generate",function(){return Q}),n.d(e,"iif",function(){return tt}),n.d(e,"interval",function(){return et.a}),n.d(e,"merge",function(){return nt.a}),n.d(e,"never",function(){return it.b}),n.d(e,"of",function(){return st.a}),n.d(e,"onErrorResumeNext",function(){return rt}),n.d(e,"pairs",function(){return at}),n.d(e,"partition",function(){return pt}),n.d(e,"race",function(){return ut.a}),n.d(e,"range",function(){return ht}),n.d(e,"throwError",function(){return ft.a}),n.d(e,"timer",function(){return gt.a}),n.d(e,"using",function(){return bt}),n.d(e,"zip",function(){return vt.b}),n.d(e,"scheduled",function(){return yt.a}),n.d(e,"EMPTY",function(){return W.a}),n.d(e,"NEVER",function(){return it.a}),n.d(e,"config",function(){return _t.a});var i=n("HDdC"),s=n("EQ5u"),r=n("OQgR"),a=n("kJWO"),o=n("XNiG"),l=n("2Vo4"),c=n("jtHE"),d=n("NHP+"),p=n("7Hc7"),u=n("D0XW"),h=n("qgXg"),m=n("eNwd"),f=n("3N8a"),g=n("IjjT");class b extends g.a{constructor(t=v,e=Number.POSITIVE_INFINITY){super(t,()=>this.frame),this.maxFrames=e,this.frame=0,this.index=-1}flush(){const{actions:t,maxFrames:e}=this;let n,i;for(;(i=t[0])&&i.delay<=e&&(t.shift(),this.frame=i.delay,!(n=i.execute(i.state,i.delay))););if(n){for(;i=t.shift();)i.unsubscribe();throw n}}}b.frameTimeFactor=10;class v extends f.a{constructor(t,e,n=(t.index+=1)){super(t,e),this.scheduler=t,this.work=e,this.index=n,this.active=!0,this.index=t.index=n}schedule(t,e=0){if(!this.id)return super.schedule(t,e);this.active=!1;const n=new v(this.scheduler,this.work);return this.add(n),n.schedule(t,e)}requestAsyncId(t,e,n=0){this.delay=t.frame+n;const{actions:i}=t;return i.push(this),i.sort(v.sortActions),!0}recycleAsyncId(t,e,n=0){}_execute(t,e){if(!0===this.active)return super._execute(t,e)}static sortActions(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1}}var y=n("Y/cZ"),_=n("quSY"),w=n("7o/Q"),x=n("WMd4"),C=n("mCNh"),S=n("KqfI"),k=n("SpAZ"),E=n("7+OI"),I=n("4I5i"),A=n("sVev"),D=n("9ppp"),T=n("pjAE"),O=n("Y6u4"),P=n("lJxs"),N=n("8Qeq"),M=n("DH7j"),R=n("z+Ro");function L(t,e,n){if(e){if(!Object(R.a)(e))return(...i)=>L(t,n)(...i).pipe(Object(P.a)(t=>Object(M.a)(t)?e(...t):e(t)));n=e}return function(...e){const s=this;let r;const a={context:s,subject:r,callbackFunc:t,scheduler:n};return new i.a(i=>{if(n){const t={args:e,subscriber:i,params:a};return n.schedule(F,0,t)}if(!r){r=new d.a;const n=(...t)=>{r.next(t.length<=1?t[0]:t),r.complete()};try{t.apply(s,[...e,n])}catch(o){Object(N.a)(r)?r.error(o):console.warn(o)}}return r.subscribe(i)})}}function F(t){const{args:e,subscriber:n,params:i}=t,{callbackFunc:s,context:r,scheduler:a}=i;let{subject:o}=i;if(!o){o=i.subject=new d.a;const t=(...t)=>{const e=t.length<=1?t[0]:t;this.add(a.schedule(j,0,{value:e,subject:o}))};try{s.apply(r,[...e,t])}catch(l){o.error(l)}}this.add(o.subscribe(n))}function j(t){const{value:e,subject:n}=t;n.next(e),n.complete()}function V(t,e,n){if(e){if(!Object(R.a)(e))return(...i)=>V(t,n)(...i).pipe(Object(P.a)(t=>Object(M.a)(t)?e(...t):e(t)));n=e}return function(...e){const s={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new i.a(i=>{const{context:r}=s;let{subject:a}=s;if(n)return n.schedule(B,0,{params:s,subscriber:i,context:r});if(!a){a=s.subject=new d.a;const n=(...t)=>{const e=t.shift();e?a.error(e):(a.next(t.length<=1?t[0]:t),a.complete())};try{t.apply(r,[...e,n])}catch(o){Object(N.a)(a)?a.error(o):console.warn(o)}}return a.subscribe(i)})}}function B(t){const{params:e,subscriber:n,context:i}=t,{callbackFunc:s,args:r,scheduler:a}=e;let o=e.subject;if(!o){o=e.subject=new d.a;const t=(...t)=>{const e=t.shift();if(e)this.add(a.schedule(z,0,{err:e,subject:o}));else{const e=t.length<=1?t[0]:t;this.add(a.schedule(H,0,{value:e,subject:o}))}};try{s.apply(i,[...r,t])}catch(l){this.add(a.schedule(z,0,{err:l,subject:o}))}}this.add(o.subscribe(n))}function H(t){const{value:e,subject:n}=t;n.next(e),n.complete()}function z(t){const{err:e,subject:n}=t;n.error(e)}var U=n("itXk"),q=n("GyhO"),$=n("NXyV"),W=n("EY2u"),Y=n("cp0P"),G=n("Cfvw"),K=n("xgIS"),Z=n("n6bG");function X(t,e,n){return n?X(t,e).pipe(Object(P.a)(t=>Object(M.a)(t)?n(...t):n(t))):new i.a(n=>{const i=(...t)=>n.next(1===t.length?t[0]:t);let s;try{s=t(i)}catch(r){return void n.error(r)}if(Object(Z.a)(e))return()=>e(i,s)})}function Q(t,e,n,s,r){let a,o;if(1==arguments.length){const i=t;o=i.initialState,e=i.condition,n=i.iterate,a=i.resultSelector||k.a,r=i.scheduler}else void 0===s||Object(R.a)(s)?(o=t,a=k.a,r=s):(o=t,a=s);return new i.a(t=>{let i=o;if(r)return r.schedule(J,0,{subscriber:t,iterate:n,condition:e,resultSelector:a,state:i});for(;;){if(e){let n;try{n=e(i)}catch(s){return void t.error(s)}if(!n){t.complete();break}}let r;try{r=a(i)}catch(s){return void t.error(s)}if(t.next(r),t.closed)break;try{i=n(i)}catch(s){return void t.error(s)}}})}function J(t){const{subscriber:e,condition:n}=t;if(e.closed)return;if(t.needIterate)try{t.state=t.iterate(t.state)}catch(s){return void e.error(s)}else t.needIterate=!0;if(n){let i;try{i=n(t.state)}catch(s){return void e.error(s)}if(!i)return void e.complete();if(e.closed)return}let i;try{i=t.resultSelector(t.state)}catch(s){return void e.error(s)}return e.closed||(e.next(i),e.closed)?void 0:this.schedule(t)}function tt(t,e=W.a,n=W.a){return Object($.a)(()=>t()?e:n)}var et=n("l5mm"),nt=n("VRyK"),it=n("5yfJ"),st=n("LRne");function rt(...t){if(0===t.length)return W.a;const[e,...n]=t;return 1===t.length&&Object(M.a)(e)?rt(...e):new i.a(t=>{const i=()=>t.add(rt(...n).subscribe(t));return Object(G.a)(e).subscribe({next(e){t.next(e)},error:i,complete:i})})}function at(t,e){return e?new i.a(n=>{const i=Object.keys(t),s=new _.a;return s.add(e.schedule(ot,0,{keys:i,index:0,subscriber:n,subscription:s,obj:t})),s}):new i.a(e=>{const n=Object.keys(t);for(let i=0;i<n.length&&!e.closed;i++){const s=n[i];t.hasOwnProperty(s)&&e.next([s,t[s]])}e.complete()})}function ot(t){const{keys:e,index:n,subscriber:i,subscription:s,obj:r}=t;if(!i.closed)if(n<e.length){const t=e[n];i.next([t,r[t]]),s.add(this.schedule({keys:e,index:n+1,subscriber:i,subscription:s,obj:r}))}else i.complete()}var lt=n("F97/"),ct=n("SeVD"),dt=n("pLZG");function pt(t,e,n){return[Object(dt.a)(e,n)(new i.a(Object(ct.a)(t))),Object(dt.a)(Object(lt.a)(e,n))(new i.a(Object(ct.a)(t)))]}var ut=n("Nv8m");function ht(t=0,e,n){return new i.a(i=>{void 0===e&&(e=t,t=0);let s=0,r=t;if(n)return n.schedule(mt,0,{index:s,count:e,start:t,subscriber:i});for(;;){if(s++>=e){i.complete();break}if(i.next(r++),i.closed)break}})}function mt(t){const{start:e,index:n,count:i,subscriber:s}=t;n>=i?s.complete():(s.next(e),s.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var ft=n("z6cu"),gt=n("PqYM");function bt(t,e){return new i.a(n=>{let i,s;try{i=t()}catch(a){return void n.error(a)}try{s=e(i)}catch(a){return void n.error(a)}const r=(s?Object(G.a)(s):W.a).subscribe(n);return()=>{r.unsubscribe(),i&&i.unsubscribe()}})}var vt=n("1uah"),yt=n("7HRe"),_t=n("2fFW")},qIMP:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("kU1M");e.pairwise=function(){return i.pairwise()(this)}},qgXg:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return l});var i=n("3N8a");class s extends i.a{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 r=n("IjjT");class a extends r.a{}const o=new a(s),l=o},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i,s=n("DH7j"),r=n("XoHu"),a=n("n6bG"),o=n("pjAE");class l{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:i,_subscriptions:d}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof l)e.remove(this);else if(null!==e)for(let s=0;s<e.length;++s){e[s].remove(this)}if(Object(a.a)(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(p){t=p instanceof o.a?c(p.errors):[p]}}if(Object(s.a)(d)){let e=-1,n=d.length;for(;++e<n;){const n=d[e];if(Object(r.a)(n))try{n.unsubscribe()}catch(p){t=t||[],p instanceof o.a?t=t.concat(c(p.errors)):t.push(p)}}}if(t)throw new o.a(t)}add(t){let e=t;if(!t)return l.EMPTY;switch(typeof t){case"function":e=new l(t);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof l)){const t=e;e=new l,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 l){if(n===this)return e;e._parentOrParents=[n,this]}else{if(-1!==n.indexOf(this))return e;n.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[e]:i.push(e),e}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}function c(t){return t.reduce((t,e)=>t.concat(e instanceof o.a?e.errors:e),[])}l.EMPTY=((i=new l).closed=!0,i)},sVev:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},tnsW:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("zx2A");function s(t){return function(e){return e.lift(new r(t))}}class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends i.b{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=Object(i.c)(n,new i.a(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()}}},tvAs:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return Object.defineProperty(t,"authorityUriInvalidPath",{get:function(){return"AuthorityUriInvalidPath"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"authorityUriInsecure",{get:function(){return"AuthorityUriInsecure"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"invalidAuthorityType",{get:function(){return"InvalidAuthorityType"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"unsupportedAuthorityValidation",{get:function(){return"UnsupportedAuthorityValidation"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"b2cAuthorityUriInvalidPath",{get:function(){return"B2cAuthorityUriInvalidPath"},enumerable:!0,configurable:!0}),t}();e.ErrorMessage=i},"un/a":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t=-1){return e=>e.lift(new r(t,e))}class r{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new a(t,this.count,this.source))}}class a extends i.a{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("7o/Q"),s=n("KqfI"),r=n("n6bG");function a(t,e,n){return function(i){return i.lift(new o(t,e,n))}}class o{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 i.a{constructor(t,e,n,i){super(t),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=i||s.a,Object(r.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.a,this._tapError=e.error||s.a,this._tapComplete=e.complete||s.a)}_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()}}},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("oB13"),s=n("x+ZX"),r=n("XNiG");function a(){return new r.a}function o(){return t=>Object(s.a)()(Object(i.a)(a)(t))}},wGW3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("qCKp"),s=n("iD44");i.Observable.prototype.mergeMap=s.mergeMap,i.Observable.prototype.flatMap=s.mergeMap},wpu4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.compareObjects=function(t,e){return!(!t||!e)&&!(!t.userIdentifier||!e.userIdentifier||t.userIdentifier!==e.userIdentifier)},t.expiresIn=function(t){return t||(t="3599"),this.now()+parseInt(t,10)},t.now=function(){return Math.round((new Date).getTime()/1e3)},t.isEmpty=function(t){return void 0===t||!t||0===t.length},t.extractIdToken=function(t){var e=this.decodeJwt(t);if(!e)return null;try{var n=e.JWSPayload,i=this.base64DecodeStringUrlSafe(n);return i?JSON.parse(i):null}catch(s){}return null},t.base64EncodeStringUrlSafe=function(t){return window.btoa?window.btoa(t):this.encode(t)},t.base64DecodeStringUrlSafe=function(t){return t=t.replace(/-/g,"+").replace(/_/g,"/"),window.atob?decodeURIComponent(encodeURIComponent(window.atob(t))):decodeURIComponent(encodeURIComponent(this.decode(t)))},t.encode=function(t){var e,n,i,s,r,a,o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",d=0;for(t=this.utf8Encode(t);d<t.length;)s=(e=t.charCodeAt(d++))>>2,r=(3&e)<<4|(n=t.charCodeAt(d++))>>4,a=(15&n)<<2|(i=t.charCodeAt(d++))>>6,o=63&i,isNaN(n)?a=o=64:isNaN(i)&&(o=64),c=c+l.charAt(s)+l.charAt(r)+l.charAt(a)+l.charAt(o);return c.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.utf8Encode=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},t.decode=function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=(t=String(t).replace(/=+$/,"")).length;if(n%4==1)throw new Error("The token to be decoded is not correctly encoded.");for(var i,s,r,a,o,l,c,d,p="",u=0;u<n;u+=4){if(i=e.indexOf(t.charAt(u)),s=e.indexOf(t.charAt(u+1)),r=e.indexOf(t.charAt(u+2)),a=e.indexOf(t.charAt(u+3)),u+2===n-1){l=(o=i<<18|s<<12|r<<6)>>16&255,c=o>>8&255,p+=String.fromCharCode(l,c);break}if(u+1===n-1){l=(o=i<<18|s<<12)>>16&255,p+=String.fromCharCode(l);break}l=(o=i<<18|s<<12|r<<6|a)>>16&255,c=o>>8&255,d=255&o,p+=String.fromCharCode(l,c,d)}return p},t.decodeJwt=function(t){if(this.isEmpty(t))return null;var e=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);return!e||e.length<4?null:{header:e[1],JWSPayload:e[2],JWSSig:e[3]}},t.deserialize=function(t){var e,n=/\+/g,i=/([^&=]+)=([^&]*)/g,s=function(t){return decodeURIComponent(t.replace(n," "))},r={};for(e=i.exec(t);e;)r[s(e[1])]=s(e[2]),e=i.exec(t);return r},t.isIntersectingScopes=function(t,e){t=this.convertToLowerCase(t);for(var n=0;n<e.length;n++)if(t.indexOf(e[n].toLowerCase())>-1)return!0;return!1},t.containsScope=function(t,e){return t=this.convertToLowerCase(t),e.every(function(e){return t.indexOf(e.toString().toLowerCase())>=0})},t.convertToLowerCase=function(t){return t.map(function(t){return t.toLowerCase()})},t.removeElement=function(t,e){return t.filter(function(t){return t!==e})},t.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},t.getLibraryVersion=function(){return"0.2.2"},t.replaceFirstPath=function(e,n){if(e.match(/^(https?\:)\/\/(([^:\/?#] *)(?:\:([0-9]+))?)([\/]{0,1}[^?#] *)(\?[^#] *|)(#. *|)$/)){var i=t.GetUrlComponents(e),s=i.PathSegments;s.shift(),(s[0]&&"common"===s[0]||"organizations"===s[0])&&(s[0]=n,e=i.Protocol+"//"+i.HostNameAndPort+"/"+s.join("/"))}return e},t.createNewGuid=function(){var e=window.crypto;if(e&&e.getRandomValues){var n=new Uint8Array(16);return e.getRandomValues(n),n[6]|=64,n[6]&=79,n[8]|=128,n[8]&=191,t.decimalToHex(n[0])+t.decimalToHex(n[1])+t.decimalToHex(n[2])+t.decimalToHex(n[3])+"-"+t.decimalToHex(n[4])+t.decimalToHex(n[5])+"-"+t.decimalToHex(n[6])+t.decimalToHex(n[7])+"-"+t.decimalToHex(n[8])+t.decimalToHex(n[9])+"-"+t.decimalToHex(n[10])+t.decimalToHex(n[11])+t.decimalToHex(n[12])+t.decimalToHex(n[13])+t.decimalToHex(n[14])+t.decimalToHex(n[15])}for(var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",s="0123456789abcdef",r=0,a="",o=0;o<36;o++)"-"!==i[o]&&"4"!==i[o]&&(r=16*Math.random()|0),"x"===i[o]?a+=s[r]:"y"===i[o]?(r&=3,a+=s[r|=8]):a+=i[o];return a},t.GetUrlComponents=function(t){if(!t)throw"Url required";var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=t.match(e);if(!n||n.length<6)throw"Valid url required";var i={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5]},s=i.AbsolutePath.split("/");return s=s.filter(function(t){return t&&t.length>0}),i.PathSegments=s,i},t.CanonicalizeUri=function(e){return e&&(e=e.toLowerCase()),e&&!t.endsWith(e,"/")&&(e+="/"),e},t.endsWith=function(t,e){return!(!t||!e)&&-1!==t.indexOf(e,t.length-e.length)},t}();e.Utils=i},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(){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 i=new a(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class a extends i.a{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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t=null){return e=>e.lift(new r(t))}class r{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new a(t,this.defaultValue))}}class a extends i.a{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()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),s=n("DH7j"),r=n("n6bG"),a=n("lJxs");Object.prototype.toString;function o(t,e,n,c){return Object(r.a)(n)&&(c=n,n=void 0),c?o(t,e,n).pipe(Object(a.a)(t=>Object(s.a)(t)?c(...t):c(t))):new i.a(i=>{l(t,e,function(t){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(t)},i,n)})}function l(t,e,n,i,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,s),r=()=>i.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),r=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),r=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,a=t.length;r<a;r++)l(t[r],e,n,i,s)}i.add(r)}},yCtX:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),s=n("ngJS"),r=n("jZKg");function a(t,e){return e?Object(r.a)(t,e):new i.a(Object(s.a)(t))}},yYKy:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("n2g9")},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return i})},z6cu:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC");function s(t,e){return e?new i.a(n=>e.schedule(r,0,{error:t,subscriber:n})):new i.a(e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zP0r:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q");function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.total=t}call(t,e){return e.subscribe(new a(t,this.total))}}class a extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},zT9C:function(t,e,n){(function(t){var n="[object Arguments]",i="[object Boolean]",s="[object Function]",r="[object GeneratorFunction]",a="[object Map]",o="[object Set]",l="[object DataView]",c="[object Float32Array]",d="[object Float64Array]",p="[object Int8Array]",u="[object Int16Array]",h="[object Int32Array]",m="[object Uint8Array]",f="[object Uint16Array]",g="[object Uint32Array]",b=/\w*$/,v=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,_={};_[n]=_["[object Array]"]=_["[object ArrayBuffer]"]=_["[object DataView]"]=_["[object Boolean]"]=_["[object Date]"]=_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_[a]=_["[object Number]"]=_["[object Object]"]=_["[object RegExp]"]=_[o]=_["[object String]"]=_["[object Symbol]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_["[object Error]"]=_[s]=_["[object WeakMap]"]=!1;var w="object"==typeof global&&global&&global.Object===Object&&global,x="object"==typeof self&&self&&self.Object===Object&&self,C=w||x||Function("return this")(),S=e&&!e.nodeType&&e,k=S&&"object"==typeof t&&t&&!t.nodeType&&t,E=k&&k.exports===S;function I(t,e){return t.set(e[0],e[1]),t}function A(t,e){return t.add(e),t}function D(t,e,n,i){var s=-1,r=t?t.length:0;for(i&&r&&(n=t[++s]);++s<r;)n=e(n,t[s],s,t);return n}function T(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function O(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function P(t,e){return function(n){return t(e(n))}}function N(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var M,R=Array.prototype,L=Function.prototype,F=Object.prototype,j=C["__core-js_shared__"],V=(M=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",B=L.toString,H=F.hasOwnProperty,z=F.toString,U=RegExp("^"+B.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=E?C.Buffer:void 0,$=C.Symbol,W=C.Uint8Array,Y=P(Object.getPrototypeOf,Object),G=Object.create,K=F.propertyIsEnumerable,Z=R.splice,X=Object.getOwnPropertySymbols,Q=q?q.isBuffer:void 0,J=P(Object.keys,Object),tt=kt(C,"DataView"),et=kt(C,"Map"),nt=kt(C,"Promise"),it=kt(C,"Set"),st=kt(C,"WeakMap"),rt=kt(Object,"create"),at=Tt(tt),ot=Tt(et),lt=Tt(nt),ct=Tt(it),dt=Tt(st),pt=$?$.prototype:void 0,ut=pt?pt.valueOf:void 0;function ht(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function mt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function ft(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function gt(t){this.__data__=new mt(t)}function bt(t,e){var i=Pt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Nt(t)}(t)&&H.call(t,"callee")&&(!K.call(t,"callee")||z.call(t)==n)}(t)?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],s=i.length,r=!!s;for(var a in t)!e&&!H.call(t,a)||r&&("length"==a||At(a,s))||i.push(a);return i}function vt(t,e,n){var i=t[e];H.call(t,e)&&Ot(i,n)&&(void 0!==n||e in t)||(t[e]=n)}function yt(t,e){for(var n=t.length;n--;)if(Ot(t[n][0],e))return n;return-1}function _t(t,e,v,y,w,x,C){var S;if(y&&(S=x?y(t,w,x,C):y(t)),void 0!==S)return S;if(!Lt(t))return t;var k=Pt(t);if(k){if(S=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&H.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,i=t.length;e||(e=Array(i));for(;++n<i;)e[n]=t[n];return e}(t,S)}else{var E=It(t),P=E==s||E==r;if(Mt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if("[object Object]"==E||E==n||P&&!x){if(T(t))return x?t:{};if(S=function(t){return"function"!=typeof t.constructor||Dt(t)?{}:(e=Y(t),Lt(e)?G(e):{});var e}(P?{}:t),!e)return function(t,e){return Ct(t,Et(t),e)}(t,function(t,e){return t&&Ct(e,Ft(e),t)}(S,t))}else{if(!_[E])return x?t:{};S=function(t,e,n,s){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return xt(t);case i:case"[object Date]":return new r(+t);case l:return function(t,e){var n=e?xt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,s);case c:case d:case p:case u:case h:case m:case"[object Uint8ClampedArray]":case f:case g:return function(t,e){var n=e?xt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,s);case a:return function(t,e,n){return D(e?n(O(t),!0):O(t),I,new t.constructor)}(t,s,n);case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,b.exec(t));return e.lastIndex=t.lastIndex,e}(t);case o:return function(t,e,n){return D(e?n(N(t),!0):N(t),A,new t.constructor)}(t,s,n);case"[object Symbol]":return v=t,ut?Object(ut.call(v)):{}}var v}(t,E,_t,e)}}C||(C=new gt);var M=C.get(t);if(M)return M;if(C.set(t,S),!k)var R=v?function(t){return function(t,e,n){var i=e(t);return Pt(t)?i:function(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}(i,n(t))}(t,Ft,Et)}(t):Ft(t);return function(t,e){for(var n=-1,i=t?t.length:0;++n<i&&!1!==e(t[n],n,t););}(R||t,function(n,i){R&&(n=t[i=n]),vt(S,i,_t(n,e,v,y,i,t,C))}),S}function wt(t){return!(!Lt(t)||(e=t,V&&V in e))&&(Rt(t)||T(t)?U:v).test(Tt(t));var e}function xt(t){var e=new t.constructor(t.byteLength);return new W(e).set(new W(t)),e}function Ct(t,e,n,i){n||(n={});for(var s=-1,r=e.length;++s<r;){var a=e[s],o=i?i(n[a],t[a],a,n,t):void 0;vt(n,a,void 0===o?t[a]:o)}return n}function St(t,e){var n,i,s=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof e?"string":"hash"]:s.map}function kt(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return wt(n)?n:void 0}ht.prototype.clear=function(){this.__data__=rt?rt(null):{}},ht.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},ht.prototype.get=function(t){var e=this.__data__;if(rt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return H.call(e,t)?e[t]:void 0},ht.prototype.has=function(t){var e=this.__data__;return rt?void 0!==e[t]:H.call(e,t)},ht.prototype.set=function(t,e){return this.__data__[t]=rt&&void 0===e?"__lodash_hash_undefined__":e,this},mt.prototype.clear=function(){this.__data__=[]},mt.prototype.delete=function(t){var e=this.__data__,n=yt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Z.call(e,n,1),!0)},mt.prototype.get=function(t){var e=this.__data__,n=yt(e,t);return n<0?void 0:e[n][1]},mt.prototype.has=function(t){return yt(this.__data__,t)>-1},mt.prototype.set=function(t,e){var n=this.__data__,i=yt(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},ft.prototype.clear=function(){this.__data__={hash:new ht,map:new(et||mt),string:new ht}},ft.prototype.delete=function(t){return St(this,t).delete(t)},ft.prototype.get=function(t){return St(this,t).get(t)},ft.prototype.has=function(t){return St(this,t).has(t)},ft.prototype.set=function(t,e){return St(this,t).set(t,e),this},gt.prototype.clear=function(){this.__data__=new mt},gt.prototype.delete=function(t){return this.__data__.delete(t)},gt.prototype.get=function(t){return this.__data__.get(t)},gt.prototype.has=function(t){return this.__data__.has(t)},gt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof mt){var i=n.__data__;if(!et||i.length<199)return i.push([t,e]),this;n=this.__data__=new ft(i)}return n.set(t,e),this};var Et=X?P(X,Object):function(){return[]},It=function(t){return z.call(t)};function At(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||y.test(t))&&t>-1&&t%1==0&&t<e}function Dt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||F)}function Tt(t){if(null!=t){try{return B.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ot(t,e){return t===e||t!=t&&e!=e}(tt&&It(new tt(new ArrayBuffer(1)))!=l||et&&It(new et)!=a||nt&&"[object Promise]"!=It(nt.resolve())||it&&It(new it)!=o||st&&"[object WeakMap]"!=It(new st))&&(It=function(t){var e=z.call(t),n="[object Object]"==e?t.constructor:void 0,i=n?Tt(n):void 0;if(i)switch(i){case at:return l;case ot:return a;case lt:return"[object Promise]";case ct:return o;case dt:return"[object WeakMap]"}return e});var Pt=Array.isArray;function Nt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}(t.length)&&!Rt(t)}var Mt=Q||function(){return!1};function Rt(t){var e=Lt(t)?z.call(t):"";return e==s||e==r}function Lt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Ft(t){return Nt(t)?bt(t):function(t){if(!Dt(t))return J(t);var e=[];for(var n in Object(t))H.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return _t(t,!0,!0)}}).call(this,n("YuTi")(t))},zUnb:function(t,e,n){"use strict";n.r(e);var i,s=n("8Y7J");function r(t){if(":"!=t[0])return[null,t];const e=t.indexOf(":",1);if(-1==e)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[t.slice(1,e),t.slice(e+1)]}function a(t){return"ng-container"===r(t)[1]}function o(t){return"ng-content"===r(t)[1]}function l(t){return"ng-template"===r(t)[1]}function c(t){return null===t?null:r(t)[0]}function d(t,e){return t?`:${t}:${e}`:e}!function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"}(i||(i={}));const p={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"&",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\xc5",aring:"\xe5",asymp:"\u2248",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",brvbar:"\xa6",bull:"\u2022",cap:"\u2229",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\xa9",crarr:"\u21b5",cup:"\u222a",curren:"\xa4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\xb0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:">",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",image:"\u2111",infin:"\u221e",int:"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\xbf",isin:"\u2208",Iuml:"\xcf",iuml:"\xef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"<",macr:"\xaf",mdash:"\u2014",micro:"\xb5",middot:"\xb7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\xa0",ndash:"\u2013",ne:"\u2260",ni:"\u220b",not:"\xac",notin:"\u2209",nsub:"\u2284",Ntilde:"\xd1",ntilde:"\xf1",Nu:"\u039d",nu:"\u03bd",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",OElig:"\u0152",oelig:"\u0153",Ograve:"\xd2",ograve:"\xf2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\xb1",pound:"\xa3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\xae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\xa7",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supe:"\u2287",szlig:"\xdf",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",trade:"\u2122",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\xdc",uuml:"\xfc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"};p.ngsp="\ue500";class u{constructor({closedByChildren:t,implicitNamespacePrefix:e,contentType:n=i.PARSABLE_DATA,closedByParent:s=!1,isVoid:r=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1}={}){this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,t&&t.length>0&&t.forEach(t=>this.closedByChildren[t]=!0),this.isVoid=r,this.closedByParent=s||r,this.implicitNamespacePrefix=e||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){if("object"==typeof this.contentType){const e=null==t?void 0:this.contentType[t];return null!=e?e:this.contentType.default}return this.contentType}}let h,m;function f(t){var e,n;return m||(h=new u,m={base:new u({isVoid:!0}),meta:new u({isVoid:!0}),area:new u({isVoid:!0}),embed:new u({isVoid:!0}),link:new u({isVoid:!0}),img:new u({isVoid:!0}),input:new u({isVoid:!0}),param:new u({isVoid:!0}),hr:new u({isVoid:!0}),br:new u({isVoid:!0}),source:new u({isVoid:!0}),track:new u({isVoid:!0}),wbr:new u({isVoid:!0}),p:new u({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new u({closedByChildren:["tbody","tfoot"]}),tbody:new u({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new u({closedByChildren:["tbody"],closedByParent:!0}),tr:new u({closedByChildren:["tr"],closedByParent:!0}),td:new u({closedByChildren:["td","th"],closedByParent:!0}),th:new u({closedByChildren:["td","th"],closedByParent:!0}),col:new u({isVoid:!0}),svg:new u({implicitNamespacePrefix:"svg"}),foreignObject:new u({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new u({implicitNamespacePrefix:"math"}),li:new u({closedByChildren:["li"],closedByParent:!0}),dt:new u({closedByChildren:["dt","dd"]}),dd:new u({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new u({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new u({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new u({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new u({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new u({closedByChildren:["optgroup"],closedByParent:!0}),option:new u({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new u({ignoreFirstLf:!0}),listing:new u({ignoreFirstLf:!0}),style:new u({contentType:i.RAW_TEXT}),script:new u({contentType:i.RAW_TEXT}),title:new u({contentType:{default:i.ESCAPABLE_RAW_TEXT,svg:i.PARSABLE_DATA}}),textarea:new u({contentType:i.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),null!==(n=null!==(e=m[t])&&void 0!==e?e:m[t.toLowerCase()])&&void 0!==n?n:h}const g=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g");class b{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(t){const e=[],n=(t,e)=>{e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)};let i,s=new b,r=s,a=!1;for(g.lastIndex=0;i=g.exec(t);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,r=new b,s.notSelectors.push(r)}const t=i[2];if(t){const e=i[3];"#"===e?r.addAttribute("id",t.substr(1)):"."===e?r.addClassName(t.substr(1)):r.setElement(t)}const o=i[4];if(o&&r.addAttribute(o,i[6]),i[7]&&(a=!1,r=s),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");n(e,s),s=r=new b}}return n(e,s),e}isElementSelector(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length}hasElementSelector(){return!!this.element}setElement(t=null){this.element=t}getMatchingElementTemplate(){const t=this.element||"div",e=this.classNames.length>0?` class="${this.classNames.join(" ")}"`:"";let n="";for(let i=0;i<this.attrs.length;i+=2){n+=` ${this.attrs[i]}${""!==this.attrs[i+1]?`="${this.attrs[i+1]}"`:""}`}return f(t).isVoid?`<${t}${e}${n}/>`:`<${t}${e}${n}></${t}>`}getAttrs(){const t=[];return this.classNames.length>0&&t.push("class",this.classNames.join(" ")),t.concat(this.attrs)}addAttribute(t,e=""){this.attrs.push(t,e&&e.toLowerCase()||"")}addClassName(t){this.classNames.push(t.toLowerCase())}toString(){let t=this.element||"";if(this.classNames&&this.classNames.forEach(e=>t+=`.${e}`),this.attrs)for(let e=0;e<this.attrs.length;e+=2){const n=this.attrs[e],i=this.attrs[e+1];t+=`[${n}${i?"="+i:""}]`}return this.notSelectors.forEach(e=>t+=`:not(${e})`),t}}class v{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(t){const e=new v;return e.addSelectables(t,null),e}addSelectables(t,e){let n=null;t.length>1&&(n=new y(t),this._listContexts.push(n));for(let i=0;i<t.length;i++)this._addSelectable(t[i],e,n)}_addSelectable(t,e,n){let i=this;const s=t.element,r=t.classNames,a=t.attrs,o=new _(t,e,n);if(s){0===a.length&&0===r.length?this._addTerminal(i._elementMap,s,o):i=this._addPartial(i._elementPartialMap,s)}if(r)for(let l=0;l<r.length;l++){const t=0===a.length&&l===r.length-1,e=r[l];t?this._addTerminal(i._classMap,e,o):i=this._addPartial(i._classPartialMap,e)}if(a)for(let l=0;l<a.length;l+=2){const t=l===a.length-2,e=a[l],n=a[l+1];if(t){const t=i._attrValueMap;let s=t.get(e);s||(s=new Map,t.set(e,s)),this._addTerminal(s,n,o)}else{const t=i._attrValuePartialMap;let s=t.get(e);s||(s=new Map,t.set(e,s)),i=this._addPartial(s,n)}}}_addTerminal(t,e,n){let i=t.get(e);i||(i=[],t.set(e,i)),i.push(n)}_addPartial(t,e){let n=t.get(e);return n||(n=new v,t.set(e,n)),n}match(t,e){let n=!1;const i=t.element,s=t.classNames,r=t.attrs;for(let a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,i,t,e)||n,n=this._matchPartial(this._elementPartialMap,i,t,e)||n,s)for(let a=0;a<s.length;a++){const i=s[a];n=this._matchTerminal(this._classMap,i,t,e)||n,n=this._matchPartial(this._classPartialMap,i,t,e)||n}if(r)for(let a=0;a<r.length;a+=2){const i=r[a],s=r[a+1],o=this._attrValueMap.get(i);s&&(n=this._matchTerminal(o,"",t,e)||n),n=this._matchTerminal(o,s,t,e)||n;const l=this._attrValuePartialMap.get(i);s&&(n=this._matchPartial(l,"",t,e)||n),n=this._matchPartial(l,s,t,e)||n}return n}_matchTerminal(t,e,n,i){if(!t||"string"!=typeof e)return!1;let s=t.get(e)||[];const r=t.get("*");if(r&&(s=s.concat(r)),0===s.length)return!1;let a,o=!1;for(let l=0;l<s.length;l++)a=s[l],o=a.finalize(n,i)||o;return o}_matchPartial(t,e,n,i){if(!t||"string"!=typeof e)return!1;const s=t.get(e);return!!s&&s.match(n,i)}}class y{constructor(t){this.selectors=t,this.alreadyMatched=!1}}class _{constructor(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}finalize(t,e){let n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){n=!v.createNotMatcher(this.notSelectors).match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n}}const w=K("Inject",t=>({token:t})),x=K("InjectionToken",t=>({_desc:t,"\u0275prov":void 0})),C=K("Attribute",t=>({attributeName:t})),S=K("ContentChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)),k=K("ContentChild",(t,e={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)),E=K("ViewChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)),I=K("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)),A=K("Directive",(t={})=>t);var D,T;!function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(D||(D={})),function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"}(T||(T={}));const O=K("Component",(t={})=>Object.assign({changeDetection:T.Default},t)),P=K("Pipe",t=>Object.assign({pure:!0},t)),N=K("Input",t=>({bindingPropertyName:t})),M=K("Output",t=>({bindingPropertyName:t})),R=K("HostBinding",t=>({hostPropertyName:t})),L=K("HostListener",(t,e)=>({eventName:t,args:e})),F=K("NgModule",t=>t),j=K("Injectable",(t={})=>t),V={name:"custom-elements"},B={name:"no-errors-schema"},H=K("Optional"),z=K("Self"),U=K("SkipSelf"),q=K("Host"),W=Function;var Y,G;function K(t,e){function n(...n){const i=e?e(...n):{};return Object.assign({ngMetadataName:t},i)}return n.isTypeOf=e=>e&&e.ngMetadataName===t,n.ngMetadataName=t,n}function Z(t){const e=function(t){const e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return[t.element&&"*"!==t.element?t.element:"",...t.attrs,...e]}(t),n=t.notSelectors&&t.notSelectors.length?t.notSelectors.map(t=>function(t){const e=t.classNames&&t.classNames.length?[8,...t.classNames]:[];return t.element?[5,t.element,...t.attrs,...e]:t.attrs.length?[3,...t.attrs,...e]:t.classNames&&t.classNames.length?[9,...t.classNames]:[]}(t)):[];return e.concat(...n)}function X(t){return t?b.parse(t).map(Z):[]}!function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"}(Y||(Y={})),function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"}(G||(G={}));var Q,J;!function(t){t[t.Const=0]="Const"}(Q||(Q={}));class tt{constructor(t=[]){this.modifiers=t}hasModifier(t){return-1!==this.modifiers.indexOf(t)}}!function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"}(J||(J={}));class et extends tt{constructor(t,e){super(e),this.name=t}visitType(t,e){return t.visitBuiltinType(this,e)}}class nt extends tt{constructor(t,e,n=null){super(e),this.value=t,this.typeParams=n}visitType(t,e){return t.visitExpressionType(this,e)}}class it extends tt{constructor(t,e){super(e),this.of=t}visitType(t,e){return t.visitArrayType(this,e)}}class st extends tt{constructor(t,e){super(e),this.valueType=t||null}visitType(t,e){return t.visitMapType(this,e)}}const rt=new et(J.Dynamic),at=new et(J.Inferred),ot=new et(J.Bool),lt=(new et(J.Int),new et(J.Number)),ct=new et(J.String),dt=(new et(J.Function),new et(J.None));var pt,ut,ht,mt;function ft(t,e){return null==t||null==e?t==e:t.isEquivalent(e)}function gt(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(!t[i].isEquivalent(e[i]))return!1;return!0}!function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"}(pt||(pt={})),function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseAnd=11]="BitwiseAnd",t[t.Lower=12]="Lower",t[t.LowerEquals=13]="LowerEquals",t[t.Bigger=14]="Bigger",t[t.BiggerEquals=15]="BiggerEquals"}(ut||(ut={}));class bt{constructor(t,e){this.type=t||null,this.sourceSpan=e||null}prop(t,e){return new $t(this,t,null,e)}key(t,e,n){return new Wt(this,t,e,n)}callMethod(t,e,n){return new St(this,t,e,null,n)}callFn(t,e,n){return new kt(this,t,null,e,n)}instantiate(t,e,n){return new Et(this,t,e,n)}conditional(t,e=null,n){return new Ft(this,t,e,null,n)}equals(t,e){return new qt(ut.Equals,this,t,null,e)}notEquals(t,e){return new qt(ut.NotEquals,this,t,null,e)}identical(t,e){return new qt(ut.Identical,this,t,null,e)}notIdentical(t,e){return new qt(ut.NotIdentical,this,t,null,e)}minus(t,e){return new qt(ut.Minus,this,t,null,e)}plus(t,e){return new qt(ut.Plus,this,t,null,e)}divide(t,e){return new qt(ut.Divide,this,t,null,e)}multiply(t,e){return new qt(ut.Multiply,this,t,null,e)}modulo(t,e){return new qt(ut.Modulo,this,t,null,e)}and(t,e){return new qt(ut.And,this,t,null,e)}bitwiseAnd(t,e,n=!0){return new qt(ut.BitwiseAnd,this,t,null,e,n)}or(t,e){return new qt(ut.Or,this,t,null,e)}lower(t,e){return new qt(ut.Lower,this,t,null,e)}lowerEquals(t,e){return new qt(ut.LowerEquals,this,t,null,e)}bigger(t,e){return new qt(ut.Bigger,this,t,null,e)}biggerEquals(t,e){return new qt(ut.BiggerEquals,this,t,null,e)}isBlank(t){return this.equals(Qt,t)}cast(t,e){return new Bt(this,t,e)}toStmt(){return new re(this,null)}}!function(t){t[t.This=0]="This",t[t.Super=1]="Super",t[t.CatchError=2]="CatchError",t[t.CatchStack=3]="CatchStack"}(ht||(ht={}));class vt extends bt{constructor(t,e,n){super(e,n),"string"==typeof t?(this.name=t,this.builtin=null):(this.name=null,this.builtin=t)}isEquivalent(t){return t instanceof vt&&this.name===t.name&&this.builtin===t.builtin}isConstant(){return!1}visitExpression(t,e){return t.visitReadVarExpr(this,e)}set(t){if(!this.name)throw new Error(`Built in variable ${this.builtin} can not be assigned to.`);return new wt(this.name,t,null,this.sourceSpan)}}class yt extends bt{constructor(t,e,n){super(e,n),this.expr=t}visitExpression(t,e){return t.visitTypeofExpr(this,e)}isEquivalent(t){return t instanceof yt&&t.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}}class _t extends bt{constructor(t,e,n){super(e,n),this.node=t}isEquivalent(t){return t instanceof _t&&this.node===t.node}isConstant(){return!1}visitExpression(t,e){return t.visitWrappedNodeExpr(this,e)}}class wt extends bt{constructor(t,e,n,i){super(n||e.type,i),this.name=t,this.value=e}isEquivalent(t){return t instanceof wt&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,e){return t.visitWriteVarExpr(this,e)}toDeclStmt(t,e){return new ie(this.name,this.value,t,e,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(at,[Jt.Final])}}class xt extends bt{constructor(t,e,n,i,s){super(i||n.type,s),this.receiver=t,this.index=e,this.value=n}isEquivalent(t){return t instanceof xt&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,e){return t.visitWriteKeyExpr(this,e)}}class Ct extends bt{constructor(t,e,n,i,s){super(i||n.type,s),this.receiver=t,this.name=e,this.value=n}isEquivalent(t){return t instanceof Ct&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,e){return t.visitWritePropExpr(this,e)}}!function(t){t[t.ConcatArray=0]="ConcatArray",t[t.SubscribeObservable=1]="SubscribeObservable",t[t.Bind=2]="Bind"}(mt||(mt={}));class St extends bt{constructor(t,e,n,i,s){super(i,s),this.receiver=t,this.args=n,"string"==typeof e?(this.name=e,this.builtin=null):(this.name=null,this.builtin=e)}isEquivalent(t){return t instanceof St&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name&&this.builtin===t.builtin&&gt(this.args,t.args)}isConstant(){return!1}visitExpression(t,e){return t.visitInvokeMethodExpr(this,e)}}class kt extends bt{constructor(t,e,n,i,s=!1){super(n,i),this.fn=t,this.args=e,this.pure=s}isEquivalent(t){return t instanceof kt&&this.fn.isEquivalent(t.fn)&&gt(this.args,t.args)&&this.pure===t.pure}isConstant(){return!1}visitExpression(t,e){return t.visitInvokeFunctionExpr(this,e)}}class Et extends bt{constructor(t,e,n,i){super(n,i),this.classExpr=t,this.args=e}isEquivalent(t){return t instanceof Et&&this.classExpr.isEquivalent(t.classExpr)&&gt(this.args,t.args)}isConstant(){return!1}visitExpression(t,e){return t.visitInstantiateExpr(this,e)}}class It extends bt{constructor(t,e,n){super(e,n),this.value=t}isEquivalent(t){return t instanceof It&&this.value===t.value}isConstant(){return!0}visitExpression(t,e){return t.visitLiteralExpr(this,e)}}class At{constructor(t,e){this.text=t,this.sourceSpan=e}}class Dt extends At{}class Tt extends At{}class Ot extends bt{constructor(t,e,n,i,s){super(ct,s),this.metaBlock=t,this.messageParts=e,this.placeHolderNames=n,this.expressions=i}isEquivalent(t){return!1}isConstant(){return!1}visitExpression(t,e){return t.visitLocalizedString(this,e)}serializeI18nHead(){let t=this.metaBlock.description||"";return this.metaBlock.meaning&&(t=`${this.metaBlock.meaning}|${t}`),this.metaBlock.customId&&(t=`${t}@@${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(e=>{t=`${t}\u241f${e}`}),Rt(t,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(t){var e,n;return null!==(n=null===(e=this.messageParts[t])||void 0===e?void 0:e.sourceSpan)&&void 0!==n?n:this.sourceSpan}getPlaceholderSourceSpan(t){var e,n,i,s;return null!==(s=null!==(n=null===(e=this.placeHolderNames[t])||void 0===e?void 0:e.sourceSpan)&&void 0!==n?n:null===(i=this.expressions[t])||void 0===i?void 0:i.sourceSpan)&&void 0!==s?s:this.sourceSpan}serializeI18nTemplatePart(t){return Rt(this.placeHolderNames[t-1].text,this.messageParts[t].text,this.getMessagePartSourceSpan(t))}}const Pt=t=>t.replace(/\\/g,"\\\\"),Nt=t=>t.replace(/:/g,"\\:"),Mt=t=>t.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Rt(t,e,n){return""===t?{cooked:e,raw:Mt((i=Pt(e),i.replace(/^:/,"\\:"))),range:n}:{cooked:`:${t}:${e}`,raw:Mt(`:${Nt(Pt(t))}:${Pt(e)}`),range:n};var i}class Lt extends bt{constructor(t,e,n=null,i){super(e,i),this.value=t,this.typeParams=n}isEquivalent(t){return t instanceof Lt&&this.value.name===t.value.name&&this.value.moduleName===t.value.moduleName&&this.value.runtime===t.value.runtime}isConstant(){return!1}visitExpression(t,e){return t.visitExternalExpr(this,e)}}class Ft extends bt{constructor(t,e,n=null,i,s){super(i||e.type,s),this.condition=t,this.falseCase=n,this.trueCase=e}isEquivalent(t){return t instanceof Ft&&this.condition.isEquivalent(t.condition)&&this.trueCase.isEquivalent(t.trueCase)&&ft(this.falseCase,t.falseCase)}isConstant(){return!1}visitExpression(t,e){return t.visitConditionalExpr(this,e)}}class jt extends bt{constructor(t,e){super(ot,e),this.condition=t}isEquivalent(t){return t instanceof jt&&this.condition.isEquivalent(t.condition)}isConstant(){return!1}visitExpression(t,e){return t.visitNotExpr(this,e)}}class Vt extends bt{constructor(t,e){super(t.type,e),this.condition=t}isEquivalent(t){return t instanceof Vt&&this.condition.isEquivalent(t.condition)}isConstant(){return!1}visitExpression(t,e){return t.visitAssertNotNullExpr(this,e)}}class Bt extends bt{constructor(t,e,n){super(e,n),this.value=t}isEquivalent(t){return t instanceof Bt&&this.value.isEquivalent(t.value)}isConstant(){return!1}visitExpression(t,e){return t.visitCastExpr(this,e)}}class Ht{constructor(t,e=null){this.name=t,this.type=e}isEquivalent(t){return this.name===t.name}}class zt extends bt{constructor(t,e,n,i,s){super(n,i),this.params=t,this.statements=e,this.name=s}isEquivalent(t){return t instanceof zt&&gt(this.params,t.params)&&gt(this.statements,t.statements)}isConstant(){return!1}visitExpression(t,e){return t.visitFunctionExpr(this,e)}toDeclStmt(t,e){return new se(t,this.params,this.statements,this.type,e,this.sourceSpan)}}class Ut extends bt{constructor(t,e,n,i,s=!0){super(n||lt,i),this.operator=t,this.expr=e,this.parens=s}isEquivalent(t){return t instanceof Ut&&this.operator===t.operator&&this.expr.isEquivalent(t.expr)}isConstant(){return!1}visitExpression(t,e){return t.visitUnaryOperatorExpr(this,e)}}class qt extends bt{constructor(t,e,n,i,s,r=!0){super(i||e.type,s),this.operator=t,this.rhs=n,this.parens=r,this.lhs=e}isEquivalent(t){return t instanceof qt&&this.operator===t.operator&&this.lhs.isEquivalent(t.lhs)&&this.rhs.isEquivalent(t.rhs)}isConstant(){return!1}visitExpression(t,e){return t.visitBinaryOperatorExpr(this,e)}}class $t extends bt{constructor(t,e,n,i){super(n,i),this.receiver=t,this.name=e}isEquivalent(t){return t instanceof $t&&this.receiver.isEquivalent(t.receiver)&&this.name===t.name}isConstant(){return!1}visitExpression(t,e){return t.visitReadPropExpr(this,e)}set(t){return new Ct(this.receiver,this.name,t,null,this.sourceSpan)}}class Wt extends bt{constructor(t,e,n,i){super(n,i),this.receiver=t,this.index=e}isEquivalent(t){return t instanceof Wt&&this.receiver.isEquivalent(t.receiver)&&this.index.isEquivalent(t.index)}isConstant(){return!1}visitExpression(t,e){return t.visitReadKeyExpr(this,e)}set(t){return new xt(this.receiver,this.index,t,null,this.sourceSpan)}}class Yt extends bt{constructor(t,e,n){super(e,n),this.entries=t}isConstant(){return this.entries.every(t=>t.isConstant())}isEquivalent(t){return t instanceof Yt&&gt(this.entries,t.entries)}visitExpression(t,e){return t.visitLiteralArrayExpr(this,e)}}class Gt{constructor(t,e,n){this.key=t,this.value=e,this.quoted=n}isEquivalent(t){return this.key===t.key&&this.value.isEquivalent(t.value)}}class Kt extends bt{constructor(t,e,n){super(e,n),this.entries=t,this.valueType=null,e&&(this.valueType=e.valueType)}isEquivalent(t){return t instanceof Kt&&gt(this.entries,t.entries)}isConstant(){return this.entries.every(t=>t.value.isConstant())}visitExpression(t,e){return t.visitLiteralMapExpr(this,e)}}class Zt extends bt{constructor(t,e){super(t[t.length-1].type,e),this.parts=t}isEquivalent(t){return t instanceof Zt&&gt(this.parts,t.parts)}isConstant(){return!1}visitExpression(t,e){return t.visitCommaExpr(this,e)}}new vt(ht.This,null,null),new vt(ht.Super,null,null),new vt(ht.CatchError,null,null),new vt(ht.CatchStack,null,null);const Xt=new It(null,null,null),Qt=new It(null,at,null);var Jt;!function(t){t[t.Final=0]="Final",t[t.Private=1]="Private",t[t.Exported=2]="Exported",t[t.Static=3]="Static"}(Jt||(Jt={}));class te{constructor(t,e,n){this.text=t,this.multiline=e,this.trailingNewline=n}toString(){return this.multiline?` ${this.text} `:this.text}}class ee extends te{constructor(t){super("",!0,!0),this.tags=t}toString(){return function(t){if(0===t.length)return"";if(1===t.length&&t[0].tagName&&!t[0].text)return`*${Oe(t[0])} `;let e="*\n";for(const n of t)e+=" *",e+=Oe(n).replace(/\n/g,"\n * "),e+="\n";return e+=" ",e}(this.tags)}}class ne{constructor(t=[],e=null,n){this.modifiers=t,this.sourceSpan=e,this.leadingComments=n}hasModifier(t){return-1!==this.modifiers.indexOf(t)}addLeadingComment(t){var e;this.leadingComments=null!==(e=this.leadingComments)&&void 0!==e?e:[],this.leadingComments.push(t)}}class ie extends ne{constructor(t,e,n,i,s,r){super(i,s,r),this.name=t,this.value=e,this.type=n||e&&e.type||null}isEquivalent(t){return t instanceof ie&&this.name===t.name&&(this.value?!!t.value&&this.value.isEquivalent(t.value):!t.value)}visitStatement(t,e){return t.visitDeclareVarStmt(this,e)}}class se extends ne{constructor(t,e,n,i,s,r,a){super(s,r,a),this.name=t,this.params=e,this.statements=n,this.type=i||null}isEquivalent(t){return t instanceof se&&gt(this.params,t.params)&&gt(this.statements,t.statements)}visitStatement(t,e){return t.visitDeclareFunctionStmt(this,e)}}class re extends ne{constructor(t,e,n){super([],e,n),this.expr=t}isEquivalent(t){return t instanceof re&&this.expr.isEquivalent(t.expr)}visitStatement(t,e){return t.visitExpressionStmt(this,e)}}class ae extends ne{constructor(t,e=null,n){super([],e,n),this.value=t}isEquivalent(t){return t instanceof ae&&this.value.isEquivalent(t.value)}visitStatement(t,e){return t.visitReturnStmt(this,e)}}class oe{constructor(t=null,e=[]){this.type=t,this.modifiers=e}hasModifier(t){return-1!==this.modifiers.indexOf(t)}}class le extends oe{constructor(t,e,n,i,s){super(i,s),this.name=t,this.params=e,this.body=n}isEquivalent(t){return this.name===t.name&&gt(this.body,t.body)}}class ce extends oe{constructor(t,e,n,i){super(n,i),this.name=t,this.body=e}isEquivalent(t){return this.name===t.name&&gt(this.body,t.body)}}class de extends ne{constructor(t,e,n,i,s,r,a,o,l){super(a,o,l),this.name=t,this.parent=e,this.fields=n,this.getters=i,this.constructorMethod=s,this.methods=r}isEquivalent(t){return t instanceof de&&this.name===t.name&&ft(this.parent,t.parent)&&gt(this.fields,t.fields)&&gt(this.getters,t.getters)&&this.constructorMethod.isEquivalent(t.constructorMethod)&&gt(this.methods,t.methods)}visitStatement(t,e){return t.visitDeclareClassStmt(this,e)}}class pe extends ne{constructor(t,e,n=[],i,s){super([],i,s),this.condition=t,this.trueCase=e,this.falseCase=n}isEquivalent(t){return t instanceof pe&&this.condition.isEquivalent(t.condition)&&gt(this.trueCase,t.trueCase)&&gt(this.falseCase,t.falseCase)}visitStatement(t,e){return t.visitIfStmt(this,e)}}class ue extends ne{constructor(t,e,n=null,i){super([],n,i),this.bodyStmts=t,this.catchStmts=e}isEquivalent(t){return t instanceof ue&&gt(this.bodyStmts,t.bodyStmts)&&gt(this.catchStmts,t.catchStmts)}visitStatement(t,e){return t.visitTryCatchStmt(this,e)}}class he extends ne{constructor(t,e=null,n){super([],e,n),this.error=t}isEquivalent(t){return t instanceof ue&&this.error.isEquivalent(t.error)}visitStatement(t,e){return t.visitThrowStmt(this,e)}}class me{visitType(t,e){return t}visitExpression(t,e){return t.type&&t.type.visitType(this,e),t}visitBuiltinType(t,e){return this.visitType(t,e)}visitExpressionType(t,e){return t.value.visitExpression(this,e),null!==t.typeParams&&t.typeParams.forEach(t=>this.visitType(t,e)),this.visitType(t,e)}visitArrayType(t,e){return this.visitType(t,e)}visitMapType(t,e){return this.visitType(t,e)}visitWrappedNodeExpr(t,e){return t}visitTypeofExpr(t,e){return this.visitExpression(t,e)}visitReadVarExpr(t,e){return this.visitExpression(t,e)}visitWriteVarExpr(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)}visitWriteKeyExpr(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)}visitWritePropExpr(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),this.visitExpression(t,e)}visitInvokeMethodExpr(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)}visitInvokeFunctionExpr(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)}visitInstantiateExpr(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),this.visitExpression(t,e)}visitLiteralExpr(t,e){return this.visitExpression(t,e)}visitLocalizedString(t,e){return this.visitExpression(t,e)}visitExternalExpr(t,e){return t.typeParams&&t.typeParams.forEach(t=>t.visitType(this,e)),this.visitExpression(t,e)}visitConditionalExpr(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),this.visitExpression(t,e)}visitNotExpr(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)}visitAssertNotNullExpr(t,e){return t.condition.visitExpression(this,e),this.visitExpression(t,e)}visitCastExpr(t,e){return t.value.visitExpression(this,e),this.visitExpression(t,e)}visitFunctionExpr(t,e){return this.visitAllStatements(t.statements,e),this.visitExpression(t,e)}visitUnaryOperatorExpr(t,e){return t.expr.visitExpression(this,e),this.visitExpression(t,e)}visitBinaryOperatorExpr(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),this.visitExpression(t,e)}visitReadPropExpr(t,e){return t.receiver.visitExpression(this,e),this.visitExpression(t,e)}visitReadKeyExpr(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),this.visitExpression(t,e)}visitLiteralArrayExpr(t,e){return this.visitAllExpressions(t.entries,e),this.visitExpression(t,e)}visitLiteralMapExpr(t,e){return t.entries.forEach(t=>t.value.visitExpression(this,e)),this.visitExpression(t,e)}visitCommaExpr(t,e){return this.visitAllExpressions(t.parts,e),this.visitExpression(t,e)}visitAllExpressions(t,e){t.forEach(t=>t.visitExpression(this,e))}visitDeclareVarStmt(t,e){return t.value&&t.value.visitExpression(this,e),t.type&&t.type.visitType(this,e),t}visitDeclareFunctionStmt(t,e){return this.visitAllStatements(t.statements,e),t.type&&t.type.visitType(this,e),t}visitExpressionStmt(t,e){return t.expr.visitExpression(this,e),t}visitReturnStmt(t,e){return t.value.visitExpression(this,e),t}visitDeclareClassStmt(t,e){return t.parent.visitExpression(this,e),t.getters.forEach(t=>this.visitAllStatements(t.body,e)),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(t=>this.visitAllStatements(t.body,e)),t}visitIfStmt(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t}visitTryCatchStmt(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t}visitThrowStmt(t,e){return t.error.visitExpression(this,e),t}visitAllStatements(t,e){t.forEach(t=>t.visitStatement(this,e))}}function fe(t){const e=new ge;return e.visitAllStatements(t,null),e.varNames}class ge extends me{constructor(){super(...arguments),this.varNames=new Set}visitDeclareFunctionStmt(t,e){return t}visitDeclareClassStmt(t,e){return t}visitReadVarExpr(t,e){return t.name&&this.varNames.add(t.name),null}}function be(t,e){if(!e)return t;const n=new ye(e);return t.visitStatement(n,null)}function ve(t,e){if(!e)return t;const n=new ye(e);return t.visitExpression(n,null)}class ye extends class{transformExpr(t,e){return t}transformStmt(t,e){return t}visitReadVarExpr(t,e){return this.transformExpr(t,e)}visitWrappedNodeExpr(t,e){return this.transformExpr(t,e)}visitTypeofExpr(t,e){return this.transformExpr(new yt(t.expr.visitExpression(this,e),t.type,t.sourceSpan),e)}visitWriteVarExpr(t,e){return this.transformExpr(new wt(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)}visitWriteKeyExpr(t,e){return this.transformExpr(new xt(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)}visitWritePropExpr(t,e){return this.transformExpr(new Ct(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)}visitInvokeMethodExpr(t,e){const n=t.builtin||t.name;return this.transformExpr(new St(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)}visitInvokeFunctionExpr(t,e){return this.transformExpr(new kt(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)}visitInstantiateExpr(t,e){return this.transformExpr(new Et(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)}visitLiteralExpr(t,e){return this.transformExpr(t,e)}visitLocalizedString(t,e){return this.transformExpr(new Ot(t.metaBlock,t.messageParts,t.placeHolderNames,this.visitAllExpressions(t.expressions,e),t.sourceSpan),e)}visitExternalExpr(t,e){return this.transformExpr(t,e)}visitConditionalExpr(t,e){return this.transformExpr(new Ft(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)}visitNotExpr(t,e){return this.transformExpr(new jt(t.condition.visitExpression(this,e),t.sourceSpan),e)}visitAssertNotNullExpr(t,e){return this.transformExpr(new Vt(t.condition.visitExpression(this,e),t.sourceSpan),e)}visitCastExpr(t,e){return this.transformExpr(new Bt(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)}visitFunctionExpr(t,e){return this.transformExpr(new zt(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)}visitUnaryOperatorExpr(t,e){return this.transformExpr(new Ut(t.operator,t.expr.visitExpression(this,e),t.type,t.sourceSpan),e)}visitBinaryOperatorExpr(t,e){return this.transformExpr(new qt(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)}visitReadPropExpr(t,e){return this.transformExpr(new $t(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)}visitReadKeyExpr(t,e){return this.transformExpr(new Wt(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)}visitLiteralArrayExpr(t,e){return this.transformExpr(new Yt(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)}visitLiteralMapExpr(t,e){const n=t.entries.map(t=>new Gt(t.key,t.value.visitExpression(this,e),t.quoted)),i=new st(t.valueType);return this.transformExpr(new Kt(n,i,t.sourceSpan),e)}visitCommaExpr(t,e){return this.transformExpr(new Zt(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)}visitAllExpressions(t,e){return t.map(t=>t.visitExpression(this,e))}visitDeclareVarStmt(t,e){const n=t.value&&t.value.visitExpression(this,e);return this.transformStmt(new ie(t.name,n,t.type,t.modifiers,t.sourceSpan,t.leadingComments),e)}visitDeclareFunctionStmt(t,e){return this.transformStmt(new se(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan,t.leadingComments),e)}visitExpressionStmt(t,e){return this.transformStmt(new re(t.expr.visitExpression(this,e),t.sourceSpan,t.leadingComments),e)}visitReturnStmt(t,e){return this.transformStmt(new ae(t.value.visitExpression(this,e),t.sourceSpan,t.leadingComments),e)}visitDeclareClassStmt(t,e){const n=t.parent.visitExpression(this,e),i=t.getters.map(t=>new ce(t.name,this.visitAllStatements(t.body,e),t.type,t.modifiers)),s=t.constructorMethod&&new le(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),r=t.methods.map(t=>new le(t.name,t.params,this.visitAllStatements(t.body,e),t.type,t.modifiers));return this.transformStmt(new de(t.name,n,t.fields,i,s,r,t.modifiers,t.sourceSpan),e)}visitIfStmt(t,e){return this.transformStmt(new pe(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan,t.leadingComments),e)}visitTryCatchStmt(t,e){return this.transformStmt(new ue(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan,t.leadingComments),e)}visitThrowStmt(t,e){return this.transformStmt(new he(t.error.visitExpression(this,e),t.sourceSpan,t.leadingComments),e)}visitAllStatements(t,e){return t.map(t=>t.visitStatement(this,e))}}{constructor(t){super(),this.sourceSpan=t}_clone(t){const e=Object.create(t.constructor.prototype);for(let n of Object.keys(t))e[n]=t[n];return e}transformExpr(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t}transformStmt(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t}}function _e(t,e,n){return new vt(t,e,n)}function we(t,e=null,n){return new Lt(t,null,e,n)}function xe(t,e,n){return null!=t?Ce(we(t,e,null),n):null}function Ce(t,e,n){return new nt(t,e,n)}function Se(t){return new yt(t)}function ke(t,e,n){return new Yt(t,e,n)}function Ee(t,e=null){return new Kt(t.map(t=>new Gt(t.key,t.value,t.quoted)),e,null)}function Ie(t,e,n,i,s){return new zt(t,e,n,i,s)}function Ae(t,e,n,i,s){return new pe(t,e,n,i,s)}function De(t,e,n){return new It(t,e,n)}function Te(t){return t instanceof It&&null===t.value}function Oe(t){let e="";if(t.tagName&&(e+=` @${t.tagName}`),t.text){if(t.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+t.text.replace(/@/g,"\\@")}return e}const Pe=/-+([a-z0-9])/g;function Ne(t,e){return Me(t,":",e)}function Me(t,e,n){const i=t.indexOf(e);return-1==i?n:[t.slice(0,i).trim(),t.slice(i+1).trim()]}function Re(t,e,n){return Array.isArray(t)?e.visitArray(t,n):"object"==typeof(i=t)&&null!==i&&Object.getPrototypeOf(i)===We?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n);var i}function Le(t){return null!=t}function Fe(t){return void 0===t?null:t}class je{visitArray(t,e){return t.map(t=>Re(t,this,e))}visitStringMap(t,e){const n={};return Object.keys(t).forEach(i=>{n[i]=Re(t[i],this,e)}),n}visitPrimitive(t,e){return t}visitOther(t,e){return t}}const Ve=t=>{if(Ze(t))throw new Error("Illegal state: value cannot be a promise");return t},Be=(t,e)=>Ze(t)?t.then(e):e(t),He=t=>t.some(Ze)?Promise.all(t):t;function ze(t){throw new Error(`Internal Error: ${t}`)}function Ue(t,e){const n=Error(t);return n[qe]=!0,e&&(n[$e]=e),n}const qe="ngSyntaxError",$e="ngParseErrors";const We=Object.getPrototypeOf({});function Ye(t){let e=[];for(let n=0;n<t.length;n++){let i=t.charCodeAt(n);if(i>=55296&&i<=56319&&t.length>n+1){const e=t.charCodeAt(n+1);e>=56320&&e<=57343&&(n++,i=(i-55296<<10)+e-56320+65536)}i<=127?e.push(i):i<=2047?e.push(i>>6&31|192,63&i|128):i<=65535?e.push(i>>12|224,i>>6&63|128,63&i|128):i<=2097151&&e.push(i>>18&7|240,i>>12&63|128,i>>6&63|128,63&i|128)}return e}function Ge(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ge).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;if(!t.toString)return"object";const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ke(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function Ze(t){return!!t&&"function"==typeof t.then}const Xe="undefined"!=typeof window&&window,Qe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Je="undefined"!=typeof global&&global||Xe||Qe;function tn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}const en=_e("<unknown>"),nn={};class sn extends bt{constructor(t){super(t.type),this.resolved=t,this.original=t}visitExpression(t,e){return e===nn?this.original.visitExpression(t,e):this.resolved.visitExpression(t,e)}isEquivalent(t){return t instanceof sn&&this.resolved.isEquivalent(t.resolved)}isConstant(){return!0}fixup(t){this.resolved=t,this.shared=!0}}class rn{constructor(t=!1){this.isClosureCompilerEnabled=t,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.injectorDefinitions=new Map,this.directiveDefinitions=new Map,this.componentDefinitions=new Map,this.pipeDefinitions=new Map,this.nextNameIndex=0}getConstLiteral(t,e){if(t instanceof It&&!cn(t)||t instanceof sn)return t;const n=this.keyOf(t);let i=this.literals.get(n),s=!1;if(i||(i=new sn(t),this.literals.set(n,i),s=!0),!s&&!i.shared||s&&e){const e=this.freshName();let n,s;this.isClosureCompilerEnabled&&cn(t)?(n=_e(e).set(new zt([],[new ae(t)])),s=_e(e).callFn([])):(n=_e(e).set(t),s=_e(e)),this.statements.push(n.toDeclStmt(at,[Jt.Final])),i.fixup(s)}return i}getDefinition(t,e,n,i=!1){const s=this.definitionsOf(e);let r=s.get(t),a=!1;if(!r){const i=this.propertyNameOf(e);r=new sn(n.importExpr(t).prop(i)),s.set(t,r),a=!0}if(!a&&!r.shared||a&&i){const t=this.freshName();this.statements.push(_e(t).set(r.resolved).toDeclStmt(at,[Jt.Final])),r.fixup(_e(t))}return r}getLiteralFactory(t){if(t instanceof Yt){const e=t.entries.map(t=>t.isConstant()?t:en),n=this.keyOf(ke(e));return this._getLiteralFactory(n,t.entries,t=>ke(t))}{const e=Ee(t.entries.map(t=>({key:t.key,value:t.value.isConstant()?t.value:en,quoted:t.quoted}))),n=this.keyOf(e);return this._getLiteralFactory(n,t.entries.map(t=>t.value),e=>Ee(e.map((e,n)=>({key:t.entries[n].key,value:e,quoted:t.entries[n].quoted}))))}}_getLiteralFactory(t,e,n){let i=this.literalFactories.get(t);const s=e.filter(t=>!t.isConstant());if(!i){const s=e.map((t,e)=>t.isConstant()?this.getConstLiteral(t,!0):_e(`a${e}`)),r=Ie(s.filter(ln).map(t=>new Ht(t.name,rt)),[new ae(n(s))],at),a=this.freshName();this.statements.push(_e(a).set(r).toDeclStmt(at,[Jt.Final])),i=_e(a),this.literalFactories.set(t,i)}return{literalFactory:i,literalFactoryArguments:s}}uniqueName(t){return`${t}${this.nextNameIndex++}`}definitionsOf(t){switch(t){case 2:return this.componentDefinitions;case 1:return this.directiveDefinitions;case 0:return this.injectorDefinitions;case 3:return this.pipeDefinitions}return ze(`Unknown definition kind ${t}`),this.componentDefinitions}propertyNameOf(t){switch(t){case 2:return"\u0275cmp";case 1:return"\u0275dir";case 0:return"\u0275inj";case 3:return"\u0275pipe"}return ze(`Unknown definition kind ${t}`),"<unknown>"}freshName(){return this.uniqueName("_c")}keyOf(t){return t.visitExpression(new an,nn)}}class an{constructor(){this.visitWrappedNodeExpr=on,this.visitWriteVarExpr=on,this.visitWriteKeyExpr=on,this.visitWritePropExpr=on,this.visitInvokeMethodExpr=on,this.visitInvokeFunctionExpr=on,this.visitInstantiateExpr=on,this.visitConditionalExpr=on,this.visitNotExpr=on,this.visitAssertNotNullExpr=on,this.visitCastExpr=on,this.visitFunctionExpr=on,this.visitUnaryOperatorExpr=on,this.visitBinaryOperatorExpr=on,this.visitReadPropExpr=on,this.visitReadKeyExpr=on,this.visitCommaExpr=on,this.visitLocalizedString=on}visitLiteralExpr(t){return`${"string"==typeof t.value?'"'+t.value+'"':t.value}`}visitLiteralArrayExpr(t,e){return`[${t.entries.map(t=>t.visitExpression(this,e)).join(",")}]`}visitLiteralMapExpr(t,e){return`{${t.entries.map(t=>`${(t=>{const e=t.quoted?'"':"";return`${e}${t.key}${e}`})(t)}:${t.value.visitExpression(this,e)}`).join(",")}`}visitExternalExpr(t){return t.value.moduleName?`EX:${t.value.moduleName}:${t.value.name}`:`EX:${t.value.runtime.name}`}visitReadVarExpr(t){return`VAR:${t.name}`}visitTypeofExpr(t,e){return`TYPEOF:${t.expr.visitExpression(this,e)}`}}function on(t){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${t.constructor.name}`)}function ln(t){return t instanceof vt}function cn(t){return t instanceof It&&"string"==typeof t.value&&t.value.length>=50}const dn="@angular/core";class pn{}function un(t){return{identifier:{reference:t}}}function hn(t,e){return un(t.resolveExternalReference(e))}pn.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:dn},pn.ElementRef={name:"ElementRef",moduleName:dn},pn.NgModuleRef={name:"NgModuleRef",moduleName:dn},pn.ViewContainerRef={name:"ViewContainerRef",moduleName:dn},pn.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:dn},pn.QueryList={name:"QueryList",moduleName:dn},pn.TemplateRef={name:"TemplateRef",moduleName:dn},pn.Renderer2={name:"Renderer2",moduleName:dn},pn.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:dn},pn.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:dn},pn.ComponentFactory={name:"ComponentFactory",moduleName:dn},pn.ComponentRef={name:"ComponentRef",moduleName:dn},pn.NgModuleFactory={name:"NgModuleFactory",moduleName:dn},pn.createModuleFactory={name:"\u0275cmf",moduleName:dn},pn.moduleDef={name:"\u0275mod",moduleName:dn},pn.moduleProviderDef={name:"\u0275mpd",moduleName:dn},pn.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:dn},pn.inject={name:"\u0275\u0275inject",moduleName:dn},pn.directiveInject={name:"\u0275\u0275directiveInject",moduleName:dn},pn.INJECTOR={name:"INJECTOR",moduleName:dn},pn.Injector={name:"Injector",moduleName:dn},pn.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:dn},pn.InjectableDef={name:"\u0275\u0275InjectableDef",moduleName:dn},pn.ViewEncapsulation={name:"ViewEncapsulation",moduleName:dn},pn.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:dn},pn.SecurityContext={name:"SecurityContext",moduleName:dn},pn.LOCALE_ID={name:"LOCALE_ID",moduleName:dn},pn.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:dn},pn.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:dn},pn.interpolate={name:"\u0275interpolate",moduleName:dn},pn.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:dn},pn.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:dn},pn.Renderer={name:"Renderer",moduleName:dn},pn.viewDef={name:"\u0275vid",moduleName:dn},pn.elementDef={name:"\u0275eld",moduleName:dn},pn.anchorDef={name:"\u0275and",moduleName:dn},pn.textDef={name:"\u0275ted",moduleName:dn},pn.directiveDef={name:"\u0275did",moduleName:dn},pn.providerDef={name:"\u0275prd",moduleName:dn},pn.queryDef={name:"\u0275qud",moduleName:dn},pn.pureArrayDef={name:"\u0275pad",moduleName:dn},pn.pureObjectDef={name:"\u0275pod",moduleName:dn},pn.purePipeDef={name:"\u0275ppd",moduleName:dn},pn.pipeDef={name:"\u0275pid",moduleName:dn},pn.nodeValue={name:"\u0275nov",moduleName:dn},pn.ngContentDef={name:"\u0275ncd",moduleName:dn},pn.unwrapValue={name:"\u0275unv",moduleName:dn},pn.createRendererType2={name:"\u0275crt",moduleName:dn},pn.RendererType2={name:"RendererType2",moduleName:dn},pn.ViewDefinition={name:"\u0275ViewDefinition",moduleName:dn},pn.createComponentFactory={name:"\u0275ccf",moduleName:dn},pn.setClassMetadata={name:"\u0275setClassMetadata",moduleName:dn};class mn{constructor(t,e,n){this.filePath=t,this.name=e,this.members=n}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}}class fn{constructor(){this.cache=new Map}get(t,e,n){const i=`"${t}".${e}${(n=n||[]).length?`.${n.join(".")}`:""}`;let s=this.cache.get(i);return s||(s=new mn(t,e,n),this.cache.set(i,s)),s}}const gn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function bn(t){return t.replace(/\W/g,"_")}let vn=0;function yn(t){if(!t||!t.reference)return null;const e=t.reference;if(e instanceof mn)return e.name;if(e.__anonymousType)return e.__anonymousType;let n=Ge(e);return n.indexOf("(")>=0?(n="anonymous_"+vn++,e.__anonymousType=n):n=bn(n),n}function _n(t){const e=t.reference;return e instanceof mn?e.filePath:`./${Ge(e)}`}function wn(t,e){return`View_${yn({reference:t})}_${e}`}function xn(t){return`RenderType_${yn({reference:t})}`}function Cn(t){return`${yn({reference:t})}NgFactory`}var Sn;function kn(t){return null!=t.value?bn(t.value):yn(t.identifier)}function En(t){return null!=t.identifier?t.identifier.reference:t.value}!function(t){t[t.Pipe=0]="Pipe",t[t.Directive=1]="Directive",t[t.NgModule=2]="NgModule",t[t.Injectable=3]="Injectable"}(Sn||(Sn={}));class In{constructor({moduleUrl:t,styles:e,styleUrls:n}={}){this.moduleUrl=t||null,this.styles=Nn(e),this.styleUrls=Nn(n)}}class An{constructor({encapsulation:t,template:e,templateUrl:n,htmlAst:i,styles:s,styleUrls:r,externalStylesheets:a,animations:o,ngContentSelectors:l,interpolation:c,isInline:d,preserveWhitespaces:p}){if(this.encapsulation=t,this.template=e,this.templateUrl=n,this.htmlAst=i,this.styles=Nn(s),this.styleUrls=Nn(r),this.externalStylesheets=Nn(a),this.animations=o?Rn(o):[],this.ngContentSelectors=l||[],c&&2!=c.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=c,this.isInline=d,this.preserveWhitespaces=p}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}}class Dn{constructor({isHost:t,type:e,isComponent:n,selector:i,exportAs:s,changeDetection:r,inputs:a,outputs:o,hostListeners:l,hostProperties:c,hostAttributes:d,providers:p,viewProviders:u,queries:h,guards:m,viewQueries:f,entryComponents:g,template:b,componentViewType:v,rendererType:y,componentFactory:_}){this.isHost=!!t,this.type=e,this.isComponent=n,this.selector=i,this.exportAs=s,this.changeDetection=r,this.inputs=a,this.outputs=o,this.hostListeners=l,this.hostProperties=c,this.hostAttributes=d,this.providers=Nn(p),this.viewProviders=Nn(u),this.queries=Nn(h),this.guards=m,this.viewQueries=Nn(f),this.entryComponents=Nn(g),this.template=b,this.componentViewType=v,this.rendererType=y,this.componentFactory=_}static create({isHost:t,type:e,isComponent:n,selector:i,exportAs:s,changeDetection:r,inputs:a,outputs:o,host:l,providers:c,viewProviders:d,queries:p,guards:u,viewQueries:h,entryComponents:m,template:f,componentViewType:g,rendererType:b,componentFactory:v}){const y={},_={},w={};null!=l&&Object.keys(l).forEach(t=>{const e=l[t],n=t.match(gn);null===n?w[t]=e:null!=n[1]?_[n[1]]=e:null!=n[2]&&(y[n[2]]=e)});const x={};null!=a&&a.forEach(t=>{const e=Ne(t,[t,t]);x[e[0]]=e[1]});const C={};return null!=o&&o.forEach(t=>{const e=Ne(t,[t,t]);C[e[0]]=e[1]}),new Dn({isHost:t,type:e,isComponent:!!n,selector:i,exportAs:s,changeDetection:r,inputs:x,outputs:C,hostListeners:y,hostProperties:_,hostAttributes:w,providers:c,viewProviders:d,queries:p,guards:u,viewQueries:h,entryComponents:m,template:f,componentViewType:g,rendererType:b,componentFactory:v})}toSummary(){return{summaryKind:Sn.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}}class Tn{constructor({type:t,name:e,pure:n}){this.type=t,this.name=e,this.pure=!!n}toSummary(){return{summaryKind:Sn.Pipe,type:this.type,name:this.name,pure:this.pure}}}class On{constructor({type:t,providers:e,declaredDirectives:n,exportedDirectives:i,declaredPipes:s,exportedPipes:r,entryComponents:a,bootstrapComponents:o,importedModules:l,exportedModules:c,schemas:d,transitiveModule:p,id:u}){this.type=t||null,this.declaredDirectives=Nn(n),this.exportedDirectives=Nn(i),this.declaredPipes=Nn(s),this.exportedPipes=Nn(r),this.providers=Nn(e),this.entryComponents=Nn(a),this.bootstrapComponents=Nn(o),this.importedModules=Nn(l),this.exportedModules=Nn(c),this.schemas=Nn(d),this.id=u||null,this.transitiveModule=p||null}toSummary(){const t=this.transitiveModule;return{summaryKind:Sn.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}}}class Pn{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(t,e){this.providers.push({provider:t,module:e})}addDirective(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))}addExportedDirective(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))}addPipe(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))}addExportedPipe(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))}addModule(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))}addEntryComponent(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))}}function Nn(t){return t||[]}class Mn{constructor(t,{useClass:e,useValue:n,useExisting:i,useFactory:s,deps:r,multi:a}){this.token=t,this.useClass=e||null,this.useValue=n,this.useExisting=i,this.useFactory=s||null,this.dependencies=r||null,this.multi=!!a}}function Rn(t){return t.reduce((t,e)=>{const n=Array.isArray(e)?Rn(e):e;return t.concat(n)},[])}function Ln(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Fn(t,e,n){let i;return i=n.isInline?e.type.reference instanceof mn?`${e.type.reference.filePath}.${e.type.reference.name}.html`:`${yn(t)}/${yn(e.type)}.html`:n.templateUrl,e.type.reference instanceof mn?i:Ln(i)}const jn="@angular/core";class Vn{}function Bn(t){return Ee(Object.keys(t).map(e=>({key:e,value:t[e],quoted:!1})))}function Hn(t,e){if(0===e)return Ce(t);const n=[];for(let i=0;i<e;i++)n.push(rt);return Ce(t,void 0,n)}Vn.NEW_METHOD="factory",Vn.TRANSFORM_METHOD="transform",Vn.PATCH_DEPS="patchedDeps",Vn.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:jn},Vn.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:jn},Vn.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:jn},Vn.element={name:"\u0275\u0275element",moduleName:jn},Vn.elementStart={name:"\u0275\u0275elementStart",moduleName:jn},Vn.elementEnd={name:"\u0275\u0275elementEnd",moduleName:jn},Vn.advance={name:"\u0275\u0275advance",moduleName:jn},Vn.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:jn},Vn.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:jn},Vn.attribute={name:"\u0275\u0275attribute",moduleName:jn},Vn.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:jn},Vn.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:jn},Vn.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:jn},Vn.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:jn},Vn.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:jn},Vn.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:jn},Vn.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:jn},Vn.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:jn},Vn.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:jn},Vn.classProp={name:"\u0275\u0275classProp",moduleName:jn},Vn.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:jn},Vn.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:jn},Vn.elementContainer={name:"\u0275\u0275elementContainer",moduleName:jn},Vn.styleMap={name:"\u0275\u0275styleMap",moduleName:jn},Vn.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:jn},Vn.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:jn},Vn.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:jn},Vn.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:jn},Vn.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:jn},Vn.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:jn},Vn.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:jn},Vn.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:jn},Vn.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:jn},Vn.classMap={name:"\u0275\u0275classMap",moduleName:jn},Vn.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:jn},Vn.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:jn},Vn.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:jn},Vn.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:jn},Vn.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:jn},Vn.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:jn},Vn.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:jn},Vn.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:jn},Vn.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:jn},Vn.styleProp={name:"\u0275\u0275styleProp",moduleName:jn},Vn.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:jn},Vn.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:jn},Vn.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:jn},Vn.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:jn},Vn.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:jn},Vn.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:jn},Vn.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:jn},Vn.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:jn},Vn.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:jn},Vn.nextContext={name:"\u0275\u0275nextContext",moduleName:jn},Vn.templateCreate={name:"\u0275\u0275template",moduleName:jn},Vn.text={name:"\u0275\u0275text",moduleName:jn},Vn.enableBindings={name:"\u0275\u0275enableBindings",moduleName:jn},Vn.disableBindings={name:"\u0275\u0275disableBindings",moduleName:jn},Vn.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:jn},Vn.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:jn},Vn.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:jn},Vn.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:jn},Vn.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:jn},Vn.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:jn},Vn.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:jn},Vn.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:jn},Vn.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:jn},Vn.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:jn},Vn.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:jn},Vn.restoreView={name:"\u0275\u0275restoreView",moduleName:jn},Vn.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:jn},Vn.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:jn},Vn.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:jn},Vn.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:jn},Vn.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:jn},Vn.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:jn},Vn.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:jn},Vn.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:jn},Vn.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:jn},Vn.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:jn},Vn.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:jn},Vn.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:jn},Vn.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:jn},Vn.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:jn},Vn.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:jn},Vn.hostProperty={name:"\u0275\u0275hostProperty",moduleName:jn},Vn.property={name:"\u0275\u0275property",moduleName:jn},Vn.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:jn},Vn.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:jn},Vn.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:jn},Vn.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:jn},Vn.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:jn},Vn.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:jn},Vn.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:jn},Vn.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:jn},Vn.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:jn},Vn.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:jn},Vn.i18n={name:"\u0275\u0275i18n",moduleName:jn},Vn.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:jn},Vn.i18nExp={name:"\u0275\u0275i18nExp",moduleName:jn},Vn.i18nStart={name:"\u0275\u0275i18nStart",moduleName:jn},Vn.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:jn},Vn.i18nApply={name:"\u0275\u0275i18nApply",moduleName:jn},Vn.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:jn},Vn.pipe={name:"\u0275\u0275pipe",moduleName:jn},Vn.projection={name:"\u0275\u0275projection",moduleName:jn},Vn.projectionDef={name:"\u0275\u0275projectionDef",moduleName:jn},Vn.reference={name:"\u0275\u0275reference",moduleName:jn},Vn.inject={name:"\u0275\u0275inject",moduleName:jn},Vn.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:jn},Vn.injectPipeChangeDetectorRef={name:"\u0275\u0275injectPipeChangeDetectorRef",moduleName:jn},Vn.directiveInject={name:"\u0275\u0275directiveInject",moduleName:jn},Vn.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:jn},Vn.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:jn},Vn.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:jn},Vn.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:jn},Vn.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:jn},Vn.resolveBody={name:"\u0275\u0275resolveBody",moduleName:jn},Vn.defineComponent={name:"\u0275\u0275defineComponent",moduleName:jn},Vn.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:jn},Vn.ComponentDefWithMeta={name:"\u0275\u0275ComponentDefWithMeta",moduleName:jn},Vn.FactoryDef={name:"\u0275\u0275FactoryDef",moduleName:jn},Vn.defineDirective={name:"\u0275\u0275defineDirective",moduleName:jn},Vn.DirectiveDefWithMeta={name:"\u0275\u0275DirectiveDefWithMeta",moduleName:jn},Vn.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:jn},Vn.defineInjector={name:"\u0275\u0275defineInjector",moduleName:jn},Vn.NgModuleDefWithMeta={name:"\u0275\u0275NgModuleDefWithMeta",moduleName:jn},Vn.ModuleWithProviders={name:"ModuleWithProviders",moduleName:jn},Vn.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:jn},Vn.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:jn},Vn.PipeDefWithMeta={name:"\u0275\u0275PipeDefWithMeta",moduleName:jn},Vn.definePipe={name:"\u0275\u0275definePipe",moduleName:jn},Vn.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:jn},Vn.viewQuery={name:"\u0275\u0275viewQuery",moduleName:jn},Vn.staticViewQuery={name:"\u0275\u0275staticViewQuery",moduleName:jn},Vn.staticContentQuery={name:"\u0275\u0275staticContentQuery",moduleName:jn},Vn.loadQuery={name:"\u0275\u0275loadQuery",moduleName:jn},Vn.contentQuery={name:"\u0275\u0275contentQuery",moduleName:jn},Vn.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:jn},Vn.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:jn},Vn.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:jn},Vn.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:jn},Vn.listener={name:"\u0275\u0275listener",moduleName:jn},Vn.getFactoryOf={name:"\u0275\u0275getFactoryOf",moduleName:jn},Vn.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:jn},Vn.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:jn},Vn.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:jn},Vn.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:jn},Vn.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:jn},Vn.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:jn},Vn.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:jn},Vn.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:jn},Vn.trustConstantScript={name:"\u0275\u0275trustConstantScript",moduleName:jn},Vn.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:jn};function zn(t){return`@${t}`}function Un(t,e){return`animation_${t}_${e}`}class qn{constructor(t,e){this.value=t,this.sourceSpan=e}visit(t){return t.visitText(this)}}class $n{constructor(t,e,n){this.value=t,this.sourceSpan=e,this.i18n=n}visit(t){return t.visitBoundText(this)}}class Wn{constructor(t,e,n,i,s){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=i,this.i18n=s}visit(t){return t.visitTextAttribute(this)}}class Yn{constructor(t,e,n,i,s,r,a,o,l){this.name=t,this.type=e,this.securityContext=n,this.value=i,this.unit=s,this.sourceSpan=r,this.keySpan=a,this.valueSpan=o,this.i18n=l}static fromBoundElementProperty(t,e){if(void 0===t.keySpan)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${t.name}: ${t.sourceSpan}`);return new Yn(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,t.keySpan,t.valueSpan,e)}visit(t){return t.visitBoundAttribute(this)}}class Gn{constructor(t,e,n,i,s,r,a){this.name=t,this.type=e,this.handler=n,this.target=i,this.phase=s,this.sourceSpan=r,this.handlerSpan=a}static fromParsedEvent(t){const e=0===t.type?t.targetOrPhase:null,n=1===t.type?t.targetOrPhase:null;return new Gn(t.name,t.type,t.handler,e,n,t.sourceSpan,t.handlerSpan)}visit(t){return t.visitBoundEvent(this)}}class Kn{constructor(t,e,n,i,s,r,a,o,l,c){this.name=t,this.attributes=e,this.inputs=n,this.outputs=i,this.children=s,this.references=r,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l,this.i18n=c}visit(t){return t.visitElement(this)}}class Zn{constructor(t,e,n,i,s,r,a,o,l,c,d,p){this.tagName=t,this.attributes=e,this.inputs=n,this.outputs=i,this.templateAttrs=s,this.children=r,this.references=a,this.variables=o,this.sourceSpan=l,this.startSourceSpan=c,this.endSourceSpan=d,this.i18n=p}visit(t){return t.visitTemplate(this)}}class Xn{constructor(t,e,n,i){this.selector=t,this.attributes=e,this.sourceSpan=n,this.i18n=i,this.name="ng-content"}visit(t){return t.visitContent(this)}}class Qn{constructor(t,e,n,i,s){this.name=t,this.value=e,this.sourceSpan=n,this.keySpan=i,this.valueSpan=s}visit(t){return t.visitVariable(this)}}class Jn{constructor(t,e,n,i){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=i}visit(t){return t.visitReference(this)}}class ti{constructor(t,e,n,i){this.vars=t,this.placeholders=e,this.sourceSpan=n,this.i18n=i}visit(t){return t.visitIcu(this)}}function ei(t,e){const n=[];if(t.visit)for(const i of e){t.visit(i)||i.visit(t)}else for(const i of e){const e=i.visit(t);e&&n.push(e)}return n}class ni{constructor(t,e,n,i,s,r){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=i,this.description=s,this.customId=r,this.id=this.customId,this.legacyIds=[],t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}}class ii{constructor(t,e){this.value=t,this.sourceSpan=e}visit(t,e){return t.visitText(this,e)}}class si{constructor(t,e){this.children=t,this.sourceSpan=e}visit(t,e){return t.visitContainer(this,e)}}class ri{constructor(t,e,n,i){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=i}visit(t,e){return t.visitIcu(this,e)}}class ai{constructor(t,e,n,i,s,r,a,o,l){this.tag=t,this.attrs=e,this.startName=n,this.closeName=i,this.children=s,this.isVoid=r,this.sourceSpan=a,this.startSourceSpan=o,this.endSourceSpan=l}visit(t,e){return t.visitTagPlaceholder(this,e)}}class oi{constructor(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}visit(t,e){return t.visitPlaceholder(this,e)}}class li{constructor(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}visit(t,e){return t.visitIcuPlaceholder(this,e)}}class ci{constructor(t){this.digits=t}static zero(){return new ci([0])}static one(){return new ci([1])}clone(){return new ci(this.digits.slice())}add(t){const e=this.clone();return e.addToSelf(t),e}addToSelf(t){const e=Math.max(this.digits.length,t.digits.length);let n=0;for(let i=0;i<e;i++){let e=n;i<this.digits.length&&(e+=this.digits[i]),i<t.digits.length&&(e+=t.digits[i]),e>=10?(this.digits[i]=e-10,n=1):(this.digits[i]=e,n=0)}n>0&&(this.digits[e]=1)}toString(){let t="";for(let e=this.digits.length-1;e>=0;e--)t+=this.digits[e];return t}}class di{constructor(t){this.powerOfTwos=[t]}getValue(){return this.powerOfTwos[0]}multiplyBy(t){const e=ci.zero();return this.multiplyByAndAddTo(t,e),e}multiplyByAndAddTo(t,e){for(let n=0;0!==t;t>>>=1,n++)if(1&t){const t=this.getMultipliedByPowerOfTwo(n);e.addToSelf(t)}}getMultipliedByPowerOfTwo(t){for(let e=this.powerOfTwos.length;e<=t;e++){const t=this.powerOfTwos[e-1];this.powerOfTwos[e]=t.add(t)}return this.powerOfTwos[t]}}function pi(t){return t.id||ui(t)}function ui(t){return function(t){const e=Ye(t),n=function(t,e){const n=t.length+3>>>2,i=[];for(let s=0;s<n;s++)i[s]=Ai(t,4*s,e);return i}(e,xi.Big),i=8*e.length,s=tn(80);let r=1732584193,a=4023233417,o=2562383102,l=271733878,c=3285377520;n[i>>5]|=128<<24-i%32,n[15+(i+64>>9<<4)]=i;for(let d=0;d<n.length;d+=16){const t=r,e=a,i=o,p=l,u=c;for(let h=0;h<80;h++){s[h]=h<16?n[d+h]:Ei(s[h-3]^s[h-8]^s[h-14]^s[h-16],1);const t=vi(h,a,o,l),e=t[0],i=t[1],p=[Ei(r,5),e,c,i,s[h]].reduce(Ci);c=l,l=o,o=Ei(a,30),a=r,r=p}r=Ci(r,t),a=Ci(a,e),o=Ci(o,i),l=Ci(l,p),c=Ci(c,u)}return function(t){let e="";for(let n=0;n<t.length;n++){const i=Ii(t,n);e+=(i>>>4).toString(16)+(15&i).toString(16)}return e.toLowerCase()}(function(t){return t.reduce((t,e)=>t.concat(function(t){let e=[];for(let n=0;n<4;n++)e.push(t>>>8*(3-n)&255);return e}(e)),[])}([r,a,o,l,c]))}((e=t.nodes,e.map(t=>t.visit(gi,null))).join("")+`[${t.meaning}]`);var e}function hi(t){return t.id||mi(t)}function mi(t){const e=new bi;return function(t,e=""){let n=yi(t);if(e){const t=yi(e);n=function(t,e){const n=t[0],i=t[1],s=e[0],r=e[1],a=Si(i,r),o=a[0],l=a[1];return[Ci(Ci(n,s),o),l]}(function(t,e){const n=t[0],i=t[1];return[n<<e|i>>>32-e,i<<e|n>>>32-e]}(n,1),t)}const i=n[0],s=n[1];return function(t,e){const n=Di.toThePowerOf(0).multiplyBy(e);return Di.toThePowerOf(4).multiplyByAndAddTo(t,n),n.toString()}(2147483647&i,s)}(t.nodes.map(t=>t.visit(e,null)).join(""),t.meaning)}class fi{visitText(t,e){return t.value}visitContainer(t,e){return`[${t.children.map(t=>t.visit(this)).join(", ")}]`}visitIcu(t,e){const n=Object.keys(t.cases).map(e=>`${e} {${t.cases[e].visit(this)}}`);return`{${t.expression}, ${t.type}, ${n.join(", ")}}`}visitTagPlaceholder(t,e){return t.isVoid?`<ph tag name="${t.startName}"/>`:`<ph tag name="${t.startName}">${t.children.map(t=>t.visit(this)).join(", ")}</ph name="${t.closeName}">`}visitPlaceholder(t,e){return t.value?`<ph name="${t.name}">${t.value}</ph>`:`<ph name="${t.name}"/>`}visitIcuPlaceholder(t,e){return`<ph icu name="${t.name}">${t.value.visit(this)}</ph>`}}const gi=new fi;class bi extends fi{visitIcu(t,e){let n=Object.keys(t.cases).map(e=>`${e} {${t.cases[e].visit(this)}}`);return`{${t.type}, ${n.join(", ")}}`}}function vi(t,e,n,i){return t<20?[e&n|~e&i,1518500249]:t<40?[e^n^i,1859775393]:t<60?[e&n|e&i|n&i,2400959708]:[e^n^i,3395469782]}function yi(t){const e=Ye(t);let n=_i(e,0),i=_i(e,102072);return 0!=n||0!=i&&1!=i||(n^=319790063,i^=-1801410264),[n,i]}function _i(t,e){let n,i=2654435769,s=2654435769;const r=t.length;for(n=0;n+12<=r;n+=12){i=Ci(i,Ai(t,n,xi.Little)),s=Ci(s,Ai(t,n+4,xi.Little));const r=wi(i,s,e=Ci(e,Ai(t,n+8,xi.Little)));i=r[0],s=r[1],e=r[2]}return i=Ci(i,Ai(t,n,xi.Little)),s=Ci(s,Ai(t,n+4,xi.Little)),e=Ci(e,r),wi(i,s,e=Ci(e,Ai(t,n+8,xi.Little)<<8))[2]}function wi(t,e,n){return t=ki(t,e),t=ki(t,n),t^=n>>>13,e=ki(e,n),e=ki(e,t),e^=t<<8,n=ki(n,t),n=ki(n,e),n^=e>>>13,t=ki(t,e),t=ki(t,n),t^=n>>>12,e=ki(e,n),e=ki(e,t),e^=t<<16,n=ki(n,t),n=ki(n,e),n^=e>>>5,t=ki(t,e),t=ki(t,n),t^=n>>>3,e=ki(e,n),e=ki(e,t),e^=t<<10,n=ki(n,t),n=ki(n,e),[t,e,n^=e>>>15]}var xi;function Ci(t,e){return Si(t,e)[1]}function Si(t,e){const n=(65535&t)+(65535&e),i=(t>>>16)+(e>>>16)+(n>>>16);return[i>>>16,i<<16|65535&n]}function ki(t,e){const n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Ei(t,e){return t<<e|t>>>32-e}function Ii(t,e){return e>=t.length?0:t[e]}function Ai(t,e,n){let i=0;if(n===xi.Big)for(let s=0;s<4;s++)i+=Ii(t,e+s)<<24-8*s;else for(let s=0;s<4;s++)i+=Ii(t,e+s)<<8*s;return i}!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(xi||(xi={}));const Di=new class{constructor(t){this.base=t,this.exponents=[new di(ci.one())]}toThePowerOf(t){for(let e=this.exponents.length;e<=t;e++){const t=this.exponents[e-1].multiplyBy(this.base);this.exponents[e]=new di(t)}return this.exponents[t]}}(256);class Ti{createNameMapper(t){return null}}class Oi extends class{visitText(t,e){}visitContainer(t,e){t.children.forEach(t=>t.visit(this))}visitIcu(t,e){Object.keys(t.cases).forEach(e=>{t.cases[e].visit(this)})}visitTagPlaceholder(t,e){t.children.forEach(t=>t.visit(this))}visitPlaceholder(t,e){}visitIcuPlaceholder(t,e){}}{constructor(t,e){super(),this.mapName=e,this.internalToPublic={},this.publicToNextId={},this.publicToInternal={},t.nodes.forEach(t=>t.visit(this))}toPublicName(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null}toInternalName(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null}visitText(t,e){return null}visitTagPlaceholder(t,e){this.visitPlaceholderName(t.startName),super.visitTagPlaceholder(t,e),this.visitPlaceholderName(t.closeName)}visitPlaceholder(t,e){this.visitPlaceholderName(t.name)}visitIcuPlaceholder(t,e){this.visitPlaceholderName(t.name)}visitPlaceholderName(t){if(!t||this.internalToPublic.hasOwnProperty(t))return;let e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){const t=this.publicToNextId[e];this.publicToNextId[e]=t+1,e=`${e}_${t}`}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}}const Pi=new class{visitTag(t){const e=this._serializeAttributes(t.attrs);if(0==t.children.length)return`<${t.name}${e}/>`;const n=t.children.map(t=>t.visit(this));return`<${t.name}${e}>${n.join("")}</${t.name}>`}visitText(t){return t.value}visitDeclaration(t){return`<?xml${this._serializeAttributes(t.attrs)} ?>`}_serializeAttributes(t){const e=Object.keys(t).map(e=>`${e}="${t[e]}"`).join(" ");return e.length>0?" "+e:""}visitDoctype(t){return`<!DOCTYPE ${t.rootTag} [\n${t.dtd}\n]>`}};function Ni(t){return t.map(t=>t.visit(Pi)).join("")}class Mi{constructor(t){this.attrs={},Object.keys(t).forEach(e=>{this.attrs[e]=Bi(t[e])})}visit(t){return t.visitDeclaration(this)}}class Ri{constructor(t,e){this.rootTag=t,this.dtd=e}visit(t){return t.visitDoctype(this)}}class Li{constructor(t,e={},n=[]){this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(t=>{this.attrs[t]=Bi(e[t])})}visit(t){return t.visitTag(this)}}class Fi{constructor(t){this.value=Bi(t)}visit(t){return t.visitText(this)}}class ji extends Fi{constructor(t=0){super(`\n${new Array(t+1).join(" ")}`)}}const Vi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]];function Bi(t){return Vi.reduce((t,e)=>t.replace(e[0],e[1]),t)}class Hi extends Ti{write(t,e){const n=new qi,i=new zi;let s=new Li("messagebundle");return t.forEach(t=>{const e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);let n=[];t.sources.forEach(t=>{n.push(new Li("source",{},[new Fi(`${t.filePath}:${t.startLine}${t.endLine!==t.startLine?","+t.endLine:""}`)]))}),s.children.push(new ji(2),new Li("msg",e,[...n,...i.serialize(t.nodes)]))}),s.children.push(new ji),Ni([new Mi({version:"1.0",encoding:"UTF-8"}),new ji,new Ri("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new ji,n.addDefaultExamples(s),new ji])}load(t,e){throw new Error("Unsupported")}digest(t){return Ui(t)}createNameMapper(t){return new Oi(t,$i)}}class zi{visitText(t,e){return[new Fi(t.value)]}visitContainer(t,e){const n=[];return t.children.forEach(t=>n.push(...t.visit(this))),n}visitIcu(t,e){const n=[new Fi(`{${t.expressionPlaceholder}, ${t.type}, `)];return Object.keys(t.cases).forEach(e=>{n.push(new Fi(`${e} {`),...t.cases[e].visit(this),new Fi("} "))}),n.push(new Fi("}")),n}visitTagPlaceholder(t,e){const n=new Fi(`<${t.tag}>`),i=new Li("ex",{},[n]),s=new Li("ph",{name:t.startName},[i,n]);if(t.isVoid)return[s];const r=new Fi(`</${t.tag}>`),a=new Li("ex",{},[r]),o=new Li("ph",{name:t.closeName},[a,r]);return[s,...this.serialize(t.children),o]}visitPlaceholder(t,e){const n=new Fi(`{{${t.value}}}`),i=new Li("ex",{},[n]);return[new Li("ph",{name:t.name},[i,n])]}visitIcuPlaceholder(t,e){const n=t.value.expression,i=t.value.type,s=Object.keys(t.value.cases).map(t=>t+" {...}").join(" "),r=new Fi(`{${n}, ${i}, ${s}}`),a=new Li("ex",{},[r]);return[new Li("ph",{name:t.name},[a,r])]}serialize(t){return[].concat(...t.map(t=>t.visit(this)))}}function Ui(t){return hi(t)}class qi{addDefaultExamples(t){return t.visit(this),t}visitTag(t){if("ph"===t.name){if(!t.children||0==t.children.length){const e=new Fi(t.attrs.name||"...");t.children=[new Li("ex",{},[e])]}}else t.children&&t.children.forEach(t=>t.visit(this))}visitText(t){}visitDeclaration(t){}visitDoctype(t){}}function $i(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function Wi(t){return"i18n"===t||t.startsWith("i18n-")}function Yi(t){return t instanceof ni}function Gi(t){return Yi(t)&&1===t.nodes.length&&t.nodes[0]instanceof ri}function Ki(t){return!!t.i18n}function Zi(t){return t.nodes[0]}function Xi(t,e=0){return`\ufffd${t}${e>0?`:${e}`:""}\ufffd`}function Qi(t=0){let e=t;return()=>e++}function Ji(t){const e={};return t.forEach((t,n)=>{e[n]=De(t.length>1?`[${t.join("|")}]`:t[0])}),e}function ts(t,e,...n){const i=t.get(e)||[];i.push(...n),t.set(e,i)}function es(t,e=0,n=0){const i=e,s=new Map,r=t instanceof ni?t.nodes.find(t=>t instanceof si):t;return r&&r.children.filter(t=>t instanceof oi).forEach((t,e)=>{const r=Xi(i+e,n);ts(s,t.name,r)}),s}function ns(t={},e){const n={};return t&&Object.keys(t).length&&Object.keys(t).forEach(i=>n[is(i,e)]=t[i]),n}function is(t,e=!0){const n=$i(t);if(!e)return n;const i=n.split("_");if(1===i.length)return t.toLowerCase();let s;/^\d+$/.test(i[i.length-1])&&(s=i.pop());let r=i.shift().toLowerCase();return i.length&&(r+=i.map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join("")),s?`${r}_${s}`:r}function ss(t){return`MSG_${t}`.toUpperCase()}function rs(t){return new ie(t.name,void 0,at,void 0,t.sourceSpan)}const as=/[-.]/;function os(t,e){let n=null;return()=>(n||(t.push(new ie("_t",void 0,rt)),n=_e(e)),n)}function ls(t){if(this)throw new Error(`Builder ${this.constructor.name} doesn't support ${t} yet`);throw new Error(`Feature ${t} is not supported yet`)}function cs(t){throw new Error(`Invalid state: Visitor ${this.constructor.name} doesn't handle ${t.constructor.name}`)}function ds(t){return Array.isArray(t)?ke(t.map(ds)):De(t,at)}function ps(t,e){return Object.getOwnPropertyNames(t).length>0?function(t,e){return Ee(Object.getOwnPropertyNames(t).map(n=>{const i=t[n];let s,r,a;return Array.isArray(i)?[r,s]=i:[s,r]=Ne(n,[n,i]),a=s,{key:a,quoted:as.test(a),value:e&&r!==s?ke([ds(r),ds(s)]):ds(r)}}))}(t,e):null}function us(t){for(;Te(t[t.length-1]);)t.pop();return t}function hs(t,e){if(Array.isArray(t.predicate)){let n=[];return t.predicate.forEach(t=>{const e=t.split(",").map(t=>De(t.trim()));n.push(...e)}),e.getConstLiteral(ke(n),!0)}return t.predicate}class ms{constructor(){this.values=[]}set(t,e){e&&this.values.push({key:t,value:e,quoted:!1})}toLiteralMap(){return Ee(this.values)}}function fs(t){const e={};return t instanceof Zn&&"ng-template"!==t.tagName?t.templateAttrs.forEach(t=>e[t.name]=""):(t.attributes.forEach(t=>{Wi(t.name)||(e[t.name]=t.value)}),t.inputs.forEach(t=>{e[t.name]=""}),t.outputs.forEach(t=>{e[t.name]=""})),e}function gs(t,e,n){let i=we(t,null,n);if(e.length>0)for(let s=0;s<e.length;s++)i=i.callFn(e[s],n);else i=i.callFn([],n);return i}function bs(t){const{expressions:e,strings:n}=t;return 1===e.length&&2===n.length&&""===n[0]&&""===n[1]?1:e.length+n.length}var vs,ys,_s;function ws(t){const e=_e("t"),n=[];let i=dt;const s=Cs(t)?e:new qt(ut.Or,e,t.internalType);let r=null;if(null!==t.deps)"invalid"!==t.deps&&(r=new Et(s,xs(t.deps,t.injectFn,t.target===ys.Pipe)),i=function(t){let e=!1;const n=t.map(t=>{const n=function(t){const e=[];t.resolved===_s.Attribute&&null!==t.attribute&&e.push({key:"attribute",value:t.attribute,quoted:!1});t.optional&&e.push({key:"optional",value:De(!0),quoted:!1});t.host&&e.push({key:"host",value:De(!0),quoted:!1});t.self&&e.push({key:"self",value:De(!0),quoted:!1});t.skipSelf&&e.push({key:"skipSelf",value:De(!0),quoted:!1});return e.length>0?Ee(e):null}(t);return null!==n?(e=!0,n):De(null)});return e?Ce(ke(n)):dt}(t.deps));else{const e=_e(`\u0275${t.name}_BaseFactory`),i=we(Vn.getInheritedFactory),a=e.set(i.callFn([t.internalType],void 0,!0)).toDeclStmt(at,[Jt.Exported,Jt.Final]);n.push(a),r=e.callFn([s])}const a=r,o=[];let l=null;function c(t){const n=_e("r");o.push(n.set(Xt).toDeclStmt());let i=null;return i=null!==a?n.set(a).toStmt():we(Vn.invalidFactory).callFn([]).toStmt(),o.push(Ae(e,[i],[n.set(t).toStmt()])),n}if(Cs(t)&&t.delegateType===vs.Factory){const e=_e(`\u0275${t.name}_BaseFactory`),i=we(Vn.getFactoryOf);if(t.delegate.isEquivalent(t.internalType))throw new Error("Illegal state: compiling factory that delegates to itself");const s=e.set(i.callFn([t.delegate])).toDeclStmt(at,[Jt.Exported,Jt.Final]);n.push(s),l=c(e.callFn([]))}else if(Cs(t)){const e=xs(t.delegateDeps,t.injectFn,t.target===ys.Pipe);l=c(new(t.delegateType===vs.Class?Et:kt)(t.delegate,e))}else l=function(t){return void 0!==t.expression}(t)?c(t.expression):r;return null!==l?o.push(new ae(l)):o.push(we(Vn.invalidFactory).callFn([]).toStmt()),{factory:Ie([new Ht("t",rt)],o,at,void 0,`${t.name}_Factory`),statements:n,type:Ce(we(Vn.FactoryDef,[Hn(t.type.type,t.typeArgumentCount),i]))}}function xs(t,e,n){return t.map((t,i)=>function(t,e,n,i){switch(t.resolved){case _s.Token:case _s.ChangeDetectorRef:const s=0|(t.self?2:0)|(t.skipSelf?4:0)|(t.host?1:0)|(t.optional?8:0);let r=0!==s||t.optional?De(s):null;if(n&&t.resolved===_s.ChangeDetectorRef)return we(Vn.injectPipeChangeDetectorRef).callFn(r?[r]:[]);const a=[t.token];return r&&a.push(r),we(e).callFn(a);case _s.Attribute:return we(Vn.injectAttribute).callFn([t.token]);case _s.Invalid:return we(Vn.invalidFactoryDep).callFn([De(i)]);default:return ls(`Unknown R3ResolvedDependencyType: ${_s[t.resolved]}`)}}(t,e,n,i))}function Cs(t){return void 0!==t.delegateType}function Ss(t,e){return{statements:[],factory:t.node===e.node?e.prop("\u0275fac"):Ie([new Ht("t",rt)],[new ae(e.callMethod("\u0275fac",[_e("t")]))])}}function ks(t,e){if(null!=e){if(!Array.isArray(e))throw new Error(`Expected '${t}' to be an array of strings.`);for(let n=0;n<e.length;n+=1)if("string"!=typeof e[n])throw new Error(`Expected '${t}' to be an array of strings.`)}}!function(t){t[t.Class=0]="Class",t[t.Function=1]="Function",t[t.Factory=2]="Factory"}(vs||(vs={})),function(t){t[t.Directive=0]="Directive",t[t.Component=1]="Component",t[t.Injectable=2]="Injectable",t[t.Pipe=3]="Pipe",t[t.NgModule=4]="NgModule"}(ys||(ys={})),function(t){t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.ChangeDetectorRef=2]="ChangeDetectorRef",t[t.Invalid=3]="Invalid"}(_s||(_s={}));const Es=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Is(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error(`Expected '${t}' to be an array, [start, end].`);if(null!=e){const t=e[0],n=e[1];Es.forEach(e=>{if(e.test(t)||e.test(n))throw new Error(`['${t}', '${n}'] contains unusable interpolation symbol.`)})}}class As{constructor(t,e){this.start=t,this.end=e}static fromArray(t){return t?(Is("interpolation",t),new As(t[0],t[1])):Ds}}const Ds=new As("{{","}}");class Ts{constructor(t=null){this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(t,e=null){return this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(t,e,n,i){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error(`Unknown source file "${e}"`);if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==i))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:i}),this}get currentLine(){return this.lines.slice(-1)[0]}toJSON(){if(!this.hasMappings)return null;const t=new Map,e=[],n=[];Array.from(this.sourcesContent.keys()).forEach((i,s)=>{t.set(i,s),e.push(i),n.push(this.sourcesContent.get(i)||null)});let i="",s=0,r=0,a=0,o=0;return this.lines.forEach(e=>{s=0,i+=e.map(e=>{let n=Os(e.col0-s);return s=e.col0,null!=e.sourceUrl&&(n+=Os(t.get(e.sourceUrl)-r),r=t.get(e.sourceUrl),n+=Os(e.sourceLine0-a),a=e.sourceLine0,n+=Os(e.sourceCol0-o),o=e.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:e,sourcesContent:n,mappings:i}}toJsComment(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(t){let e="";const n=Ye(t);for(let i=0;i<n.length;){const t=n[i++],s=i<n.length?n[i++]:null,r=i<n.length?n[i++]:null;e+=Ps(t>>2),e+=Ps((3&t)<<4|(null===s?0:s>>4)),e+=null===s?"=":Ps((15&s)<<2|(null===r?0:r>>6)),e+=null===s||null===r?"=":Ps(63&r)}return e}(JSON.stringify(this,null,0)):""}}function Os(t){t=t<0?1+(-t<<1):t<<1;let e="";do{let n=31&t;(t>>=5)>0&&(n|=32),e+=Ps(n)}while(t>0);return e}function Ps(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t]}const Ns=/'|\\|\n|\r|\$/g,Ms=/^[$A-Z_][0-9A-Z_$]*$/i,Rs=_e("error",null,null),Ls=_e("stack",null,null);class Fs{constructor(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}}class js{constructor(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Fs(t)]}static createRoot(){return new js(0)}get _currentLine(){return this._lines[this._lines.length-1]}println(t,e=""){this.print(t||null,e,!0)}lineIsEmpty(){return 0===this._currentLine.parts.length}lineLength(){return this._currentLine.indent*"  ".length+this._currentLine.partsLength}print(t,e,n=!1){e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Fs(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}pushClass(t){this._classes.push(t)}popClass(){return this._classes.pop()}get currentClass(){return this._classes.length>0?this._classes[this._classes.length-1]:null}toSource(){return this.sourceLines.map(t=>t.parts.length>0?Hs(t.indent)+t.parts.join(""):"").join("\n")}toSourceMapGenerator(t,e=0){const n=new Ts(t);let i=!1;const s=()=>{i||(n.addSource(t," ").addMapping(0,t,0,0),i=!0)};for(let r=0;r<e;r++)n.addLine(),s();return this.sourceLines.forEach((t,e)=>{n.addLine();const r=t.srcSpans,a=t.parts;let o=t.indent*"  ".length,l=0;for(;l<r.length&&!r[l];)o+=a[l].length,l++;for(l<r.length&&0===e&&0===o?i=!0:s();l<r.length;){const t=r[l],e=t.start.file,i=t.start.line,s=t.start.col;for(n.addSource(e.url,e.content).addMapping(o,e.url,i,s),o+=a[l].length,l++;l<r.length&&(t===r[l]||!r[l]);)o+=a[l].length,l++}}),n}setPreambleLineCount(t){return this._preambleLineCount=t}spanOf(t,e){const n=this._lines[t-this._preambleLineCount];if(n){let t=e-Hs(n.indent).length;for(let e=0;e<n.parts.length;e++){const i=n.parts[e];if(i.length>t)return n.srcSpans[e];t-=i.length}}return null}get sourceLines(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines}}class Vs{constructor(t){this._escapeDollarInStrings=t}printLeadingComments(t,e){if(void 0!==t.leadingComments)for(const n of t.leadingComments)n instanceof ee?e.print(t,`/*${n.toString()}*/`,n.trailingNewline):n.multiline?e.print(t,`/* ${n.text} */`,n.trailingNewline):n.text.split("\n").forEach(n=>{e.println(t,`// ${n}`)})}visitExpressionStmt(t,e){return this.printLeadingComments(t,e),t.expr.visitExpression(this,e),e.println(t,";"),null}visitReturnStmt(t,e){return this.printLeadingComments(t,e),e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null}visitIfStmt(t,e){this.printLeadingComments(t,e),e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");const n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null}visitThrowStmt(t,e){return this.printLeadingComments(t,e),e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null}visitWriteVarExpr(t,e){const n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,`${t.name} = `),t.value.visitExpression(this,e),n||e.print(t,")"),null}visitWriteKeyExpr(t,e){const n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null}visitWritePropExpr(t,e){const n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,`.${t.name} = `),t.value.visitExpression(this,e),n||e.print(t,")"),null}visitInvokeMethodExpr(t,e){t.receiver.visitExpression(this,e);let n=t.name;return null!=t.builtin&&(n=this.getBuiltinMethodName(t.builtin),null==n)||(e.print(t,`.${n}(`),this.visitAllExpressions(t.args,e,","),e.print(t,")")),null}visitInvokeFunctionExpr(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null}visitWrappedNodeExpr(t,e){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")}visitTypeofExpr(t,e){e.print(t,"typeof "),t.expr.visitExpression(this,e)}visitReadVarExpr(t,e){let n=t.name;if(null!=t.builtin)switch(t.builtin){case ht.Super:n="super";break;case ht.This:n="this";break;case ht.CatchError:n=Rs.name;break;case ht.CatchStack:n=Ls.name;break;default:throw new Error(`Unknown builtin variable ${t.builtin}`)}return e.print(t,n),null}visitInstantiateExpr(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null}visitLiteralExpr(t,e){const n=t.value;return"string"==typeof n?e.print(t,Bs(n,this._escapeDollarInStrings)):e.print(t,`${n}`),null}visitLocalizedString(t,e){const n=t.serializeI18nHead();e.print(t,"$localize `"+n.raw);for(let i=1;i<t.messageParts.length;i++)e.print(t,"${"),t.expressions[i-1].visitExpression(this,e),e.print(t,`}${t.serializeI18nTemplatePart(i).raw}`);return e.print(t,"`"),null}visitConditionalExpr(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null}visitNotExpr(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null}visitAssertNotNullExpr(t,e){return t.condition.visitExpression(this,e),null}visitUnaryOperatorExpr(t,e){let n;switch(t.operator){case pt.Plus:n="+";break;case pt.Minus:n="-";break;default:throw new Error(`Unknown operator ${t.operator}`)}return t.parens&&e.print(t,"("),e.print(t,n),t.expr.visitExpression(this,e),t.parens&&e.print(t,")"),null}visitBinaryOperatorExpr(t,e){let n;switch(t.operator){case ut.Equals:n="==";break;case ut.Identical:n="===";break;case ut.NotEquals:n="!=";break;case ut.NotIdentical:n="!==";break;case ut.And:n="&&";break;case ut.BitwiseAnd:n="&";break;case ut.Or:n="||";break;case ut.Plus:n="+";break;case ut.Minus:n="-";break;case ut.Divide:n="/";break;case ut.Multiply:n="*";break;case ut.Modulo:n="%";break;case ut.Lower:n="<";break;case ut.LowerEquals:n="<=";break;case ut.Bigger:n=">";break;case ut.BiggerEquals:n=">=";break;default:throw new Error(`Unknown operator ${t.operator}`)}return t.parens&&e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t,` ${n} `),t.rhs.visitExpression(this,e),t.parens&&e.print(t,")"),null}visitReadPropExpr(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null}visitReadKeyExpr(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null}visitLiteralArrayExpr(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null}visitLiteralMapExpr(t,e){return e.print(t,"{"),this.visitAllObjects(n=>{e.print(t,`${Bs(n.key,this._escapeDollarInStrings,n.quoted)}:`),n.value.visitExpression(this,e)},t.entries,e,","),e.print(t,"}"),null}visitCommaExpr(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null}visitAllExpressions(t,e,n){this.visitAllObjects(t=>t.visitExpression(this,e),t,e,n)}visitAllObjects(t,e,n,i){let s=!1;for(let r=0;r<e.length;r++)r>0&&(n.lineLength()>80?(n.print(null,i,!0),s||(n.incIndent(),n.incIndent(),s=!0)):n.print(null,i,!1)),t(e[r]);s&&(n.decIndent(),n.decIndent())}visitAllStatements(t,e){t.forEach(t=>t.visitStatement(this,e))}}function Bs(t,e,n=!0){if(null==t)return null;const i=t.replace(Ns,(...t)=>"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":`\\${t[0]}`);return n||!Ms.test(i)?`'${i}'`:i}function Hs(t){let e="";for(let n=0;n<t;n++)e+="  ";return e}class zs extends Vs{constructor(){super(!1)}visitDeclareClassStmt(t,e){return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,`${t.name}.prototype = Object.create(`),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(n=>this._visitClassGetter(t,n,e)),t.methods.forEach(n=>this._visitClassMethod(t,n,e)),e.popClass(),null}_visitClassConstructor(t,e){e.print(t,`function ${t.name}(`),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")}_visitClassGetter(t,e,n){n.println(t,`Object.defineProperty(${t.name}.prototype, '${e.name}', { get: function() {`),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")}_visitClassMethod(t,e,n){n.print(t,`${t.name}.prototype.${e.name} = function(`),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")}visitWrappedNodeExpr(t,e){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitReadVarExpr(t,e){if(t.builtin===ht.This)e.print(t,"self");else{if(t.builtin===ht.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");super.visitReadVarExpr(t,e)}return null}visitDeclareVarStmt(t,e){return e.print(t,`var ${t.name}`),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null}visitCastExpr(t,e){return t.value.visitExpression(this,e),null}visitInvokeFunctionExpr(t,e){const n=t.fn;return n instanceof vt&&n.builtin===ht.Super?(e.currentClass.parent.visitExpression(this,e),e.print(t,".call(this"),t.args.length>0&&(e.print(t,", "),this.visitAllExpressions(t.args,e,",")),e.print(t,")")):super.visitInvokeFunctionExpr(t,e),null}visitFunctionExpr(t,e){return e.print(t,`function${t.name?" "+t.name:""}(`),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null}visitDeclareFunctionStmt(t,e){return e.print(t,`function ${t.name}(`),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null}visitTryCatchStmt(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,`} catch (${Rs.name}) {`),e.incIndent();const n=[Ls.set(Rs.prop("stack")).toDeclStmt(null,[Jt.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null}visitLocalizedString(t,e){e.print(t,'$localize((this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})(');const n=[t.serializeI18nHead()];for(let i=1;i<t.messageParts.length;i++)n.push(t.serializeI18nTemplatePart(i));return e.print(t,`[${n.map(t=>Bs(t.cooked,!1)).join(", ")}], `),e.print(t,`[${n.map(t=>Bs(t.raw,!1)).join(", ")}])`),t.expressions.forEach(n=>{e.print(t,", "),n.visitExpression(this,e)}),e.print(t,")"),null}_visitParams(t,e){this.visitAllObjects(t=>e.print(null,t.name),t,e,",")}getBuiltinMethodName(t){let e;switch(t){case mt.ConcatArray:e="concat";break;case mt.SubscribeObservable:e="subscribe";break;case mt.Bind:e="bind";break;default:throw new Error(`Unknown builtin method: ${t}`)}return e}}class Us{evaluateStatements(t,e,n,i){const s=new qs(n),r=js.createRoot();return e.length>0&&!e[0].isEquivalent(De("use strict").toStmt())&&(e=[De("use strict").toStmt(),...e]),s.visitAllStatements(e,r),s.createReturnStmt(r),this.evaluateCode(t,r,s.getArgs(),i)}evaluateCode(t,e,n,i){let s=`"use strict";${e.toSource()}\n//# sourceURL=${t}`;const r=[],a=[];for(const l in n)a.push(n[l]),r.push(l);if(i){const n=new Function(...r.concat("return null;")).toString(),i=n.slice(0,n.indexOf("return null;")).split("\n").length-1;s+=`\n${e.toSourceMapGenerator(t,i).toJsComment()}`}const o=new Function(...r.concat(s));return this.executeFunction(o,a)}executeFunction(t,e){return t(...e)}}class qs extends zs{constructor(t){super(),this.reflector=t,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(t){new ae(new Kt(this._evalExportedVars.map(t=>new Gt(t,_e(t),!1)))).visitStatement(this,t)}getArgs(){const t={};for(let e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t}visitExternalExpr(t,e){return this._emitReferenceToExternal(t,this.reflector.resolveExternalReference(t.value),e),null}visitWrappedNodeExpr(t,e){return this._emitReferenceToExternal(t,t.node,e),null}visitDeclareVarStmt(t,e){return t.hasModifier(Jt.Exported)&&this._evalExportedVars.push(t.name),super.visitDeclareVarStmt(t,e)}visitDeclareFunctionStmt(t,e){return t.hasModifier(Jt.Exported)&&this._evalExportedVars.push(t.name),super.visitDeclareFunctionStmt(t,e)}visitDeclareClassStmt(t,e){return t.hasModifier(Jt.Exported)&&this._evalExportedVars.push(t.name),super.visitDeclareClassStmt(t,e)}_emitReferenceToExternal(t,e,n){let i=this._evalArgValues.indexOf(e);if(-1===i){i=this._evalArgValues.length,this._evalArgValues.push(e);const t=yn({reference:e})||"val";this._evalArgNames.push(`jit_${t}_${i}`)}n.print(t,this._evalArgNames[i])}}function $s(t){return t>=9&&t<=32||160==t}function Ws(t){return 48<=t&&t<=57}function Ys(t){return t>=97&&t<=122||t>=65&&t<=90}function Gs(t){return 10===t||13===t}function Ks(t){return 48<=t&&t<=55}class Zs{constructor(t,e,n,i){this.file=t,this.offset=e,this.line=n,this.col=i}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){const e=this.file.content,n=e.length;let i=this.offset,s=this.line,r=this.col;for(;i>0&&t<0;){i--,t++;if(10==e.charCodeAt(i)){s--;const t=e.substr(0,i-1).lastIndexOf(String.fromCharCode(10));r=t>0?i-t:i}else r--}for(;i<n&&t>0;){const n=e.charCodeAt(i);i++,t--,10==n?(s++,r=0):r++}return new Zs(this.file,i,s,r)}getContext(t,e){const n=this.file.content;let i=this.offset;if(null!=i){i>n.length-1&&(i=n.length-1);let s=i,r=0,a=0;for(;r<t&&i>0&&(i--,r++,"\n"!=n[i]||++a!=e););for(r=0,a=0;r<t&&s<n.length-1&&(s++,r++,"\n"!=n[s]||++a!=e););return{before:n.substring(i,this.offset),after:n.substring(this.offset,s+1)}}return null}}class Xs{constructor(t,e){this.content=t,this.url=e}}class Qs{constructor(t,e,n=t,i=null){this.start=t,this.end=e,this.fullStart=n,this.details=i}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var Js,tr,er,nr;!function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"}(Js||(Js={}));class ir{constructor(t,e,n=Js.ERROR){this.span=t,this.msg=e,this.level=n}contextualMessage(){const t=this.span.start.getContext(100,3);return t?`${this.msg} ("${t.before}[${Js[this.level]} ->]${t.after}")`:this.msg}toString(){const t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}}class sr{constructor(t){this.context=t}resolveExternalReference(t){if("@angular/core"!==t.moduleName)throw new Error(`Cannot resolve external reference to ${t.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(t.name))throw new Error(`No value provided for @angular/core symbol '${t.name}'.`);return this.context[t.name]}parameters(t){throw new Error("Not implemented.")}annotations(t){throw new Error("Not implemented.")}shallowAnnotations(t){throw new Error("Not implemented.")}tryAnnotations(t){throw new Error("Not implemented.")}propMetadata(t){throw new Error("Not implemented.")}hasLifecycleHook(t,e){throw new Error("Not implemented.")}guards(t){throw new Error("Not implemented.")}componentModuleUrl(t,e){throw new Error("Not implemented.")}}function rr(t,e=!1){return Ee(Object.keys(t).map(n=>({key:n,quoted:e,value:t[n]})))}function ar(t){const{internalType:e,type:n,bootstrap:i,declarations:s,imports:r,exports:a,schemas:o,containsForwardDecls:l,emitInline:c,id:d}=t,p=[],u={type:e};if(i.length&&(u.bootstrap=lr(i,l)),c)s.length&&(u.declarations=lr(s,l)),r.length&&(u.imports=lr(r,l)),a.length&&(u.exports=lr(a,l));else{const e=function(t){const{adjacentType:e,declarations:n,imports:i,exports:s,containsForwardDecls:r}=t,a={};n.length&&(a.declarations=lr(n,r));i.length&&(a.imports=lr(i,r));s.length&&(a.exports=lr(s,r));if(0===Object.keys(a).length)return null;const o=function(t){const e=new Lt({name:"ngJitMode",moduleName:null}),n=new qt(ut.Identical,new yt(e),De("undefined")),i=new qt(ut.Or,n,e,void 0,void 0,!0);return new qt(ut.And,i,t)}(new kt(we(Vn.setNgModuleScope),[e,Bn(a)])),l=new zt([],[o.toStmt()]);return new kt(l,[]).toStmt()}(t);null!==e&&p.push(e)}o&&o.length&&(u.schemas=ke(o.map(t=>t.value))),d&&(u.id=d);return{expression:we(Vn.defineNgModule).callFn([Bn(u)]),type:new nt(we(Vn.NgModuleDefWithMeta,[new nt(n.type),or(s),or(r),or(a)])),additionalStatements:p}}function or(t){const e=t.map(t=>Se(t.type));return t.length>0?Ce(ke(e)):dt}function lr(t,e){const n=ke(t.map(t=>t.value));return e?Ie([],[new ae(n)]):n}function cr(t){const e=[];e.push({key:"name",value:De(t.pipeName),quoted:!1}),e.push({key:"type",value:t.type.value,quoted:!1}),e.push({key:"pure",value:De(t.pure),quoted:!1});return{expression:we(Vn.definePipe).callFn([Ee(e)]),type:new nt(we(Vn.PipeDefWithMeta,[Hn(t.type.type,t.typeArgumentCount),new nt(new It(t.pipeName))]))}}class dr{constructor(t,e,n,i){this.input=e,this.errLocation=n,this.ctxLocation=i,this.message=`Parser Error: ${t} ${n} [${e}] in ${i}`}}class pr{constructor(t,e){this.start=t,this.end=e}toAbsolute(t){return new Fr(t+this.start,t+this.end)}}class ur{constructor(t,e){this.span=t,this.sourceSpan=e}visit(t,e=null){return null}toString(){return"AST"}}class hr extends ur{constructor(t,e,n){super(t,e),this.nameSpan=n}}class mr extends ur{constructor(t,e,n,i,s){super(t,e),this.prefix=n,this.uninterpretedExpression=i,this.location=s}visit(t,e=null){return t.visitQuote(this,e)}toString(){return"Quote"}}class fr extends ur{visit(t,e=null){}}class gr extends ur{visit(t,e=null){return t.visitImplicitReceiver(this,e)}}class br extends gr{visit(t,e=null){var n;return null===(n=t.visitThisReceiver)||void 0===n?void 0:n.call(t,this,e)}}class vr extends ur{constructor(t,e,n){super(t,e),this.expressions=n}visit(t,e=null){return t.visitChain(this,e)}}class yr extends ur{constructor(t,e,n,i,s){super(t,e),this.condition=n,this.trueExp=i,this.falseExp=s}visit(t,e=null){return t.visitConditional(this,e)}}class _r extends hr{constructor(t,e,n,i,s){super(t,e,n),this.receiver=i,this.name=s}visit(t,e=null){return t.visitPropertyRead(this,e)}}class wr extends hr{constructor(t,e,n,i,s,r){super(t,e,n),this.receiver=i,this.name=s,this.value=r}visit(t,e=null){return t.visitPropertyWrite(this,e)}}class xr extends hr{constructor(t,e,n,i,s){super(t,e,n),this.receiver=i,this.name=s}visit(t,e=null){return t.visitSafePropertyRead(this,e)}}class Cr extends ur{constructor(t,e,n,i){super(t,e),this.obj=n,this.key=i}visit(t,e=null){return t.visitKeyedRead(this,e)}}class Sr extends ur{constructor(t,e,n,i,s){super(t,e),this.obj=n,this.key=i,this.value=s}visit(t,e=null){return t.visitKeyedWrite(this,e)}}class kr extends hr{constructor(t,e,n,i,s,r){super(t,e,r),this.exp=n,this.name=i,this.args=s}visit(t,e=null){return t.visitPipe(this,e)}}class Er extends ur{constructor(t,e,n){super(t,e),this.value=n}visit(t,e=null){return t.visitLiteralPrimitive(this,e)}}class Ir extends ur{constructor(t,e,n){super(t,e),this.expressions=n}visit(t,e=null){return t.visitLiteralArray(this,e)}}class Ar extends ur{constructor(t,e,n,i){super(t,e),this.keys=n,this.values=i}visit(t,e=null){return t.visitLiteralMap(this,e)}}class Dr extends ur{constructor(t,e,n,i){super(t,e),this.strings=n,this.expressions=i}visit(t,e=null){return t.visitInterpolation(this,e)}}class Tr extends ur{constructor(t,e,n,i,s){super(t,e),this.operation=n,this.left=i,this.right=s}visit(t,e=null){return t.visitBinary(this,e)}}class Or extends Tr{constructor(t,e,n,i,s,r,a){super(t,e,s,r,a),this.operator=n,this.expr=i}static createMinus(t,e,n){return new Or(t,e,"-",n,"-",new Er(t,e,0),n)}static createPlus(t,e,n){return new Or(t,e,"+",n,"-",n,new Er(t,e,0))}visit(t,e=null){return void 0!==t.visitUnary?t.visitUnary(this,e):t.visitBinary(this,e)}}class Pr extends ur{constructor(t,e,n){super(t,e),this.expression=n}visit(t,e=null){return t.visitPrefixNot(this,e)}}class Nr extends ur{constructor(t,e,n){super(t,e),this.expression=n}visit(t,e=null){return t.visitNonNullAssert(this,e)}}class Mr extends hr{constructor(t,e,n,i,s,r){super(t,e,n),this.receiver=i,this.name=s,this.args=r}visit(t,e=null){return t.visitMethodCall(this,e)}}class Rr extends hr{constructor(t,e,n,i,s,r){super(t,e,n),this.receiver=i,this.name=s,this.args=r}visit(t,e=null){return t.visitSafeMethodCall(this,e)}}class Lr extends ur{constructor(t,e,n,i){super(t,e),this.target=n,this.args=i}visit(t,e=null){return t.visitFunctionCall(this,e)}}class Fr{constructor(t,e){this.start=t,this.end=e}}class jr extends ur{constructor(t,e,n,i,s){super(new pr(0,null===e?0:e.length),new Fr(i,null===e?i:i+e.length)),this.ast=t,this.source=e,this.location=n,this.errors=s}visit(t,e=null){return t.visitASTWithSource?t.visitASTWithSource(this,e):this.ast.visit(t,e)}toString(){return`${this.source} in ${this.location}`}}class Vr{constructor(t,e,n){this.sourceSpan=t,this.key=e,this.value=n}}class Br{constructor(t,e,n){this.sourceSpan=t,this.key=e,this.value=n}}class Hr{visit(t,e){t.visit(this,e)}visitUnary(t,e){this.visit(t.expr,e)}visitBinary(t,e){this.visit(t.left,e),this.visit(t.right,e)}visitChain(t,e){this.visitAll(t.expressions,e)}visitConditional(t,e){this.visit(t.condition,e),this.visit(t.trueExp,e),this.visit(t.falseExp,e)}visitPipe(t,e){this.visit(t.exp,e),this.visitAll(t.args,e)}visitFunctionCall(t,e){t.target&&this.visit(t.target,e),this.visitAll(t.args,e)}visitImplicitReceiver(t,e){}visitThisReceiver(t,e){}visitInterpolation(t,e){this.visitAll(t.expressions,e)}visitKeyedRead(t,e){this.visit(t.obj,e),this.visit(t.key,e)}visitKeyedWrite(t,e){this.visit(t.obj,e),this.visit(t.key,e),this.visit(t.value,e)}visitLiteralArray(t,e){this.visitAll(t.expressions,e)}visitLiteralMap(t,e){this.visitAll(t.values,e)}visitLiteralPrimitive(t,e){}visitMethodCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitPrefixNot(t,e){this.visit(t.expression,e)}visitNonNullAssert(t,e){this.visit(t.expression,e)}visitPropertyRead(t,e){this.visit(t.receiver,e)}visitPropertyWrite(t,e){this.visit(t.receiver,e),this.visit(t.value,e)}visitSafePropertyRead(t,e){this.visit(t.receiver,e)}visitSafeMethodCall(t,e){this.visit(t.receiver,e),this.visitAll(t.args,e)}visitQuote(t,e){}visitAll(t,e){for(const n of t)this.visit(n,e)}}class zr{constructor(t,e,n,i,s,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=i,this.keySpan=s,this.valueSpan=r,this.isLiteral=this.type===tr.LITERAL_ATTR,this.isAnimation=this.type===tr.ANIMATION}}!function(t){t[t.DEFAULT=0]="DEFAULT",t[t.LITERAL_ATTR=1]="LITERAL_ATTR",t[t.ANIMATION=2]="ANIMATION"}(tr||(tr={}));class Ur{constructor(t,e,n,i,s,r){this.name=t,this.targetOrPhase=e,this.type=n,this.handler=i,this.sourceSpan=s,this.handlerSpan=r}}class qr{constructor(t,e,n,i,s){this.name=t,this.value=e,this.sourceSpan=n,this.keySpan=i,this.valueSpan=s}}class $r{constructor(t,e,n,i,s,r,a,o){this.name=t,this.type=e,this.securityContext=n,this.value=i,this.unit=s,this.sourceSpan=r,this.keySpan=a,this.valueSpan=o}}class Wr{}Wr.event=_e("$event");class Yr{constructor(t,e){this.stmts=t,this.allowDefault=e,this.render3Stmts=t.map(t=>{if(t instanceof ie&&t.name==e.name&&t.value instanceof qt){const e=t.value.lhs;return new ae(e.value)}return t})}}function Gr(t,e,n,i,s,r,a,o){t||(t=new aa(o));const l=Kr({createLiteralArrayConverter:t=>t=>ke(t),createLiteralMapConverter:t=>e=>Ee(t.map((t,n)=>({key:t.key,value:e[n],quoted:t.quoted}))),createPipeConverter:t=>{throw new Error(`Illegal State: Actions are not allowed to contain pipes. Pipe: ${t}`)}},n),c=new sa(t,e,i,s,r,a),d=[];ra(l.visit(c,nr.Statement),d),function(t,e,n){for(let i=t-1;i>=0;i--)n.unshift(ta(e,i))}(c.temporaryCount,i,d),c.usesImplicitReceiver&&t.notifyImplicitReceiverUse();const p=d.length-1;let u=null;if(p>=0){const t=function(t){if(t instanceof re)return t.expr;if(t instanceof ae)return t.value;return null}(d[p]);t&&(u=function(t){return _e(`pd_${t}`)}(i),d[p]=u.set(t.cast(rt).notIdentical(De(!1))).toDeclStmt(null,[Jt.Final]))}return new Yr(d,u)}function Kr(t,e){return function(t,e){const n=new ia(t);return e.visit(n)}(t,e)}class Zr{constructor(t,e){this.stmts=t,this.currValExpr=e}}function Xr(t,e,n,i,s,r){t||(t=new aa);const a=new sa(t,e,i,r),o=n.visit(a,nr.Expression),l=Qr(a,i);if(a.usesImplicitReceiver&&t.notifyImplicitReceiverUse(),0===a.temporaryCount&&s==er.TrySimple)return new Zr([],o);if(s===er.Expression)return new Zr(l,o);const c=function(t){return _e(`currVal_${t}`)}(i);return l.push(c.set(o).toDeclStmt(rt,[Jt.Final])),new Zr(l,c)}function Qr(t,e){const n=[];for(let i=0;i<t.temporaryCount;i++)n.push(ta(e,i));return n}function Jr(t,e){return`tmp_${t}_${e}`}function ta(t,e){return new ie(Jr(t,e),Xt)}function ea(t,e){if(t!==nr.Expression)throw new Error(`Expected an expression, but saw ${e}`)}function na(t,e){return t===nr.Statement?e.toStmt():e}!function(t){t[t.General=0]="General",t[t.TrySimple=1]="TrySimple",t[t.Expression=2]="Expression"}(er||(er={})),function(t){t[t.Statement=0]="Statement",t[t.Expression=1]="Expression"}(nr||(nr={}));class ia extends class{visitImplicitReceiver(t,e){return t}visitThisReceiver(t,e){return t}visitInterpolation(t,e){return new Dr(t.span,t.sourceSpan,t.strings,this.visitAll(t.expressions))}visitLiteralPrimitive(t,e){return new Er(t.span,t.sourceSpan,t.value)}visitPropertyRead(t,e){return new _r(t.span,t.sourceSpan,t.nameSpan,t.receiver.visit(this),t.name)}visitPropertyWrite(t,e){return new wr(t.span,t.sourceSpan,t.nameSpan,t.receiver.visit(this),t.name,t.value.visit(this))}visitSafePropertyRead(t,e){return new xr(t.span,t.sourceSpan,t.nameSpan,t.receiver.visit(this),t.name)}visitMethodCall(t,e){return new Mr(t.span,t.sourceSpan,t.nameSpan,t.receiver.visit(this),t.name,this.visitAll(t.args))}visitSafeMethodCall(t,e){return new Rr(t.span,t.sourceSpan,t.nameSpan,t.receiver.visit(this),t.name,this.visitAll(t.args))}visitFunctionCall(t,e){return new Lr(t.span,t.sourceSpan,t.target.visit(this),this.visitAll(t.args))}visitLiteralArray(t,e){return new Ir(t.span,t.sourceSpan,this.visitAll(t.expressions))}visitLiteralMap(t,e){return new Ar(t.span,t.sourceSpan,t.keys,this.visitAll(t.values))}visitUnary(t,e){switch(t.operator){case"+":return Or.createPlus(t.span,t.sourceSpan,t.expr.visit(this));case"-":return Or.createMinus(t.span,t.sourceSpan,t.expr.visit(this));default:throw new Error(`Unknown unary operator ${t.operator}`)}}visitBinary(t,e){return new Tr(t.span,t.sourceSpan,t.operation,t.left.visit(this),t.right.visit(this))}visitPrefixNot(t,e){return new Pr(t.span,t.sourceSpan,t.expression.visit(this))}visitNonNullAssert(t,e){return new Nr(t.span,t.sourceSpan,t.expression.visit(this))}visitConditional(t,e){return new yr(t.span,t.sourceSpan,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))}visitPipe(t,e){return new kr(t.span,t.sourceSpan,t.exp.visit(this),t.name,this.visitAll(t.args),t.nameSpan)}visitKeyedRead(t,e){return new Cr(t.span,t.sourceSpan,t.obj.visit(this),t.key.visit(this))}visitKeyedWrite(t,e){return new Sr(t.span,t.sourceSpan,t.obj.visit(this),t.key.visit(this),t.value.visit(this))}visitAll(t){const e=[];for(let n=0;n<t.length;++n)e[n]=t[n].visit(this);return e}visitChain(t,e){return new vr(t.span,t.sourceSpan,this.visitAll(t.expressions))}visitQuote(t,e){return new mr(t.span,t.sourceSpan,t.prefix,t.uninterpretedExpression,t.location)}}{constructor(t){super(),this._converterFactory=t}visitPipe(t,e){const n=[t.exp,...t.args].map(t=>t.visit(this,e));return new oa(t.span,t.sourceSpan,n,this._converterFactory.createPipeConverter(t.name,n.length))}visitLiteralArray(t,e){const n=t.expressions.map(t=>t.visit(this,e));return new oa(t.span,t.sourceSpan,n,this._converterFactory.createLiteralArrayConverter(t.expressions.length))}visitLiteralMap(t,e){const n=t.values.map(t=>t.visit(this,e));return new oa(t.span,t.sourceSpan,n,this._converterFactory.createLiteralMapConverter(t.keys))}}class sa{constructor(t,e,n,i,s,r){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this.interpolationFunction=i,this.baseSourceSpan=s,this.implicitReceiverAccesses=r,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}visitUnary(t,e){let n;switch(t.operator){case"+":n=pt.Plus;break;case"-":n=pt.Minus;break;default:throw new Error(`Unsupported operator ${t.operator}`)}return na(e,new Ut(n,this._visit(t.expr,nr.Expression),void 0,this.convertSourceSpan(t.span)))}visitBinary(t,e){let n;switch(t.operation){case"+":n=ut.Plus;break;case"-":n=ut.Minus;break;case"*":n=ut.Multiply;break;case"/":n=ut.Divide;break;case"%":n=ut.Modulo;break;case"&&":n=ut.And;break;case"||":n=ut.Or;break;case"==":n=ut.Equals;break;case"!=":n=ut.NotEquals;break;case"===":n=ut.Identical;break;case"!==":n=ut.NotIdentical;break;case"<":n=ut.Lower;break;case">":n=ut.Bigger;break;case"<=":n=ut.LowerEquals;break;case">=":n=ut.BiggerEquals;break;default:throw new Error(`Unsupported operation ${t.operation}`)}return na(e,new qt(n,this._visit(t.left,nr.Expression),this._visit(t.right,nr.Expression),void 0,this.convertSourceSpan(t.span)))}visitChain(t,e){return function(t,e){if(t!==nr.Statement)throw new Error(`Expected a statement, but saw ${e}`)}(e,t),this.visitAll(t.expressions,e)}visitConditional(t,e){return na(e,this._visit(t.condition,nr.Expression).conditional(this._visit(t.trueExp,nr.Expression),this._visit(t.falseExp,nr.Expression),this.convertSourceSpan(t.span)))}visitPipe(t,e){throw new Error(`Illegal state: Pipes should have been converted into functions. Pipe: ${t.name}`)}visitFunctionCall(t,e){const n=this.visitAll(t.args,nr.Expression);let i;return i=t instanceof oa?t.converter(n):this._visit(t.target,nr.Expression).callFn(n,this.convertSourceSpan(t.span)),na(e,i)}visitImplicitReceiver(t,e){return ea(e,t),this.usesImplicitReceiver=!0,this._implicitReceiver}visitThisReceiver(t,e){return this.visitImplicitReceiver(t,e)}visitInterpolation(t,e){ea(e,t);const n=[De(t.expressions.length)];for(let i=0;i<t.strings.length-1;i++)n.push(De(t.strings[i])),n.push(this._visit(t.expressions[i],nr.Expression));return n.push(De(t.strings[t.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):t.expressions.length<=9?we(pn.inlineInterpolate).callFn(n):we(pn.interpolate).callFn([n[0],ke(n.slice(1),void 0,this.convertSourceSpan(t.span))])}visitKeyedRead(t,e){const n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):na(e,this._visit(t.obj,nr.Expression).key(this._visit(t.key,nr.Expression)))}visitKeyedWrite(t,e){const n=this._visit(t.obj,nr.Expression),i=this._visit(t.key,nr.Expression),s=this._visit(t.value,nr.Expression);return na(e,n.key(i).set(s))}visitLiteralArray(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")}visitLiteralMap(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")}visitLiteralPrimitive(t,e){const n=null===t.value||void 0===t.value||!0===t.value||!0===t.value?at:void 0;return na(e,De(t.value,n,this.convertSourceSpan(t.span)))}_getLocal(t,e){var n;return(null===(n=this._localResolver.globals)||void 0===n?void 0:n.has(t))&&e instanceof br?null:this._localResolver.getLocal(t)}visitMethodCall(t,e){if(t.receiver instanceof gr&&!(t.receiver instanceof br)&&"$any"===t.name){const e=this.visitAll(t.args,nr.Expression);if(1!=e.length)throw new Error(`Invalid call to $any, expected 1 argument but received ${e.length||"none"}`);return e[0].cast(rt,this.convertSourceSpan(t.span))}const n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);{const n=this.visitAll(t.args,nr.Expression),i=this.usesImplicitReceiver;let s=null;const r=this._visit(t.receiver,nr.Expression);if(r===this._implicitReceiver){const e=this._getLocal(t.name,t.receiver);e&&(this.usesImplicitReceiver=i,s=e.callFn(n),this.addImplicitReceiverAccess(t.name))}return null==s&&(s=r.callMethod(t.name,n,this.convertSourceSpan(t.span))),na(e,s)}}visitPrefixNot(t,e){return na(e,(n=this._visit(t.expression,nr.Expression),new jt(n,i)));var n,i}visitNonNullAssert(t,e){return na(e,(n=this._visit(t.expression,nr.Expression),new Vt(n,i)));var n,i}visitPropertyRead(t,e){const n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);{let n=null;const i=this.usesImplicitReceiver,s=this._visit(t.receiver,nr.Expression);return s===this._implicitReceiver&&(n=this._getLocal(t.name,t.receiver),n&&(this.usesImplicitReceiver=i,this.addImplicitReceiverAccess(t.name))),null==n&&(n=s.prop(t.name)),na(e,n)}}visitPropertyWrite(t,e){const n=this._visit(t.receiver,nr.Expression),i=this.usesImplicitReceiver;let s=null;if(n===this._implicitReceiver){const e=this._getLocal(t.name,t.receiver);if(e){if(!(e instanceof $t)){const e=t.name,n=t.value instanceof _r?t.value.name:void 0;throw new Error(`Cannot assign value "${n}" to template variable "${e}". Template variables are read-only.`)}s=e,this.usesImplicitReceiver=i,this.addImplicitReceiverAccess(t.name)}}return null===s&&(s=n.prop(t.name)),na(e,s.set(this._visit(t.value,nr.Expression)))}visitSafePropertyRead(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)}visitSafeMethodCall(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)}visitAll(t,e){return t.map(t=>this._visit(t,e))}visitQuote(t,e){throw new Error(`Quotes are not supported for evaluation!\n        Statement: ${t.uninterpretedExpression} located at ${t.location}`)}_visit(t,e){const n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)}convertSafeAccess(t,e,n){let i,s=this._visit(e.receiver,nr.Expression);this.needsTemporary(e.receiver)&&(i=this.allocateTemporary(),s=i.set(s),this._resultMap.set(e.receiver,i));const r=s.isBlank();e instanceof Rr?this._nodeMap.set(e,new Mr(e.span,e.sourceSpan,e.nameSpan,e.receiver,e.name,e.args)):this._nodeMap.set(e,new _r(e.span,e.sourceSpan,e.nameSpan,e.receiver,e.name));const a=this._visit(t,nr.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),na(n,r.conditional(De(null),a))}leftMostSafeNode(t){const e=(t,e)=>(this._nodeMap.get(e)||e).visit(t);return t.visit({visitUnary:t=>null,visitBinary:t=>null,visitChain:t=>null,visitConditional:t=>null,visitFunctionCall:t=>null,visitImplicitReceiver:t=>null,visitThisReceiver:t=>null,visitInterpolation:t=>null,visitKeyedRead(t){return e(this,t.obj)},visitKeyedWrite:t=>null,visitLiteralArray:t=>null,visitLiteralMap:t=>null,visitLiteralPrimitive:t=>null,visitMethodCall(t){return e(this,t.receiver)},visitPipe:t=>null,visitPrefixNot:t=>null,visitNonNullAssert:t=>null,visitPropertyRead(t){return e(this,t.receiver)},visitPropertyWrite:t=>null,visitQuote:t=>null,visitSafeMethodCall(t){return e(this,t.receiver)||t},visitSafePropertyRead(t){return e(this,t.receiver)||t}})}needsTemporary(t){const e=(t,e)=>e&&(this._nodeMap.get(e)||e).visit(t);return t.visit({visitUnary(t){return e(this,t.expr)},visitBinary(t){return e(this,t.left)||e(this,t.right)},visitChain:t=>!1,visitConditional(t){return e(this,t.condition)||e(this,t.trueExp)||e(this,t.falseExp)},visitFunctionCall:t=>!0,visitImplicitReceiver:t=>!1,visitThisReceiver:t=>!1,visitInterpolation(t){return((t,n)=>n.some(n=>e(t,n)))(this,t.expressions)},visitKeyedRead:t=>!1,visitKeyedWrite:t=>!1,visitLiteralArray:t=>!0,visitLiteralMap:t=>!0,visitLiteralPrimitive:t=>!1,visitMethodCall:t=>!0,visitPipe:t=>!0,visitPrefixNot(t){return e(this,t.expression)},visitNonNullAssert(t){return e(this,t.expression)},visitPropertyRead:t=>!1,visitPropertyWrite:t=>!1,visitQuote:t=>!1,visitSafeMethodCall:t=>!0,visitSafePropertyRead:t=>!1})}allocateTemporary(){const t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new vt(Jr(this.bindingId,t))}releaseTemporary(t){if(this._currentTemporary--,t.name!=Jr(this.bindingId,this._currentTemporary))throw new Error(`Temporary ${t.name} released out of order`)}convertSourceSpan(t){if(this.baseSourceSpan){const e=this.baseSourceSpan.start.moveBy(t.start),n=this.baseSourceSpan.start.moveBy(t.end),i=this.baseSourceSpan.fullStart.moveBy(t.start);return new Qs(e,n,i)}return null}addImplicitReceiverAccess(t){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(t)}}function ra(t,e){Array.isArray(t)?t.forEach(t=>ra(t,e)):e.push(t)}class aa{constructor(t){this.globals=t}notifyImplicitReceiverUse(){}getLocal(t){return t===Wr.event.name?Wr.event:null}}class oa extends Lr{constructor(t,e,n,i){super(t,e,null,n),this.args=n,this.converter=i}}class la{constructor(){this.strictStyling=!0}shimCssText(t,e,n=""){const i=t.match(Ia)||[];t=function(t){return t.replace(Ea,"")}(t),t=this._insertDirectives(t);return[this._scopeCssText(t,e,n),...i].join("\n")}_insertDirectives(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)}_insertPolyfillDirectivesInCssText(t){return t.replace(da,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(t){return t.replace(pa,(...t)=>{const e=t[0].replace(t[1],"").replace(t[2],"");return t[4]+e})}_scopeCssText(t,e,n){const i=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),(t=t+"\n"+i).trim()}_extractUnscopedRulesFromCssText(t){let e,n="";for(ua.lastIndex=0;null!==(e=ua.exec(t));){n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n"}return n}_convertColonHost(t){return this._convertColonRule(t,ga,this._colonHostPartReplacer)}_convertColonHostContext(t){return this._convertColonRule(t,ba,this._colonHostContextPartReplacer)}_convertColonRule(t,e,n){return t.replace(e,function(...t){if(t[2]){const e=t[2].split(","),i=[];for(let s=0;s<e.length;s++){const r=e[s].trim();if(!r)break;i.push(n(va,r,t[3]))}return i.join(",")}return va+t[3]})}_colonHostContextPartReplacer(t,e,n){return e.indexOf(ha)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n}_colonHostPartReplacer(t,e,n){return t+e.replace(ha,"")+n}_convertShadowDOMSelectors(t){return _a.reduce((t,e)=>t.replace(e," "),t)}_scopeSelectors(t,e,n){return function(t,e){const n=Ma(t,Oa,"%QUOTED%"),i=Ma(n.escapedString,Ta,"%BLOCK%");let s=0,r=0;return i.escapedString.replace(Aa,(...t)=>{const n=t[2];let r="",a=t[4],o="";a&&a.startsWith("{%BLOCK%")&&(r=i.blocks[s++],a=a.substring("%BLOCK%".length+1),o="{");const l=e(new Pa(n,r));return`${t[1]}${l.selector}${t[3]}${o}${l.content}${a}`}).replace(Da,()=>n.blocks[r++])}(t,t=>{let i=t.selector,s=t.content;return"@"!=t.selector[0]?i=this._scopeSelector(t.selector,e,n,this.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(s=this._scopeSelectors(t.content,e,n)),new Pa(i,s)})}_scopeSelector(t,e,n,i){return t.split(",").map(t=>t.trim().split(wa)).map(t=>{const[s,...r]=t;return[(t=>this._selectorNeedsScoping(t,e)?i?this._applyStrictSelectorScope(t,e,n):this._applySelectorScope(t,e,n):t)(s),...r].join(" ")}).join(", ")}_selectorNeedsScoping(t,e){return!this._makeScopeMatcher(e).test(t)}_makeScopeMatcher(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+xa,"m")}_applySelectorScope(t,e,n){return this._applySimpleSelectorScope(t,e,n)}_applySimpleSelectorScope(t,e,n){if(Ca.lastIndex=0,Ca.test(t)){const i=this.strictStyling?`[${n}]`:e;return t.replace(ya,(t,e)=>e.replace(/([^:]*)(:*)(.*)/,(t,e,n,s)=>e+i+n+s)).replace(Ca,i+" ")}return e+" "+t}_applyStrictSelectorScope(t,e,n){const i="["+(e=e.replace(/\[is=([^\]]*)\]/g,(t,...e)=>e[0]))+"]",s=t=>{let s=t.trim();if(!s)return"";if(t.indexOf(va)>-1)s=this._applySimpleSelectorScope(t,e,n);else{const e=t.replace(Ca,"");if(e.length>0){const t=e.match(/([^:]*)(:*)(.*)/);t&&(s=t[1]+i+t[2]+t[3])}}return s},r=new ca(t);let a,o="",l=0;const c=/( |>|\+|~(?!=))\s*/g;let d=!((t=r.content()).indexOf(va)>-1);for(;null!==(a=c.exec(t));){const e=a[1],n=t.slice(l,a.index).trim();d=d||n.indexOf(va)>-1;o+=`${d?s(n):n} ${e} `,l=c.lastIndex}const p=t.substring(l);return d=d||p.indexOf(va)>-1,o+=d?s(p):p,r.restore(o)}_insertPolyfillHostInCssText(t){return t.replace(ka,ma).replace(Sa,ha)}}class ca{constructor(t){this.placeholders=[],this.index=0,t=this._escapeRegexMatches(t,/(\[[^\]]*\])/g),t=this._escapeRegexMatches(t,/(\\.)/g),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(t,e,n)=>{const i=`__ph-${this.index}__`;return this.placeholders.push(n),this.index++,e+i})}restore(t){return t.replace(/__ph-(\d+)__/g,(t,e)=>this.placeholders[+e])}content(){return this._content}_escapeRegexMatches(t,e){return t.replace(e,(t,e)=>{const n=`__ph-${this.index}__`;return this.placeholders.push(e),this.index++,n})}}const da=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,pa=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,ua=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,ha="-shadowcsshost",ma="-shadowcsscontext",fa=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",ga=new RegExp("("+ha+fa,"gim"),ba=new RegExp("("+ma+fa,"gim"),va=ha+"-no-combinator",ya=/-shadowcsshost-no-combinator([^\s]*)/,_a=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],wa=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,xa="([>\\s~+[.,{:][\\s\\S]*)?$",Ca=/-shadowcsshost/gim,Sa=/:host/gim,ka=/:host-context/gim,Ea=/\/\*\s*[\s\S]*?\*\//g;const Ia=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;const Aa=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Da=/%QUOTED%/g,Ta=new Map([["{","}"]]),Oa=new Map([['"','"'],["'","'"]]);class Pa{constructor(t,e){this.selector=t,this.content=e}}class Na{constructor(t,e){this.escapedString=t,this.blocks=e}}function Ma(t,e,n){const i=[],s=[];let r,a,o=0,l=0,c=-1;for(let d=0;d<t.length;d++){const p=t[d];"\\"===p?d++:p===a?(o--,0===o&&(s.push(t.substring(c,d)),i.push(n),l=d,c=-1,r=a=void 0)):p===r?o++:0===o&&e.has(p)&&(r=p,a=e.get(p),o=1,c=d+1,i.push(t.substring(l,c)))}return-1!==c?(s.push(t.substring(c)),i.push(n)):i.push(t.substring(l)),new Na(i.join(""),s)}class Ra{constructor(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}}class La{constructor(t,e,n,i,s){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=i,this.meta=s}}class Fa{constructor(t){this._urlResolver=t,this._shadowCss=new la}compileComponent(t,e){const n=e.template;return this._compileStyles(t,e,new In({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:_n(e.type)}),this.needsStyleShim(e),!0)}compileStyles(t,e,n,i=this.needsStyleShim(e)){return this._compileStyles(t,e,n,i,!1)}needsStyleShim(t){return t.template.encapsulation===D.Emulated}_compileStyles(t,e,n,i,s){const r=n.styles.map(t=>De(this._shimIfNeeded(t,i))),a=[];n.styleUrls.forEach(e=>{const n=r.length;r.push(null),a.push(new Ra(ja(null),e,e=>r[n]=t.importExpr(e)))});const o=ja(s?e:null),l=_e(o).set(ke(r,new it(rt,[Q.Const]))).toDeclStmt(null,s?[Jt.Final]:[Jt.Final,Jt.Exported]);return t.statements.push(l),new La(t,o,a,i,n)}_shimIfNeeded(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t}}function ja(t){let e="styles";return t&&(e+=`_${yn(t.type)}`),e}class Va{constructor(t,e){this.sourceSpan=t,this.i18n=e}}class Ba extends Va{constructor(t,e,n){super(e,n),this.value=t}visit(t,e){return t.visitText(this,e)}}class Ha extends Va{constructor(t,e,n,i,s,r){super(i,r),this.switchValue=t,this.type=e,this.cases=n,this.switchValueSourceSpan=s}visit(t,e){return t.visitExpansion(this,e)}}class za{constructor(t,e,n,i,s){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=i,this.expSourceSpan=s}visit(t,e){return t.visitExpansionCase(this,e)}}class Ua extends Va{constructor(t,e,n,i,s){super(n,s),this.name=t,this.value=e,this.valueSpan=i}visit(t,e){return t.visitAttribute(this,e)}}class qa extends Va{constructor(t,e,n,i,s,r=null,a){super(i,a),this.name=t,this.attrs=e,this.children=n,this.startSourceSpan=s,this.endSourceSpan=r}visit(t,e){return t.visitElement(this,e)}}class $a{constructor(t,e){this.value=t,this.sourceSpan=e}visit(t,e){return t.visitComment(this,e)}}function Wa(t,e,n=null){const i=[],s=t.visit?e=>t.visit(e,n)||e.visit(t,n):e=>e.visit(t,n);return e.forEach(t=>{const e=s(t);e&&i.push(e)}),i}var Ya;!function(t){t[t.TAG_OPEN_START=0]="TAG_OPEN_START",t[t.TAG_OPEN_END=1]="TAG_OPEN_END",t[t.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",t[t.TAG_CLOSE=3]="TAG_CLOSE",t[t.INCOMPLETE_TAG_OPEN=4]="INCOMPLETE_TAG_OPEN",t[t.TEXT=5]="TEXT",t[t.ESCAPABLE_RAW_TEXT=6]="ESCAPABLE_RAW_TEXT",t[t.RAW_TEXT=7]="RAW_TEXT",t[t.COMMENT_START=8]="COMMENT_START",t[t.COMMENT_END=9]="COMMENT_END",t[t.CDATA_START=10]="CDATA_START",t[t.CDATA_END=11]="CDATA_END",t[t.ATTR_NAME=12]="ATTR_NAME",t[t.ATTR_QUOTE=13]="ATTR_QUOTE",t[t.ATTR_VALUE=14]="ATTR_VALUE",t[t.DOC_TYPE=15]="DOC_TYPE",t[t.EXPANSION_FORM_START=16]="EXPANSION_FORM_START",t[t.EXPANSION_CASE_VALUE=17]="EXPANSION_CASE_VALUE",t[t.EXPANSION_CASE_EXP_START=18]="EXPANSION_CASE_EXP_START",t[t.EXPANSION_CASE_EXP_END=19]="EXPANSION_CASE_EXP_END",t[t.EXPANSION_FORM_END=20]="EXPANSION_FORM_END",t[t.EOF=21]="EOF"}(Ya||(Ya={}));class Ga{constructor(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}}class Ka extends ir{constructor(t,e,n){super(n,t),this.tokenType=e}}class Za{constructor(t,e,n){this.tokens=t,this.errors=e,this.nonNormalizedIcuExpressions=n}}function Xa(t,e,n,i={}){const s=new io(new Xs(t,e),n,i);return s.tokenize(),new Za(function(t){const e=[];let n;for(let i=0;i<t.length;i++){const s=t[i];n&&n.type==Ya.TEXT&&s.type==Ya.TEXT?(n.parts[0]+=s.parts[0],n.sourceSpan.end=s.sourceSpan.end):(n=s,e.push(n))}return e}(s.tokens),s.errors,s.nonNormalizedIcuExpressions)}const Qa=/\r\n?/g;function Ja(t){return`Unexpected character "${0===t?"EOF":String.fromCharCode(t)}"`}function to(t){return`Unknown entity "${t}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}var eo;!function(t){t.HEX="hexadecimal",t.DEC="decimal"}(eo||(eo={}));class no{constructor(t){this.error=t}}class io{constructor(t,e,n){this._getTagDefinition=e,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Ds,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(t=>t.codePointAt(0)||0);const i=n.range||{endPos:t.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new po(t,i):new co(t,i),this._preserveLineEndings=n.preserveLineEndings||!1,this._escapedString=n.escapedString||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1;try{this._cursor.init()}catch(TH){this.handleError(TH)}}_processCarriageReturns(t){return this._preserveLineEndings?t:t.replace(Qa,"\n")}tokenize(){for(;0!==this._cursor.peek();){const t=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(45)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(47)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(TH){this.handleError(TH)}}this._beginToken(Ya.EOF),this._endToken([])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(125!==this._cursor.peek()&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(t,e=this._cursor.clone()){this._currentTokenStart=e,this._currentTokenType=t}_endToken(t,e){if(null===this._currentTokenStart)throw new Ka("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(e));if(null===this._currentTokenType)throw new Ka("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));const n=new Ga(this._currentTokenType,t,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');const n=new Ka(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new no(n)}handleError(t){if(t instanceof uo&&(t=this._createError(t.msg,this._cursor.getSpan(t.cursor))),!(t instanceof no))throw t;this.errors.push(t.error)}_attemptCharCode(t){return this._cursor.peek()===t&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(t){return e=this._cursor.peek(),n=t,lo(e)==lo(n)&&(this._cursor.advance(),!0);var e,n}_requireCharCode(t){const e=this._cursor.clone();if(!this._attemptCharCode(t))throw this._createError(Ja(this._cursor.peek()),this._cursor.getSpan(e))}_attemptStr(t){const e=t.length;if(this._cursor.charsLeft()<e)return!1;const n=this._cursor.clone();for(let i=0;i<e;i++)if(!this._attemptCharCode(t.charCodeAt(i)))return this._cursor=n,!1;return!0}_attemptStrCaseInsensitive(t){for(let e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0}_requireStr(t){const e=this._cursor.clone();if(!this._attemptStr(t))throw this._createError(Ja(this._cursor.peek()),this._cursor.getSpan(e))}_attemptCharCodeUntilFn(t){for(;!t(this._cursor.peek());)this._cursor.advance()}_requireCharCodeUntilFn(t,e){const n=this._cursor.clone();if(this._attemptCharCodeUntilFn(t),this._cursor.diff(n)<e)throw this._createError(Ja(this._cursor.peek()),this._cursor.getSpan(n))}_attemptUntilChar(t){for(;this._cursor.peek()!==t;)this._cursor.advance()}_readChar(t){if(t&&38===this._cursor.peek())return this._decodeEntity();{const t=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),t}}_decodeEntity(){const t=this._cursor.clone();if(this._cursor.advance(),!this._attemptCharCode(35)){const e=this._cursor.clone();if(this._attemptCharCodeUntilFn(oo),59!=this._cursor.peek())return this._cursor=e,"&";const n=this._cursor.getChars(e);this._cursor.advance();const i=p[n];if(!i)throw this._createError(to(n),this._cursor.getSpan(t));return i}{const i=this._attemptCharCode(120)||this._attemptCharCode(88),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(ao),59!=this._cursor.peek()){this._cursor.advance();const n=i?eo.HEX:eo.DEC;throw this._createError((e=n,`Unable to parse entity "${this._cursor.getChars(t)}" - ${e} character reference entities must end with ";"`),this._cursor.getSpan())}const r=this._cursor.getChars(s);this._cursor.advance();try{const t=parseInt(r,i?16:10);return String.fromCharCode(t)}catch(n){throw this._createError(to(this._cursor.getChars(t)),this._cursor.getSpan())}}var e}_consumeRawText(t,e){this._beginToken(t?Ya.ESCAPABLE_RAW_TEXT:Ya.RAW_TEXT);const n=[];for(;;){const i=this._cursor.clone(),s=e();if(this._cursor=i,s)break;n.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(n.join(""))])}_consumeComment(t){this._beginToken(Ya.COMMENT_START,t),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("--\x3e")),this._beginToken(Ya.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])}_consumeCdata(t){this._beginToken(Ya.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(Ya.CDATA_END),this._requireStr("]]>"),this._endToken([])}_consumeDocType(t){this._beginToken(Ya.DOC_TYPE,t);const e=this._cursor.clone();this._attemptUntilChar(62);const n=this._cursor.getChars(e);this._cursor.advance(),this._endToken([n])}_consumePrefixAndName(){const t=this._cursor.clone();let e="";for(;58!==this._cursor.peek()&&!(((n=this._cursor.peek())<97||122<n)&&(n<65||90<n)&&(n<48||n>57));)this._cursor.advance();var n;let i;58===this._cursor.peek()?(e=this._cursor.getChars(t),this._cursor.advance(),i=this._cursor.clone()):i=t,this._requireCharCodeUntilFn(ro,""===e?0:1);return[e,this._cursor.getChars(i)]}_consumeTagOpen(t){let e,n,s;try{if(!Ys(this._cursor.peek()))throw this._createError(Ja(this._cursor.peek()),this._cursor.getSpan(t));for(s=this._consumeTagOpenStart(t),n=s.parts[0],e=s.parts[1],this._attemptCharCodeUntilFn(so);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(so),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(so),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(so);this._consumeTagOpenEnd()}catch(TH){if(TH instanceof no)return void(s?s.type=Ya.INCOMPLETE_TAG_OPEN:(this._beginToken(Ya.TEXT,t),this._endToken(["<"])));throw TH}const r=this._getTagDefinition(e).getContentType(n);r===i.RAW_TEXT?this._consumeRawTextWithTagClose(n,e,!1):r===i.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,e,!0)}_consumeRawTextWithTagClose(t,e,n){this._consumeRawText(n,()=>!!this._attemptCharCode(60)&&(!!this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(so),!!this._attemptStrCaseInsensitive(e)&&(this._attemptCharCodeUntilFn(so),this._attemptCharCode(62))))),this._beginToken(Ya.TAG_CLOSE),this._requireCharCodeUntilFn(t=>62===t,3),this._cursor.advance(),this._endToken([t,e])}_consumeTagOpenStart(t){this._beginToken(Ya.TAG_OPEN_START,t);const e=this._consumePrefixAndName();return this._endToken(e)}_consumeAttributeName(){const t=this._cursor.peek();if(39===t||34===t)throw this._createError(Ja(t),this._cursor.getSpan());this._beginToken(Ya.ATTR_NAME);const e=this._consumePrefixAndName();this._endToken(e)}_consumeAttributeValue(){let t;if(39===this._cursor.peek()||34===this._cursor.peek()){this._beginToken(Ya.ATTR_QUOTE);const e=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(e)]),this._beginToken(Ya.ATTR_VALUE);const n=[];for(;this._cursor.peek()!==e;)n.push(this._readChar(!0));t=n.join(""),this._endToken([this._processCarriageReturns(t)]),this._beginToken(Ya.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(e)])}else{this._beginToken(Ya.ATTR_VALUE);const e=this._cursor.clone();this._requireCharCodeUntilFn(ro,1),t=this._cursor.getChars(e),this._endToken([this._processCarriageReturns(t)])}}_consumeTagOpenEnd(){const t=this._attemptCharCode(47)?Ya.TAG_OPEN_END_VOID:Ya.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(62),this._endToken([])}_consumeTagClose(t){this._beginToken(Ya.TAG_CLOSE,t),this._attemptCharCodeUntilFn(so);const e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(so),this._requireCharCode(62),this._endToken(e)}_consumeExpansionFormStart(){this._beginToken(Ya.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(Ya.EXPANSION_FORM_START),this._beginToken(Ya.RAW_TEXT);const t=this._readUntil(44),e=this._processCarriageReturns(t);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([e]);else{const n=this._endToken([t]);e!==t&&this.nonNormalizedIcuExpressions.push(n)}this._requireCharCode(44),this._attemptCharCodeUntilFn(so),this._beginToken(Ya.RAW_TEXT);const n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(so)}_consumeExpansionCaseStart(){this._beginToken(Ya.EXPANSION_CASE_VALUE);const t=this._readUntil(123).trim();this._endToken([t]),this._attemptCharCodeUntilFn(so),this._beginToken(Ya.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(so),this._expansionCaseStack.push(Ya.EXPANSION_CASE_EXP_START)}_consumeExpansionCaseEnd(){this._beginToken(Ya.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(so),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(Ya.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeText(){const t=this._cursor.clone();this._beginToken(Ya.TEXT,t);const e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])}_isTextEnd(){if(60===this._cursor.peek()||0===this._cursor.peek())return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(125===this._cursor.peek()&&this._isInExpansionCase())return!0}return!1}_readUntil(t){const e=this._cursor.clone();return this._attemptUntilChar(t),this._cursor.getChars(e)}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ya.EXPANSION_CASE_EXP_START}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ya.EXPANSION_FORM_START}isExpansionFormStart(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){const t=this._cursor.clone(),e=this._attemptStr(this._interpolationConfig.start);return this._cursor=t,!e}return!0}}function so(t){return!$s(t)||0===t}function ro(t){return $s(t)||62===t||60===t||47===t||39===t||34===t||61===t}function ao(t){return 59==t||0==t||!function(t){return t>=97&&t<=102||t>=65&&t<=70||Ws(t)}(t)}function oo(t){return 59==t||0==t||!Ys(t)}function lo(t){return t>=97&&t<=122?t-97+65:t}class co{constructor(t,e){if(t instanceof co){this.file=t.file,this.input=t.input,this.end=t.end;const e=t.state;this.state={peek:e.peek,offset:e.offset,line:e.line,column:e.column}}else{if(!e)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=e.endPos,this.state={peek:-1,offset:e.startPos,line:e.startLine,column:e.startCol}}}clone(){return new co(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,e){let n=t=t||this;if(e)for(;this.diff(t)>0&&-1!==e.indexOf(t.peek());)n===t&&(t=t.clone()),t.advance();const i=this.locationFromCursor(t),s=this.locationFromCursor(this),r=n!==t?this.locationFromCursor(n):i;return new Qs(i,s,r)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new uo('Unexpected character "EOF"',this);const e=this.charAt(t.offset);10===e?(t.line++,t.column=0):Gs(e)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new Zs(t.file,t.state.offset,t.state.line,t.state.column)}}class po extends co{constructor(t,e){t instanceof po?(super(t),this.internalState=Object.assign({},t.internalState)):(super(t,e),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new po(this)}getChars(t){const e=t.clone();let n="";for(;e.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(e.peek()),e.advance();return n}processEscapeSequence(){const t=()=>this.internalState.peek;if(92===t())if(this.internalState=Object.assign({},this.state),this.advanceState(this.internalState),110===t())this.state.peek=10;else if(114===t())this.state.peek=13;else if(118===t())this.state.peek=11;else if(116===t())this.state.peek=9;else if(98===t())this.state.peek=8;else if(102===t())this.state.peek=12;else if(117===t())if(this.advanceState(this.internalState),123===t()){this.advanceState(this.internalState);const e=this.clone();let n=0;for(;125!==t();)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(e,n)}else{const t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(120===t()){this.advanceState(this.internalState);const t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(Ks(t())){let e="",n=0,i=this.clone();for(;Ks(t())&&n<3;)i=this.clone(),e+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(e,8),this.internalState=i.internalState}else Gs(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,e){const n=this.input.substr(t.internalState.offset,e),i=parseInt(n,16);if(isNaN(i))throw t.state=t.internalState,new uo("Invalid hexadecimal escape sequence",t);return i}}class uo{constructor(t,e){this.msg=t,this.cursor=e}}class ho extends ir{constructor(t,e,n){super(e,n),this.elementName=t}static create(t,e,n){return new ho(t,e,n)}}class mo{constructor(t,e){this.rootNodes=t,this.errors=e}}class fo{constructor(t){this.getTagDefinition=t}parse(t,e,n){const i=Xa(t,e,this.getTagDefinition,n),s=new go(i.tokens,this.getTagDefinition);return s.build(),new mo(s.rootNodes,i.errors.concat(s.errors))}}class go{constructor(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._elementStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==Ya.EOF;)this._peek.type===Ya.TAG_OPEN_START||this._peek.type===Ya.INCOMPLETE_TAG_OPEN?this._consumeStartTag(this._advance()):this._peek.type===Ya.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ya.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ya.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ya.TEXT||this._peek.type===Ya.RAW_TEXT||this._peek.type===Ya.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ya.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance()}_advance(){const t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t}_advanceIf(t){return this._peek.type===t?this._advance():null}_consumeCdata(t){this._consumeText(this._advance()),this._advanceIf(Ya.CDATA_END)}_consumeComment(t){const e=this._advanceIf(Ya.RAW_TEXT);this._advanceIf(Ya.COMMENT_END);const n=null!=e?e.parts[0].trim():null;this._addToParent(new $a(n,t.sourceSpan))}_consumeExpansion(t){const e=this._advance(),n=this._advance(),i=[];for(;this._peek.type===Ya.EXPANSION_CASE_VALUE;){const t=this._parseExpansionCase();if(!t)return;i.push(t)}if(this._peek.type!==Ya.EXPANSION_FORM_END)return void this.errors.push(ho.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));const s=new Qs(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new Ha(e.parts[0],n.parts[0],i,s,e.sourceSpan)),this._advance()}_parseExpansionCase(){const t=this._advance();if(this._peek.type!==Ya.EXPANSION_CASE_EXP_START)return this.errors.push(ho.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;const e=this._advance(),n=this._collectExpansionExpTokens(e);if(!n)return null;const i=this._advance();n.push(new Ga(Ya.EOF,[],i.sourceSpan));const s=new go(n,this.getTagDefinition);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;const r=new Qs(t.sourceSpan.start,i.sourceSpan.end,t.sourceSpan.fullStart),a=new Qs(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart);return new za(t.parts[0],s.rootNodes,r,t.sourceSpan,a)}_collectExpansionExpTokens(t){const e=[],n=[Ya.EXPANSION_CASE_EXP_START];for(;;){if(this._peek.type!==Ya.EXPANSION_FORM_START&&this._peek.type!==Ya.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Ya.EXPANSION_CASE_EXP_END){if(!bo(n,Ya.EXPANSION_CASE_EXP_START))return this.errors.push(ho.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Ya.EXPANSION_FORM_END){if(!bo(n,Ya.EXPANSION_FORM_START))return this.errors.push(ho.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Ya.EOF)return this.errors.push(ho.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}}_consumeText(t){let e=t.parts[0];if(e.length>0&&"\n"==e[0]){const t=this._getParentElement();null!=t&&0==t.children.length&&this.getTagDefinition(t.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Ba(e,t.sourceSpan))}_closeVoidElement(){const t=this._getParentElement();t&&this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}_consumeStartTag(t){const[e,n]=t.parts,i=[];for(;this._peek.type===Ya.ATTR_NAME;)i.push(this._consumeAttr(this._advance()));const s=this._getElementFullName(e,n,this._getParentElement());let r=!1;if(this._peek.type===Ya.TAG_OPEN_END_VOID){this._advance(),r=!0;const e=this.getTagDefinition(s);e.canSelfClose||null!==c(s)||e.isVoid||this.errors.push(ho.create(s,t.sourceSpan,`Only void and foreign elements can be self closed "${t.parts[1]}"`))}else this._peek.type===Ya.TAG_OPEN_END&&(this._advance(),r=!1);const a=this._peek.sourceSpan.start,o=new Qs(t.sourceSpan.start,a,t.sourceSpan.fullStart),l=new Qs(t.sourceSpan.start,a,t.sourceSpan.fullStart),d=new qa(s,i,[],o,l,void 0);this._pushElement(d),r?this._popElement(s,o):t.type===Ya.INCOMPLETE_TAG_OPEN&&(this._popElement(s,null),this.errors.push(ho.create(s,o,`Opening tag "${s}" not terminated.`)))}_pushElement(t){const e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop(),this._addToParent(t),this._elementStack.push(t)}_consumeEndTag(t){const e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this.getTagDefinition(e).isVoid)this.errors.push(ho.create(e,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popElement(e,t.sourceSpan)){const n=`Unexpected closing tag "${e}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(ho.create(e,t.sourceSpan,n))}}_popElement(t,e){for(let n=this._elementStack.length-1;n>=0;n--){const i=this._elementStack[n];if(i.name==t)return i.endSourceSpan=e,i.sourceSpan.end=null!==e?e.end:i.sourceSpan.end,this._elementStack.splice(n,this._elementStack.length-n),!0;if(!this.getTagDefinition(i.name).closedByParent)return!1}return!1}_consumeAttr(t){const e=d(t.parts[0],t.parts[1]);let n,i=t.sourceSpan.end,s="";if(this._peek.type===Ya.ATTR_QUOTE&&this._advance(),this._peek.type===Ya.ATTR_VALUE){const t=this._advance();s=t.parts[0],i=t.sourceSpan.end,n=t.sourceSpan}if(this._peek.type===Ya.ATTR_QUOTE){i=this._advance().sourceSpan.end}return new Ua(e,s,new Qs(t.sourceSpan.start,i,t.sourceSpan.fullStart),n)}_getParentElement(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null}_addToParent(t){const e=this._getParentElement();null!=e?e.children.push(t):this.rootNodes.push(t)}_getElementFullName(t,e,n){if(""===t&&""===(t=this.getTagDefinition(e).implicitNamespacePrefix||"")&&null!=n){const e=r(n.name)[1];this.getTagDefinition(e).preventNamespaceInheritance||(t=c(n.name))}return d(t,e)}}function bo(t,e){return t.length>0&&t[t.length-1]===e}class vo extends fo{constructor(){super(f)}parse(t,e,n){return super.parse(t,e,n)}}const yo=new Set(["pre","template","textarea","script","style"]),_o=new RegExp("[^ \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]"),wo=new RegExp("[ \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]{2,}","g");function xo(t){return t.replace(new RegExp("\ue500","g")," ")}class Co{visitElement(t,e){return yo.has(t.name)||t.attrs.some(t=>"ngPreserveWhitespaces"===t.name)?new qa(t.name,Wa(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n):new qa(t.name,t.attrs,function(t,e){const n=[];return e.forEach((i,s)=>{const r={prev:e[s-1],next:e[s+1]},a=i.visit(t,r);a&&n.push(a)}),n}(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}visitAttribute(t,e){return"ngPreserveWhitespaces"!==t.name?t:null}visitText(t,e){const n=t.value.match(_o),i=e&&(e.prev instanceof Ha||e.next instanceof Ha);return n||i?new Ba(xo(t.value).replace(wo," "),t.sourceSpan,t.i18n):null}visitComment(t,e){return t}visitExpansion(t,e){return t}visitExpansionCase(t,e){return t}}function So(t){return new mo(Wa(new Co,t.rootNodes),t.errors)}const ko=["zero","one","two","few","many","other"];function Eo(t){const e=new Do;return new Io(Wa(e,t),e.isExpanded,e.errors)}class Io{constructor(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}}class Ao extends ir{constructor(t,e){super(t,e)}}class Do{constructor(){this.isExpanded=!1,this.errors=[]}visitElement(t,e){return new qa(t.name,t.attrs,Wa(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}visitAttribute(t,e){return t}visitText(t,e){return t}visitComment(t,e){return t}visitExpansion(t,e){return this.isExpanded=!0,"plural"==t.type?function(t,e){const n=t.cases.map(t=>{-1!=ko.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new Ao(t.valueSourceSpan,`Plural cases should be "=<number>" or one of ${ko.join(", ")}`));const n=Eo(t.expression);return e.push(...n.errors),new qa("ng-template",[new Ua("ngPluralCase",`${t.value}`,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),i=new Ua("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new qa("ng-container",[i],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors):function(t,e){const n=t.cases.map(t=>{const n=Eo(t.expression);return e.push(...n.errors),"other"===t.value?new qa("ng-template",[new Ua("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new qa("ng-template",[new Ua("ngSwitchCase",`${t.value}`,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),i=new Ua("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new qa("ng-container",[i],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors)}visitExpansionCase(t,e){throw new Error("Should not be reached")}}class To{constructor(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}visit(t,e){return t.visitText(this,e)}}class Oo{constructor(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}visit(t,e){return t.visitBoundText(this,e)}}class Po{constructor(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}visit(t,e){return t.visitAttr(this,e)}}const No={4:4,1:1,2:2,0:0,3:3};class Mo{constructor(t,e,n,i,s,r){this.name=t,this.type=e,this.securityContext=n,this.value=i,this.unit=s,this.sourceSpan=r,this.isAnimation=4===this.type}static fromBoundProperty(t){const e=No[t.type];return new Mo(t.name,e,t.securityContext,t.value,t.unit,t.sourceSpan)}visit(t,e){return t.visitElementProperty(this,e)}}class Ro{constructor(t,e,n,i,s,r){this.name=t,this.target=e,this.phase=n,this.handler=i,this.sourceSpan=s,this.handlerSpan=r,this.fullName=Ro.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}static calcFullName(t,e,n){return e?`${e}:${t}`:n?`@${t}.${n}`:t}static fromParsedEvent(t){const e=0===t.type?t.targetOrPhase:null,n=1===t.type?t.targetOrPhase:null;return new Ro(t.name,e,n,t.handler,t.sourceSpan,t.handlerSpan)}visit(t,e){return t.visitEvent(this,e)}}class Lo{constructor(t,e,n,i){this.name=t,this.value=e,this.originalValue=n,this.sourceSpan=i}visit(t,e){return t.visitReference(this,e)}}class Fo{constructor(t,e,n,i){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=i}static fromParsedVariable(t){return new Fo(t.name,t.value,t.sourceSpan,t.valueSpan)}visit(t,e){return t.visitVariable(this,e)}}class jo{constructor(t,e,n,i,s,r,a,o,l,c,d,p,u){this.name=t,this.attrs=e,this.inputs=n,this.outputs=i,this.references=s,this.directives=r,this.providers=a,this.hasViewContainer=o,this.queryMatches=l,this.children=c,this.ngContentIndex=d,this.sourceSpan=p,this.endSourceSpan=u}visit(t,e){return t.visitElement(this,e)}}class Vo{constructor(t,e,n,i,s,r,a,o,l,c,d){this.attrs=t,this.outputs=e,this.references=n,this.variables=i,this.directives=s,this.providers=r,this.hasViewContainer=a,this.queryMatches=o,this.children=l,this.ngContentIndex=c,this.sourceSpan=d}visit(t,e){return t.visitEmbeddedTemplate(this,e)}}class Bo{constructor(t,e,n,i){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=i}visit(t,e){return t.visitDirectiveProperty(this,e)}}class Ho{constructor(t,e,n,i,s,r){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=i,this.contentQueryStartId=s,this.sourceSpan=r}visit(t,e){return t.visitDirective(this,e)}}class zo{constructor(t,e,n,i,s,r,a,o){this.token=t,this.multiProvider=e,this.eager=n,this.providers=i,this.providerType=s,this.lifecycleHooks=r,this.sourceSpan=a,this.isModule=o}visit(t,e){return null}}var Uo;!function(t){t[t.PublicService=0]="PublicService",t[t.PrivateService=1]="PrivateService",t[t.Component=2]="Component",t[t.Directive=3]="Directive",t[t.Builtin=4]="Builtin"}(Uo||(Uo={}));class qo{constructor(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}visit(t,e){return t.visitNgContent(this,e)}}function $o(t,e,n=null){const i=[],s=t.visit?e=>t.visit(e,n)||e.visit(t,n):e=>e.visit(t,n);return e.forEach(t=>{const e=s(t);e&&i.push(e)}),i}class Wo extends ir{constructor(t,e){super(e,t)}}class Yo{constructor(t,e){this.reflector=t,this.component=e,this.errors=[],this.viewQueries=function(t){let e=1;const n=new Map;t.viewQueries&&t.viewQueries.forEach(t=>Jo(n,{meta:t,queryId:e++}));return n}(e),this.viewProviders=new Map,e.viewProviders.forEach(t=>{null==this.viewProviders.get(En(t.token))&&this.viewProviders.set(En(t.token),!0)})}}class Go{constructor(t,e,n,i,s,r,a,o,l){this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=i,this._sourceSpan=l,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},s.forEach(t=>this._attrs[t.name]=t.value);const c=i.map(t=>t.directive);if(this._allProviders=function(t,e,n){const i=new Map;t.forEach(t=>{Qo([{token:{identifier:t.type},useClass:t.type}],t.isComponent?Uo.Component:Uo.Directive,!0,e,n,i,!1)});return t.filter(t=>t.isComponent).concat(t.filter(t=>!t.isComponent)).forEach(t=>{Qo(t.providers,Uo.PublicService,!1,e,n,i,!1),Qo(t.viewProviders,Uo.PrivateService,!1,e,n,i,!1)}),i}(c,l,t.errors),this._contentQueries=function(t,e){let n=t;const i=new Map;return e.forEach((t,e)=>{t.queries&&t.queries.forEach(t=>Jo(i,{meta:t,queryId:n++}))}),i}(o,c),Array.from(this._allProviders.values()).forEach(t=>{this._addQueryReadsTo(t.token,t.token,this._queriedTokens)}),a){const t=hn(this.viewContext.reflector,pn.TemplateRef);this._addQueryReadsTo(t,t,this._queriedTokens)}r.forEach(t=>{let e=t.value||hn(this.viewContext.reflector,pn.ElementRef);this._addQueryReadsTo({value:t.name},e,this._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(pn.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(t=>{(t.eager||this._queriedTokens.get(En(t.token)))&&this._getOrCreateLocalProvider(t.providerType,t.token,!0)})}afterElement(){Array.from(this._allProviders.values()).forEach(t=>{this._getOrCreateLocalProvider(t.providerType,t.token,!1)})}get transformProviders(){const t=[],e=[];return this._transformedProviders.forEach(n=>{n.eager?e.push(n):t.push(n)}),t.concat(e)}get transformedDirectiveAsts(){const t=this.transformProviders.map(t=>t.token.identifier),e=this._directiveAsts.slice();return e.sort((e,n)=>t.indexOf(e.directive.type)-t.indexOf(n.directive.type)),e}get queryMatches(){const t=[];return this._queriedTokens.forEach(e=>{t.push(...e)}),t}_addQueryReadsTo(t,e,n){this._getQueriesFor(t).forEach(t=>{const i=t.meta.read||e,s=En(i);let r=n.get(s);r||(r=[],n.set(s,r)),r.push({queryId:t.queryId,value:i})})}_getQueriesFor(t){const e=[];let n,i=this,s=0;for(;null!==i;)n=i._contentQueries.get(En(t)),n&&e.push(...n.filter(t=>t.meta.descendants||s<=1)),i._directiveAsts.length>0&&s++,i=i._parent;return n=this.viewContext.viewQueries.get(En(t)),n&&e.push(...n),e}_getOrCreateLocalProvider(t,e,n){const i=this._allProviders.get(En(e));if(!i||(t===Uo.Directive||t===Uo.PublicService)&&i.providerType===Uo.PrivateService||(t===Uo.PrivateService||t===Uo.PublicService)&&i.providerType===Uo.Builtin)return null;let s=this._transformedProviders.get(En(e));if(s)return s;if(null!=this._seenProviders.get(En(e)))return this.viewContext.errors.push(new Wo(`Cannot instantiate cyclic dependency! ${kn(e)}`,this._sourceSpan)),null;this._seenProviders.set(En(e),!0);const r=i.providers.map(t=>{let e,s=t.useValue,r=t.useExisting;if(null!=t.useExisting){const e=this._getDependency(i.providerType,{token:t.useExisting},n);null!=e.token?r=e.token:(r=null,s=e.value)}else if(t.useFactory){e=(t.deps||t.useFactory.diDeps).map(t=>this._getDependency(i.providerType,t,n))}else if(t.useClass){e=(t.deps||t.useClass.diDeps).map(t=>this._getDependency(i.providerType,t,n))}return Zo(t,{useExisting:r,useValue:s,deps:e})});return s=Xo(i,{eager:n,providers:r}),this._transformedProviders.set(En(e),s),s}_getLocalDependency(t,e,n=!1){if(e.isAttribute){const t=this._attrs[e.token.value];return{isValue:!0,value:null==t?null:t}}if(null!=e.token){if(t===Uo.Directive||t===Uo.Component){if(En(e.token)===this.viewContext.reflector.resolveExternalReference(pn.Renderer)||En(e.token)===this.viewContext.reflector.resolveExternalReference(pn.ElementRef)||En(e.token)===this.viewContext.reflector.resolveExternalReference(pn.ChangeDetectorRef)||En(e.token)===this.viewContext.reflector.resolveExternalReference(pn.TemplateRef))return e;En(e.token)===this.viewContext.reflector.resolveExternalReference(pn.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(En(e.token)===this.viewContext.reflector.resolveExternalReference(pn.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null}_getDependency(t,e,n=!1){let i=this,s=n,r=null;if(e.isSkipSelf||(r=this._getLocalDependency(t,e,n)),e.isSelf)!r&&e.isOptional&&(r={isValue:!0,value:null});else{for(;!r&&i._parent;){const t=i;i=i._parent,t._isViewRoot&&(s=!1),r=i._getLocalDependency(Uo.PublicService,e,s)}r||(r=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===En(e.token)||null!=this.viewContext.viewProviders.get(En(e.token))?e:e.isOptional?{isValue:!0,value:null}:null)}return r||this.viewContext.errors.push(new Wo(`No provider for ${kn(e.token)}`,this._sourceSpan)),r}}class Ko{constructor(t,e,n,i){this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(t=>{Qo([{token:{identifier:t},useClass:t}],Uo.PublicService,!0,i,this._errors,this._allProviders,!0)}),Qo(e.transitiveModule.providers.map(t=>t.provider).concat(n),Uo.PublicService,!1,i,this._errors,this._allProviders,!1)}parse(){if(Array.from(this._allProviders.values()).forEach(t=>{this._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){const t=this._errors.join("\n");throw new Error(`Provider parse errors:\n${t}`)}const t=[],e=[];return this._transformedProviders.forEach(n=>{n.eager?e.push(n):t.push(n)}),t.concat(e)}_getOrCreateLocalProvider(t,e){const n=this._allProviders.get(En(t));if(!n)return null;let i=this._transformedProviders.get(En(t));if(i)return i;if(null!=this._seenProviders.get(En(t)))return this._errors.push(new Wo(`Cannot instantiate cyclic dependency! ${kn(t)}`,n.sourceSpan)),null;this._seenProviders.set(En(t),!0);const s=n.providers.map(t=>{let i,s=t.useValue,r=t.useExisting;if(null!=t.useExisting){const i=this._getDependency({token:t.useExisting},e,n.sourceSpan);null!=i.token?r=i.token:(r=null,s=i.value)}else if(t.useFactory){i=(t.deps||t.useFactory.diDeps).map(t=>this._getDependency(t,e,n.sourceSpan))}else if(t.useClass){i=(t.deps||t.useClass.diDeps).map(t=>this._getDependency(t,e,n.sourceSpan))}return Zo(t,{useExisting:r,useValue:s,deps:i})});return i=Xo(n,{eager:e,providers:s}),this._transformedProviders.set(En(t),i),i}_getDependency(t,e=!1,n){let i=!1;return t.isSkipSelf||null==t.token||(En(t.token)===this.reflector.resolveExternalReference(pn.Injector)||En(t.token)===this.reflector.resolveExternalReference(pn.ComponentFactoryResolver)||null!=this._getOrCreateLocalProvider(t.token,e))&&(i=!0),t}}function Zo(t,{useExisting:e,useValue:n,deps:i}){return{token:t.token,useClass:t.useClass,useExisting:e,useFactory:t.useFactory,useValue:n,deps:i,multi:t.multi}}function Xo(t,{eager:e,providers:n}){return new zo(t.token,t.multiProvider,t.eager||e,n,t.providerType,t.lifecycleHooks,t.sourceSpan,t.isModule)}function Qo(t,e,n,i,s,r,a){t.forEach(t=>{let o=r.get(En(t.token));if(null!=o&&!!o.multiProvider!=!!t.multi&&s.push(new Wo(`Mixing multi and non multi provider is not possible for token ${kn(o.token)}`,i)),o)t.multi||(o.providers.length=0),o.providers.push(t);else{const s=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],l=!(t.useClass||t.useExisting||t.useFactory);o=new zo(t.token,!!t.multi,n||l,[t],e,s,i,a),r.set(En(t.token),o)}})}function Jo(t,e){e.meta.selectors.forEach(n=>{let i=t.get(En(n));i||(i=[],t.set(En(n),i)),i.push(e)})}class tl{constructor(t,e){this.style=t,this.styleUrls=e}}function el(t){if(null==t||0===t.length||"/"==t[0])return!1;const e=t.match(sl);return null===e||"package"==e[1]||"asset"==e[1]}const nl=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,il=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,sl=/^([^:/?#]+):/;class rl{constructor(t,e,n,i,s){if(this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this.errors=s,this.pipesByName=null,this._usedPipes=new Map,i){const t=new Map;i.forEach(e=>t.set(e.name,e)),this.pipesByName=t}}get interpolationConfig(){return this._interpolationConfig}getUsedPipes(){return Array.from(this._usedPipes.values())}createBoundHostProperties(t,e){if(t.hostProperties){const n=[];return Object.keys(t.hostProperties).forEach(i=>{const s=t.hostProperties[i];"string"==typeof s?this.parsePropertyBinding(i,s,!0,e,e.start.offset,void 0,[],n,e):this._reportError(`Value of the host property binding "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,e)}),n}return null}createDirectiveHostPropertyAsts(t,e,n){const i=this.createBoundHostProperties(t,n);return i&&i.map(t=>this.createBoundElementProperty(e,t))}createDirectiveHostEventAsts(t,e){if(t.hostListeners){const n=[];return Object.keys(t.hostListeners).forEach(i=>{const s=t.hostListeners[i];"string"==typeof s?this.parseEvent(i,s,e,e,[],n):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${s}" (${typeof s})`,e)}),n}return null}parseInterpolation(t,e){const n=e.start.toString();try{const i=this._exprParser.parseInterpolation(t,n,e.start.offset,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,e),this._checkPipes(i,e),i}catch(TH){return this._reportError(`${TH}`,e),this._exprParser.wrapLiteralPrimitive("ERROR",n,e.start.offset)}}parseInterpolationExpression(t,e){const n=e.start.toString();try{const i=this._exprParser.parseInterpolationExpression(t,n,e.start.offset);return i&&this._reportExpressionParserErrors(i.errors,e),this._checkPipes(i,e),i}catch(TH){return this._reportError(`${TH}`,e),this._exprParser.wrapLiteralPrimitive("ERROR",n,e.start.offset)}}parseInlineTemplateBinding(t,e,n,i,s,r,a,o){const l=n.start.offset+"*".length,c=this._parseTemplateBindings(t,e,n,l,i);for(const d of c){const t=cl(n,d.sourceSpan),e=d.key.source,l=cl(n,d.key.span);if(d instanceof Vr){const i=d.value?d.value.source:"$implicit",s=d.value?cl(n,d.value.span):void 0;a.push(new qr(e,i,t,l,s))}else if(d.value){const i=o?t:n,a=cl(n,d.value.ast.sourceSpan);this._parsePropertyAst(e,d.value,i,l,a,s,r)}else s.push([e,""]),this.parseLiteralAttr(e,null,l,i,void 0,s,r,l)}}_parseTemplateBindings(t,e,n,i,s){const r=n.start.toString();try{const a=this._exprParser.parseTemplateBindings(t,e,r,i,s);return this._reportExpressionParserErrors(a.errors,n),a.templateBindings.forEach(t=>{t.value instanceof jr&&this._checkPipes(t.value,n)}),a.warnings.forEach(t=>{this._reportError(t,n,Js.WARNING)}),a.templateBindings}catch(TH){return this._reportError(`${TH}`,n),[]}}parseLiteralAttr(t,e,n,i,s,r,a,o){ol(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Js.ERROR),this._parseAnimation(t,e,n,i,o,s,r,a)):a.push(new zr(t,this._exprParser.wrapLiteralPrimitive(e,"",i),tr.LITERAL_ATTR,n,o,s))}parsePropertyBinding(t,e,n,i,s,r,a,o,l){0===t.length&&this._reportError("Property name is missing in binding",i);let c=!1;t.startsWith("animate-")?(c=!0,t=t.substring("animate-".length)):ol(t)&&(c=!0,t=t.substring(1)),c?this._parseAnimation(t,e,i,s,l,r,a,o):this._parsePropertyAst(t,this._parseBinding(e,n,r||i,s),i,l,r,a,o)}parsePropertyInterpolation(t,e,n,i,s,r,a){const o=this.parseInterpolation(e,i||n);return!!o&&(this._parsePropertyAst(t,o,n,a,i,s,r),!0)}_parsePropertyAst(t,e,n,i,s,r,a){r.push([t,e.source]),a.push(new zr(t,e,tr.DEFAULT,n,i,s))}_parseAnimation(t,e,n,i,s,r,a,o){0===t.length&&this._reportError("Animation trigger is missing",n);const l=this._parseBinding(e||"undefined",!1,r||n,i);a.push([t,l.source]),o.push(new zr(t,l,tr.ANIMATION,n,s,r))}_parseBinding(t,e,n,i){const s=(n&&n.start||"(unknown)").toString();try{const r=e?this._exprParser.parseSimpleBinding(t,s,i,this._interpolationConfig):this._exprParser.parseBinding(t,s,i,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,n),this._checkPipes(r,n),r}catch(TH){return this._reportError(`${TH}`,n),this._exprParser.wrapLiteralPrimitive("ERROR",s,i)}}createBoundElementProperty(t,e,n=!1,i=!0){if(e.isAnimation)return new $r(e.name,4,Y.NONE,e.expression,null,e.sourceSpan,e.keySpan,e.valueSpan);let s,r=null,a=null;const o=e.name.split(".");let l;if(o.length>1)if("attr"==o[0]){a=o.slice(1).join("."),n||this._validatePropertyOrAttributeName(a,e.sourceSpan,!0),l=ll(this._schemaRegistry,t,a,!0);const i=a.indexOf(":");if(i>-1){const t=a.substring(0,i),e=a.substring(i+1);a=d(t,e)}s=1}else"class"==o[0]?(a=o[1],s=2,l=[Y.NONE]):"style"==o[0]&&(r=o.length>2?o[2]:null,a=o[1],s=3,l=[Y.STYLE]);if(null===a){const r=this._schemaRegistry.getMappedPropName(e.name);a=i?r:e.name,l=ll(this._schemaRegistry,t,r,!1),s=0,n||this._validatePropertyOrAttributeName(r,e.sourceSpan,!1)}return new $r(a,s,l[0],e.expression,r,e.sourceSpan,e.keySpan,e.valueSpan)}parseEvent(t,e,n,i,s,r){0===t.length&&this._reportError("Event name is missing in binding",n),ol(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i,r)):this._parseRegularEvent(t,e,n,i,s,r)}calcPossibleSecurityContexts(t,e,n){const i=this._schemaRegistry.getMappedPropName(e);return ll(this._schemaRegistry,t,i,n)}_parseAnimationEvent(t,e,n,i,s){const r=Me(t,".",[t,""]);const a=r[0],o=r[1].toLowerCase();if(o)switch(o){case"start":case"done":const t=this._parseAction(e,i);s.push(new Ur(a,o,1,t,n,i));break;default:this._reportError(`The provided animation output phase value "${o}" for "@${a}" is not supported (use start or done)`,n)}else this._reportError(`The animation trigger output event (@${a}) is missing its phase value name (start or done are currently supported)`,n)}_parseRegularEvent(t,e,n,i,s,r){const[a,o]=Ne(t,[null,t]),l=this._parseAction(e,i);s.push([t,l.source]),r.push(new Ur(o,a,0,l,n,i))}_parseAction(t,e){const n=(e&&e.start||"(unknown").toString(),i=e&&e.start?e.start.offset:0;try{const s=this._exprParser.parseAction(t,n,i,this._interpolationConfig);return s&&this._reportExpressionParserErrors(s.errors,e),!s||s.ast instanceof fr?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)):(this._checkPipes(s,e),s)}catch(TH){return this._reportError(`${TH}`,e),this._exprParser.wrapLiteralPrimitive("ERROR",n,i)}}_reportError(t,e,n=Js.ERROR){this.errors.push(new ir(e,t,n))}_reportExpressionParserErrors(t,e){for(const n of t)this._reportError(n.message,e)}_checkPipes(t,e){if(t&&this.pipesByName){const n=new al;t.visit(n),n.pipes.forEach((t,n)=>{const i=this.pipesByName.get(n);i?this._usedPipes.set(n,i):this._reportError(`The pipe '${n}' could not be found`,new Qs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}}_validatePropertyOrAttributeName(t,e,n){const i=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);i.error&&this._reportError(i.msg,e,Js.ERROR)}}class al extends Hr{constructor(){super(...arguments),this.pipes=new Map}visitPipe(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null}}function ol(t){return"@"==t[0]}function ll(t,e,n,i){const s=[];return b.parse(e).forEach(e=>{const r=e.element?[e.element]:t.allKnownElementNames(),a=new Set(e.notSelectors.filter(t=>t.isElementSelector()).map(t=>t.element)),o=r.filter(t=>!a.has(t));s.push(...o.map(e=>t.securityContext(e,n,i)))}),0===s.length?[Y.NONE]:Array.from(new Set(s)).sort()}function cl(t,e){const n=e.start-t.start.offset,i=e.end-t.end.offset;return new Qs(t.start.moveBy(n),t.end.moveBy(i),t.fullStart.moveBy(n),t.details)}function dl(t){let e=null,n=null,i=null,s=!1,r="";t.attrs.forEach(t=>{const a=t.name.toLowerCase();"select"==a?e=t.value:"href"==a?n=t.value:"rel"==a?i=t.value:"ngNonBindable"==t.name?s=!0:"ngProjectAs"==t.name&&t.value.length>0&&(r=t.value)}),e=function(t){if(null===t||0===t.length)return"*";return t}(e);const a=t.name.toLowerCase();let l=pl.OTHER;return o(a)?l=pl.NG_CONTENT:"style"==a?l=pl.STYLE:"script"==a?l=pl.SCRIPT:"link"==a&&"stylesheet"==i&&(l=pl.STYLESHEET),new ul(l,e,n,s,r)}var pl;!function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(pl||(pl={}));class ul{constructor(t,e,n,i,s){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=i,this.projectAs=s}}const hl=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;let ml;function fl(){return ml||(ml=b.parse("*")[0]),ml}class gl extends ir{constructor(t,e,n){super(e,t,n)}}class bl{constructor(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}}class vl{constructor(t,e,n,i,s,r,a){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=i,this._htmlParser=s,this._console=r,this.transforms=a}get expressionParser(){return this._exprParser}parse(t,e,n,i,s,r,a){var o;const l=this.tryParse(t,e,n,i,s,r,a),c=l.errors.filter(t=>t.level===Js.WARNING),d=l.errors.filter(t=>t.level===Js.ERROR);if(c.length>0&&(null===(o=this._console)||void 0===o||o.warn(`Template parse warnings:\n${c.join("\n")}`)),d.length>0){throw Ue(`Template parse errors:\n${d.join("\n")}`,d)}return{template:l.templateAst,pipes:l.usedPipes}}tryParse(t,e,n,i,s,r,a){let o="string"==typeof e?this._htmlParser.parse(e,r,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(t)}):e;return a||(o=So(o)),this.tryParseHtml(this.expandHtml(o),t,n,i,s)}tryParseHtml(t,e,n,i,s){let r;const a=t.errors,o=[];if(t.rootNodes.length>0){const l=El(n),c=El(i),d=new Yo(this._reflector,e);let p;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});const u=new rl(this._exprParser,p,this._schemaRegistry,c,a),h=new yl(this._reflector,this._config,d,l,u,this._schemaRegistry,s,a);r=Wa(h,t.rootNodes,Cl),a.push(...d.errors),o.push(...u.getUsedPipes())}else r=[];return this._assertNoReferenceDuplicationOnTemplate(r,a),a.length>0||this.transforms&&this.transforms.forEach(t=>{r=$o(t,r)}),new bl(r,o,a)}expandHtml(t,e=!1){const n=t.errors;if(0==n.length||e){const e=Eo(t.rootNodes);n.push(...e.errors),t=new mo(e.nodes,n)}return t}getInterpolationConfig(t){if(t.template)return As.fromArray(t.template.interpolation)}_assertNoReferenceDuplicationOnTemplate(t,e){const n=[];t.filter(t=>!!t.references).forEach(t=>t.references.forEach(t=>{const i=t.name;if(n.indexOf(i)<0)n.push(i);else{const n=new gl(`Reference "#${i}" is defined several times`,t.sourceSpan,Js.ERROR);e.push(n)}}))}}class yl{constructor(t,e,n,i,s,r,a,o){this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=s,this._schemaRegistry=r,this._schemas=a,this._targetErrors=o,this.selectorMatcher=new v,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,i.forEach((t,e)=>{const n=b.parse(t.selector);this.selectorMatcher.addSelectables(n,t),this.directivesIndex.set(t,e)})}visitExpansion(t,e){return null}visitExpansionCase(t,e){return null}visitText(t,e){const n=e.findNgContentIndex(fl()),i=xo(t.value),s=this._bindingParser.parseInterpolation(i,t.sourceSpan);return s?new Oo(s,n,t.sourceSpan):new To(i,n,t.sourceSpan)}visitAttribute(t,e){return new Po(t.name,t.value,t.sourceSpan)}visitComment(t,e){return null}visitElement(t,e){const n=this.contentQueryStartId,i=t.name,s=dl(t);if(s.type===pl.SCRIPT||s.type===pl.STYLE)return null;if(s.type===pl.STYLESHEET&&el(s.hrefAttr))return null;const r=[],a=[],o=[],c=[],d=[],p=[],u=[],h=[];let m=!1;const f=[],g=l(t.name);t.attrs.forEach(t=>{const e=this._parseAttr(g,t,r,a,d,o,c);let n,i;c.push(...[].map(t=>Fo.fromParsedVariable(t)));const s=this._normalizeAttributeName(t.name);s.startsWith("*")&&(n=t.value,i=s.substring("*".length));const l=null!=n;if(l){m&&this._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",t.sourceSpan),m=!0;const e=[],s=(t.valueSpan||t.sourceSpan).start.offset;this._bindingParser.parseInlineTemplateBinding(i,n,t.sourceSpan,s,u,p,e,!1),h.push(...e.map(t=>Fo.fromParsedVariable(t)))}e||l||(f.push(this.visitAttribute(t,null)),r.push([t.name,t.value]))});const v=xl(i,r),{directives:y,matchElement:_}=this._parseDirectives(this.selectorMatcher,v),w=[],x=new Set,C=this._createDirectiveAsts(g,t.name,y,a,o,t.sourceSpan,w,x),S=this._createElementPropertyAsts(t.name,a,x),k=e.isTemplateElement||m,E=new Go(this.providerViewContext,e.providerContext,k,C,f,w,g,n,t.sourceSpan),I=Wa(s.nonBindable?Sl:this,t.children,wl.create(g,C,g?e.providerContext:E));E.afterElement();const A=""!=s.projectAs?b.parse(s.projectAs)[0]:v,D=e.findNgContentIndex(A);let T;if(s.type===pl.NG_CONTENT)t.children&&!t.children.every(kl)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),T=new qo(this.ngContentCount++,m?null:D,t.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(C,d),this._assertNoComponentsNorElementBindingsOnTemplate(C,S,t.sourceSpan),T=new Vo(f,d,w,c,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,I,m?null:D,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(C,t.sourceSpan);const n=m?null:e.findNgContentIndex(A);T=new jo(i,f,S,d,w,E.transformedDirectiveAsts,E.transformProviders,E.transformedHasViewContainer,E.queryMatches,I,m?null:n,t.sourceSpan,t.endSourceSpan||null)}if(m){const n=this.contentQueryStartId,s=xl("ng-template",u),{directives:r}=this._parseDirectives(this.selectorMatcher,s),a=new Set,o=this._createDirectiveAsts(!0,i,r,p,[],t.sourceSpan,[],a),l=this._createElementPropertyAsts(i,p,a);this._assertNoComponentsNorElementBindingsOnTemplate(o,l,t.sourceSpan);const c=new Go(this.providerViewContext,e.providerContext,e.isTemplateElement,o,[],[],!0,n,t.sourceSpan);c.afterElement(),T=new Vo([],[],[],h,c.transformedDirectiveAsts,c.transformProviders,c.transformedHasViewContainer,c.queryMatches,[T],D,t.sourceSpan)}return T}_parseAttr(t,e,n,i,s,r,a){const o=this._normalizeAttributeName(e.name),l=e.value,c=e.sourceSpan,d=e.valueSpan?e.valueSpan.start.offset:c.start.offset,p=[],u=o.match(hl);let h=!1;if(null!==u)if(h=!0,null!=u[1])this._bindingParser.parsePropertyBinding(u[7],l,!1,c,d,e.valueSpan,n,i);else if(u[2])if(t){const t=u[7];this._parseVariable(t,l,c,a)}else this._reportError('"let-" is only supported on ng-template elements.',c);else if(u[3]){const t=u[7];this._parseReference(t,l,c,r)}else u[4]?this._bindingParser.parseEvent(u[7],l,c,e.valueSpan||c,n,p):u[5]?(this._bindingParser.parsePropertyBinding(u[7],l,!1,c,d,e.valueSpan,n,i),this._parseAssignmentEvent(u[7],l,c,e.valueSpan||c,n,p)):u[6]?this._bindingParser.parseLiteralAttr(o,l,c,d,e.valueSpan,n,i):u[8]?(this._bindingParser.parsePropertyBinding(u[8],l,!1,c,d,e.valueSpan,n,i),this._parseAssignmentEvent(u[8],l,c,e.valueSpan||c,n,p)):u[9]?this._bindingParser.parsePropertyBinding(u[9],l,!1,c,d,e.valueSpan,n,i):u[10]&&this._bindingParser.parseEvent(u[10],l,c,e.valueSpan||c,n,p);else h=this._bindingParser.parsePropertyInterpolation(o,l,c,e.valueSpan,n,i);return h||this._bindingParser.parseLiteralAttr(o,l,c,d,e.valueSpan,n,i),s.push(...p.map(t=>Ro.fromParsedEvent(t))),h}_normalizeAttributeName(t){return/^data-/i.test(t)?t.substring(5):t}_parseVariable(t,e,n,i){t.indexOf("-")>-1?this._reportError('"-" is not allowed in variable names',n):0===t.length&&this._reportError("Variable does not have a name",n),i.push(new Fo(t,e,n))}_parseReference(t,e,n,i){t.indexOf("-")>-1?this._reportError('"-" is not allowed in reference names',n):0===t.length&&this._reportError("Reference does not have a name",n),i.push(new _l(t,e,n))}_parseAssignmentEvent(t,e,n,i,s,r){this._bindingParser.parseEvent(`${t}Change`,`${e}=$event`,n,i,s,r)}_parseDirectives(t,e){const n=tn(this.directivesIndex.size);let i=!1;return t.match(e,(t,e)=>{n[this.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:n.filter(t=>!!t),matchElement:i}}_createDirectiveAsts(t,e,n,i,s,r,a,o){const l=new Set;let c=null;const d=n.map(t=>{const n=new Qs(r.start,r.end,r.fullStart,`Directive ${yn(t.type)}`);t.isComponent&&(c=t);const d=[];let p=this._bindingParser.createDirectiveHostPropertyAsts(t,e,n).map(t=>Mo.fromBoundProperty(t));p=this._checkPropertiesInSchema(e,p);const u=this._bindingParser.createDirectiveHostEventAsts(t,n);this._createDirectivePropertyAsts(t.inputs,i,d,o),s.forEach(e=>{(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(a.push(new Lo(e.name,un(t.type.reference),e.value,e.sourceSpan)),l.add(e.name))});const h=u.map(t=>Ro.fromParsedEvent(t)),m=this.contentQueryStartId;return this.contentQueryStartId+=t.queries.length,new Ho(t,d,p,h,m,n)});return s.forEach(e=>{if(e.value.length>0)l.has(e.name)||this._reportError(`There is no directive with "exportAs" set to "${e.value}"`,e.sourceSpan);else if(!c){let n=null;t&&(n=hn(this.reflector,pn.TemplateRef)),a.push(new Lo(e.name,n,e.value,e.sourceSpan))}}),d}_createDirectivePropertyAsts(t,e,n,i){if(t){const s=new Map;e.forEach(t=>{const e=s.get(t.name);e&&!e.isLiteral||s.set(t.name,t)}),Object.keys(t).forEach(e=>{const r=t[e],a=s.get(r);a&&(i.add(a.name),Il(a.expression)||n.push(new Bo(e,a.name,a.expression,a.sourceSpan)))})}}_createElementPropertyAsts(t,e,n){const i=[];return e.forEach(e=>{if(!e.isLiteral&&!n.has(e.name)){const n=this._bindingParser.createBoundElementProperty(t,e);i.push(Mo.fromBoundProperty(n))}}),this._checkPropertiesInSchema(t,i)}_findComponentDirectives(t){return t.filter(t=>t.directive.isComponent)}_findComponentDirectiveNames(t){return this._findComponentDirectives(t).map(t=>yn(t.directive.type))}_assertOnlyOneComponent(t,e){const n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError(`More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: ${n.join(",")}`,e)}_assertElementExists(t,e){const n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){let t=`'${n}' is not a known element:\n`;t+=`1. If '${n}' is an Angular component, then verify that it is part of this module.\n`,n.indexOf("-")>-1?t+=`2. If '${n}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.`:t+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(t,e.sourceSpan)}}_assertNoComponentsNorElementBindingsOnTemplate(t,e,n){const i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError(`Components on an embedded template: ${i.join(",")}`,n),e.forEach(t=>{this._reportError(`Property binding ${t.name} not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".`,n)})}_assertAllEventsPublishedByDirectives(t,e){const n=new Set;t.forEach(t=>{Object.keys(t.directive.outputs).forEach(e=>{const i=t.directive.outputs[e];n.add(i)})}),e.forEach(t=>{null==t.target&&n.has(t.name)||this._reportError(`Event binding ${t.fullName} not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".`,t.sourceSpan)})}_checkPropertiesInSchema(t,e){return e.filter(e=>{if(0===e.type&&!this._schemaRegistry.hasProperty(t,e.name,this._schemas)){let n=`Can't bind to '${e.name}' since it isn't a known property of '${t}'.`;t.startsWith("ng-")?n+=`\n1. If '${e.name}' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.`:t.indexOf("-")>-1&&(n+=`\n1. If '${t}' is an Angular component and it has '${e.name}' input, then verify that it is part of this module.\n2. If '${t}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.`),this._reportError(n,e.sourceSpan)}return!Il(e.value)})}_reportError(t,e,n=Js.ERROR){this._targetErrors.push(new ir(e,t,n))}}class _l{constructor(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}isReferenceToDirective(t){return-1!==(e=t.exportAs,e?e.split(",").map(t=>t.trim()):[]).indexOf(this.value);var e}}class wl{constructor(t,e,n,i){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=i}static create(t,e,n){const i=new v;let s=null;const r=e.find(t=>t.directive.isComponent);if(r){const t=r.directive.template.ngContentSelectors;for(let e=0;e<t.length;e++){"*"===t[e]?s=e:i.addSelectables(b.parse(t[e]),e)}}return new wl(t,i,s,n)}findNgContentIndex(t){const e=[];return this._ngContentIndexMatcher.match(t,(t,n)=>{e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null}}function xl(t,e){const n=new b,i=r(t)[1];n.setElement(i);for(let s=0;s<e.length;s++){const t=e[s][0],i=r(t)[1],a=e[s][1];if(n.addAttribute(i,a),"class"==t.toLowerCase()){a.trim().split(/\s+/g).forEach(t=>n.addClassName(t))}}return n}const Cl=new wl(!0,new v,null,null),Sl=new class{visitElement(t,e){const n=dl(t);if(n.type===pl.SCRIPT||n.type===pl.STYLE||n.type===pl.STYLESHEET)return null;const i=t.attrs.map(t=>[t.name,t.value]),s=xl(t.name,i),r=e.findNgContentIndex(s),a=Wa(this,t.children,Cl);return new jo(t.name,Wa(this,t.attrs),[],[],[],[],[],!1,[],a,r,t.sourceSpan,t.endSourceSpan)}visitComment(t,e){return null}visitAttribute(t,e){return new Po(t.name,t.value,t.sourceSpan)}visitText(t,e){const n=e.findNgContentIndex(fl());return new To(t.value,n,t.sourceSpan)}visitExpansion(t,e){return t}visitExpansionCase(t,e){return t}};function kl(t){return t instanceof Ba&&0==t.value.trim().length}function El(t){const e=new Map;return t.forEach(t=>{e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function Il(t){return t instanceof jr&&(t=t.ast),t instanceof fr}function Al(t){const e=t.charCodeAt(0);if(e==t.charCodeAt(t.length-1)&&(39==e||34==e)){const e=t.substring(1,t.length-1);-1==e.indexOf("'")&&-1==e.indexOf('"')&&(t=e)}return t}function Dl(t){return t.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}class Tl{constructor(t){this._directiveExpr=t,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[]}registerBoundInput(t){let e=null,n=t.name;switch(t.type){case 0:e=this.registerInputBasedOnName(n,t.value,t.sourceSpan);break;case 3:e=this.registerStyleInput(n,!1,t.value,t.sourceSpan,t.unit);break;case 2:e=this.registerClassInput(n,!1,t.value,t.sourceSpan)}return!!e}registerInputBasedOnName(t,e,n){let i=null;const s=t.substring(0,6),r="style"===t||"style."===s||"style!"===s;if(r||!r&&("class"===t||"class."===s||"class!"===s)){const s="."!==t.charAt(5),a=t.substr(s?5:6);i=r?this.registerStyleInput(a,s,e,n):this.registerClassInput(a,s,e,n)}return i}registerStyleInput(t,e,n,i,s){if(Il(n))return null;t=Dl(t);const{property:r,hasOverrideFlag:a,suffix:o}=Pl(t),l={name:r,suffix:s="string"==typeof s&&0!==s.length?s:o,value:n,sourceSpan:i,hasOverrideFlag:a};return e?this._styleMapInput=l:((this._singleStyleInputs=this._singleStyleInputs||[]).push(l),Ol(this._stylesIndex,r)),this._lastStylingInput=l,this._firstStylingInput=this._firstStylingInput||l,this._checkForPipes(n),this.hasBindings=!0,l}registerClassInput(t,e,n,i){if(Il(n))return null;const{property:s,hasOverrideFlag:r}=Pl(t),a={name:s,value:n,sourceSpan:i,hasOverrideFlag:r,suffix:null};if(e){if(this._classMapInput)throw new Error("[class] and [className] bindings cannot be used on the same element simultaneously");this._classMapInput=a}else(this._singleClassInputs=this._singleClassInputs||[]).push(a),Ol(this._classesIndex,s);return this._lastStylingInput=a,this._firstStylingInput=this._firstStylingInput||a,this._checkForPipes(n),this.hasBindings=!0,a}_checkForPipes(t){t instanceof jr&&t.ast instanceof kr&&(this.hasBindingsWithPipes=!0)}registerStyleAttr(t){this._initialStyleValues=function(t){const e=[];let n=0,i=0,s=0,r=0,a=0,o=null,l=!1;for(;n<t.length;)switch(t.charCodeAt(n++)){case 40:i++;break;case 41:i--;break;case 39:l=l||r>0,0===s?s=39:39===s&&92!==t.charCodeAt(n-1)&&(s=0);break;case 34:l=l||r>0,0===s?s=34:34===s&&92!==t.charCodeAt(n-1)&&(s=0);break;case 58:o||0!==i||0!==s||(o=Dl(t.substring(a,n-1).trim()),r=n);break;case 59:if(o&&r>0&&0===i&&0===s){const i=t.substring(r,n-1).trim();e.push(o,l?Al(i):i),a=n,r=0,o=null,l=!1}}if(o&&r){const n=t.substr(r).trim();e.push(o,l?Al(n):n)}return e}(t),this._hasInitialValues=!0}registerClassAttr(t){this._initialClassValues=t.trim().split(/\s+/g),this._hasInitialValues=!0}populateInitialStylingAttrs(t){if(this._initialClassValues.length){t.push(De(1));for(let e=0;e<this._initialClassValues.length;e++)t.push(De(this._initialClassValues[e]))}if(this._initialStyleValues.length){t.push(De(2));for(let e=0;e<this._initialStyleValues.length;e+=2)t.push(De(this._initialStyleValues[e]),De(this._initialStyleValues[e+1]))}}assignHostAttrs(t,e){this._directiveExpr&&(t.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(t),e.set("hostAttrs",ke(t)))}buildClassMapInstruction(t){return this._classMapInput?this._buildMapBasedInstruction(t,!0,this._classMapInput):null}buildStyleMapInstruction(t){return this._styleMapInput?this._buildMapBasedInstruction(t,!1,this._styleMapInput):null}_buildMapBasedInstruction(t,e,n){let i=2;const s=n.value.visit(t);let r;return s instanceof Dr?(i+=s.expressions.length,r=e?function(t){switch(bs(t)){case 1:return Vn.classMap;case 3:return Vn.classMapInterpolate1;case 5:return Vn.classMapInterpolate2;case 7:return Vn.classMapInterpolate3;case 9:return Vn.classMapInterpolate4;case 11:return Vn.classMapInterpolate5;case 13:return Vn.classMapInterpolate6;case 15:return Vn.classMapInterpolate7;case 17:return Vn.classMapInterpolate8;default:return Vn.classMapInterpolateV}}(s):function(t){switch(bs(t)){case 1:return Vn.styleMap;case 3:return Vn.styleMapInterpolate1;case 5:return Vn.styleMapInterpolate2;case 7:return Vn.styleMapInterpolate3;case 9:return Vn.styleMapInterpolate4;case 11:return Vn.styleMapInterpolate5;case 13:return Vn.styleMapInterpolate6;case 15:return Vn.styleMapInterpolate7;case 17:return Vn.styleMapInterpolate8;default:return Vn.styleMapInterpolateV}}(s)):r=e?Vn.classMap:Vn.styleMap,{reference:r,calls:[{supportsInterpolation:!0,sourceSpan:n.sourceSpan,allocateBindingSlots:i,params:t=>{const e=t(s);return Array.isArray(e)?e:[e]}}]}}_buildSingleInputs(t,e,n,i,s){const r=[];return e.forEach(e=>{const a=r[r.length-1],o=e.value.visit(n);let l=t,c=2;o instanceof Dr&&(c+=o.expressions.length,i&&(l=i(o)));const d={sourceSpan:e.sourceSpan,allocateBindingSlots:c,supportsInterpolation:!!i,params:t=>{const n=[];n.push(De(e.name));const i=t(o);return Array.isArray(i)?n.push(...i):n.push(i),s||null===e.suffix||n.push(De(e.suffix)),n}};a&&a.reference===l?a.calls.push(d):r.push({reference:l,calls:[d]})}),r}_buildClassInputs(t){return this._singleClassInputs?this._buildSingleInputs(Vn.classProp,this._singleClassInputs,t,null,!0):[]}_buildStyleInputs(t){return this._singleStyleInputs?this._buildSingleInputs(Vn.styleProp,this._singleStyleInputs,t,Nl,!1):[]}buildUpdateLevelInstructions(t){const e=[];if(this.hasBindings){const n=this.buildStyleMapInstruction(t);n&&e.push(n);const i=this.buildClassMapInstruction(t);i&&e.push(i),e.push(...this._buildStyleInputs(t)),e.push(...this._buildClassInputs(t))}return e}}function Ol(t,e){t.has(e)||t.set(e,t.size)}function Pl(t){let e=!1;const n=t.indexOf("!important");-1!==n&&(t=n>0?t.substring(0,n):"",e=!0);let i=null,s=t;const r=t.lastIndexOf(".");return r>0&&(i=t.substr(r+1),s=t.substring(0,r)),{property:s,suffix:i,hasOverrideFlag:e}}function Nl(t){switch(bs(t)){case 1:return Vn.styleProp;case 3:return Vn.stylePropInterpolate1;case 5:return Vn.stylePropInterpolate2;case 7:return Vn.stylePropInterpolate3;case 9:return Vn.stylePropInterpolate4;case 11:return Vn.stylePropInterpolate5;case 13:return Vn.stylePropInterpolate6;case 15:return Vn.stylePropInterpolate7;case 17:return Vn.stylePropInterpolate8;default:return Vn.stylePropInterpolateV}}var Ml;!function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.Keyword=2]="Keyword",t[t.String=3]="String",t[t.Operator=4]="Operator",t[t.Number=5]="Number",t[t.Error=6]="Error"}(Ml||(Ml={}));const Rl=["var","let","as","null","undefined","true","false","if","else","this"];class Ll{tokenize(t){const e=new Hl(t),n=[];let i=e.scanToken();for(;null!=i;)n.push(i),i=e.scanToken();return n}}class Fl{constructor(t,e,n,i,s){this.index=t,this.end=e,this.type=n,this.numValue=i,this.strValue=s}isCharacter(t){return this.type==Ml.Character&&this.numValue==t}isNumber(){return this.type==Ml.Number}isString(){return this.type==Ml.String}isOperator(t){return this.type==Ml.Operator&&this.strValue==t}isIdentifier(){return this.type==Ml.Identifier}isKeyword(){return this.type==Ml.Keyword}isKeywordLet(){return this.type==Ml.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Ml.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Ml.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Ml.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Ml.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Ml.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Ml.Keyword&&"this"==this.strValue}isError(){return this.type==Ml.Error}toNumber(){return this.type==Ml.Number?this.numValue:-1}toString(){switch(this.type){case Ml.Character:case Ml.Identifier:case Ml.Keyword:case Ml.Operator:case Ml.String:case Ml.Error:return this.strValue;case Ml.Number:return this.numValue.toString();default:return null}}}function jl(t,e,n){return new Fl(t,e,Ml.Character,n,String.fromCharCode(n))}function Vl(t,e,n){return new Fl(t,e,Ml.Operator,0,n)}const Bl=new Fl(-1,-1,Ml.Character,0,"");class Hl{constructor(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const t=this.input,e=this.length;let n=this.peek,i=this.index;for(;n<=32;){if(++i>=e){n=0;break}n=t.charCodeAt(i)}if(this.peek=n,this.index=i,i>=e)return null;if(zl(n))return this.scanIdentifier();if(Ws(n))return this.scanNumber(i);const s=i;switch(n){case 46:return this.advance(),Ws(this.peek)?this.scanNumber(s):jl(s,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(s,n);case 39:case 34:return this.scanString();case 35:case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(s,String.fromCharCode(n));case 63:return this.scanComplexOperator(s,"?",46,".");case 60:case 62:return this.scanComplexOperator(s,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(s,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(s,"&",38,"&");case 124:return this.scanComplexOperator(s,"|",124,"|");case 160:for(;$s(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(n)}]`,0)}scanCharacter(t,e){return this.advance(),jl(t,this.index,e)}scanOperator(t,e){return this.advance(),Vl(t,this.index,e)}scanComplexOperator(t,e,n,i,s,r){this.advance();let a=e;return this.peek==n&&(this.advance(),a+=i),null!=s&&this.peek==s&&(this.advance(),a+=r),Vl(t,this.index,a)}scanIdentifier(){const t=this.index;for(this.advance();Ul(this.peek);)this.advance();const e=this.input.substring(t,this.index);return Rl.indexOf(e)>-1?(n=t,i=this.index,s=e,new Fl(n,i,Ml.Keyword,0,s)):function(t,e,n){return new Fl(t,e,Ml.Identifier,0,n)}(t,this.index,e);var n,i,s}scanNumber(t){let e=this.index===t;for(this.advance();;){if(Ws(this.peek));else if(46==this.peek)e=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),ql(this.peek)&&this.advance(),!Ws(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n;const i=this.input.substring(t,this.index),s=e?function(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}(i):parseFloat(i);return r=t,a=this.index,o=s,new Fl(r,a,Ml.Number,o,"");var r,a,o}scanString(){const t=this.index,e=this.peek;this.advance();let n="",i=this.index;const s=this.input;for(;this.peek!=e;)if(92==this.peek){let t;if(n+=s.substring(i,this.index),this.advance(),this.peek=this.peek,117==this.peek){const e=s.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(e))return this.error(`Invalid unicode escape [\\u${e}]`,0);t=parseInt(e,16);for(let t=0;t<5;t++)this.advance()}else t=Wl(this.peek),this.advance();n+=String.fromCharCode(t),i=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}const r=s.substring(i,this.index);return this.advance(),a=t,o=this.index,l=n+r,new Fl(a,o,Ml.String,0,l);var a,o,l}error(t,e){const n=this.index+e;return function(t,e,n){return new Fl(t,e,Ml.Error,0,n)}(n,this.index,`Lexer Error: ${t} at column ${n} in expression [${this.input}]`)}}function zl(t){return 97<=t&&t<=122||65<=t&&t<=90||95==t||36==t}function Ul(t){return Ys(t)||Ws(t)||95==t||36==t}function ql(t){return 45==t||43==t}function $l(t){return 39===t||34===t||96===t}function Wl(t){switch(t){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return t}}class Yl{constructor(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}}class Gl{constructor(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}}class Kl{constructor(t){this._lexer=t,this.errors=[],this.simpleExpressionChecker=Jl}parseAction(t,e,n,i=Ds){this._checkNoInterpolation(t,e,i);const s=this._stripComments(t),r=this._lexer.tokenize(this._stripComments(t)),a=new Ql(t,e,n,r,s.length,!0,this.errors,t.length-s.length).parseChain();return new jr(a,t,e,n,this.errors)}parseBinding(t,e,n,i=Ds){const s=this._parseBindingAst(t,e,n,i);return new jr(s,t,e,n,this.errors)}checkSimpleExpression(t){const e=new this.simpleExpressionChecker;return t.visit(e),e.errors}parseSimpleBinding(t,e,n,i=Ds){const s=this._parseBindingAst(t,e,n,i),r=this.checkSimpleExpression(s);return r.length>0&&this._reportError(`Host binding expression cannot contain ${r.join(" ")}`,t,e),new jr(s,t,e,n,this.errors)}_reportError(t,e,n,i){this.errors.push(new dr(t,e,n,i))}_parseBindingAst(t,e,n,i){const s=this._parseQuote(t,e,n);if(null!=s)return s;this._checkNoInterpolation(t,e,i);const r=this._stripComments(t),a=this._lexer.tokenize(r);return new Ql(t,e,n,a,r.length,!1,this.errors,t.length-r.length).parseChain()}_parseQuote(t,e,n){if(null==t)return null;const i=t.indexOf(":");if(-1==i)return null;const s=t.substring(0,i).trim();if(!function(t){if(0==t.length)return!1;const e=new Hl(t);if(!zl(e.peek))return!1;for(e.advance();0!==e.peek;){if(!Ul(e.peek))return!1;e.advance()}return!0}(s))return null;const r=t.substring(i+1),a=new pr(0,t.length);return new mr(a,a.toAbsolute(n),s,r,e)}parseTemplateBindings(t,e,n,i,s){const r=this._lexer.tokenize(e);return new Ql(e,n,s,r,e.length,!1,this.errors,0).parseTemplateBindings({source:t,span:new Fr(i,i+t.length)})}parseInterpolation(t,e,n,i=Ds){const{strings:s,expressions:r,offsets:a}=this.splitInterpolation(t,e,i);if(0===r.length)return null;const o=[];for(let l=0;l<r.length;++l){const i=r[l].text,s=this._stripComments(i),c=this._lexer.tokenize(s),d=new Ql(t,e,n,c,s.length,!1,this.errors,a[l]+(i.length-s.length)).parseChain();o.push(d)}return this.createInterpolationAst(s.map(t=>t.text),o,t,e,n)}parseInterpolationExpression(t,e,n){const i=this._stripComments(t),s=this._lexer.tokenize(i),r=new Ql(t,e,n,s,i.length,!1,this.errors,0).parseChain();return this.createInterpolationAst(["",""],[r],t,e,n)}createInterpolationAst(t,e,n,i,s){const r=new pr(0,n.length),a=new Dr(r,r.toAbsolute(s),t,e);return new jr(a,n,i,s,this.errors)}splitInterpolation(t,e,n=Ds){const i=[],s=[],r=[];let a=0,o=!1,l=!1,{start:c,end:d}=n;for(;a<t.length;)if(o){const n=a,i=n+c.length,p=this._getInterpolationEndIndex(t,d,i);if(-1===p){o=!1,l=!0;break}const u=p+d.length,h=t.substring(i,p);h.trim().length>0?s.push({text:h,start:n,end:u}):(this._reportError("Blank expressions are not allowed in interpolated strings",t,`at column ${a} in`,e),s.push({text:"$implicit",start:n,end:u})),r.push(i),a=u,o=!1}else{const e=a;a=t.indexOf(c,a),-1===a&&(a=t.length);const n=t.substring(e,a);i.push({text:n,start:e,end:a}),o=!0}if(!o)if(l){const e=i[i.length-1];e.text+=t.substring(a),e.end=t.length}else i.push({text:t.substring(a),start:a,end:t.length});return new Yl(i,s,r)}wrapLiteralPrimitive(t,e,n){const i=new pr(0,null==t?0:t.length);return new jr(new Er(i,i.toAbsolute(n),t),t,e,n,this.errors)}_stripComments(t){const e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t}_commentStart(t){let e=null;for(let n=0;n<t.length-1;n++){const i=t.charCodeAt(n),s=t.charCodeAt(n+1);if(47===i&&47==s&&null==e)return n;e===i?e=null:null==e&&$l(i)&&(e=i)}return null}_checkNoInterpolation(t,e,{start:n,end:i}){let s=-1,r=-1;for(const a of this._forEachUnquotedChar(t,0))if(-1===s)t.startsWith(n)&&(s=a);else if(r=this._getInterpolationEndIndex(t,i,a),r>-1)break;s>-1&&r>-1&&this._reportError(`Got interpolation (${n}${i}) where expression was expected`,t,`at column ${s} in`,e)}_getInterpolationEndIndex(t,e,n){for(const i of this._forEachUnquotedChar(t,n)){if(t.startsWith(e,i))return i;if(t.startsWith("//",i))return t.indexOf(e,i)}return-1}*_forEachUnquotedChar(t,e){let n=null,i=0;for(let s=e;s<t.length;s++){const e=t[s];!$l(t.charCodeAt(s))||null!==n&&n!==e||i%2!=0?null===n&&(yield s):n=null===n?e:null,i="\\"===e?i+1:0}}}class Zl extends Kl{constructor(){super(...arguments),this.simpleExpressionChecker=tc}}var Xl;!function(t){t[t.None=0]="None",t[t.Writable=1]="Writable"}(Xl||(Xl={}));class Ql{constructor(t,e,n,i,s,r,a,o){this.input=t,this.location=e,this.absoluteOffset=n,this.tokens=i,this.inputLength=s,this.parseAction=r,this.errors=a,this.offset=o,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.context=Xl.None,this.sourceSpanCache=new Map,this.index=0}peek(t){const e=this.index+t;return e<this.tokens.length?this.tokens[e]:Bl}get next(){return this.peek(0)}get atEOF(){return this.index>=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){if(this.index>0){return this.peek(-1).end+this.offset}return 0===this.tokens.length?this.inputLength+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(t){return new pr(t,this.currentEndIndex)}sourceSpan(t){const e=`${t}@${this.inputIndex}`;return this.sourceSpanCache.has(e)||this.sourceSpanCache.set(e,this.span(t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(e)}advance(){this.index++}withContext(t,e){this.context|=t;const n=e();return this.context^=t,n}consumeOptionalCharacter(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(t){this.consumeOptionalCharacter(t)||this.error(`Missing expected ${String.fromCharCode(t)}`)}consumeOptionalOperator(t){return!!this.next.isOperator(t)&&(this.advance(),!0)}expectOperator(t){this.consumeOptionalOperator(t)||this.error(`Missing expected operator ${t}`)}prettyPrintToken(t){return t===Bl?"end of input":`token ${t}`}expectIdentifierOrKeyword(){const t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier or keyword`),"")}expectIdentifierOrKeywordOrString(){const t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error(`Unexpected ${this.prettyPrintToken(t)}, expected identifier, keyword, or string`),"")}parseChain(){const t=[],e=this.inputIndex;for(;this.index<this.tokens.length;){const e=this.parsePipe();if(t.push(e),this.consumeOptionalCharacter(59))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.consumeOptionalCharacter(59););else this.index<this.tokens.length&&this.error(`Unexpected token '${this.next}'`)}return 0==t.length?new fr(this.span(e),this.sourceSpan(e)):1==t.length?t[0]:new vr(this.span(e),this.sourceSpan(e),t)}parsePipe(){let t=this.parseExpression();if(this.consumeOptionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{const e=this.inputIndex,n=this.expectIdentifierOrKeyword(),i=this.sourceSpan(e),s=[];for(;this.consumeOptionalCharacter(58);)s.push(this.parseExpression());const{start:r}=t.span;t=new kr(this.span(r),this.sourceSpan(r),t,n,s,i)}while(this.consumeOptionalOperator("|"))}return t}parseExpression(){return this.parseConditional()}parseConditional(){const t=this.inputIndex,e=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){const n=this.parsePipe();let i;if(this.consumeOptionalCharacter(58))i=this.parsePipe();else{const e=this.inputIndex,n=this.input.substring(t,e);this.error(`Conditional expression ${n} requires all 3 expressions`),i=new fr(this.span(t),this.sourceSpan(t))}return new yr(this.span(t),this.sourceSpan(t),e,n,i)}return e}parseLogicalOr(){let t=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){const e=this.parseLogicalAnd(),{start:n}=t.span;t=new Tr(this.span(n),this.sourceSpan(n),"||",t,e)}return t}parseLogicalAnd(){let t=this.parseEquality();for(;this.consumeOptionalOperator("&&");){const e=this.parseEquality(),{start:n}=t.span;t=new Tr(this.span(n),this.sourceSpan(n),"&&",t,e)}return t}parseEquality(){let t=this.parseRelational();for(;this.next.type==Ml.Operator;){const e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();const n=this.parseRelational(),{start:i}=t.span;t=new Tr(this.span(i),this.sourceSpan(i),e,t,n);continue}break}return t}parseRelational(){let t=this.parseAdditive();for(;this.next.type==Ml.Operator;){const e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();const n=this.parseAdditive(),{start:i}=t.span;t=new Tr(this.span(i),this.sourceSpan(i),e,t,n);continue}break}return t}parseAdditive(){let t=this.parseMultiplicative();for(;this.next.type==Ml.Operator;){const e=this.next.strValue;switch(e){case"+":case"-":this.advance();let n=this.parseMultiplicative();const{start:i}=t.span;t=new Tr(this.span(i),this.sourceSpan(i),e,t,n);continue}break}return t}parseMultiplicative(){let t=this.parsePrefix();for(;this.next.type==Ml.Operator;){const e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();const{start:i}=t.span;t=new Tr(this.span(i),this.sourceSpan(i),e,t,n);continue}break}return t}parsePrefix(){if(this.next.type==Ml.Operator){const t=this.inputIndex;let e;switch(this.next.strValue){case"+":return this.advance(),e=this.parsePrefix(),Or.createPlus(this.span(t),this.sourceSpan(t),e);case"-":return this.advance(),e=this.parsePrefix(),Or.createMinus(this.span(t),this.sourceSpan(t),e);case"!":return this.advance(),e=this.parsePrefix(),new Pr(this.span(t),this.sourceSpan(t),e)}}return this.parseCallChain()}parseCallChain(){let t=this.parsePrimary();const e=t.span.start;for(;;)if(this.consumeOptionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.consumeOptionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.consumeOptionalCharacter(91))this.withContext(Xl.Writable,()=>{this.rbracketsExpected++;const n=this.parsePipe();if(n instanceof fr&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(93),this.consumeOptionalOperator("=")){const i=this.parseConditional();t=new Sr(this.span(e),this.sourceSpan(e),t,n,i)}else t=new Cr(this.span(e),this.sourceSpan(e),t,n)});else if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Lr(this.span(e),this.sourceSpan(e),t,n)}else{if(!this.consumeOptionalOperator("!"))return t;t=new Nr(this.span(e),this.sourceSpan(e),t)}}parsePrimary(){const t=this.inputIndex;if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new Er(this.span(t),this.sourceSpan(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Er(this.span(t),this.sourceSpan(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Er(this.span(t),this.sourceSpan(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Er(this.span(t),this.sourceSpan(t),!1);if(this.next.isKeywordThis())return this.advance(),new br(this.span(t),this.sourceSpan(t));if(this.consumeOptionalCharacter(91)){this.rbracketsExpected++;const e=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Ir(this.span(t),this.sourceSpan(t),e)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new gr(this.span(t),this.sourceSpan(t)),!1);if(this.next.isNumber()){const e=this.next.toNumber();return this.advance(),new Er(this.span(t),this.sourceSpan(t),e)}if(this.next.isString()){const e=this.next.toString();return this.advance(),new Er(this.span(t),this.sourceSpan(t),e)}return this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new fr(this.span(t),this.sourceSpan(t))):(this.error(`Unexpected token ${this.next}`),new fr(this.span(t),this.sourceSpan(t)))}parseExpressionList(t){const e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return e}parseLiteralMap(){const t=[],e=[],n=this.inputIndex;if(this.expectCharacter(123),!this.consumeOptionalCharacter(125)){this.rbracesExpected++;do{const n=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:n}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Ar(this.span(n),this.sourceSpan(n),t,e)}parseAccessMemberOrMethodCall(t,e=!1){const n=t.span.start,i=this.inputIndex,s=this.expectIdentifierOrKeyword(),r=this.sourceSpan(i);if(this.consumeOptionalCharacter(40)){this.rparensExpected++;const i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;const a=this.span(n),o=this.sourceSpan(n);return e?new Rr(a,o,r,t,s,i):new Mr(a,o,r,t,s,i)}if(e)return this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new fr(this.span(n),this.sourceSpan(n))):new xr(this.span(n),this.sourceSpan(n),r,t,s);if(this.consumeOptionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new fr(this.span(n),this.sourceSpan(n));const e=this.parseConditional();return new wr(this.span(n),this.sourceSpan(n),r,t,s,e)}return new _r(this.span(n),this.sourceSpan(n),r,t,s)}parseCallArguments(){if(this.next.isCharacter(41))return[];const t=[];do{t.push(this.parsePipe())}while(this.consumeOptionalCharacter(44));return t}expectTemplateBindingKey(){let t="",e=!1;const n=this.currentAbsoluteOffset;do{t+=this.expectIdentifierOrKeywordOrString(),e=this.consumeOptionalOperator("-"),e&&(t+="-")}while(e);return{source:t,span:new Fr(n,n+t.length)}}parseTemplateBindings(t){const e=[];for(e.push(...this.parseDirectiveKeywordBindings(t));this.index<this.tokens.length;){const n=this.parseLetBinding();if(n)e.push(n);else{const n=this.expectTemplateBindingKey(),i=this.parseAsBinding(n);i?e.push(i):(n.source=t.source+n.source.charAt(0).toUpperCase()+n.source.substring(1),e.push(...this.parseDirectiveKeywordBindings(n)))}this.consumeStatementTerminator()}return new Gl(e,[],this.errors)}parseDirectiveKeywordBindings(t){const e=[];this.consumeOptionalCharacter(58);const n=this.getDirectiveBoundTarget();let i=this.currentAbsoluteOffset;const s=this.parseAsBinding(t);s||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);const r=new Fr(t.span.start,i);return e.push(new Br(r,t,n)),s&&e.push(s),e}getDirectiveBoundTarget(){if(this.next===Bl||this.peekKeywordAs()||this.peekKeywordLet())return null;const t=this.parsePipe(),{start:e,end:n}=t.span,i=this.input.substring(e,n);return new jr(t,i,this.location,this.absoluteOffset+e,this.errors)}parseAsBinding(t){if(!this.peekKeywordAs())return null;this.advance();const e=this.expectTemplateBindingKey();this.consumeStatementTerminator();const n=new Fr(t.span.start,this.currentAbsoluteOffset);return new Vr(n,e,t)}parseLetBinding(){if(!this.peekKeywordLet())return null;const t=this.currentAbsoluteOffset;this.advance();const e=this.expectTemplateBindingKey();let n=null;this.consumeOptionalOperator("=")&&(n=this.expectTemplateBindingKey()),this.consumeStatementTerminator();const i=new Fr(t,this.currentAbsoluteOffset);return new Vr(i,e,n)}consumeStatementTerminator(){this.consumeOptionalCharacter(59)||this.consumeOptionalCharacter(44)}error(t,e=null){this.errors.push(new dr(t,this.input,this.locationText(e),this.location)),this.skip()}locationText(t=null){return null==t&&(t=this.index),t<this.tokens.length?`at column ${this.tokens[t].index+1} in`:"at the end of the expression"}skip(){let t=this.next;for(;!(!(this.index<this.tokens.length)||t.isCharacter(59)||!(this.rparensExpected<=0)&&t.isCharacter(41)||!(this.rbracesExpected<=0)&&t.isCharacter(125)||!(this.rbracketsExpected<=0)&&t.isCharacter(93)||this.context&Xl.Writable&&t.isOperator("="));)this.next.isError()&&this.errors.push(new dr(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next}}class Jl{constructor(){this.errors=[]}visitImplicitReceiver(t,e){}visitThisReceiver(t,e){}visitInterpolation(t,e){}visitLiteralPrimitive(t,e){}visitPropertyRead(t,e){}visitPropertyWrite(t,e){}visitSafePropertyRead(t,e){}visitMethodCall(t,e){}visitSafeMethodCall(t,e){}visitFunctionCall(t,e){}visitLiteralArray(t,e){this.visitAll(t.expressions,e)}visitLiteralMap(t,e){this.visitAll(t.values,e)}visitUnary(t,e){}visitBinary(t,e){}visitPrefixNot(t,e){}visitNonNullAssert(t,e){}visitConditional(t,e){}visitPipe(t,e){this.errors.push("pipes")}visitKeyedRead(t,e){}visitKeyedWrite(t,e){}visitAll(t,e){return t.map(t=>t.visit(this,e))}visitChain(t,e){}visitQuote(t,e){}}class tc extends Hr{constructor(){super(...arguments),this.errors=[]}visitPipe(){this.errors.push("pipes")}}let ec;function nc(){return ec||(ec={},ic(Y.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ic(Y.STYLE,["*|style"]),ic(Y.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),ic(Y.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),ec}function ic(t,e){for(const n of e)ec[n.toLowerCase()]=t}class sc{}const rc=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],ac={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"};class oc extends sc{constructor(){super(),this._schema={},rc.forEach(t=>{const e={},[n,i]=t.split("|"),s=i.split(","),[r,a]=n.split("^");r.split(",").forEach(t=>this._schema[t.toLowerCase()]=e);const o=a&&this._schema[a.toLowerCase()];o&&Object.keys(o).forEach(t=>{e[t]=o[t]}),s.forEach(t=>{if(t.length>0)switch(t[0]){case"*":break;case"!":e[t.substring(1)]="boolean";break;case"#":e[t.substring(1)]="number";break;case"%":e[t.substring(1)]="object";break;default:e[t]="string"}})})}hasProperty(t,e,n){if(n.some(t=>t.name===B.name))return!0;if(t.indexOf("-")>-1){if(a(t)||o(t))return!1;if(n.some(t=>t.name===V.name))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]}hasElement(t,e){if(e.some(t=>t.name===B.name))return!0;if(t.indexOf("-")>-1){if(a(t)||o(t))return!0;if(e.some(t=>t.name===V.name))return!0}return!!this._schema[t.toLowerCase()]}securityContext(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();let i=nc()[t+"|"+e];return i||(i=nc()["*|"+e],i||Y.NONE)}getMappedPropName(t){return ac[t]||t}getDefaultComponentElementName(){return"ng-component"}validateProperty(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event property '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...\nIf '${t}' is a directive input, make sure the directive is imported by the current module.`}}return{error:!1}}validateAttribute(t){if(t.toLowerCase().startsWith("on")){return{error:!0,msg:`Binding to event attribute '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...`}}return{error:!1}}allKnownElementNames(){return Object.keys(this._schema)}normalizeAnimationStyleProperty(t){return t.replace(Pe,(...t)=>t[1].toUpperCase())}normalizeAnimationStyleValue(t,e,n){let i="";const s=n.toString().trim();let r=null;if(function(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}(t)&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&(r=`Please provide a CSS unit value for ${e}:${n}`)}return{error:r,value:s+i}}}const lc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function cc(t,e){const n=new dc(e);return{nodes:Wa(n,t),errors:e.errors.concat(n.errors),styleUrls:n.styleUrls,styles:n.styles,ngContentSelectors:n.ngContentSelectors}}class dc{constructor(t){this.bindingParser=t,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.inI18nBlock=!1}visitElement(t){const e=Yi(t.i18n);e&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",t.sourceSpan),this.inI18nBlock=!0);const n=dl(t);if(n.type===pl.SCRIPT)return null;if(n.type===pl.STYLE){const e=1===(i=t).children.length&&i.children[0]instanceof Ba?i.children[0].value:null;return null!==e&&this.styles.push(e),null}if(n.type===pl.STYLESHEET&&el(n.hrefAttr))return this.styleUrls.push(n.hrefAttr),null;var i;const s=l(t.name),r=[],a=[],o=[],c=[],d=[],p={},u=[],h=[];let m=!1;for(const l of t.attrs){let t=!1;const e=uc(l.name);let n=!1;if(l.i18n&&(p[l.name]=l.i18n),e.startsWith("*")){m&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",l.sourceSpan),n=!0,m=!0;const t=l.value,i=e.substring("*".length),s=[],r=l.valueSpan?l.valueSpan.start.offset:l.sourceSpan.start.offset+l.name.length;this.bindingParser.parseInlineTemplateBinding(i,t,l.sourceSpan,r,[],u,s,!0),h.push(...s.map(t=>new Qn(t.name,t.value,t.sourceSpan,t.keySpan,t.valueSpan)))}else t=this.parseAttribute(s,l,[],r,a,o,c);t||n||d.push(this.visitAttribute(l))}const f=Wa(n.nonBindable?pc:this,t.children);let g;if(n.type===pl.NG_CONTENT){t.children&&!t.children.every(t=>function(t){return t instanceof Ba&&0==t.value.trim().length}(t)||function(t){return t instanceof $a}(t))&&this.reportError("<ng-content> element cannot have content.",t.sourceSpan);const e=n.selectAttr,i=t.attrs.map(t=>this.visitAttribute(t));g=new Xn(e,i,t.sourceSpan,t.i18n),this.ngContentSelectors.push(e)}else if(s){const e=this.extractAttributes(t.name,r,p);g=new Zn(t.name,d,e.bound,a,[],f,c,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}else{const e=this.extractAttributes(t.name,r,p);g=new Kn(t.name,d,e.bound,a,f,c,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,t.i18n)}if(m){const n=this.extractAttributes("ng-template",u,p),i=[];n.literal.forEach(t=>i.push(t)),n.bound.forEach(t=>i.push(t));const r=g instanceof Kn?{attributes:g.attributes,inputs:g.inputs,outputs:g.outputs}:{attributes:[],inputs:[],outputs:[]},a=s&&e?void 0:t.i18n;g=new Zn(g.name,r.attributes,r.inputs,r.outputs,i,[g],[],h,t.sourceSpan,t.startSourceSpan,t.endSourceSpan,a)}return e&&(this.inI18nBlock=!1),g}visitAttribute(t){return new Wn(t.name,t.value,t.sourceSpan,t.valueSpan,t.i18n)}visitText(t){return this._visitTextWithInterpolation(t.value,t.sourceSpan,t.i18n)}visitExpansion(t){if(!t.i18n)return null;if(!Yi(t.i18n))throw new Error(`Invalid type "${t.i18n.constructor}" for "i18n" property of ${t.sourceSpan.toString()}. Expected a "Message"`);const e=t.i18n,n={},i={};return Object.keys(e.placeholders).forEach(t=>{const s=e.placeholders[t];if(t.startsWith("VAR_")){const e=t.trim(),i=this.bindingParser.parseInterpolationExpression(s.text,s.sourceSpan);n[e]=new $n(i,s.sourceSpan)}else i[t]=this._visitTextWithInterpolation(s.text,s.sourceSpan)}),new ti(n,i,t.sourceSpan,e)}visitExpansionCase(t){return null}visitComment(t){return null}extractAttributes(t,e,n){const i=[],s=[];return e.forEach(e=>{const r=n[e.name];if(e.isLiteral)s.push(new Wn(e.name,e.expression.source||"",e.sourceSpan,void 0,r));else{const n=this.bindingParser.createBoundElementProperty(t,e,!0,!1);i.push(Yn.fromBoundElementProperty(n,r))}}),{bound:i,literal:s}}parseAttribute(t,e,n,i,s,r,a){const o=uc(e.name),l=e.value,c=e.sourceSpan,d=e.valueSpan?e.valueSpan.start.offset:c.start.offset;function p(t,n,i){const s=e.name.length-o.length,r=t.start.moveBy(n.length+s),a=r.moveBy(i.length);return new Qs(r,a,r,i)}const u=o.match(lc);let h=!1;if(u){if(h=!0,null!=u[1]){const t=u[7],s=p(c,u[1],t);this.bindingParser.parsePropertyBinding(t,l,!1,c,d,e.valueSpan,n,i,s)}else if(u[2])if(t){const t=u[7],n=p(c,u[2],t);this.parseVariable(t,l,c,n,e.valueSpan,r)}else this.reportError('"let-" is only supported on ng-template elements.',c);else if(u[3]){const t=u[7];this.parseReference(t,l,c,e.valueSpan,a)}else if(u[4]){const t=[],i=u[7];this.bindingParser.parseEvent(i,l,c,e.valueSpan||c,n,t),hc(t,s)}else if(u[5]){const t=u[7],r=p(c,u[5],t);this.bindingParser.parsePropertyBinding(t,l,!1,c,d,e.valueSpan,n,i,r),this.parseAssignmentEvent(t,l,c,e.valueSpan,n,s)}else if(u[6]){const t=p(c,"",o);this.bindingParser.parseLiteralAttr(o,l,c,d,e.valueSpan,n,i,t)}else if(u[8]){const t=p(c,"[(",u[8]);this.bindingParser.parsePropertyBinding(u[8],l,!1,c,d,e.valueSpan,n,i,t),this.parseAssignmentEvent(u[8],l,c,e.valueSpan,n,s)}else if(u[9]){const t=p(c,"[",u[9]);this.bindingParser.parsePropertyBinding(u[9],l,!1,c,d,e.valueSpan,n,i,t)}else if(u[10]){const t=[];this.bindingParser.parseEvent(u[10],l,c,e.valueSpan||c,n,t),hc(t,s)}}else{const t=p(c,"",o);h=this.bindingParser.parsePropertyInterpolation(o,l,c,e.valueSpan,n,i,t)}return h}_visitTextWithInterpolation(t,e,n){const i=xo(t),s=this.bindingParser.parseInterpolation(i,e);return s?new $n(s,e,n):new qn(i,e)}parseVariable(t,e,n,i,s,r){t.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):0===t.length&&this.reportError("Variable does not have a name",n),r.push(new Qn(t,e,n,i,s))}parseReference(t,e,n,i,s){t.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):0===t.length&&this.reportError("Reference does not have a name",n),s.push(new Jn(t,e,n,i))}parseAssignmentEvent(t,e,n,i,s,r){const a=[];this.bindingParser.parseEvent(`${t}Change`,`${e}=$event`,n,i||n,s,a),hc(a,r)}reportError(t,e,n=Js.ERROR){this.errors.push(new ir(e,t,n))}}const pc=new class{visitElement(t){const e=dl(t);if(e.type===pl.SCRIPT||e.type===pl.STYLE||e.type===pl.STYLESHEET)return null;const n=Wa(this,t.children,null);return new Kn(t.name,Wa(this,t.attrs),[],[],n,[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}visitComment(t){return null}visitAttribute(t){return new Wn(t.name,t.value,t.sourceSpan,void 0,t.i18n)}visitText(t){return new qn(t.value,t.sourceSpan)}visitExpansion(t){return null}visitExpansionCase(t){return null}};function uc(t){return/^data-/i.test(t)?t.substring(5):t}function hc(t,e){e.push(...t.map(t=>Gn.fromParsedEvent(t)))}var mc;!function(t){t[t.ELEMENT=0]="ELEMENT",t[t.TEMPLATE=1]="TEMPLATE"}(mc||(mc={}));class fc{constructor(t,e,n=0,i=null,s,r){this.index=t,this.ref=e,this.level=n,this.templateIndex=i,this.meta=s,this.registry=r,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=r||{getUniqueId:Qi(),icus:new Map},this.id=this._registry.getUniqueId()}appendTag(t,e,n,i){if(e.isVoid&&i)return;const s=e.isVoid||!i?e.startName:e.closeName,r={type:t,index:n,ctx:this.id,isVoid:e.isVoid,closed:i};ts(this.placeholders,s,r)}get icus(){return this._registry.icus}get isRoot(){return 0===this.level}get isResolved(){return 0===this._unresolvedCtxCount}getSerializedPlaceholders(){const t=new Map;return this.placeholders.forEach((e,n)=>t.set(n,e.map(yc))),t}appendBinding(t){this.bindings.add(t)}appendIcu(t,e){ts(this._registry.icus,t,e)}appendBoundText(t){es(t,this.bindings.size,this.id).forEach((t,e)=>ts(this.placeholders,e,...t))}appendTemplate(t,e){this.appendTag(mc.TEMPLATE,t,e,!1),this.appendTag(mc.TEMPLATE,t,e,!0),this._unresolvedCtxCount++}appendElement(t,e,n){this.appendTag(mc.ELEMENT,t,e,n)}appendProjection(t,e){this.appendTag(mc.ELEMENT,t,e,!1),this.appendTag(mc.ELEMENT,t,e,!0)}forkChildContext(t,e,n){return new fc(t,this.ref,this.level+1,e,n,this._registry)}reconcileChildContext(t){["start","close"].forEach(e=>{const n=t.meta[`${e}Name`],i=(this.placeholders.get(n)||[]).find(vc(this.id,t.templateIndex));i&&(i.ctx=t.id)});t.placeholders.forEach((e,n)=>{const i=this.placeholders.get(n);if(!i)return void this.placeholders.set(n,e);const s=i.findIndex(vc(t.id,t.templateIndex));if(s>=0){const t=n.startsWith("CLOSE");if(n.endsWith("NG-TEMPLATE"))i.splice(s+(t?0:1),0,...e);else{e[t?e.length-1:0].tmpl=i[s],i.splice(s,1,...e)}}else i.push(...e);this.placeholders.set(n,i)}),this._unresolvedCtxCount--}}function gc(t,e,n,i){return Xi(`${i?"/":""}${t}${e}`,n)}function bc(t,{index:e,ctx:n,isVoid:i},s){return i?gc(t,e,n)+gc(t,e,n,!0):gc(t,e,n,s)}function vc(t,e){return n=>"object"==typeof n&&n.type===mc.TEMPLATE&&n.index===e&&n.ctx===t}function yc(t){const e=(t,e)=>bc("#",t,e),n=(t,e)=>bc("*",t,e);switch(t.type){case mc.ELEMENT:return t.closed?e(t,!0)+(t.tmpl?n(t.tmpl,!0):""):t.tmpl?n(t.tmpl)+e(t)+(t.isVoid?n(t.tmpl,!0):""):e(t);case mc.TEMPLATE:return n(t,t.closed);default:return t}}const _c=new class{visitText(t){return t.value}visitContainer(t){return t.children.map(t=>t.visit(this)).join("")}visitIcu(t){const e=Object.keys(t.cases).map(e=>`${e} {${t.cases[e].visit(this)}}`);return`{${t.expressionPlaceholder}, ${t.type}, ${e.join(" ")}}`}visitTagPlaceholder(t){return t.isVoid?this.formatPh(t.startName):`${this.formatPh(t.startName)}${t.children.map(t=>t.visit(this)).join("")}${this.formatPh(t.closeName)}`}visitPlaceholder(t){return this.formatPh(t.name)}visitIcuPlaceholder(t,e){return this.formatPh(t.name)}formatPh(t){return`{${is(t,!1)}}`}};function wc(t){return t.visit(_c)}const xc={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"};class Cc{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(t,e,n){const i=this._hashTag(t,e,n);if(this._signatureToName[i])return this._signatureToName[i];const s=t.toUpperCase(),r=xc[s]||`TAG_${s}`,a=this._generateUniqueName(n?r:`START_${r}`);return this._signatureToName[i]=a,a}getCloseTagPlaceholderName(t){const e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];const n=t.toUpperCase(),i=xc[n]||`TAG_${n}`,s=this._generateUniqueName(`CLOSE_${i}`);return this._signatureToName[e]=s,s}getPlaceholderName(t,e){const n=t.toUpperCase(),i=`PH: ${n}=${e}`;if(this._signatureToName[i])return this._signatureToName[i];const s=this._generateUniqueName(n);return this._signatureToName[i]=s,s}getUniquePlaceholder(t){return this._generateUniqueName(t.toUpperCase())}_hashTag(t,e,n){return`<${t}`+Object.keys(e).sort().map(t=>` ${t}=${e[t]}`).join("")+(n?"/>":`></${t}>`)}_hashClosingTag(t){return this._hashTag(`/${t}`,{},!1)}_generateUniqueName(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;const e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,`${t}_${e}`}}const Sc=new Kl(new Ll);function kc(t){const e=new Ic(Sc,t);return(t,n,i,s,r)=>e.toI18nMessage(t,n,i,s,r)}function Ec(t,e){return e}class Ic{constructor(t,e){this._expressionParser=t,this._interpolationConfig=e}toI18nMessage(t,e="",n="",i="",s){const r={isIcu:1==t.length&&t[0]instanceof Ha,icuDepth:0,placeholderRegistry:new Cc,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:s||Ec},a=Wa(this,t,r);return new ni(a,r.placeholderToContent,r.placeholderToMessage,e,n,i)}visitElement(t,e){var n;const i=Wa(this,t.children,e),s={};t.attrs.forEach(t=>{s[t.name]=t.value});const r=f(t.name).isVoid,a=e.placeholderRegistry.getStartTagPlaceholderName(t.name,s,r);e.placeholderToContent[a]={text:t.startSourceSpan.toString(),sourceSpan:t.startSourceSpan};let o="";r||(o=e.placeholderRegistry.getCloseTagPlaceholderName(t.name),e.placeholderToContent[o]={text:`</${t.name}>`,sourceSpan:null!==(n=t.endSourceSpan)&&void 0!==n?n:t.sourceSpan});const l=new ai(t.name,s,a,o,i,r,t.sourceSpan,t.startSourceSpan,t.endSourceSpan);return e.visitNodeFn(t,l)}visitAttribute(t,e){const n=this._visitTextWithInterpolation(t.value,t.valueSpan||t.sourceSpan,e,t.i18n);return e.visitNodeFn(t,n)}visitText(t,e){const n=this._visitTextWithInterpolation(t.value,t.sourceSpan,e,t.i18n);return e.visitNodeFn(t,n)}visitComment(t,e){return null}visitExpansion(t,e){e.icuDepth++;const n={},i=new ri(t.switchValue,t.type,n,t.sourceSpan);if(t.cases.forEach(t=>{n[t.value]=new si(t.expression.map(t=>t.visit(this,e)),t.expSourceSpan)}),e.icuDepth--,e.isIcu||e.icuDepth>0){const n=e.placeholderRegistry.getUniquePlaceholder(`VAR_${t.type}`);return i.expressionPlaceholder=n,e.placeholderToContent[n]={text:t.switchValue,sourceSpan:t.switchValueSourceSpan},e.visitNodeFn(t,i)}const s=e.placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString());e.placeholderToMessage[s]=this.toI18nMessage([t],"","","",void 0);const r=new li(i,s,t.sourceSpan);return e.visitNodeFn(t,r)}visitExpansionCase(t,e){throw new Error("Unreachable code")}_visitTextWithInterpolation(t,e,n,i){const{strings:s,expressions:r}=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(0===r.length)return new ii(t,e);const a=[];for(let o=0;o<s.length-1;o++)this._addText(a,s[o],e),this._addPlaceholder(a,n,r[o],e);return this._addText(a,s[s.length-1],e),function(t,e){e instanceof ni&&(!function(t){const e=t.nodes;if(1!==e.length||!(e[0]instanceof si))throw new Error("Unexpected previous i18n message - expected it to consist of only a single `Container` node.")}(e),e=e.nodes[0]);if(e instanceof si){!function(t,e){if(t.length!==e.length)throw new Error("The number of i18n message children changed between first and second pass.");if(t.some((t,n)=>e[n].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}(e.children,t);for(let n=0;n<t.length;n++)t[n].sourceSpan=e.children[n].sourceSpan}}(a,i),new si(a,e)}_addText(t,e,n){if(e.text.length>0){const i=Ac(n,e);t.push(new ii(e.text,i))}}_addPlaceholder(t,e,n,i){const s=Ac(i,n),r=n.text.split(Dc)[2]||"INTERPOLATION";const a=e.placeholderRegistry.getPlaceholderName(r,n.text),o=this._interpolationConfig.start+n.text+this._interpolationConfig.end;e.placeholderToContent[a]={text:o,sourceSpan:s},t.push(new oi(n.text,a,s))}}function Ac(t,{start:e,end:n}){return new Qs(t.fullStart.moveBy(e),t.fullStart.moveBy(n))}const Dc=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;const Tc=(t,e)=>(t instanceof Va&&(e instanceof li&&t.i18n instanceof ni&&(e.previousMessage=t.i18n),t.i18n=e),e);class Oc{constructor(t=Ds,e=!1,n=!1){this.interpolationConfig=t,this.keepI18nAttrs=e,this.enableI18nLegacyMessageIdFormat=n,this.hasI18nMeta=!1,this._createI18nMessage=kc(this.interpolationConfig)}_generateI18nMessage(t,e="",n){const{meaning:i,description:s,customId:r}=this._parseMetadata(e),a=this._createI18nMessage(t,i,s,r,n);return this._setMessageId(a,e),this._setLegacyIds(a,e),a}visitElement(t){if(function(t){return t.attrs.some(t=>Wi(t.name))}(t)){this.hasI18nMeta=!0;const e=[],n={};for(const i of t.attrs)if("i18n"===i.name){const e=t.i18n||i.value,n=this._generateI18nMessage(t.children,e,Tc);n.nodes.length&&(t.i18n=n)}else if(i.name.startsWith("i18n-")){n[i.name.slice("i18n-".length)]=i.value}else e.push(i);if(Object.keys(n).length)for(const t of e){const e=n[t.name];void 0!==e&&t.value&&(t.i18n=this._generateI18nMessage([t],t.i18n||e))}this.keepI18nAttrs||(t.attrs=e)}return Wa(this,t.children,t.i18n),t}visitExpansion(t,e){let n;const i=t.i18n;if(this.hasI18nMeta=!0,i instanceof li){const e=i.name;n=this._generateI18nMessage([t],i);Zi(n).name=e}else n=this._generateI18nMessage([t],e||i);return t.i18n=n,t}visitText(t){return t}visitAttribute(t){return t}visitComment(t){return t}visitExpansionCase(t){return t}_parseMetadata(t){return"string"==typeof t?function(t=""){let e,n,i;if(t=t.trim()){const s=t.indexOf("@@"),r=t.indexOf("|");let a;[a,e]=s>-1?[t.slice(0,s),t.slice(s+2)]:[t,""],[n,i]=r>-1?[a.slice(0,r),a.slice(r+1)]:["",a]}return{customId:e,meaning:n,description:i}}(t):t instanceof ni?t:{}}_setMessageId(t,e){t.id||(t.id=e instanceof ni&&e.id||hi(t))}_setLegacyIds(t,e){if(this.enableI18nLegacyMessageIdFormat)t.legacyIds=[ui(t),mi(t)];else if("string"!=typeof e){const n=e instanceof ni?e:e instanceof li?e.previousMessage:void 0;t.legacyIds=n?n.legacyIds:[]}}}function Pc(t){const e=[];return t.description&&e.push({tagName:"desc",text:t.description}),t.meaning&&e.push({tagName:"meaning",text:t.meaning}),0==e.length?null:function(t=[]){return new ee(t)}(e)}function Nc(t,e,n,i){const s=[De(function(t){return t.nodes.map(t=>t.visit(Mc,null)).join("")}(e))];Object.keys(i).length&&s.push(rr(i,!0));const r=n.set(_e("goog.getMsg").callFn(s)).toConstDecl(),a=Pc(e);null!==a&&r.addLeadingComment(a);return[r,new re(t.set(n))]}const Mc=new class{formatPh(t){return`{$${is(t)}}`}visitText(t){return t.value}visitContainer(t){return t.children.map(t=>t.visit(this)).join("")}visitIcu(t){return wc(t)}visitTagPlaceholder(t){return t.isVoid?this.formatPh(t.startName):`${this.formatPh(t.startName)}${t.children.map(t=>t.visit(this)).join("")}${this.formatPh(t.closeName)}`}visitPlaceholder(t){return this.formatPh(t.name)}visitIcuPlaceholder(t,e){return this.formatPh(t.name)}};function Rc(t,e,n){const{messageParts:i,placeHolders:s}=function(t){const e=[];return t.nodes.forEach(t=>t.visit(Lc,e)),function(t){const e=[],n=[];t[0]instanceof Tt&&e.push(Fc(t[0].sourceSpan.start));for(let i=0;i<t.length;i++){const s=t[i];s instanceof Dt?e.push(s):(n.push(s),t[i-1]instanceof Tt&&e.push(Fc(t[i-1].sourceSpan.end)))}t[t.length-1]instanceof Tt&&e.push(Fc(t[t.length-1].sourceSpan.end));return{messageParts:e,placeHolders:n}}(e)}(e),r=function(t){const e=t.nodes[0],n=t.nodes[t.nodes.length-1];return new Qs(e.sourceSpan.start,n.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}(e),a=s.map(t=>n[t.text]),o=function(t,e,n,i,s){return new Ot(t,e,n,i,s)}(e,i,s,a,r),l=t.set(o);return[new re(l)]}const Lc=new class{visitText(t,e){e[e.length-1]instanceof Dt?e[e.length-1].text+=t.value:e.push(new Dt(t.value,t.sourceSpan))}visitContainer(t,e){t.children.forEach(t=>t.visit(this,e))}visitIcu(t,e){e.push(new Dt(wc(t),t.sourceSpan))}visitTagPlaceholder(t,e){var n,i;e.push(this.createPlaceholderPiece(t.startName,null!==(n=t.startSourceSpan)&&void 0!==n?n:t.sourceSpan)),t.isVoid||(t.children.forEach(t=>t.visit(this,e)),e.push(this.createPlaceholderPiece(t.closeName,null!==(i=t.endSourceSpan)&&void 0!==i?i:t.sourceSpan)))}visitPlaceholder(t,e){e.push(this.createPlaceholderPiece(t.name,t.sourceSpan))}visitIcuPlaceholder(t,e){e.push(this.createPlaceholderPiece(t.name,t.sourceSpan))}createPlaceholderPiece(t,e){return new Tt(is(t,!1),e)}};function Fc(t){return new Dt("",new Qs(t,t))}const jc=new Set(["$event"]),Vc=new Map([["window",Vn.resolveWindow],["document",Vn.resolveDocument],["body",Vn.resolveBody]]),Bc=[" ","\n","\r","\t"];function Hc(t,e){return Ae(_e("rf").bitwiseAnd(De(t),null,!1),e)}function zc(t,e=null,n=null){const{type:i,name:s,target:r,phase:a,handler:o}=t;if(r&&!Vc.has(r))throw new Error(`Unexpected global target '${r}' defined for '${s}' event.\n        Supported list of global targets: ${Array.from(Vc.keys())}.`);const l=new Set,c=null===n||0===n.bindingLevel?_e("ctx"):n.getOrCreateSharedContextVar(0),d=Gr(n,c,o,"b",()=>ze("Unexpected interpolation"),t.handlerSpan,l,jc),p=[];n&&(p.push(...n.restoreViewStatement()),p.push(...n.variableDeclarations())),p.push(...d.render3Stmts);const u=1===i?function(t,e){return`@${t}.${e}`}(s,a):s,h=e&&bn(e),m=[];l.has("$event")&&m.push(new Ht("$event",rt));const f=Ie(m,p,at,null,h),g=[De(u),f];return r&&g.push(De(!1),we(Vc.get(r))),g}class Uc{constructor(t,e,n=0,i,s,r,a,o,l,c,d,p,u,h,m={prepareStatements:[],constExpressions:[]}){this.constantPool=t,this.level=n,this.contextName=i,this.i18nContext=s,this.templateIndex=r,this.templateName=a,this.directiveMatcher=o,this.directives=l,this.pipeTypeByName=c,this.pipes=d,this._namespace=p,this.i18nUseExternalIds=h,this._constants=m,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=ls,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=cs,this.visitVariable=cs,this.visitTextAttribute=cs,this.visitBoundAttribute=cs,this.visitBoundEvent=cs,this._bindingScope=e.nestedScope(n),this.fileBasedI18nSuffix=u.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new qc(t,()=>this.allocateDataSlot(),t=>this.allocatePureFunctionSlots(t),(t,e,n,i)=>{const s=c.get(t);s&&this.pipes.add(s),this._bindingScope.set(this.level,e,i),this.creationInstruction(null,Vn.pipe,[De(n),De(t)])})}buildTemplateFunction(t,e,n=0,i){this._ngContentSelectorsOffset=n,this._namespace!==Vn.namespaceHTML&&this.creationInstruction(null,this._namespace),e.forEach(t=>this.registerContextVariables(t));const s=this.i18nContext||Yi(i)&&!Gi(i)&&!(1===(r=t).length&&r[0]instanceof Kn&&t[0].i18n===i);var r;const a=rd(t);if(s&&this.i18nStart(null,i,a),ei(this,t),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(t=>t()),0===this.level&&this._ngContentReservedSlots.length){const t=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){const e=this._ngContentReservedSlots.map(t=>"*"!==t?X(t):t);t.push(this.constantPool.getConstLiteral(ds(e),!0))}this.creationInstruction(null,Vn.projectionDef,t,!0)}s&&this.i18nEnd(null,a);const o=this._creationCodeFns.map(t=>t()),l=this._updateCodeFns.map(t=>t()),c=this._bindingScope.viewSnapshotStatements(),d=this._bindingScope.variableDeclarations().concat(this._tempVariables),p=o.length>0?[Hc(1,c.concat(o))]:[],u=l.length>0?[Hc(2,d.concat(l))]:[];return Ie([new Ht("rf",lt),new Ht("ctx",null)],[...this._prefixCode,...p,...u],at,null,this.templateName)}getLocal(t){return this._bindingScope.get(t)}notifyImplicitReceiverUse(){this._bindingScope.notifyImplicitReceiverUse()}i18nTranslate(t,e={},n,i){const s=n||this.i18nGenerateMainBlockVar(),r=function(t,e,n,i={},s){const r=[rs(e),Ae(ad(),Nc(e,t,n,ns(i,!0)),Rc(e,t,ns(i,!1)))];s&&r.push(new re(e.set(s(e))));return r}(t,s,this.i18nGenerateClosureVar(t.id),e,i);return this._constants.prepareStatements.push(...r),s}registerContextVariables(t){const e=this._bindingScope.freshReferenceName(),n=this.level,i=_e(t.name+e);this._bindingScope.set(n,t.name,i,1,(e,s)=>{let r;if(e.bindingLevel===n)r=_e("ctx");else{const t=e.getSharedContextName(n);r=t||Gc(s)}return[i.set(r.prop(t.value||"$implicit")).toConstDecl()]})}i18nAppendBindings(t){t.length>0&&t.forEach(t=>this.i18n.appendBinding(t))}i18nBindProps(t){const e={};return Object.keys(t).forEach(n=>{const i=t[n];if(i instanceof qn)e[n]=De(i.value);else{const t=i.value.visit(this._valueConverter);if(this.allocateBindingSlots(t),t instanceof Dr){const{strings:i,expressions:s}=t,{id:r,bindings:a}=this.i18n,o=function(t,e=0,n=0){if(!t.length)return"";let i="";const s=t.length-1;for(let r=0;r<s;r++)i+=`${t[r]}${Xi(e+r,n)}`;return i+=t[s],i}(i,a.size,r);this.i18nAppendBindings(s),e[n]=De(o)}}}),e}i18nGenerateMainBlockVar(){return _e(this.constantPool.uniqueName("i18n_"))}i18nGenerateClosureVar(t){let e;const n=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){const i=ss("EXTERNAL_"),s=this.constantPool.uniqueName(n);e=`${i}${bn(t)}$$${s}`}else{const t=ss(n);e=this.constantPool.uniqueName(t)}return _e(e)}i18nUpdateRef(t){const{icus:e,meta:n,isRoot:i,isResolved:s,isEmitted:r}=t;if(i&&s&&!r&&!Gi(n)){t.isEmitted=!0;const i=t.getSerializedPlaceholders();let s={},r=i.size?Ji(i):{};e.size&&e.forEach((t,e)=>{if(1===t.length)r[e]=t[0];else{const n=Xi(`I18N_EXP_${e}`);r[e]=De(n),s[e]=ke(t)}});let a;(Array.from(i.values()).some(t=>t.length>1)||Object.keys(s).length)&&(a=t=>{const e=[t];return Object.keys(s).length&&e.push(rr(s,!0)),Yc(null,Vn.i18nPostprocess,e)}),this.i18nTranslate(n,r,t.ref,a)}}i18nStart(t=null,e,n){const i=this.allocateDataSlot();this.i18n=this.i18nContext?this.i18nContext.forkChildContext(i,this.templateIndex,e):new fc(i,this.i18nGenerateMainBlockVar(),0,this.templateIndex,e);const{id:s,ref:r}=this.i18n,a=[De(i),this.addToConsts(r)];s>0&&a.push(De(s)),this.creationInstruction(t,n?Vn.i18n:Vn.i18nStart,a)}i18nEnd(t=null,e){if(!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);const{index:n,bindings:i}=this.i18n;if(i.size){const e=[];i.forEach(n=>{e.push({sourceSpan:t,value:()=>this.convertPropertyBinding(n)})}),this.updateInstructionChainWithAdvance(this.getConstCount()-1,Vn.i18nExp,e),this.updateInstruction(t,Vn.i18nApply,[De(n)])}e||this.creationInstruction(t,Vn.i18nEnd),this.i18n=null}i18nAttributesInstruction(t,e,n){let i=!1;const s=[],r=[];if(e.forEach(t=>{const e=t.i18n,a=t.value.visit(this._valueConverter);if(this.allocateBindingSlots(a),a instanceof Dr){const o=Ji(es(e));s.push(De(t.name),this.i18nTranslate(e,o)),a.expressions.forEach(t=>{i=!0,r.push({sourceSpan:n,value:()=>this.convertPropertyBinding(t)})})}}),r.length>0&&this.updateInstructionChainWithAdvance(t,Vn.i18nExp,r),s.length>0){const t=De(this.allocateDataSlot()),e=this.addToConsts(ke(s));this.creationInstruction(n,Vn.i18nAttributes,[t,e]),i&&this.updateInstruction(n,Vn.i18nApply,[t])}}getNamespaceInstruction(t){switch(t){case"math":return Vn.namespaceMathML;case"svg":return Vn.namespaceSVG;default:return Vn.namespaceHTML}}addNamespaceInstruction(t,e){this._namespace=t,this.creationInstruction(e.startSourceSpan,t)}interpolatedUpdateInstruction(t,e,n,i,s,r){this.updateInstructionWithAdvance(e,i.sourceSpan,t,()=>[De(n),...this.getUpdateInstructionArguments(s),...r])}visitContent(t){const e=this.allocateDataSlot(),n=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,i=[De(e)];this._ngContentReservedSlots.push(t.selector);const s=t.attributes.filter(t=>"select"!==t.name.toLowerCase()),r=this.getAttributeExpressions(t.name,s,[],[]);r.length>0?i.push(De(n),ke(r)):0!==n&&i.push(De(n)),this.creationInstruction(t.sourceSpan,Vn.projection,i),this.i18n&&this.i18n.appendProjection(t.i18n,e)}visitElement(t){var e,n;const i=this.allocateDataSlot(),s=new Tl(null);let o=!1;const l=Yi(t.i18n)&&!Gi(t.i18n),c=[],[d,p]=r(t.name),u=a(t.name);for(const r of t.attributes){const{name:t,value:e}=r;"ngNonBindable"===t?o=!0:"style"===t?s.registerStyleAttr(e):"class"===t?s.registerClassAttr(e):c.push(r)}this.matchDirectives(t.name,t);const h=[De(i)];u||h.push(De(p));const m=[],f=[];t.inputs.forEach(t=>{s.registerBoundInput(t)||(0===t.type&&t.i18n?f.push(t):m.push(t))});const g=this.getAttributeExpressions(t.name,c,m,t.outputs,s,[],f);h.push(this.addAttrsToConsts(g));const b=this.prepareRefsArray(t.references);h.push(this.addToConsts(b));const v=this._namespace,y=this.getNamespaceInstruction(d);y!==v&&this.addNamespaceInstruction(y,t),this.i18n&&this.i18n.appendElement(t.i18n,i);const _=!l&&this.i18n?!rd(t.children):t.children.length>0,w=!s.hasBindingsWithPipes&&0===t.outputs.length&&0===f.length&&!_,x=!w&&rd(t.children);if(w)this.creationInstruction(t.sourceSpan,u?Vn.elementContainer:Vn.element,us(h));else{if(this.creationInstruction(t.startSourceSpan,u?Vn.elementContainerStart:Vn.elementStart,us(h)),o&&this.creationInstruction(t.startSourceSpan,Vn.disableBindings),f.length>0&&this.i18nAttributesInstruction(i,f,null!==(e=t.startSourceSpan)&&void 0!==e?e:t.sourceSpan),t.outputs.length>0){const e=t.outputs.map(e=>({sourceSpan:e.sourceSpan,params:this.prepareListenerParameter(t.name,e,i)}));this.creationInstructionChain(Vn.listener,e)}l&&this.i18nStart(t.startSourceSpan,t.i18n,x)}const C=s.buildUpdateLevelInstructions(this._valueConverter),S=C.length-1;for(let r=0;r<=S;r++){const t=C[r];this._bindingSlots+=this.processStylingUpdateInstruction(i,t)}const k=De(void 0),E=[],I=[];if(m.forEach(t=>{const e=t.type;if(4===e){const e=t.value.visit(this._valueConverter),n=!(e instanceof Er)||!!e.value;this.allocateBindingSlots(e),E.push({name:zn(t.name),sourceSpan:t.sourceSpan,value:()=>n?this.convertPropertyBinding(e):k})}else{if(t.i18n)return;const n=t.value.visit(this._valueConverter);if(void 0!==n){const s=[],[a,o]=r(t.name),l=1===e,c=nd(t.securityContext,l);if(c&&s.push(c),a){const t=De(a);c?s.push(t):s.push(De(null),t)}if(this.allocateBindingSlots(n),0===e)n instanceof Dr?this.interpolatedUpdateInstruction(Jc(n),i,o,t,n,s):E.push({name:o,sourceSpan:t.sourceSpan,value:()=>this.convertPropertyBinding(n),params:s});else if(1===e)if(n instanceof Dr&&bs(n)>1)this.interpolatedUpdateInstruction(function(t){switch(bs(t)){case 3:return Vn.attributeInterpolate1;case 5:return Vn.attributeInterpolate2;case 7:return Vn.attributeInterpolate3;case 9:return Vn.attributeInterpolate4;case 11:return Vn.attributeInterpolate5;case 13:return Vn.attributeInterpolate6;case 15:return Vn.attributeInterpolate7;case 17:return Vn.attributeInterpolate8;default:return Vn.attributeInterpolateV}}(n),i,o,t,n,s);else{const e=n instanceof Dr?n.expressions[0]:n;I.push({name:o,sourceSpan:t.sourceSpan,value:()=>this.convertPropertyBinding(e),params:s})}else this.updateInstructionWithAdvance(i,t.sourceSpan,Vn.classProp,()=>[De(i),De(o),this.convertPropertyBinding(n),...s])}}}),E.length>0&&this.updateInstructionChainWithAdvance(i,Vn.property,E),I.length>0&&this.updateInstructionChainWithAdvance(i,Vn.attribute,I),ei(this,t.children),!l&&this.i18n&&this.i18n.appendElement(t.i18n,i,!0),!w){const e=null!==(n=t.endSourceSpan)&&void 0!==n?n:t.sourceSpan;l&&this.i18nEnd(e,x),o&&this.creationInstruction(e,Vn.enableBindings),this.creationInstruction(e,u?Vn.elementContainerEnd:Vn.elementEnd)}}visitTemplate(t){var e;const n=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(t.i18n,n);const i=bn(t.tagName||""),s=`${this.contextName}${i?"_"+i:""}_${n}`,a=`${s}_Template`,o=[De(n),_e(a),De(t.tagName?r(t.tagName)[1]:t.tagName)];this.matchDirectives("ng-template",t);const l=this.getAttributeExpressions("ng-template",t.attributes,t.inputs,t.outputs,void 0,t.templateAttrs);if(o.push(this.addAttrsToConsts(l)),t.references&&t.references.length){const e=this.prepareRefsArray(t.references);o.push(this.addToConsts(e)),o.push(we(Vn.templateRefExtractor))}const c=new Uc(this.constantPool,this._bindingScope,this.level+1,s,this.i18n,n,a,this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(this._nestedTemplateFns.push(()=>{const e=c.buildTemplateFunction(t.children,t.variables,this._ngContentReservedSlots.length+this._ngContentSelectorsOffset,t.i18n);this.constantPool.statements.push(e.toDeclStmt(a)),c._ngContentReservedSlots.length&&this._ngContentReservedSlots.push(...c._ngContentReservedSlots)}),this.creationInstruction(t.sourceSpan,Vn.templateCreate,()=>(o.splice(2,0,De(c.getConstCount()),De(c.getVarCount())),us(o))),this.templatePropertyBindings(n,t.templateAttrs),"ng-template"===t.tagName){const[i,s]=function(t,e){const n=[],i=[];for(const s of t)(e(s)?n:i).push(s);return[n,i]}(t.inputs,Ki);if(i.length>0&&this.i18nAttributesInstruction(n,i,null!==(e=t.startSourceSpan)&&void 0!==e?e:t.sourceSpan),s.length>0&&this.templatePropertyBindings(n,s),t.outputs.length>0){const e=t.outputs.map(t=>({sourceSpan:t.sourceSpan,params:this.prepareListenerParameter("ng_template",t,n)}));this.creationInstructionChain(Vn.listener,e)}}}visitBoundText(t){if(this.i18n){const e=t.value.visit(this._valueConverter);return this.allocateBindingSlots(e),void(e instanceof Dr&&(this.i18n.appendBoundText(t.i18n),this.i18nAppendBindings(e.expressions)))}const e=this.allocateDataSlot();this.creationInstruction(t.sourceSpan,Vn.text,[De(e)]);const n=t.value.visit(this._valueConverter);this.allocateBindingSlots(n),n instanceof Dr?this.updateInstructionWithAdvance(e,t.sourceSpan,function(t){switch(bs(t)){case 1:return Vn.textInterpolate;case 3:return Vn.textInterpolate1;case 5:return Vn.textInterpolate2;case 7:return Vn.textInterpolate3;case 9:return Vn.textInterpolate4;case 11:return Vn.textInterpolate5;case 13:return Vn.textInterpolate6;case 15:return Vn.textInterpolate7;case 17:return Vn.textInterpolate8;default:return Vn.textInterpolateV}}(n),()=>this.getUpdateInstructionArguments(n)):ze("Text nodes should be interpolated and never bound directly.")}visitText(t){this.i18n||this.creationInstruction(t.sourceSpan,Vn.text,[De(this.allocateDataSlot()),De(t.value)])}visitIcu(t){let e=!1;this.i18n||(e=!0,this.i18nStart(null,t.i18n,!0));const n=this.i18n,i=this.i18nBindProps(t.vars),s=this.i18nBindProps(t.placeholders),r=t.i18n,a=t=>{const e=ns(Object.assign(Object.assign({},i),s),!1);return Yc(null,Vn.i18nPostprocess,[t,rr(e,!0)])};if(Gi(n.meta))this.i18nTranslate(r,{},n.ref,a);else{const t=this.i18nTranslate(r,{},void 0,a);n.appendIcu(Zi(r).name,t)}return e&&this.i18nEnd(null,!0),null}allocateDataSlot(){return this._dataIndex++}getConstCount(){return this._dataIndex}getVarCount(){return this._pureFunctionSlots}getConsts(){return this._constants}getNgContentSelectors(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(ds(this._ngContentReservedSlots),!0):null}bindingContext(){return""+this._bindingContext++}templatePropertyBindings(t,e){const n=[];e.forEach(e=>{if(e instanceof Yn){const i=e.value.visit(this._valueConverter);if(void 0!==i)if(this.allocateBindingSlots(i),i instanceof Dr){const n=[];this.interpolatedUpdateInstruction(Jc(i),t,e.name,e,i,n)}else n.push({name:e.name,sourceSpan:e.sourceSpan,value:()=>this.convertPropertyBinding(i)})}}),n.length>0&&this.updateInstructionChainWithAdvance(t,Vn.property,n)}instructionFn(t,e,n,i,s=!1){t[s?"unshift":"push"](()=>{const t=Array.isArray(i)?i:i();return Yc(e,n,t).toStmt()})}processStylingUpdateInstruction(t,e){let n=0;if(e){const i=[];e.calls.forEach(t=>{n+=t.allocateBindingSlots,i.push({sourceSpan:t.sourceSpan,value:()=>t.params(e=>t.supportsInterpolation&&e instanceof Dr?this.getUpdateInstructionArguments(e):this.convertPropertyBinding(e))})}),this.updateInstructionChainWithAdvance(t,e.reference,i)}return n}creationInstruction(t,e,n,i){this.instructionFn(this._creationCodeFns,t,e,n||[],i)}creationInstructionChain(t,e){const n=e.length?e[0].sourceSpan:null;this._creationCodeFns.push(()=>gs(t,e.map(t=>t.params()),n).toStmt())}updateInstructionWithAdvance(t,e,n,i){this.addAdvanceInstructionIfNecessary(t,e),this.updateInstruction(e,n,i)}updateInstruction(t,e,n){this.instructionFn(this._updateCodeFns,t,e,n||[])}updateInstructionChain(t,e){const n=e.length?e[0].sourceSpan:null;this._updateCodeFns.push(()=>{const i=e.map(t=>{const e=t.value(),n=Array.isArray(e)?e:[e];return t.params&&n.push(...t.params),t.name&&n.unshift(De(t.name)),n});return gs(t,i,n).toStmt()})}updateInstructionChainWithAdvance(t,e,n){this.addAdvanceInstructionIfNecessary(t,n.length?n[0].sourceSpan:null),this.updateInstructionChain(e,n)}addAdvanceInstructionIfNecessary(t,e){if(t!==this._currentIndex){const n=t-this._currentIndex;if(n<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,e,Vn.advance,[De(n)]),this._currentIndex=t}}allocatePureFunctionSlots(t){const e=this._pureFunctionSlots;return this._pureFunctionSlots+=t,e}allocateBindingSlots(t){this._bindingSlots+=t instanceof Dr?t.expressions.length:1}getImplicitReceiverExpr(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?_e("ctx"):this._bindingScope.getOrCreateSharedContextVar(0)}convertPropertyBinding(t){const e=Xr(this,this.getImplicitReceiverExpr(),t,this.bindingContext(),er.Expression,()=>ze("Unexpected interpolation")),n=e.currValExpr;return this._tempVariables.push(...e.stmts),n}getUpdateInstructionArguments(t){const{args:e,stmts:n}=function(t,e,n,i){const s=new sa(t,e,i,void 0),r=n.visit(s,nr.Expression);s.usesImplicitReceiver&&t.notifyImplicitReceiverUse();const a=Qr(s,i);let o=r.args.slice(1);if(n instanceof Dr){const t=n.strings;3===o.length&&""===t[0]&&""===t[1]?o=[o[1]]:o.length>=19&&(o=[ke(o)])}return{stmts:a,args:o}}(this,this.getImplicitReceiverExpr(),t,this.bindingContext());return this._tempVariables.push(...n),e}matchDirectives(t,e){if(this.directiveMatcher){const n=Qc(t,fs(e));this.directiveMatcher.match(n,(t,e)=>{this.directives.add(e)})}}getAttributeExpressions(t,e,n,i,s,r=[],a=[]){const o=new Set,l=[];let c;for(const p of e)"ngProjectAs"===p.name&&(c=p),p.i18n?l.push(De(p.name),this.i18nTranslate(p.i18n)):l.push(...Zc(p.name),id(t,p));function d(t,e){"string"==typeof t?o.has(t)||(l.push(...Zc(t)),void 0!==e&&l.push(e),o.add(t)):l.push(De(t))}if(c&&l.push(...function(t){const e=X(t.value)[0];return[De(5),ds(e)]}(c)),s&&s.populateInitialStylingAttrs(l),n.length||i.length){const t=l.length;for(let e=0;e<n.length;e++){const t=n[e];4!==t.type&&1!==t.type&&d(t.name)}for(let e=0;e<i.length;e++){const t=i[e];1!==t.type&&d(t.name)}l.length!==t&&l.splice(t,0,De(3))}return r.length&&(l.push(De(4)),r.forEach(t=>d(t.name))),a.length&&(l.push(De(6)),a.forEach(t=>d(t.name))),l}addToConsts(t){if(Te(t))return Qt;const e=this._constants.constExpressions;for(let n=0;n<e.length;n++)if(e[n].isEquivalent(t))return De(n);return De(e.push(t)-1)}addAttrsToConsts(t){return t.length>0?this.addToConsts(ke(t)):Qt}prepareRefsArray(t){if(!t||0===t.length)return Qt;return ds(Rn(t.map(t=>{const e=this.allocateDataSlot(),n=this._bindingScope.freshReferenceName(),i=this.level,s=_e(n);return this._bindingScope.set(i,t.name,s,0,(t,n)=>{const i=n>0?[Gc(n).toStmt()]:[],r=s.set(we(Vn.reference).callFn([De(e)]));return i.concat(r.toConstDecl())},!0),[t.name,t.value]})))}prepareListenerParameter(t,e,n){return()=>{const i=e.name,s=1===e.type?Un(i,e.phase):bn(i),r=`${this.templateName}_${t}_${s}_${n}_listener`,a=this._bindingScope.nestedScope(this._bindingScope.bindingLevel,jc);return zc(e,r,a)}}}class qc extends class{visitImplicitReceiver(t,e){return t}visitThisReceiver(t,e){return t}visitInterpolation(t,e){const n=this.visitAll(t.expressions);return n!==t.expressions?new Dr(t.span,t.sourceSpan,t.strings,n):t}visitLiteralPrimitive(t,e){return t}visitPropertyRead(t,e){const n=t.receiver.visit(this);return n!==t.receiver?new _r(t.span,t.sourceSpan,t.nameSpan,n,t.name):t}visitPropertyWrite(t,e){const n=t.receiver.visit(this),i=t.value.visit(this);return n!==t.receiver||i!==t.value?new wr(t.span,t.sourceSpan,t.nameSpan,n,t.name,i):t}visitSafePropertyRead(t,e){const n=t.receiver.visit(this);return n!==t.receiver?new xr(t.span,t.sourceSpan,t.nameSpan,n,t.name):t}visitMethodCall(t,e){const n=t.receiver.visit(this),i=this.visitAll(t.args);return n!==t.receiver||i!==t.args?new Mr(t.span,t.sourceSpan,t.nameSpan,n,t.name,i):t}visitSafeMethodCall(t,e){const n=t.receiver.visit(this),i=this.visitAll(t.args);return n!==t.receiver||i!==t.args?new Rr(t.span,t.sourceSpan,t.nameSpan,n,t.name,i):t}visitFunctionCall(t,e){const n=t.target&&t.target.visit(this),i=this.visitAll(t.args);return n!==t.target||i!==t.args?new Lr(t.span,t.sourceSpan,n,i):t}visitLiteralArray(t,e){const n=this.visitAll(t.expressions);return n!==t.expressions?new Ir(t.span,t.sourceSpan,n):t}visitLiteralMap(t,e){const n=this.visitAll(t.values);return n!==t.values?new Ar(t.span,t.sourceSpan,t.keys,n):t}visitUnary(t,e){const n=t.expr.visit(this);if(n!==t.expr)switch(t.operator){case"+":return Or.createPlus(t.span,t.sourceSpan,n);case"-":return Or.createMinus(t.span,t.sourceSpan,n);default:throw new Error(`Unknown unary operator ${t.operator}`)}return t}visitBinary(t,e){const n=t.left.visit(this),i=t.right.visit(this);return n!==t.left||i!==t.right?new Tr(t.span,t.sourceSpan,t.operation,n,i):t}visitPrefixNot(t,e){const n=t.expression.visit(this);return n!==t.expression?new Pr(t.span,t.sourceSpan,n):t}visitNonNullAssert(t,e){const n=t.expression.visit(this);return n!==t.expression?new Nr(t.span,t.sourceSpan,n):t}visitConditional(t,e){const n=t.condition.visit(this),i=t.trueExp.visit(this),s=t.falseExp.visit(this);return n!==t.condition||i!==t.trueExp||s!==t.falseExp?new yr(t.span,t.sourceSpan,n,i,s):t}visitPipe(t,e){const n=t.exp.visit(this),i=this.visitAll(t.args);return n!==t.exp||i!==t.args?new kr(t.span,t.sourceSpan,n,t.name,i,t.nameSpan):t}visitKeyedRead(t,e){const n=t.obj.visit(this),i=t.key.visit(this);return n!==t.obj||i!==t.key?new Cr(t.span,t.sourceSpan,n,i):t}visitKeyedWrite(t,e){const n=t.obj.visit(this),i=t.key.visit(this),s=t.value.visit(this);return n!==t.obj||i!==t.key||s!==t.value?new Sr(t.span,t.sourceSpan,n,i,s):t}visitAll(t){const e=[];let n=!1;for(let i=0;i<t.length;++i){const s=t[i],r=s.visit(this);e[i]=r,n=n||r!==s}return n?e:t}visitChain(t,e){const n=this.visitAll(t.expressions);return n!==t.expressions?new vr(t.span,t.sourceSpan,n):t}visitQuote(t,e){return t}}{constructor(t,e,n,i){super(),this.constantPool=t,this.allocateSlot=e,this.allocatePureFunctionSlots=n,this.definePipe=i,this._pipeBindExprs=[]}visitPipe(t,e){const n=this.allocateSlot(),i=`PIPE:${n}`,s=this.allocatePureFunctionSlots(2+t.args.length),r=new _r(t.span,t.sourceSpan,t.nameSpan,new gr(t.span,t.sourceSpan),i),{identifier:a,isVarLength:o}=function(t){const e=$c[t.length];return{identifier:e||Vn.pipeBindV,isVarLength:!e}}(t.args);this.definePipe(t.name,i,n,we(a));const l=[t.exp,...t.args],c=o?this.visitAll([new Ir(t.span,t.sourceSpan,l)]):this.visitAll(l),d=new Lr(t.span,t.sourceSpan,r,[new Er(t.span,t.sourceSpan,n),new Er(t.span,t.sourceSpan,s),...c]);return this._pipeBindExprs.push(d),d}updatePipeSlotOffsets(t){this._pipeBindExprs.forEach(e=>{e.args[1].value+=t})}visitLiteralArray(t,e){return new oa(t.span,t.sourceSpan,this.visitAll(t.expressions),t=>{const e=ke(t);return Kc(this.constantPool,e,this.allocatePureFunctionSlots)})}visitLiteralMap(t,e){return new oa(t.span,t.sourceSpan,this.visitAll(t.values),e=>{const n=Ee(e.map((e,n)=>({key:t.keys[n].key,value:e,quoted:t.keys[n].quoted})));return Kc(this.constantPool,n,this.allocatePureFunctionSlots)})}}const $c=[Vn.pipeBind1,Vn.pipeBind2,Vn.pipeBind3,Vn.pipeBind4];const Wc=[Vn.pureFunction0,Vn.pureFunction1,Vn.pureFunction2,Vn.pureFunction3,Vn.pureFunction4,Vn.pureFunction5,Vn.pureFunction6,Vn.pureFunction7,Vn.pureFunction8];function Yc(t,e,n){return we(e,null,t).callFn(n,t)}function Gc(t){return we(Vn.nextContext).callFn(t>1?[De(t)]:[])}function Kc(t,e,n){const{literalFactory:i,literalFactoryArguments:s}=t.getLiteralFactory(e),r=n(1+s.length),{identifier:a,isVarLength:o}=function(t){const e=Wc[t.length];return{identifier:e||Vn.pureFunctionV,isVarLength:!e}}(s),l=[De(r),i];return o?l.push(ke(s)):l.push(...s),we(a).callFn(l)}function Zc(t){const[e,n]=r(t),i=De(n);return e?[De(0),De(e),i]:[i]}class Xc{constructor(t=0,e=null,n){if(this.bindingLevel=t,this.parent=e,this.globals=n,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null,void 0!==n)for(const i of n)this.set(0,i,_e(i))}static createRootScope(){return new Xc}get(t){let e=this;for(;e;){let n=e.map.get(t);if(null!=n)return e!==this&&(n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef},this.map.set(t,n),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel,n.localRef)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;e=e.parent}return 0===this.bindingLevel?null:this.getComponentProperty(t)}set(t,e,n,i=0,s,r){if(this.map.has(e)){if(r)return this;ze(`The name ${e} is already defined in scope to be ${this.map.get(e)}`)}return this.map.set(e,{retrievalLevel:t,lhs:n,declare:!1,declareLocalCallback:s,priority:i,localRef:r||!1}),this}getLocal(t){return this.get(t)}notifyImplicitReceiverUse(){0!==this.bindingLevel&&(this.map.get("$$shared_ctx$$0").declare=!0)}nestedScope(t,e){const n=new Xc(t,this,e);return t>0&&n.generateSharedContextVar(0),n}getOrCreateSharedContextVar(t){const e="$$shared_ctx$$"+t;return this.map.has(e)||this.generateSharedContextVar(t),this.map.get(e).lhs}getSharedContextName(t){const e=this.map.get("$$shared_ctx$$"+t);return e&&e.declare?e.lhs:null}maybeGenerateSharedContextVar(t){if(1===t.priority&&t.retrievalLevel<this.bindingLevel){const e=this.map.get("$$shared_ctx$$"+t.retrievalLevel);e?e.declare=!0:this.generateSharedContextVar(t.retrievalLevel)}}generateSharedContextVar(t){const e=_e("ctx"+this.freshReferenceName());this.map.set("$$shared_ctx$$"+t,{retrievalLevel:t,lhs:e,declareLocalCallback:(t,n)=>[e.set(Gc(n)).toConstDecl()],declare:!1,priority:2,localRef:!1})}getComponentProperty(t){const e=this.map.get("$$shared_ctx$$0");return e.declare=!0,this.maybeRestoreView(0,!1),e.lhs.prop(t)}maybeRestoreView(t,e){this.isListenerScope()&&(t<this.bindingLevel||e)&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=_e(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)}restoreViewStatement(){return this.restoreViewVariable?[Yc(null,Vn.restoreView,[this.restoreViewVariable]).toStmt()]:[]}viewSnapshotStatements(){const t=Yc(null,Vn.getCurrentView,[]);return this.restoreViewVariable?[this.restoreViewVariable.set(t).toConstDecl()]:[]}isListenerScope(){return this.parent&&this.parent.bindingLevel===this.bindingLevel}variableDeclarations(){let t=0;return Array.from(this.map.values()).filter(t=>t.declare).sort((t,e)=>e.retrievalLevel-t.retrievalLevel||e.priority-t.priority).reduce((e,n)=>{const i=this.bindingLevel-n.retrievalLevel,s=n.declareLocalCallback(this,i-t);return t=i,e.concat(s)},[])}freshReferenceName(){let t=this;for(;t.parent;)t=t.parent;return"_r"+t.referenceNameIndex++}}function Qc(t,e){const n=new b,i=r(t)[1];return n.setElement(i),Object.getOwnPropertyNames(e).forEach(t=>{const i=r(t)[1],s=e[t];if(n.addAttribute(i,s),"class"===t.toLowerCase()){s.trim().split(/\s+/).forEach(t=>n.addClassName(t))}}),n}function Jc(t){switch(bs(t)){case 1:return Vn.propertyInterpolate;case 3:return Vn.propertyInterpolate1;case 5:return Vn.propertyInterpolate2;case 7:return Vn.propertyInterpolate3;case 9:return Vn.propertyInterpolate4;case 11:return Vn.propertyInterpolate5;case 13:return Vn.propertyInterpolate6;case 15:return Vn.propertyInterpolate7;case 17:return Vn.propertyInterpolate8;default:return Vn.propertyInterpolateV}}const td=new oc;function ed(t=Ds){return new rl(new Zl(new Ll),t,td,null,[])}function nd(t,e){switch(t){case Y.HTML:return we(Vn.sanitizeHtml);case Y.SCRIPT:return we(Vn.sanitizeScript);case Y.STYLE:return e?we(Vn.sanitizeStyle):null;case Y.URL:return we(Vn.sanitizeUrl);case Y.RESOURCE_URL:return we(Vn.sanitizeResourceUrl);default:return null}}function id(t,e){const n=ds(e.value);switch(td.securityContext(t,e.name,!0)){case Y.HTML:return we(Vn.trustConstantHtml).callFn([n],e.valueSpan);case Y.SCRIPT:return we(Vn.trustConstantScript).callFn([n],e.valueSpan);case Y.RESOURCE_URL:return we(Vn.trustConstantResourceUrl).callFn([n],e.valueSpan);default:return n}}function sd(t){return t instanceof qn||t instanceof $n||t instanceof ti}function rd(t){return t.every(sd)}function ad(){return Se(_e("ngI18nClosureMode")).notIdentical(De("undefined",ct)).and(_e("ngI18nClosureMode"))}const od=/attr\.([^\]]+)/;function ld(t,e,n){const i=new ms,s=X(t.selector);return i.set("type",t.internalType),s.length>0&&i.set("selectors",ds(s)),t.queries.length>0&&i.set("contentQueries",function(t,e,n){const i=[],s=[],r=os(s,"_t");for(const o of t){const t=o.static?Vn.staticContentQuery:Vn.contentQuery;i.push(we(t).callFn([_e("dirIndex"),...ud(o,e)]).toStmt());const n=r(),a=we(Vn.loadQuery).callFn([]),l=we(Vn.queryRefresh).callFn([n.set(a)]),c=_e("ctx").prop(o.propertyName).set(o.first?n.prop("first"):n);s.push(l.and(c).toStmt())}const a=n?`${n}_ContentQueries`:null;return Ie([new Ht("rf",lt),new Ht("ctx",null),new Ht("dirIndex",null)],[Hc(1,i),Hc(2,s)],at,null,a)}(t.queries,e,t.name)),t.viewQueries.length&&i.set("viewQuery",function(t,e,n){const i=[],s=[],r=os(s,"_t");t.forEach(t=>{const n=we(t.static?Vn.staticViewQuery:Vn.viewQuery).callFn(ud(t,e));i.push(n.toStmt());const a=r(),o=we(Vn.loadQuery).callFn([]),l=we(Vn.queryRefresh).callFn([a.set(o)]),c=_e("ctx").prop(t.propertyName).set(t.first?a.prop("first"):a);s.push(l.and(c).toStmt())});const a=n?`${n}_Query`:null;return Ie([new Ht("rf",lt),new Ht("ctx",null)],[Hc(1,i),Hc(2,s)],at,null,a)}(t.viewQueries,e,t.name)),i.set("hostBindings",function(t,e,n,i,s,r,a){const o=_e("ctx"),l=new Tl(o),{styleAttr:c,classAttr:d}=t.specialAttributes;void 0!==c&&l.registerStyleAttr(c);void 0!==d&&l.registerClassAttr(d);const p=[],u=[],h=e,m=bd(t),f=n.createDirectiveHostEventAsts(m,h);if(f&&f.length){const t=function(t,e){const n=[],i=[],s=[];t.forEach(t=>{let s=t.name&&bn(t.name);const r=1===t.type?Un(s,t.targetOrPhase):s,a=e&&s?`${e}_${r}_HostBindingHandler`:null,o=zc(Gn.fromParsedEvent(t),a);1==t.type?i.push(o):n.push(o)}),i.length>0&&s.push(gs(Vn.syntheticHostListener,i).toStmt());n.length>0&&s.push(gs(Vn.listener,n).toStmt());return s}(f,r);p.push(...t)}const g=n.createBoundHostProperties(m,h),b=[];let v,y=0;g&&g.forEach(t=>{l.registerInputBasedOnName(t.name,t.expression,h)?y+=2:(b.push(t),y++)});const _=()=>{if(!v){v=new qc(i,()=>ze("Unexpected node"),t=>{const e=y;return y+=t,e},()=>ze("Unexpected pipe"))}return v},w=[],x=[],C=[];b.forEach(t=>{const e=t.expression.visit(_()),i=gd(o,e),{bindingName:r,instruction:a,isAttribute:l}=function(t){let e,n=t.name;const i=n.match(od);i?(n=i[1],e=Vn.attribute):t.isAnimation?(n=zn(n),e=Vn.syntheticHostProperty):e=Vn.hostProperty;return{bindingName:n,instruction:e,isAttribute:!!i}}(t),c=n.calcPossibleSecurityContexts(s,r,l).filter(t=>t!==Y.NONE);let d=null;c.length&&(d=2===c.length&&c.indexOf(Y.URL)>-1&&c.indexOf(Y.RESOURCE_URL)>-1?we(Vn.sanitizeUrlOrResourceUrl):nd(c[0],l));const p=[De(r),i.currValExpr];d&&p.push(d),u.push(...i.stmts),a===Vn.hostProperty?w.push(p):a===Vn.attribute?x.push(p):a===Vn.syntheticHostProperty?C.push(p):u.push(we(a).callFn(p).toStmt())}),w.length>0&&u.push(gs(Vn.hostProperty,w).toStmt());x.length>0&&u.push(gs(Vn.attribute,x).toStmt());C.length>0&&u.push(gs(Vn.syntheticHostProperty,C).toStmt());const S=function(t){const e=[];for(let n of Object.getOwnPropertyNames(t)){const i=t[n];e.push(De(n),i)}return e}(t.attributes);l.assignHostAttrs(S,a),l.hasBindings&&l.buildUpdateLevelInstructions(_()).forEach(t=>{if(t.calls.length>0){const e=[];t.calls.forEach(t=>{y+=Math.max(t.allocateBindingSlots-2,0),e.push(function(t,e,n){return t.params(t=>n(e,t).currValExpr)}(t,o,gd))}),u.push(gs(t.reference,e).toStmt())}});y&&a.set("hostVars",De(y));if(p.length>0||u.length>0){const t=r?`${r}_HostBindings`:null,e=[];return p.length>0&&e.push(Hc(1,p)),u.length>0&&e.push(Hc(2,u)),Ie([new Ht("rf",lt),new Ht("ctx",null)],e,at,null,t)}return null}(t.host,t.typeSourceSpan,n,e,t.selector||"",t.name,i)),i.set("inputs",ps(t.inputs,!0)),i.set("outputs",ps(t.outputs)),null!==t.exportAs&&i.set("exportAs",ke(t.exportAs.map(t=>De(t)))),i}function cd(t,e){const n=[],i=e.providers,s=e.viewProviders;if(i||s){const t=[i||new Yt([])];s&&t.push(s),n.push(we(Vn.ProvidersFeature).callFn(t))}e.usesInheritance&&n.push(we(Vn.InheritDefinitionFeature)),e.fullInheritance&&n.push(we(Vn.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&n.push(we(Vn.NgOnChangesFeature)),n.length&&t.set("features",ke(n))}function dd(t,e,n){const i=ld(t,e,n);cd(i,t);const s=we(Vn.defineDirective).callFn([i.toLiteralMap()]),r=fd(t);return{expression:s,type:Ce(we(Vn.DirectiveDefWithMeta,r))}}function pd(t,e,n){const i=ld(t,e,n);cd(i,t);const s=t.selector&&b.parse(t.selector),r=s&&s[0];if(r){const t=r.getAttrs();t.length&&i.set("attrs",e.getConstLiteral(ke(t.map(t=>De(null!=t?t:void 0))),!0))}let a=null;if(t.directives.length>0){const e=new v;for(const{selector:n,expression:i}of t.directives)e.addSelectables(b.parse(n),i);a=e}const o=t.name,l=o?`${o}_Template`:null,c=new Set,d=new Set,p=t.changeDetection,u=t.template,h=new Uc(e,Xc.createRootScope(),0,o,null,null,l,a,c,t.pipes,d,Vn.namespaceHTML,t.relativeContextFilePath,t.i18nUseExternalIds),m=h.buildTemplateFunction(u.nodes,[]),f=h.getNgContentSelectors();f&&i.set("ngContentSelectors",f),i.set("decls",De(h.getConstCount())),i.set("vars",De(h.getVarCount()));const{constExpressions:g,prepareStatements:y}=h.getConsts();if(g.length>0){let t=ke(g);y.length>0&&(t=Ie([],[...y,new ae(t)])),i.set("consts",t)}if(i.set("template",m),c.size){let e=ke(Array.from(c));t.wrapDirectivesAndPipesInClosure&&(e=Ie([],[new ae(e)])),i.set("directives",e)}if(d.size){let e=ke(Array.from(d));t.wrapDirectivesAndPipesInClosure&&(e=Ie([],[new ae(e)])),i.set("pipes",e)}if(null===t.encapsulation&&(t.encapsulation=D.Emulated),t.styles&&t.styles.length){const n=(t.encapsulation==D.Emulated?function(t,e,n){const i=new la;return t.map(t=>i.shimCssText(t,e,n))}(t.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):t.styles).map(t=>e.getConstLiteral(De(t)));i.set("styles",ke(n))}else t.encapsulation===D.Emulated&&(t.encapsulation=D.None);t.encapsulation!==D.Emulated&&i.set("encapsulation",De(t.encapsulation)),null!==t.animations&&i.set("data",Ee([{key:"animation",value:t.animations,quoted:!1}])),null!=p&&p!==T.Default&&i.set("changeDetection",De(p));const _=we(Vn.defineComponent).callFn([i.toLiteralMap()]),w=fd(t);w.push(md(t.template.ngContentSelectors));return{expression:_,type:Ce(we(Vn.ComponentDefWithMeta,w))}}function ud(t,e){const n=[hs(t,e),De(t.descendants)];return t.read&&n.push(t.read),n}function hd(t){return Ce(Ee(Object.keys(t).map(e=>({key:e,value:De(Array.isArray(t[e])?t[e][0]:t[e]),quoted:!0}))))}function md(t){return t.length>0?Ce(ke(t.map(t=>De(t)))):dt}function fd(t){const e=null!==t.selector?t.selector.replace(/\n/g,""):null;return[Hn(t.type.type,t.typeArgumentCount),null!==e?(n=e,Ce(De(n))):dt,null!==t.exportAs?md(t.exportAs):dt,hd(t.inputs),hd(t.outputs),md(t.queries.map(t=>t.propertyName))];var n}function gd(t,e){return Xr(null,t,e,"b",er.Expression,()=>ze("Unexpected interpolation"))}function bd(t){return{hostAttributes:{},hostListeners:t.listeners,hostProperties:t.properties}}const vd=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;class yd{get(t){return""}}class _d{constructor(t=new Us){this.jitEvaluator=t,this.R3ResolvedDependencyType=_s,this.R3FactoryTarget=ys,this.ResourceLoader=yd,this.elementSchemaRegistry=new oc}compilePipe(t,e,n){const i=cr({name:n.name,type:kd(n.type),internalType:new _t(n.type),typeArgumentCount:n.typeArgumentCount,deps:Od(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(i.expression,t,e,[])}compileInjectable(t,e,n){const{expression:i,statements:s}=function(t){let e=null;const n={name:t.name,type:t.type,internalType:t.internalType,typeArgumentCount:t.typeArgumentCount,deps:[],injectFn:pn.inject,target:ys.Injectable};if(void 0!==t.useClass){const i=t.useClass.isEquivalent(t.internalType);let s;void 0!==t.userDeps&&(s=t.userDeps),e=void 0!==s?ws(Object.assign(Object.assign({},n),{delegate:t.useClass,delegateDeps:s,delegateType:vs.Class})):i?ws(n):Ss(t.type.value,t.useClass)}else e=void 0!==t.useFactory?void 0!==t.userDeps?ws(Object.assign(Object.assign({},n),{delegate:t.useFactory,delegateDeps:t.userDeps||[],delegateType:vs.Function})):{statements:[],factory:Ie([],[new ae(t.useFactory.callFn([]))])}:void 0!==t.useValue?ws(Object.assign(Object.assign({},n),{expression:t.useValue})):void 0!==t.useExisting?ws(Object.assign(Object.assign({},n),{expression:we(pn.inject).callFn([t.useExisting])})):Ss(t.type.value,t.internalType);const i={token:t.internalType,factory:e.factory};return null!==t.providedIn.value&&(i.providedIn=t.providedIn),{expression:we(pn.\u0275\u0275defineInjectable).callFn([Bn(i)]),type:new nt(we(pn.InjectableDef,[Hn(t.type.type,t.typeArgumentCount)])),statements:e.statements}}({name:n.name,type:kd(n.type),internalType:new _t(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:Dd(n.providedIn),useClass:Ad(n,wd),useFactory:Ad(n,xd),useValue:Ad(n,Cd),useExisting:Ad(n,Sd),userDeps:Od(n.userDeps)||void 0});return this.jitExpression(i,t,e,s)}compileInjector(t,e,n){const i=function(t){const e=ws({name:t.name,type:t.type,internalType:t.internalType,typeArgumentCount:0,deps:t.deps,injectFn:Vn.inject,target:ys.NgModule}),n={factory:e.factory};return null!==t.providers&&(n.providers=t.providers),t.imports.length>0&&(n.imports=ke(t.imports)),{expression:we(Vn.defineInjector).callFn([Bn(n)]),type:new nt(we(Vn.InjectorDef,[new nt(t.type.type)])),statements:e.statements}}({name:n.name,type:kd(n.type),internalType:new _t(n.type),deps:Od(n.deps),providers:new _t(n.providers),imports:n.imports.map(t=>new _t(t))});return this.jitExpression(i.expression,t,e,i.statements)}compileNgModule(t,e,n){const i=ar({type:kd(n.type),internalType:new _t(n.type),adjacentType:new _t(n.type),bootstrap:n.bootstrap.map(kd),declarations:n.declarations.map(kd),imports:n.imports.map(kd),exports:n.exports.map(kd),emitInline:!0,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(kd):null,id:n.id?new _t(n.id):null});return this.jitExpression(i.expression,t,e,[])}compileDirective(t,e,n){const i=new rn,s=ed(),r=dd(Id(n),i,s);return this.jitExpression(r.expression,t,e,i.statements)}compileComponent(t,e,n){const i=new rn,s=n.interpolation?As.fromArray(n.interpolation):Ds,r=function(t,e,n={}){const{interpolationConfig:i,preserveWhitespaces:s,enableI18nLegacyMessageIdFormat:r}=n,a=ed(i),o=(new vo).parse(t,e,Object.assign(Object.assign({leadingTriviaChars:Bc},n),{tokenizeExpansionForms:!0}));if(o.errors&&o.errors.length>0)return{interpolationConfig:i,preserveWhitespaces:s,template:t,errors:o.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};let l=o.rootNodes;const c=new Oc(i,!s,r);l=Wa(c,l),s||(l=Wa(new Co,l),c.hasI18nMeta&&(l=Wa(new Oc(i,!1),l)));const{nodes:d,errors:p,styleUrls:u,styles:h,ngContentSelectors:m}=cc(l,a);return{interpolationConfig:i,preserveWhitespaces:s,errors:p.length>0?p:null,template:t,nodes:d,styleUrls:u,styles:h,ngContentSelectors:m}}(n.template,e,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:s});if(null!==r.errors){const t=r.errors.map(t=>t.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${n.name}: ${t}`)}const a=pd(Object.assign(Object.assign(Object.assign({},n),Id(n)),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,wrapDirectivesAndPipesInClosure:!1,styles:[...n.styles,...r.styles],encapsulation:n.encapsulation,interpolation:s,changeDetection:n.changeDetection,animations:null!=n.animations?new _t(n.animations):null,viewProviders:null!=n.viewProviders?new _t(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),i,ed(s)),o=`ng:///${n.name}.js`;return this.jitExpression(a.expression,t,o,i.statements)}compileFactory(t,e,n){const i=ws({name:n.name,type:kd(n.type),internalType:new _t(n.type),typeArgumentCount:n.typeArgumentCount,deps:Od(n.deps),injectFn:"directiveInject"===n.injectFn?pn.directiveInject:pn.inject,target:n.target});return this.jitExpression(i.factory,t,e,i.statements)}createParseSourceSpan(t,e,n){return function(t,e,n){const i=new Xs("",`in ${t} ${e} in ${n}`);return new Qs(new Zs(i,-1,-1,-1),new Zs(i,-1,-1,-1))}(t,e,n)}jitExpression(t,e,n,i){const s=[...i,new ie("$def",t,void 0,[Jt.Exported])];return this.jitEvaluator.evaluateStatements(n,s,new sr(e),!0).$def}}const wd=Object.keys({useClass:null})[0],xd=Object.keys({useFactory:null})[0],Cd=Object.keys({useValue:null})[0],Sd=Object.keys({useExisting:null})[0],kd=function(t){const e=new _t(t);return{value:e,type:e}};function Ed(t){return Object.assign(Object.assign({},t),{predicate:Array.isArray(t.predicate)?t.predicate:new _t(t.predicate),read:t.read?new _t(t.read):null,static:t.static})}function Id(t){const e=Rd(t.inputs||[]),n=Rd(t.outputs||[]),i=t.propMetadata,s={},r={};for(const a in i)i.hasOwnProperty(a)&&i[a].forEach(t=>{"Input"===t.ngMetadataName?s[a]=t.bindingPropertyName?[t.bindingPropertyName,a]:a:Md(t)&&(r[a]=t.bindingPropertyName||a)});return Object.assign(Object.assign({},t),{typeSourceSpan:t.typeSourceSpan,type:kd(t.type),internalType:new _t(t.type),deps:Od(t.deps),host:Pd(t.propMetadata,t.typeSourceSpan,t.host),inputs:Object.assign(Object.assign({},e),s),outputs:Object.assign(Object.assign({},n),r),queries:t.queries.map(Ed),providers:null!=t.providers?new _t(t.providers):null,viewQueries:t.viewQueries.map(Ed),fullInheritance:!1})}function Ad(t,e){return t.hasOwnProperty(e)?new _t(t[e]):void 0}function Dd(t){return null==t||"string"==typeof t?new It(t):new _t(t)}function Td(t){let e;return e=null===t.token?new It(null):t.resolved===_s.Attribute?new It(t.token):new _t(t.token),{token:e,attribute:null,resolved:t.resolved,host:t.host,optional:t.optional,self:t.self,skipSelf:t.skipSelf}}function Od(t){return null==t?null:t.map(Td)}function Pd(t,e,n){const i=function(t){const e={},n={},i={},s={};for(const r of Object.keys(t)){const a=t[r],o=r.match(vd);if(null===o)switch(r){case"class":if("string"!=typeof a)throw new Error("Class binding must be string");s.classAttr=a;break;case"style":if("string"!=typeof a)throw new Error("Style binding must be string");s.styleAttr=a;break;default:e[r]="string"==typeof a?De(a):a}else if(null!=o[1]){if("string"!=typeof a)throw new Error("Property binding must be string");i[o[1]]=a}else if(null!=o[2]){if("string"!=typeof a)throw new Error("Event binding must be string");n[o[2]]=a}}return{attributes:e,listeners:n,properties:i,specialAttributes:s}}(n||{}),s=function(t,e){const n=bd(t),i=ed();return i.createDirectiveHostEventAsts(n,e),i.createBoundHostProperties(n,e),i.errors}(i,e);if(s.length)throw new Error(s.map(t=>t.msg).join("\n"));for(const r in t)t.hasOwnProperty(r)&&t[r].forEach(t=>{"HostBinding"===t.ngMetadataName?i.properties[t.hostPropertyName||r]=r:Nd(t)&&(i.listeners[t.eventName||r]=`${r}(${(t.args||[]).join(",")})`)});return i}function Nd(t){return"HostListener"===t.ngMetadataName}function Md(t){return"Output"===t.ngMetadataName}function Rd(t){return t.reduce((t,e)=>{const[n,i]=e.split(",").map(t=>t.trim());return t[n]=i||n,t},{})}new class{constructor(t){this.full=t;const e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}}("11.0.9");class Ld{constructor({defaultEncapsulation:t=D.Emulated,useJit:e=!0,jitDevMode:n=!1,missingTranslation:i=null,preserveWhitespaces:s,strictInjectionParameters:r}={}){this.defaultEncapsulation=t,this.useJit=!!e,this.jitDevMode=!!n,this.missingTranslation=i,this.preserveWhitespaces=Fd(Fe(s)),this.strictInjectionParameters=!0===r}}function Fd(t,e=!1){return null===t?e:t}class jd{constructor(t,e,n,i){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=i,this._resourceLoaderCache=new Map}clearCache(){this._resourceLoaderCache.clear()}clearCacheFor(t){if(!t.isComponent)return;const e=t.template;this._resourceLoaderCache.delete(e.templateUrl),e.externalStylesheets.forEach(t=>{this._resourceLoaderCache.delete(t.moduleUrl)})}_fetch(t){let e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e}normalizeTemplate(t){if(Le(t.template)){if(Le(t.templateUrl))throw Ue(`'${Ge(t.componentType)}' component cannot define both template and templateUrl`);if("string"!=typeof t.template)throw Ue(`The template specified for component ${Ge(t.componentType)} is not a string`)}else{if(!Le(t.templateUrl))throw Ue(`No template specified for component ${Ge(t.componentType)}`);if("string"!=typeof t.templateUrl)throw Ue(`The templateUrl specified for component ${Ge(t.componentType)} is not a string`)}if(Le(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw Ue(`The preserveWhitespaces option for component ${Ge(t.componentType)} must be a boolean`);return Be(this._preParseTemplate(t),e=>this._normalizeTemplateMetadata(t,e))}_preParseTemplate(t){let e,n;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),Be(e,e=>this._preparseLoadedTemplate(t,e,n))}_preparseLoadedTemplate(t,e,n){const i=!!t.template,s=As.fromArray(t.interpolation),r=Fn({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:i,templateUrl:n}),a=this._htmlParser.parse(e,r,{tokenizeExpansionForms:!0,interpolationConfig:s});if(a.errors.length>0){throw Ue(`Template parse errors:\n${a.errors.join("\n")}`)}const o=this._normalizeStylesheet(new In({styles:t.styles,moduleUrl:t.moduleUrl})),l=new Vd;Wa(l,a.rootNodes);const c=this._normalizeStylesheet(new In({styles:l.styles,styleUrls:l.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:i,htmlAst:a,styles:o.styles.concat(c.styles),inlineStyleUrls:o.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new In({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:l.ngContentSelectors}}_normalizeTemplateMetadata(t,e){return Be(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),n=>this._normalizeLoadedTemplateMetadata(t,e,n))}_normalizeLoadedTemplateMetadata(t,e,n){const i=[...e.styles];this._inlineStyles(e.inlineStyleUrls,n,i);const s=e.styleUrls,r=s.map(t=>{const e=n.get(t),i=[...e.styles];return this._inlineStyles(e.styleUrls,n,i),new In({moduleUrl:t,styles:i})});let a=t.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===D.Emulated&&0===i.length&&0===s.length&&(a=D.None),new An({encapsulation:a,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:s,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:r,preserveWhitespaces:Fd(t.preserveWhitespaces,this._config.preserveWhitespaces)})}_inlineStyles(t,e,n){t.forEach(t=>{const i=e.get(t);i.styles.forEach(t=>n.push(t)),this._inlineStyles(i.styleUrls,e,n)})}_loadMissingExternalStylesheets(t,e=new Map){return Be(He(t.filter(t=>!e.has(t)).map(t=>Be(this._fetch(t),n=>{const i=this._normalizeStylesheet(new In({styles:[n],moduleUrl:t}));return e.set(t,i),this._loadMissingExternalStylesheets(i.styleUrls,e)}))),t=>e)}_normalizeStylesheet(t){const e=t.moduleUrl,n=t.styleUrls.filter(el).map(t=>this._urlResolver.resolve(e,t)),i=t.styles.map(t=>{const i=function(t,e,n){const i=[],s=n.replace(il,"").replace(nl,(...n)=>{const s=n[1]||n[2];return el(s)?(i.push(t.resolve(e,s)),""):n[0]});return new tl(s,i)}(this._urlResolver,e,t);return n.push(...i.styleUrls),i.style});return new In({styles:i,styleUrls:n,moduleUrl:e})}}class Vd{constructor(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}visitElement(t,e){const n=dl(t);switch(n.type){case pl.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case pl.STYLE:let e="";t.children.forEach(t=>{t instanceof Ba&&(e+=t.value)}),this.styles.push(e);break;case pl.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,Wa(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null}visitExpansion(t,e){Wa(this,t.cases)}visitExpansionCase(t,e){Wa(this,t.expression)}visitComment(t,e){return null}visitAttribute(t,e){return null}visitText(t,e){return null}}const Bd=[I,E,k,S];class Hd{constructor(t){this._reflector=t}isDirective(t){const e=this._reflector.annotations(Ke(t));return e&&e.some(zd)}resolve(t,e=!0){const n=this._reflector.annotations(Ke(t));if(n){const e=Ud(n,zd);if(e){const n=this._reflector.propMetadata(t),i=this._reflector.guards(t);return this._mergeWithPropertyMetadata(e,n,i,t)}}if(e)throw new Error(`No Directive annotation found on ${Ge(t)}`);return null}_mergeWithPropertyMetadata(t,e,n,i){const s=[],r=[],a={},o={};return Object.keys(e).forEach(t=>{const n=Ud(e[t],t=>N.isTypeOf(t));n&&(n.bindingPropertyName?s.push(`${t}: ${n.bindingPropertyName}`):s.push(t));const i=Ud(e[t],t=>M.isTypeOf(t));i&&(i.bindingPropertyName?r.push(`${t}: ${i.bindingPropertyName}`):r.push(t));e[t].filter(t=>R.isTypeOf(t)).forEach(e=>{if(e.hostPropertyName){const n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");a[`[${e.hostPropertyName}]`]=t}else a[`[${t}]`]=t});e[t].filter(t=>L.isTypeOf(t)).forEach(e=>{const n=e.args||[];a[`(${e.eventName})`]=`${t}(${n.join(",")})`});const l=Ud(e[t],t=>Bd.some(e=>e.isTypeOf(t)));l&&(o[t]=l)}),this._merge(t,s,r,a,o,n,i)}_extractPublicName(t){return Ne(t,[null,t])[1].trim()}_dedupeBindings(t){const e=new Set,n=new Set,i=[];for(let s=t.length-1;s>=0;s--){const r=t[s],a=this._extractPublicName(r);n.add(a),e.has(a)||(e.add(a),i.push(r))}return i.reverse()}_merge(t,e,n,i,s,r,a){const o=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),l=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),c=t.host?Object.assign(Object.assign({},t.host),i):i,d=t.queries?Object.assign(Object.assign({},t.queries),s):s;if(O.isTypeOf(t)){const e=t;return O({selector:e.selector,inputs:o,outputs:l,host:c,exportAs:e.exportAs,moduleId:e.moduleId,queries:d,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return A({selector:t.selector,inputs:o,outputs:l,host:c,exportAs:t.exportAs,queries:d,providers:t.providers,guards:r})}}function zd(t){return A.isTypeOf(t)||O.isTypeOf(t)}function Ud(t,e){for(let n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}class qd extends ir{constructor(t,e){super(t,e)}}const $d=/^i18n:?/;let Wd=!1;class Yd{constructor(t,e){this.messages=t,this.errors=e}}var Gd;!function(t){t[t.Extract=0]="Extract",t[t.Merge=1]="Merge"}(Gd||(Gd={}));class Kd{constructor(t,e){this._implicitTags=t,this._implicitAttrs=e}extract(t,e){return this._init(Gd.Extract,e),t.forEach(t=>t.visit(this,null)),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Yd(this._messages,this._errors)}merge(t,e,n){this._init(Gd.Merge,n),this._translations=e;const i=new qa("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new mo(i.children,this._errors)}visitExpansionCase(t,e){const n=Wa(this,t.expression,e);if(this._mode===Gd.Merge)return new za(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)}visitExpansion(t,e){this._mayBeAddBlockChildren(t);const n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);const i=Wa(this,t.cases,e);return this._mode===Gd.Merge&&(t=new Ha(t.switchValue,t.type,i,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t}visitComment(t,e){const n=!!((i=t)instanceof $a&&i.value&&i.value.startsWith("i18n"));var i;if(n&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");const s=function(t){return!!(t instanceof $a&&t.value&&"/i18n"===t.value)}(t);if(!s||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(s){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;const e=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return Wa(this,this._translateMessage(t,e))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else if(n){if(!Wd&&console&&console.warn){Wd=!0;const e=t.sourceSpan.details?`, ${t.sourceSpan.details}`:"";console.warn(`I18n comments are deprecated, use an <ng-container> element instead (${t.sourceSpan.start}${e})`)}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace($d,"").trim(),this._openTranslatableSection(t)}}else this._reportError(t,"Trying to close an unopened block")}visitText(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t}visitElement(t,e){this._mayBeAddBlockChildren(t),this._depth++;const n=this._inI18nNode,i=this._inImplicitNode;let s,r=[];const a=t.attrs.find(t=>"i18n"===t.name)||null;const o=a?a.value:"",l=this._implicitTags.some(e=>t.name===e)&&!this._inIcu&&!this._isInTranslatableSection,c=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(a||c)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Gd.Extract&&Wa(this,t.children);else{if(a||c){this._inI18nNode=!0;const e=this._addMessage(t.children,o);s=this._translateMessage(t,e)}if(this._mode==Gd.Extract){const e=a||c;e&&this._openTranslatableSection(t),Wa(this,t.children),e&&this._closeTranslatableSection(t,t.children)}}if(this._mode===Gd.Merge){(s||t.children).forEach(t=>{const n=t.visit(this,e);n&&!this._isInTranslatableSection&&(r=r.concat(n))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=n,this._inImplicitNode=i,this._mode===Gd.Merge){const e=this._translateAttributes(t);return new qa(t.name,e,r,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null}visitAttribute(t,e){throw new Error("unreachable code")}_init(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=kc(e)}_visitAttributesOf(t){const e={},n=this._implicitAttrs[t.name]||[];t.attrs.filter(t=>t.name.startsWith("i18n-")).forEach(t=>e[t.name.slice("i18n-".length)]=t.value),t.attrs.forEach(t=>{t.name in e?this._addMessage([t],e[t.name]):n.some(e=>t.name===e)&&this._addMessage([t])})}_addMessage(t,e){if(0==t.length||1==t.length&&t[0]instanceof Ua&&!t[0].value)return null;const{meaning:n,description:i,id:s}=Zd(e),r=this._createI18nMessage(t,n,i,s);return this._messages.push(r),r}_translateMessage(t,e){if(e&&this._mode===Gd.Merge){const n=this._translations.get(e);if(n)return n;this._reportError(t,`Translation unavailable for message id="${this._translations.digest(e)}"`)}return[]}_translateAttributes(t){const e=t.attrs,n={};e.forEach(t=>{t.name.startsWith("i18n-")&&(n[t.name.slice("i18n-".length)]=Zd(t.value))});const i=[];return e.forEach(e=>{if("i18n"!==e.name&&!e.name.startsWith("i18n-"))if(e.value&&""!=e.value&&n.hasOwnProperty(e.name)){const{meaning:s,description:r,id:a}=n[e.name],o=this._createI18nMessage([e],s,r,a),l=this._translations.get(o);if(l)if(0==l.length)i.push(new Ua(e.name,"",e.sourceSpan));else if(l[0]instanceof Ba){const t=l[0].value;i.push(new Ua(e.name,t,e.sourceSpan))}else this._reportError(t,`Unexpected translation for attribute "${e.name}" (id="${a||this._translations.digest(o)}")`);else this._reportError(t,`Translation unavailable for attribute "${e.name}" (id="${a||this._translations.digest(o)}")`)}else i.push(e)}),i}_mayBeAddBlockChildren(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)}_openTranslatableSection(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length}get _isInTranslatableSection(){return void 0!==this._msgCountAtSectionStart}_closeTranslatableSection(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");const n=this._msgCountAtSectionStart;if(1==e.reduce((t,e)=>t+(e instanceof $a?0:1),0))for(let i=this._messages.length-1;i>=n;i--){const t=this._messages[i].nodes;if(!(1==t.length&&t[0]instanceof ii)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0}_reportError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}function Zd(t){if(!t)return{meaning:"",description:"",id:""};const e=t.indexOf("@@"),n=t.indexOf("|"),[i,s]=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],[r,a]=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:r,description:a,id:s.trim()}}const Xd=new class{constructor(){this.closedByParent=!1,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(t){return!1}isClosedByChild(t){return!1}getContentType(){return i.PARSABLE_DATA}};function Qd(t){return Xd}class Jd extends fo{constructor(){super(Qd)}parse(t,e,n){return super.parse(t,e,n)}}class tp extends Ti{write(t,e){const n=new ep,i=[];t.forEach(t=>{let e=[];t.sources.forEach(t=>{let n=new Li("context-group",{purpose:"location"});n.children.push(new ji(10),new Li("context",{"context-type":"sourcefile"},[new Fi(t.filePath)]),new ji(10),new Li("context",{"context-type":"linenumber"},[new Fi(`${t.startLine}`)]),new ji(8)),e.push(new ji(8),n)});const s=new Li("trans-unit",{id:t.id,datatype:"html"});s.children.push(new ji(8),new Li("source",{},n.serialize(t.nodes)),...e),t.description&&s.children.push(new ji(8),new Li("note",{priority:"1",from:"description"},[new Fi(t.description)])),t.meaning&&s.children.push(new ji(8),new Li("note",{priority:"1",from:"meaning"},[new Fi(t.meaning)])),s.children.push(new ji(6)),i.push(new ji(6),s)});const s=new Li("body",{},[...i,new ji(4)]),r=new Li("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new ji(4),s,new ji(2)]),a=new Li("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new ji(2),r,new ji]);return Ni([new Mi({version:"1.0",encoding:"UTF-8"}),new ji,a,new ji])}load(t,e){const n=new np,{locale:i,msgIdToHtml:s,errors:r}=n.parse(t,e),a={},o=new ip;if(Object.keys(s).forEach(t=>{const{i18nNodes:n,errors:i}=o.convert(s[t],e);r.push(...i),a[t]=n}),r.length)throw new Error(`xliff parse errors:\n${r.join("\n")}`);return{locale:i,i18nNodesByMsgId:a}}digest(t){return pi(t)}}class ep{visitText(t,e){return[new Fi(t.value)]}visitContainer(t,e){const n=[];return t.children.forEach(t=>n.push(...t.visit(this))),n}visitIcu(t,e){const n=[new Fi(`{${t.expressionPlaceholder}, ${t.type}, `)];return Object.keys(t.cases).forEach(e=>{n.push(new Fi(`${e} {`),...t.cases[e].visit(this),new Fi("} "))}),n.push(new Fi("}")),n}visitTagPlaceholder(t,e){const n=function(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return`x-${t}`}}(t.tag);if(t.isVoid)return[new Li("x",{id:t.startName,ctype:n,"equiv-text":`<${t.tag}/>`})];const i=new Li("x",{id:t.startName,ctype:n,"equiv-text":`<${t.tag}>`}),s=new Li("x",{id:t.closeName,ctype:n,"equiv-text":`</${t.tag}>`});return[i,...this.serialize(t.children),s]}visitPlaceholder(t,e){return[new Li("x",{id:t.name,"equiv-text":`{{${t.value}}}`})]}visitIcuPlaceholder(t,e){const n=`{${t.value.expression}, ${t.value.type}, ${Object.keys(t.value.cases).map(t=>t+" {...}").join(" ")}}`;return[new Li("x",{id:t.name,"equiv-text":n})]}serialize(t){return[].concat(...t.map(t=>t.visit(this)))}}class np{constructor(){this._locale=null}parse(t,e){this._unitMlString=null,this._msgIdToHtml={};const n=(new Jd).parse(t,e);return this._errors=n.errors,Wa(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;const e=t.attrs.find(t=>"id"===t.name);if(e){const n=e.value;this._msgIdToHtml.hasOwnProperty(n)?this._addError(t,`Duplicated translations for msg ${n}`):(Wa(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[n]=this._unitMlString:this._addError(t,`Message ${n} misses a translation`))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":case"alt-trans":break;case"target":const n=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(n,i);this._unitMlString=s;break;case"file":const r=t.attrs.find(t=>"target-language"===t.name);r&&(this._locale=r.value),Wa(this,t.children,null);break;default:Wa(this,t.children,null)}}visitAttribute(t,e){}visitText(t,e){}visitComment(t,e){}visitExpansion(t,e){}visitExpansionCase(t,e){}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class ip{convert(t,e){const n=(new Jd).parse(t,e,{tokenizeExpansionForms:!0});this._errors=n.errors;return{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat(...Wa(this,n.rootNodes)),errors:this._errors}}visitText(t,e){return new ii(t.value,t.sourceSpan)}visitElement(t,e){if("x"===t.name){const e=t.attrs.find(t=>"id"===t.name);return e?new oi("",e.value,t.sourceSpan):(this._addError(t,'<x> misses the "id" attribute'),null)}return"mrk"===t.name?[].concat(...Wa(this,t.children)):(this._addError(t,"Unexpected tag"),null)}visitExpansion(t,e){const n={};return Wa(this,t.cases).forEach(e=>{n[e.value]=new si(e.nodes,t.sourceSpan)}),new ri(t.switchValue,t.type,n,t.sourceSpan)}visitExpansionCase(t,e){return{value:t.value,nodes:Wa(this,t.expression)}}visitComment(t,e){}visitAttribute(t,e){}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class sp extends Ti{write(t,e){const n=new rp,i=[];t.forEach(t=>{const e=new Li("unit",{id:t.id}),s=new Li("notes");(t.description||t.meaning)&&(t.description&&s.children.push(new ji(8),new Li("note",{category:"description"},[new Fi(t.description)])),t.meaning&&s.children.push(new ji(8),new Li("note",{category:"meaning"},[new Fi(t.meaning)]))),t.sources.forEach(t=>{s.children.push(new ji(8),new Li("note",{category:"location"},[new Fi(`${t.filePath}:${t.startLine}${t.endLine!==t.startLine?","+t.endLine:""}`)]))}),s.children.push(new ji(6)),e.children.push(new ji(6),s);const r=new Li("segment");r.children.push(new ji(8),new Li("source",{},n.serialize(t.nodes)),new ji(6)),e.children.push(new ji(6),r,new ji(4)),i.push(new ji(4),e)});const s=new Li("file",{original:"ng.template",id:"ngi18n"},[...i,new ji(2)]),r=new Li("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new ji(2),s,new ji]);return Ni([new Mi({version:"1.0",encoding:"UTF-8"}),new ji,r,new ji])}load(t,e){const n=new ap,{locale:i,msgIdToHtml:s,errors:r}=n.parse(t,e),a={},o=new op;if(Object.keys(s).forEach(t=>{const{i18nNodes:n,errors:i}=o.convert(s[t],e);r.push(...i),a[t]=n}),r.length)throw new Error(`xliff2 parse errors:\n${r.join("\n")}`);return{locale:i,i18nNodesByMsgId:a}}digest(t){return hi(t)}}class rp{visitText(t,e){return[new Fi(t.value)]}visitContainer(t,e){const n=[];return t.children.forEach(t=>n.push(...t.visit(this))),n}visitIcu(t,e){const n=[new Fi(`{${t.expressionPlaceholder}, ${t.type}, `)];return Object.keys(t.cases).forEach(e=>{n.push(new Fi(`${e} {`),...t.cases[e].visit(this),new Fi("} "))}),n.push(new Fi("}")),n}visitTagPlaceholder(t,e){const n=function(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}(t.tag);if(t.isVoid){return[new Li("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:n,disp:`<${t.tag}/>`})]}const i=new Li("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:n,dispStart:`<${t.tag}>`,dispEnd:`</${t.tag}>`}),s=[].concat(...t.children.map(t=>t.visit(this)));return s.length?s.forEach(t=>i.children.push(t)):i.children.push(new Fi("")),[i]}visitPlaceholder(t,e){const n=(this._nextPlaceholderId++).toString();return[new Li("ph",{id:n,equiv:t.name,disp:`{{${t.value}}}`})]}visitIcuPlaceholder(t,e){const n=Object.keys(t.value.cases).map(t=>t+" {...}").join(" "),i=(this._nextPlaceholderId++).toString();return[new Li("ph",{id:i,equiv:t.name,disp:`{${t.value.expression}, ${t.value.type}, ${n}}`})]}serialize(t){return this._nextPlaceholderId=0,[].concat(...t.map(t=>t.visit(this)))}}class ap{constructor(){this._locale=null}parse(t,e){this._unitMlString=null,this._msgIdToHtml={};const n=(new Jd).parse(t,e);return this._errors=n.errors,Wa(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(t,e){switch(t.name){case"unit":this._unitMlString=null;const e=t.attrs.find(t=>"id"===t.name);if(e){const n=e.value;this._msgIdToHtml.hasOwnProperty(n)?this._addError(t,`Duplicated translations for msg ${n}`):(Wa(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[n]=this._unitMlString:this._addError(t,`Message ${n} misses a translation`))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":const n=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(n,i);this._unitMlString=s;break;case"xliff":const r=t.attrs.find(t=>"trgLang"===t.name);r&&(this._locale=r.value);const a=t.attrs.find(t=>"version"===t.name);if(a){const e=a.value;"2.0"!==e?this._addError(t,`The XLIFF file version ${e} is not compatible with XLIFF 2.0 serializer`):Wa(this,t.children,null)}break;default:Wa(this,t.children,null)}}visitAttribute(t,e){}visitText(t,e){}visitComment(t,e){}visitExpansion(t,e){}visitExpansionCase(t,e){}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class op{convert(t,e){const n=(new Jd).parse(t,e,{tokenizeExpansionForms:!0});this._errors=n.errors;return{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat(...Wa(this,n.rootNodes)),errors:this._errors}}visitText(t,e){return new ii(t.value,t.sourceSpan)}visitElement(t,e){switch(t.name){case"ph":const e=t.attrs.find(t=>"equiv"===t.name);if(e)return[new oi("",e.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":const n=t.attrs.find(t=>"equivStart"===t.name),i=t.attrs.find(t=>"equivEnd"===t.name);if(n){if(i){const e=n.value,s=i.value;return[].concat(new oi("",e,t.sourceSpan),...t.children.map(t=>t.visit(this,null)),new oi("",s,t.sourceSpan))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat(...Wa(this,t.children));default:this._addError(t,"Unexpected tag")}return null}visitExpansion(t,e){const n={};return Wa(this,t.cases).forEach(e=>{n[e.value]=new si(e.nodes,t.sourceSpan)}),new ri(t.switchValue,t.type,n,t.sourceSpan)}visitExpansionCase(t,e){return{value:t.value,nodes:[].concat(...Wa(this,t.expression))}}visitComment(t,e){}visitAttribute(t,e){}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class lp extends Ti{write(t,e){throw new Error("Unsupported")}load(t,e){const n=new cp,{locale:i,msgIdToHtml:s,errors:r}=n.parse(t,e),a={},o=new dp;if(Object.keys(s).forEach(t=>{!function(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){const i=n();return Object.defineProperty(t,e,{enumerable:!0,value:i}),i},set:t=>{throw new Error("Could not overwrite an XTB translation")}})}(a,t,function(){const{i18nNodes:n,errors:i}=o.convert(s[t],e);if(i.length)throw new Error(`xtb parse errors:\n${i.join("\n")}`);return n})}),r.length)throw new Error(`xtb parse errors:\n${r.join("\n")}`);return{locale:i,i18nNodesByMsgId:a}}digest(t){return Ui(t)}createNameMapper(t){return new Oi(t,$i)}}class cp{constructor(){this._locale=null}parse(t,e){this._bundleDepth=0,this._msgIdToHtml={};const n=(new Jd).parse(t,e);return this._errors=n.errors,Wa(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}}visitElement(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");const e=t.attrs.find(t=>"lang"===t.name);e&&(this._locale=e.value),Wa(this,t.children,null),this._bundleDepth--;break;case"translation":const n=t.attrs.find(t=>"id"===t.name);if(n){const e=n.value;if(this._msgIdToHtml.hasOwnProperty(e))this._addError(t,`Duplicated translations for msg ${e}`);else{const n=t.startSourceSpan.end.offset,i=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(n,i);this._msgIdToHtml[e]=s}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}}visitAttribute(t,e){}visitText(t,e){}visitComment(t,e){}visitExpansion(t,e){}visitExpansionCase(t,e){}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class dp{convert(t,e){const n=(new Jd).parse(t,e,{tokenizeExpansionForms:!0});this._errors=n.errors;return{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:Wa(this,n.rootNodes),errors:this._errors}}visitText(t,e){return new ii(t.value,t.sourceSpan)}visitExpansion(t,e){const n={};return Wa(this,t.cases).forEach(e=>{n[e.value]=new si(e.nodes,t.sourceSpan)}),new ri(t.switchValue,t.type,n,t.sourceSpan)}visitExpansionCase(t,e){return{value:t.value,nodes:Wa(this,t.expression)}}visitElement(t,e){if("ph"===t.name){const e=t.attrs.find(t=>"name"===t.name);if(e)return new oi("",e.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null}visitComment(t,e){}visitAttribute(t,e){}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class pp{constructor(t={},e,n,i,s=G.Warning,r){this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=i,this._i18nToHtml=new up(t,e,n,i,s,r)}static load(t,e,n,i,s){const{locale:r,i18nNodesByMsgId:a}=n.load(t,e);return new pp(a,r,t=>n.digest(t),t=>n.createNameMapper(t),i,s)}get(t){const e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes}has(t){return this.digest(t)in this._i18nNodesByMsgId}}class up{constructor(t={},e,n,i,s,r){this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=i,this._missingTranslationStrategy=s,this._console=r,this._contextStack=[],this._errors=[]}convert(t){this._contextStack.length=0,this._errors.length=0;const e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,i=(new vo).parse(e,n,{tokenizeExpansionForms:!0});return{nodes:i.rootNodes,errors:[...this._errors,...i.errors]}}visitText(t,e){return Bi(t.value)}visitContainer(t,e){return t.children.map(t=>t.visit(this)).join("")}visitIcu(t,e){const n=Object.keys(t.cases).map(e=>`${e} {${t.cases[e].visit(this)}}`);return`{${this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression].text:t.expression}, ${t.type}, ${n.join(" ")}}`}visitPlaceholder(t,e){const n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n].text:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,`Unknown placeholder "${t.name}"`),"")}visitTagPlaceholder(t,e){const n=`${t.tag}`,i=Object.keys(t.attrs).map(e=>`${e}="${t.attrs[e]}"`).join(" ");if(t.isVoid)return`<${n} ${i}/>`;return`<${n} ${i}>${t.children.map(t=>t.visit(this)).join("")}</${n}>`}visitIcuPlaceholder(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])}_convertToText(t){const e=this._digest(t),n=this._mapperFactory?this._mapperFactory(t):null;let i;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(e))i=this._i18nNodesByMsgId[e],this._mapper=t=>n?n.toInternalName(t):t;else{if(this._missingTranslationStrategy===G.Error){const n=this._locale?` for locale "${this._locale}"`:"";this._addError(t.nodes[0],`Missing translation for message "${e}"${n}`)}else if(this._console&&this._missingTranslationStrategy===G.Warning){const t=this._locale?` for locale "${this._locale}"`:"";this._console.warn(`Missing translation for message "${e}"${t}`)}i=t.nodes,this._mapper=t=>t}const s=i.map(t=>t.visit(this)).join(""),r=this._contextStack.pop();return this._srcMsg=r.msg,this._mapper=r.mapper,s}_addError(t,e){this._errors.push(new qd(t.sourceSpan,e))}}class hp{constructor(t,e,n,i=G.Warning,s){if(this._htmlParser=t,e){const t=function(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Hi;case"xtb":return new lp;case"xliff2":case"xlf2":return new sp;case"xliff":case"xlf":default:return new tp}}(n);this._translationBundle=pp.load(e,"i18n",t,i,s)}else this._translationBundle=new pp({},null,pi,void 0,i,s)}parse(t,e,n={}){const i=n.interpolationConfig||Ds,s=this._htmlParser.parse(t,e,Object.assign({interpolationConfig:i},n));return s.errors.length?new mo(s.rootNodes,s.errors):function(t,e,n,i,s){return new Kd(i,s).merge(t,e,n)}(s.rootNodes,this._translationBundle,i,[],{})}}function mp(t,e,n=null){return Re(e,new fp(t),n)}class fp{constructor(t){this.ctx=t}visitArray(t,e){const n=[];for(let i=0;i<t.length;++i)n.push(Re(t[i],this,null));return ke(n,e)}visitStringMap(t,e){const n=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(e=>{n.push(new Gt(e,Re(t[e],this,null),i.has(e)))}),new Kt(n,e)}visitPrimitive(t,e){return De(t,e)}visitOther(t,e){return t instanceof bt?t:this.ctx.importExpr(t)}}function gp(t,e=!1){const n=bp(t,e);return`${n[0]}.ngfactory${vp(n[1])}`}function bp(t,e=!1){if(t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];const n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function vp(t){return".tsx"===t?".ts":t}var yp;!function(t){t[t.OnInit=0]="OnInit",t[t.OnDestroy=1]="OnDestroy",t[t.DoCheck=2]="DoCheck",t[t.OnChanges=3]="OnChanges",t[t.AfterContentInit=4]="AfterContentInit",t[t.AfterContentChecked=5]="AfterContentChecked",t[t.AfterViewInit=6]="AfterViewInit",t[t.AfterViewChecked=7]="AfterViewChecked"}(yp||(yp={}));const _p=[yp.OnInit,yp.OnDestroy,yp.DoCheck,yp.OnChanges,yp.AfterContentInit,yp.AfterContentChecked,yp.AfterViewInit,yp.AfterViewChecked];function wp(t,e,n){return t.hasLifecycleHook(n,function(t){switch(t){case yp.OnInit:return"ngOnInit";case yp.OnDestroy:return"ngOnDestroy";case yp.DoCheck:return"ngDoCheck";case yp.OnChanges:return"ngOnChanges";case yp.AfterContentInit:return"ngAfterContentInit";case yp.AfterContentChecked:return"ngAfterContentChecked";case yp.AfterViewInit:return"ngAfterViewInit";case yp.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error(`unexpected ${t}`)}}(e))}class xp{constructor(t,e,n,i,s,r,a,o,l,c,d,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=i,this._pipeResolver=s,this._summaryResolver=r,this._schemaRegistry=a,this._directiveNormalizer=o,this._console=l,this._staticSymbolCache=c,this._reflector=d,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}getReflector(){return this._reflector}clearCacheFor(t){const e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)}clearCache(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()}_createProxyClass(t,e){let n=null;const i=function(){if(!n)throw new Error(`Illegal state: Class ${e} for type ${Ge(t)} is not compiled yet!`);return n.apply(this,arguments)};return i.setDelegate=t=>{n=t,i.prototype=t.prototype},i.overriddenName=e,i}getGeneratedClass(t,e){return t instanceof mn?this._staticSymbolCache.get(gp(t.filePath),e):this._createProxyClass(t,e)}getComponentViewClass(t){return this.getGeneratedClass(t,wn(t,0))}getHostComponentViewClass(t){return this.getGeneratedClass(t,`HostView_${yn({reference:t})}`)}getHostComponentType(t){const e=`${yn({reference:t})}_Host`;return t instanceof mn?this._staticSymbolCache.get(t.filePath,e):this._createProxyClass(t,e)}getRendererType(t){return t instanceof mn?this._staticSymbolCache.get(gp(t.filePath),xn(t)):{}}getComponentFactory(t,e,n,i){if(e instanceof mn)return this._staticSymbolCache.get(gp(e.filePath),Cn(e));{const s=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(pn.createComponentFactory)(t,e,s,n,i,[])}}initComponentFactory(t,e){t instanceof mn||t.ngContentSelectors.push(...e)}_loadSummary(t,e){let n=this._summaryCache.get(t);if(!n){const e=this._summaryResolver.resolveSummary(t);n=e?e.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null}getHostComponentMetadata(t,e){const n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));const i=b.parse(t.selector)[0].getMatchingElementTemplate(),s=this._htmlParser.parse(i,"");return Dn.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new An({encapsulation:D.None,template:i,templateUrl:"",htmlAst:s,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:T.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:D.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}loadDirectiveMetadata(t,e,n){if(this._directiveCache.has(e))return null;e=Ke(e);const{annotation:i,metadata:s}=this.getNonNormalizedDirectiveMetadata(e),r=t=>{const n=new Dn({isHost:!1,type:s.type,isComponent:s.isComponent,selector:s.selector,exportAs:s.exportAs,changeDetection:s.changeDetection,inputs:s.inputs,outputs:s.outputs,hostListeners:s.hostListeners,hostProperties:s.hostProperties,hostAttributes:s.hostAttributes,providers:s.providers,viewProviders:s.viewProviders,queries:s.queries,guards:s.guards,viewQueries:s.viewQueries,entryComponents:s.entryComponents,componentViewType:s.componentViewType,rendererType:s.rendererType,componentFactory:s.componentFactory,template:t});return t&&this.initComponentFactory(s.componentFactory,t.ngContentSelectors),this._directiveCache.set(e,n),this._summaryCache.set(e,n.toSummary()),null};if(s.isComponent){const a=s.template,o=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,i),encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,animations:a.animations,interpolation:a.interpolation,preserveWhitespaces:a.preserveWhitespaces});return Ze(o)&&n?(this._reportError(function(t){const e=Error(`Can't compile synchronously as ${Ge(t)} is still being loaded!`);return e.ngComponentType=t,e}(e),e),null):Be(o,r)}return r(null),null}getNonNormalizedDirectiveMetadata(t){if(!(t=Ke(t)))return null;let e=this._nonNormalizedDirectiveCache.get(t);if(e)return e;const n=this._directiveResolver.resolve(t,!1);if(!n)return null;let i;if(O.isTypeOf(n)){const t=n;ks("styles",t.styles),ks("styleUrls",t.styleUrls),Is("interpolation",t.interpolation);const e=t.animations;i=new An({encapsulation:Fe(t.encapsulation),template:Fe(t.template),templateUrl:Fe(t.templateUrl),htmlAst:null,styles:t.styles||[],styleUrls:t.styleUrls||[],animations:e||[],interpolation:Fe(t.interpolation),isInline:!!t.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:Fe(n.preserveWhitespaces)})}let s=null,r=[],a=[],o=n.selector;if(O.isTypeOf(n)){const e=n;s=e.changeDetection,e.viewProviders&&(r=this._getProvidersMetadata(e.viewProviders,a,`viewProviders for "${Ip(t)}"`,[],t)),e.entryComponents&&(a=Sp(e.entryComponents).map(t=>this._getEntryComponentMetadata(t)).concat(a)),o||(o=this._schemaRegistry.getDefaultComponentElementName())}else o||(o=null);let l=[];null!=n.providers&&(l=this._getProvidersMetadata(n.providers,a,`providers for "${Ip(t)}"`,[],t));let c=[],d=[];null!=n.queries&&(c=this._getQueriesMetadata(n.queries,!1,t),d=this._getQueriesMetadata(n.queries,!0,t));const p=Dn.create({isHost:!1,selector:o,exportAs:Fe(n.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:s,inputs:n.inputs||[],outputs:n.outputs||[],host:n.host||{},providers:l||[],viewProviders:r||[],queries:c||[],guards:n.guards||{},viewQueries:d||[],entryComponents:a,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(p.componentFactory=this.getComponentFactory(o,t,p.inputs,p.outputs)),e={metadata:p,annotation:n},this._nonNormalizedDirectiveCache.set(t,e),e}getDirectiveMetadata(t){const e=this._directiveCache.get(t);return e||this._reportError(Ue(`Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive ${Ip(t)}.`),t),e}getDirectiveSummary(t){const e=this._loadSummary(t,Sn.Directive);return e||this._reportError(Ue(`Illegal state: Could not load the summary for directive ${Ip(t)}.`),t),e}isDirective(t){return!!this._loadSummary(t,Sn.Directive)||this._directiveResolver.isDirective(t)}isAbstractDirective(t){const e=this._loadSummary(t,Sn.Directive);if(e&&!e.isComponent)return!e.selector;const n=this._directiveResolver.resolve(t,!1);return!(!n||O.isTypeOf(n))&&!n.selector}isPipe(t){return!!this._loadSummary(t,Sn.Pipe)||this._pipeResolver.isPipe(t)}isNgModule(t){return!!this._loadSummary(t,Sn.NgModule)||this._ngModuleResolver.isNgModule(t)}getNgModuleSummary(t,e=null){let n=this._loadSummary(t,Sn.NgModule);if(!n){const i=this.getNgModuleMetadata(t,!1,e);n=i?i.toSummary():null,n&&this._summaryCache.set(t,n)}return n}loadNgModuleDirectiveAndPipeMetadata(t,e,n=!0){const i=this.getNgModuleMetadata(t,n),s=[];return i&&(i.declaredDirectives.forEach(n=>{const i=this.loadDirectiveMetadata(t,n.reference,e);i&&s.push(i)}),i.declaredPipes.forEach(t=>this._loadPipeMetadata(t.reference))),Promise.all(s)}getShallowModuleMetadata(t){let e=this._shallowModuleCache.get(t);if(e)return e;const n=Ud(this._reflector.shallowAnnotations(t),F.isTypeOf);return e={type:this._getTypeMetadata(t),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(t,e),e}getNgModuleMetadata(t,e=!0,n=null){t=Ke(t);let i=this._ngModuleCache.get(t);if(i)return i;const s=this._ngModuleResolver.resolve(t,e);if(!s)return null;const r=[],a=[],o=[],l=[],c=[],d=[],p=[],u=[],h=[];s.imports&&Sp(s.imports).forEach(e=>{let i;if(kp(e))i=e;else if(e&&e.ngModule){const t=e;i=t.ngModule,t.providers&&d.push(...this._getProvidersMetadata(t.providers,p,`provider for the NgModule '${Ip(i)}'`,[],e))}if(i){if(this._checkSelfImport(t,i))return;if(n||(n=new Set),n.has(i))return void this._reportError(Ue(`${this._getTypeDescriptor(i)} '${Ip(e)}' is imported recursively by the module '${Ip(t)}'.`),t);n.add(i);const s=this.getNgModuleSummary(i,n);if(n.delete(i),!s)return void this._reportError(Ue(`Unexpected ${this._getTypeDescriptor(e)} '${Ip(e)}' imported by the module '${Ip(t)}'. Please add a @NgModule annotation.`),t);l.push(s)}else this._reportError(Ue(`Unexpected value '${Ip(e)}' imported by the module '${Ip(t)}'`),t)}),s.exports&&Sp(s.exports).forEach(e=>{if(!kp(e))return void this._reportError(Ue(`Unexpected value '${Ip(e)}' exported by the module '${Ip(t)}'`),t);if(n||(n=new Set),n.has(e))return void this._reportError(Ue(`${this._getTypeDescriptor(e)} '${Ge(e)}' is exported recursively by the module '${Ip(t)}'`),t);n.add(e);const i=this.getNgModuleSummary(e,n);n.delete(e),i?c.push(i):a.push(this._getIdentifierMetadata(e))});const m=this._getTransitiveNgModuleMetadata(l,c);s.declarations&&Sp(s.declarations).forEach(e=>{if(!kp(e))return void this._reportError(Ue(`Unexpected value '${Ip(e)}' declared by the module '${Ip(t)}'`),t);const n=this._getIdentifierMetadata(e);if(this.isDirective(e))this.isAbstractDirective(e)&&this._reportError(Ue(`Directive ${Ip(e)} has no selector, please add it!`),e),m.addDirective(n),r.push(n),this._addTypeToModule(e,t);else{if(!this.isPipe(e))return void this._reportError(Ue(`Unexpected ${this._getTypeDescriptor(e)} '${Ip(e)}' declared by the module '${Ip(t)}'. Please add a @Pipe/@Directive/@Component annotation.`),t);m.addPipe(n),m.pipes.push(n),o.push(n),this._addTypeToModule(e,t)}});const f=[],g=[];return a.forEach(e=>{if(m.directivesSet.has(e.reference))f.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void this._reportError(Ue(`Can't export ${this._getTypeDescriptor(e.reference)} ${Ip(e.reference)} from ${Ip(t)} as it was neither declared nor imported!`),t);g.push(e),m.addExportedPipe(e)}}),s.providers&&d.push(...this._getProvidersMetadata(s.providers,p,`provider for the NgModule '${Ip(t)}'`,[],t)),s.entryComponents&&p.push(...Sp(s.entryComponents).map(t=>this._getEntryComponentMetadata(t))),s.bootstrap&&Sp(s.bootstrap).forEach(e=>{kp(e)?u.push(this._getIdentifierMetadata(e)):this._reportError(Ue(`Unexpected value '${Ip(e)}' used in the bootstrap property of module '${Ip(t)}'`),t)}),p.push(...u.map(t=>this._getEntryComponentMetadata(t.reference))),s.schemas&&h.push(...Sp(s.schemas)),i=new On({type:this._getTypeMetadata(t),providers:d,entryComponents:p,bootstrapComponents:u,schemas:h,declaredDirectives:r,exportedDirectives:f,declaredPipes:o,exportedPipes:g,importedModules:l,exportedModules:c,transitiveModule:m,id:s.id||null}),p.forEach(t=>m.addEntryComponent(t)),d.forEach(t=>m.addProvider(t,i.type)),m.addModule(i.type),this._ngModuleCache.set(t,i),i}_checkSelfImport(t,e){return t===e&&(this._reportError(Ue(`'${Ip(t)}' module can't import itself`),t),!0)}_getTypeDescriptor(t){if(kp(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"}_addTypeToModule(t,e){const n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(Ue(`Type ${Ip(t)} is part of the declarations of 2 modules: ${Ip(n)} and ${Ip(e)}! Please consider moving ${Ip(t)} to a higher module that imports ${Ip(n)} and ${Ip(e)}. You can also create a new NgModule that exports and includes ${Ip(t)} then import that NgModule in ${Ip(n)} and ${Ip(e)}.`),e):this._ngModuleOfTypes.set(t,e)}_getTransitiveNgModuleMetadata(t,e){const n=new Pn,i=new Map;return t.concat(e).forEach(t=>{t.modules.forEach(t=>n.addModule(t)),t.entryComponents.forEach(t=>n.addEntryComponent(t));const e=new Set;t.providers.forEach(t=>{const s=En(t.provider.token);let r=i.get(s);r||(r=new Set,i.set(s,r));const a=t.module.reference;!e.has(s)&&r.has(a)||(r.add(a),e.add(s),n.addProvider(t.provider,t.module))})}),e.forEach(t=>{t.exportedDirectives.forEach(t=>n.addExportedDirective(t)),t.exportedPipes.forEach(t=>n.addExportedPipe(t))}),t.forEach(t=>{t.exportedDirectives.forEach(t=>n.addDirective(t)),t.exportedPipes.forEach(t=>n.addPipe(t))}),n}_getIdentifierMetadata(t){return{reference:t=Ke(t)}}isInjectable(t){return this._reflector.tryAnnotations(t).some(t=>j.isTypeOf(t))}getInjectableSummary(t){return{summaryKind:Sn.Injectable,type:this._getTypeMetadata(t,null,!1)}}getInjectableMetadata(t,e=null,n=!0){const i=this._loadSummary(t,Sn.Injectable),s=i?i.type:this._getTypeMetadata(t,e,n),r=this._reflector.annotations(t).filter(t=>j.isTypeOf(t));if(0===r.length)return null;const a=r[r.length-1];return{symbol:t,type:s,providedIn:a.providedIn,useValue:a.useValue,useClass:a.useClass,useExisting:a.useExisting,useFactory:a.useFactory,deps:a.deps}}_getTypeMetadata(t,e=null,n=!0){const i=this._getIdentifierMetadata(t);return{reference:i.reference,diDeps:this._getDependenciesMetadata(i.reference,e,n),lifecycleHooks:(s=this._reflector,r=i.reference,_p.filter(t=>wp(s,t,r)))};var s,r}_getFactoryMetadata(t,e=null){return{reference:t=Ke(t),diDeps:this._getDependenciesMetadata(t,e)}}getPipeMetadata(t){const e=this._pipeCache.get(t);return e||this._reportError(Ue(`Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe ${Ip(t)}.`),t),e||null}getPipeSummary(t){const e=this._loadSummary(t,Sn.Pipe);return e||this._reportError(Ue(`Illegal state: Could not load the summary for pipe ${Ip(t)}.`),t),e}getOrLoadPipeMetadata(t){let e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e}_loadPipeMetadata(t){t=Ke(t);const e=this._pipeResolver.resolve(t),n=new Tn({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n}_getDependenciesMetadata(t,e,n=!0){let i=!1;const s=(e||this._reflector.parameters(t)||[]).map(t=>{let e=!1,n=!1,s=!1,r=!1,a=!1,o=null;return Array.isArray(t)?t.forEach(t=>{q.isTypeOf(t)?n=!0:z.isTypeOf(t)?s=!0:U.isTypeOf(t)?r=!0:H.isTypeOf(t)?a=!0:C.isTypeOf(t)?(e=!0,o=t.attributeName):w.isTypeOf(t)?o=t.token:(x.isTypeOf(t)||t instanceof mn||kp(t)&&null==o)&&(o=t)}):o=t,null==o?(i=!0,{}):{isAttribute:e,isHost:n,isSelf:s,isSkipSelf:r,isOptional:a,token:this._getTokenMetadata(o)}});if(i){const e=s.map(t=>t.token?Ip(t.token):"?").join(", "),i=`Can't resolve all parameters for ${Ip(t)}: (${e}).`;(n||this._config.strictInjectionParameters)&&this._reportError(Ue(i),t)}return s}_getTokenMetadata(t){let e;return e="string"==typeof(t=Ke(t))?{value:t}:{identifier:{reference:t}},e}_getProvidersMetadata(t,e,n,i=[],s){return t.forEach((r,a)=>{if(Array.isArray(r))this._getProvidersMetadata(r,e,n,i);else{let o;if((r=Ke(r))&&"object"==typeof r&&r.hasOwnProperty("provide"))this._validateProvider(r),o=new Mn(r.provide,r);else{if(!kp(r)){if(void 0===r)return void this._reportError(Ue("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));{const e=t.reduce((t,e,n)=>(n<a?t.push(`${Ip(e)}`):n==a?t.push(`?${Ip(e)}?`):n==a+1&&t.push("..."),t),[]).join(", ");return void this._reportError(Ue(`Invalid ${n||"provider"} - only instances of Provider and Type are allowed, got: [${e}]`),s)}}o=new Mn(r,{useClass:r})}o.token===this._reflector.resolveExternalReference(pn.ANALYZE_FOR_ENTRY_COMPONENTS)?e.push(...this._getEntryComponentsFromProvider(o,s)):i.push(this.getProviderMetadata(o))}}),i}_validateProvider(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(Ue(`Invalid provider for ${Ip(t.provide)}. useClass cannot be ${t.useClass}.\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case.`))}_getEntryComponentsFromProvider(t,e){const n=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(Ue("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(s=t.useValue,r=i,Re(s,new Ep,r),i.forEach(t=>{const e=this._getEntryComponentMetadata(t.reference,!1);e&&n.push(e)}),n):(this._reportError(Ue("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[]);var s,r}_getEntryComponentMetadata(t,e=!0){const n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};const i=this._loadSummary(t,Sn.Directive);if(i&&i.isComponent)return{componentType:t,componentFactory:i.componentFactory};if(e)throw Ue(`${t.name} cannot be used as an entry component.`);return null}_getInjectableTypeMetadata(t,e=null){const n=this._loadSummary(t,Sn.Injectable);return n?n.type:this._getTypeMetadata(t,e)}getProviderMetadata(t){let e,n=null,i=null,s=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableTypeMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(s={identifier:n})):t.useFactory&&(i=this._getFactoryMetadata(t.useFactory,t.dependencies),e=i.diDeps),{token:s,useClass:n,useValue:t.useValue,useFactory:i,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}}_getQueriesMetadata(t,e,n){const i=[];return Object.keys(t).forEach(s=>{const r=t[s];r.isViewQuery===e&&i.push(this._getQueryMetadata(r,s,n))}),i}_queryVarBindings(t){return t.split(/\s*,\s*/)}_getQueryMetadata(t,e,n){let i;return"string"==typeof t.selector?i=this._queryVarBindings(t.selector).map(t=>this._getTokenMetadata(t)):t.selector?i=[this._getTokenMetadata(t.selector)]:(this._reportError(Ue(`Can't construct a query for the property "${e}" of "${Ip(n)}" since the query selector wasn't defined.`),n),i=[]),{selectors:i,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null,static:t.static}}_reportError(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)}}function Cp(t,e=[]){if(t)for(let n=0;n<t.length;n++){const i=Ke(t[n]);Array.isArray(i)?Cp(i,e):e.push(i)}return e}function Sp(t){return(e=Cp(t))?Array.from(new Set(e)):[];var e}function kp(t){return t instanceof mn||t instanceof W}class Ep extends je{visitOther(t,e){e.push({reference:t})}}function Ip(t){return t instanceof mn?`${t.name} in ${t.filePath}`:Ge(t)}function Ap(t,e){let n=0;e.eager||(n|=4096),e.providerType===Uo.PrivateService&&(n|=8192),e.isModule&&(n|=1073741824),e.lifecycleHooks.forEach(t=>{t!==yp.OnDestroy&&e.providerType!==Uo.Directive&&e.providerType!==Uo.Component||(n|=Pp(t))});const{providerExpr:i,flags:s,depsExpr:r}=e.multiProvider?function(t,e,n){const i=[],s=[],r=n.map((e,n)=>{let i;if(e.useClass){const s=a(n,e.deps||e.useClass.diDeps);i=t.importExpr(e.useClass.reference).instantiate(s)}else if(e.useFactory){const s=a(n,e.deps||e.useFactory.diDeps);i=t.importExpr(e.useFactory.reference).callFn(s)}else if(e.useExisting){i=a(n,[{token:e.useExisting}])[0]}else i=mp(t,e.useValue);return i});return{providerExpr:Ie(s,[new ae(ke(r))],at),flags:1024|e,depsExpr:ke(i)};function a(e,n){return n.map((n,r)=>{const a=`p${e}_${r}`;return s.push(new Ht(a,rt)),i.push(Op(t,n)),_e(a)})}}(t,n,e.providers):Dp(t,n,e.providerType,e.providers[0]);return{providerExpr:i,flags:s,depsExpr:r,tokenExpr:Tp(t,e.token)}}function Dp(t,e,n,i){let s,r;n===Uo.Directive||n===Uo.Component?(s=t.importExpr(i.useClass.reference),e|=16384,r=i.deps||i.useClass.diDeps):i.useClass?(s=t.importExpr(i.useClass.reference),e|=512,r=i.deps||i.useClass.diDeps):i.useFactory?(s=t.importExpr(i.useFactory.reference),e|=1024,r=i.deps||i.useFactory.diDeps):i.useExisting?(s=Xt,e|=2048,r=[{token:i.useExisting}]):(s=mp(t,i.useValue),e|=256,r=[]);return{providerExpr:s,flags:e,depsExpr:ke(r.map(e=>Op(t,e)))}}function Tp(t,e){return e.identifier?t.importExpr(e.identifier.reference):De(e.value)}function Op(t,e){const n=e.isValue?mp(t,e.value):Tp(t,e.token);let i=0;return e.isSkipSelf&&(i|=1),e.isOptional&&(i|=2),e.isSelf&&(i|=4),e.isValue&&(i|=8),0===i?n:ke([De(i),n])}function Pp(t){let e=0;switch(t){case yp.AfterContentChecked:e=2097152;break;case yp.AfterContentInit:e=1048576;break;case yp.AfterViewChecked:e=8388608;break;case yp.AfterViewInit:e=4194304;break;case yp.DoCheck:e=262144;break;case yp.OnChanges:e=524288;break;case yp.OnDestroy:e=131072;break;case yp.OnInit:e=65536}return e}function Np(t,e,n,i){const s=i.map(t=>e.importExpr(t.componentFactory)),r=hn(t,pn.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:ke(s)},{token:r,isSkipSelf:!0,isOptional:!0},{token:hn(t,pn.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(pn.CodegenComponentFactoryResolver)},{providerExpr:o,flags:l,depsExpr:c}=Dp(e,n,Uo.PrivateService,{token:r,multi:!1,useClass:a});return{providerExpr:o,flags:l,depsExpr:c,tokenExpr:Tp(e,r)}}class Mp{constructor(t){this.ngModuleFactoryVar=t}}const Rp=_e("_l");class Lp{constructor(t){this.reflector=t}compile(t,e,n){const i=function(t,e){const n=_n(e),i=null!=n?`in ${t} ${yn(e)} in ${n}`:`in ${t} ${yn(e)}`,s=new Xs("",i);return new Qs(new Zs(s,-1,-1,-1),new Zs(s,-1,-1,-1))}("NgModule",e.type),s=e.transitiveModule.entryComponents,r=e.bootstrapComponents,a=new Ko(this.reflector,e,n,i),o=[Np(this.reflector,t,0,s)].concat(a.parse().map(e=>Ap(t,e))).map(({providerExpr:t,depsExpr:e,flags:n,tokenExpr:i})=>we(pn.moduleProviderDef).callFn([De(n),i,t,e])),l=we(pn.moduleDef).callFn([ke(o)]),c=Ie([new Ht(Rp.name)],[new ae(l)],at),d=`${yn(e.type)}NgFactory`;if(this._createNgModuleFactory(t,e.type.reference,we(pn.createModuleFactory).callFn([t.importExpr(e.type.reference),ke(r.map(e=>t.importExpr(e.reference))),c])),e.id){const n="string"==typeof e.id?De(e.id):t.importExpr(e.id),i=we(pn.RegisterModuleFactoryFn).callFn([n,_e(d)]).toStmt();t.statements.push(i)}return new Mp(d)}createStub(t,e){this._createNgModuleFactory(t,e,Xt)}_createNgModuleFactory(t,e,n){const i=_e(`${yn({reference:e})}NgFactory`).set(n).toDeclStmt(xe(pn.NgModuleFactory,[Ce(t.importExpr(e))],[Q.Const]),[Jt.Final,Jt.Exported]);t.statements.push(i)}}class Fp{constructor(t){this._reflector=t}isNgModule(t){return this._reflector.annotations(t).some(F.isTypeOf)}resolve(t,e=!0){const n=Ud(this._reflector.annotations(t),F.isTypeOf);if(n)return n;if(e)throw new Error(`No NgModule metadata found for '${Ge(t)}'.`);return null}}class jp extends Vs{constructor(t,e){super(!1),this.referenceFilter=t,this.importFilter=e,this.typeExpression=0,this.importsWithPrefixes=new Map,this.reexports=new Map}visitType(t,e,n="any"){t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)}visitLiteralExpr(t,e){const n=t.value;return null==n&&t.type!=at?(e.print(t,`(${n} as any)`),null):super.visitLiteralExpr(t,e)}visitLiteralArrayExpr(t,e){0===t.entries.length&&e.print(t,"(");const n=super.visitLiteralArrayExpr(t,e);return 0===t.entries.length&&e.print(t," as any[])"),n}visitExternalExpr(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null}visitAssertNotNullExpr(t,e){const n=super.visitAssertNotNullExpr(t,e);return e.print(t,"!"),n}visitDeclareVarStmt(t,e){if(t.hasModifier(Jt.Exported)&&t.value instanceof Lt&&!t.type){const{name:e,moduleName:n}=t.value.value;if(n){let i=this.reexports.get(n);return i||(i=[],this.reexports.set(n,i)),i.push({name:e,as:t.name}),null}}return t.hasModifier(Jt.Exported)&&e.print(t,"export "),t.hasModifier(Jt.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t,` ${t.name}`),this._printColonType(t.type,e),t.value&&(e.print(t," = "),t.value.visitExpression(this,e)),e.println(t,";"),null}visitWrappedNodeExpr(t,e){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")}visitCastExpr(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null}visitInstantiateExpr(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null}visitDeclareClassStmt(t,e){return e.pushClass(t),t.hasModifier(Jt.Exported)&&e.print(t,"export "),e.print(t,`class ${t.name}`),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(t=>this._visitClassField(t,e)),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(t=>this._visitClassGetter(t,e)),t.methods.forEach(t=>this._visitClassMethod(t,e)),e.decIndent(),e.println(t,"}"),e.popClass(),null}_visitClassField(t,e){t.hasModifier(Jt.Private)&&e.print(null,"/*private*/ "),t.hasModifier(Jt.Static)&&e.print(null,"static "),e.print(null,t.name),this._printColonType(t.type,e),t.initializer&&(e.print(null," = "),t.initializer.visitExpression(this,e)),e.println(null,";")}_visitClassGetter(t,e){t.hasModifier(Jt.Private)&&e.print(null,"private "),e.print(null,`get ${t.name}()`),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")}_visitClassConstructor(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")}_visitClassMethod(t,e){t.hasModifier(Jt.Private)&&e.print(null,"private "),e.print(null,`${t.name}(`),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")}visitFunctionExpr(t,e){return t.name&&(e.print(t,"function "),e.print(t,t.name)),e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),t.name||e.print(t," => "),e.println(t,"{"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null}visitDeclareFunctionStmt(t,e){return t.hasModifier(Jt.Exported)&&e.print(t,"export "),e.print(t,`function ${t.name}(`),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null}visitTryCatchStmt(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,`} catch (${Rs.name}) {`),e.incIndent();const n=[Ls.set(Rs.prop("stack",null)).toDeclStmt(null,[Jt.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null}visitBuiltinType(t,e){let n;switch(t.name){case J.Bool:n="boolean";break;case J.Dynamic:n="any";break;case J.Function:n="Function";break;case J.Number:case J.Int:n="number";break;case J.String:n="string";break;case J.None:n="never";break;default:throw new Error(`Unsupported builtin type ${t.name}`)}return e.print(null,n),null}visitExpressionType(t,e){return t.value.visitExpression(this,e),null!==t.typeParams&&(e.print(null,"<"),this.visitAllObjects(t=>this.visitType(t,e),t.typeParams,e,","),e.print(null,">")),null}visitArrayType(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null}visitMapType(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null}getBuiltinMethodName(t){let e;switch(t){case mt.ConcatArray:e="concat";break;case mt.SubscribeObservable:e="subscribe";break;case mt.Bind:e="bind";break;default:throw new Error(`Unknown builtin method: ${t}`)}return e}_visitParams(t,e){this.visitAllObjects(t=>{e.print(null,t.name),this._printColonType(t.type,e)},t,e,",")}_visitIdentifier(t,e,n){const{name:i,moduleName:s}=t;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(s&&(!this.importFilter||!this.importFilter(t))){let t=this.importsWithPrefixes.get(s);null==t&&(t=`i${this.importsWithPrefixes.size}`,this.importsWithPrefixes.set(s,t)),n.print(null,`${t}.`)}if(n.print(null,i),this.typeExpression>0){(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(t=>t.visitType(this,n),e,n,","),n.print(null,">"))}}}_printColonType(t,e,n){t!==at&&(e.print(null,":"),this.visitType(t,e,n))}}class Vp{constructor(t){this._reflector=t}isPipe(t){const e=this._reflector.annotations(Ke(t));return e&&e.some(P.isTypeOf)}resolve(t,e=!0){const n=this._reflector.annotations(Ke(t));if(n){const t=Ud(n,P.isTypeOf);if(t)return t}if(e)throw new Error(`No Pipe decorator found on ${Ge(t)}`);return null}}new class{notifyImplicitReceiverUse(){}getLocal(t){return t===Wr.event.name?_e("_any"):null}};class Bp{constructor(t,e){this.viewClassVar=t,this.rendererTypeVar=e}}class Hp{constructor(t){this._reflector=t}compileComponent(t,e,n,i,s){let r,a=0;if(!e.isHost){const n=e.template,s=[];n.animations&&n.animations.length&&s.push(new Gt("animation",mp(t,n.animations),!0));const a=_e(xn(e.type.reference));r=a.name,t.statements.push(a.set(we(pn.createRendererType2).callFn([new Kt([new Gt("encapsulation",De(n.encapsulation),!1),new Gt("styles",i,!1),new Gt("data",new Kt(s),!1)])])).toDeclStmt(xe(pn.RendererType2),[Jt.Final,Jt.Exported]))}const o=n=>{const i=a++;return new Gp(this._reflector,t,n,e,i,s,o)},l=o(null);return l.visitAll([],n),t.statements.push(...l.build()),new Bp(l.viewName,r)}}const zp=_e("_l"),Up=_e("_v"),qp=_e("_ck"),$p=_e("_co"),Wp=_e("en"),Yp=_e("ad");class Gp{constructor(t,e,n,i,s,r,a){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=i,this.embeddedViewIndex=s,this.usedPipes=r,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?rt:Ce(e.importExpr(this.component.type.reference)),this.viewName=wn(this.component.type.reference,this.embeddedViewIndex)}visitAll(t,e){this.variables=t,this.parent||this.usedPipes.forEach(t=>{t.pure&&(this.purePipeNodeIndices[t.name]=this._createPipe(null,t))}),this.parent||this.component.viewQueries.forEach((t,e)=>{const n=e+1,i=t.first?0:1,s=134217728|tu(t);this.nodes.push(()=>({sourceSpan:null,nodeFlags:s,nodeDef:we(pn.queryDef).callFn([De(s),De(n),new Kt([new Gt(t.propertyName,De(i),!1)])])}))}),$o(this,e),this.parent&&(0===e.length||Kp(e))&&this.nodes.push(()=>({sourceSpan:null,nodeFlags:1,nodeDef:we(pn.anchorDef).callFn([De(0),Xt,Xt,De(0)])}))}build(t=[]){this.children.forEach(e=>e.build(t));const{updateRendererStmts:e,updateDirectivesStmts:n,nodeDefExprs:i}=this._createNodeExpressions(),s=this._createUpdateFn(e),r=this._createUpdateFn(n);let a=0;this.parent||this.component.changeDetection!==T.OnPush||(a|=2);const o=new se(this.viewName,[new Ht(zp.name)],[new ae(we(pn.viewDef).callFn([De(a),ke(i),r,s]))],xe(pn.ViewDefinition),0===this.embeddedViewIndex?[Jt.Exported]:[]);return t.push(o),t}_createUpdateFn(t){let e;if(t.length>0){const n=[];!this.component.isHost&&fe(t).has($p.name)&&n.push($p.set(Up.prop("component")).toDeclStmt(this.compType)),e=Ie([new Ht(qp.name,at),new Ht(Up.name,at)],[...n,...t],at)}else e=Xt;return e}visitNgContent(t,e){this.nodes.push(()=>({sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:we(pn.ngContentDef).callFn([De(t.ngContentIndex),De(t.index)])}))}visitText(t,e){this.nodes.push(()=>({sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:we(pn.textDef).callFn([De(-1),De(t.ngContentIndex),ke([De(t.value)])])}))}visitBoundText(t,e){const n=this.nodes.length;this.nodes.push(null);const i=t.value.ast,s=i.expressions.map((e,i)=>this._preprocessUpdateExpression({nodeIndex:n,bindingIndex:i,sourceSpan:t.sourceSpan,context:$p,value:e})),r=n;this.nodes[n]=()=>({sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:we(pn.textDef).callFn([De(r),De(t.ngContentIndex),ke(i.strings.map(t=>De(t)))]),updateRenderer:s})}visitEmbeddedTemplate(t,e){const n=this.nodes.length;this.nodes.push(null);const{flags:i,queryMatchesExpr:s,hostEvents:r}=this._visitElementOrTemplate(n,t),a=this.viewBuilderFactory(this);this.children.push(a),a.visitAll(t.variables,t.children);const o=this.nodes.length-n-1;this.nodes[n]=()=>({sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:we(pn.anchorDef).callFn([De(i),s,De(t.ngContentIndex),De(o),this._createElementHandleEventFn(n,r),_e(a.viewName)])})}visitElement(t,e){const n=this.nodes.length;this.nodes.push(null);const i=a(t.name)?null:t.name,{flags:s,usedEvents:r,queryMatchesExpr:o,hostBindings:l,hostEvents:c}=this._visitElementOrTemplate(n,t);let d=[],p=[],u=[];if(i){const e=t.inputs.map(t=>({context:$p,inputAst:t,dirAst:null})).concat(l);e.length&&(p=e.map((t,e)=>this._preprocessUpdateExpression({context:t.context,nodeIndex:n,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})),d=e.map(t=>function(t,e){const n=t.type;switch(n){case 1:return ke([De(1),De(t.name),De(t.securityContext)]);case 0:return ke([De(8),De(t.name),De(t.securityContext)]);case 4:return ke([De(8|(e&&e.directive.isComponent?32:16)),De("@"+t.name),De(t.securityContext)]);case 2:return ke([De(2),De(t.name),Xt]);case 3:return ke([De(4),De(t.name),De(t.unit)]);default:throw new Error(`unexpected ${n}`)}}(t.inputAst,t.dirAst))),u=r.map(([t,e])=>ke([De(t),De(e)]))}$o(this,t.children);const h=this.nodes.length-n-1,m=t.directives.find(t=>t.directive.isComponent);let f=Xt,g=Xt;m&&(g=this.outputCtx.importExpr(m.directive.componentViewType),f=this.outputCtx.importExpr(m.directive.rendererType));const b=n;this.nodes[n]=()=>({sourceSpan:t.sourceSpan,nodeFlags:1|s,nodeDef:we(pn.elementDef).callFn([De(b),De(s),o,De(t.ngContentIndex),De(h),De(i),i?Zp(t):Xt,d.length?ke(d):Xt,u.length?ke(u):Xt,this._createElementHandleEventFn(n,c),g,f]),updateRenderer:p})}_visitElementOrTemplate(t,e){let n=0;e.hasViewContainer&&(n|=16777216);const i=new Map;e.outputs.forEach(t=>{const{name:e,target:n}=Jp(t,null);i.set(eu(n,e),[n,e])}),e.directives.forEach(t=>{t.hostEvents.forEach(e=>{const{name:n,target:s}=Jp(e,t);i.set(eu(s,n),[s,n])})});const s=[],r=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(t=>{let n;if(e.directives.forEach(e=>{e.directive.type.reference===En(t.token)&&(n=e)}),n){const{hostBindings:a,hostEvents:o}=this._visitDirective(t,n,e.references,e.queryMatches,i);s.push(...a),r.push(...o)}else this._visitProvider(t,e.queryMatches)});let a=[];return e.queryMatches.forEach(t=>{let e;En(t.value)===this.reflector.resolveExternalReference(pn.ElementRef)?e=0:En(t.value)===this.reflector.resolveExternalReference(pn.ViewContainerRef)?e=3:En(t.value)===this.reflector.resolveExternalReference(pn.TemplateRef)&&(e=2),null!=e&&a.push(ke([De(t.queryId),De(e)]))}),e.references.forEach(e=>{let n;e.value?En(e.value)===this.reflector.resolveExternalReference(pn.TemplateRef)&&(n=2):n=1,null!=n&&(this.refNodeIndices[e.name]=t,a.push(ke([De(e.name),De(n)])))}),e.outputs.forEach(t=>{r.push({context:$p,eventAst:t,dirAst:null})}),{flags:n,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?ke(a):Xt,hostBindings:s,hostEvents:r}}_visitDirective(t,e,n,i,s){const r=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach((t,n)=>{const i=e.contentQueryStartId+n,s=67108864|tu(t),r=t.first?0:1;this.nodes.push(()=>({sourceSpan:e.sourceSpan,nodeFlags:s,nodeDef:we(pn.queryDef).callFn([De(s),De(i),new Kt([new Gt(t.propertyName,De(r),!1)])])}))});const a=this.nodes.length-r-1;let{flags:o,queryMatchExprs:l,providerExpr:c,depsExpr:d}=this._visitProviderOrDirective(t,i);n.forEach(e=>{e.value&&En(e.value)===En(t.token)&&(this.refNodeIndices[e.name]=r,l.push(ke([De(e.name),De(4)])))}),e.directive.isComponent&&(o|=32768);const p=e.inputs.map((t,e)=>{const n=ke([De(e),De(t.directiveName)]);return new Gt(t.directiveName,n,!1)}),u=[],h=e.directive;Object.keys(h.outputs).forEach(t=>{const e=h.outputs[t];s.has(e)&&u.push(new Gt(t,De(e),!1))});let m=[];(e.inputs.length||(327680&o)>0)&&(m=e.inputs.map((t,e)=>this._preprocessUpdateExpression({nodeIndex:r,bindingIndex:e,sourceSpan:t.sourceSpan,context:$p,value:t.value})));const f=we(pn.nodeValue).callFn([Up,De(r)]),g=e.hostProperties.map(t=>({context:f,dirAst:e,inputAst:t})),b=e.hostEvents.map(t=>({context:f,eventAst:t,dirAst:e})),v=r;return this.nodes[r]=()=>({sourceSpan:e.sourceSpan,nodeFlags:16384|o,nodeDef:we(pn.directiveDef).callFn([De(v),De(o),l.length?ke(l):Xt,De(a),c,d,p.length?new Kt(p):Xt,u.length?new Kt(u):Xt]),updateDirectives:m,directive:e.directive.type}),{hostBindings:g,hostEvents:b}}_visitProvider(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))}_visitComponentFactoryResolverProvider(t){const e=t.find(t=>t.directive.isComponent);if(e&&e.directive.entryComponents.length){const{providerExpr:t,depsExpr:n,flags:i,tokenExpr:s}=Np(this.reflector,this.outputCtx,8192,e.directive.entryComponents);this._addProviderNode({providerExpr:t,depsExpr:n,flags:i,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}}_addProviderNode(t){this.nodes.push(()=>({sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:we(pn.providerDef).callFn([De(t.flags),t.queryMatchExprs.length?ke(t.queryMatchExprs):Xt,t.tokenExpr,t.providerExpr,t.depsExpr])}))}_visitProviderOrDirective(t,e){let n=[];e.forEach(e=>{En(e.value)===En(t.token)&&n.push(ke([De(e.queryId),De(4)]))});const{providerExpr:i,depsExpr:s,flags:r,tokenExpr:a}=Ap(this.outputCtx,t);return{flags:0|r,queryMatchExprs:n,providerExpr:i,depsExpr:s,tokenExpr:a,sourceSpan:t.sourceSpan}}getLocal(t){if(t==Wr.event.name)return Wr.event;let e=Up;for(let n=this;n;n=n.parent,e=e.prop("parent").cast(rt)){const i=n.refNodeIndices[t];if(null!=i)return we(pn.nodeValue).callFn([e,De(i)]);const s=n.variables.find(e=>e.name===t);if(s){const t=s.value||"$implicit";return e.prop("context").prop(t)}}return null}notifyImplicitReceiverUse(){}_createLiteralArrayConverter(t,e){if(0===e){const t=we(pn.EMPTY_ARRAY);return()=>t}const n=this.nodes.length;return this.nodes.push(()=>({sourceSpan:t,nodeFlags:32,nodeDef:we(pn.pureArrayDef).callFn([De(n),De(e)])})),t=>Xp(n,t)}_createLiteralMapConverter(t,e){if(0===e.length){const t=we(pn.EMPTY_MAP);return()=>t}const n=Ee(e.map((t,e)=>Object.assign(Object.assign({},t),{value:De(e)}))),i=this.nodes.length;return this.nodes.push(()=>({sourceSpan:t,nodeFlags:64,nodeDef:we(pn.pureObjectDef).callFn([De(i),n])})),t=>Xp(i,t)}_createPipeConverter(t,e,n){const i=this.usedPipes.find(t=>t.name===e);if(i.pure){const i=this.nodes.length;this.nodes.push(()=>({sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:we(pn.purePipeDef).callFn([De(i),De(n)])}));let s=Up,r=this;for(;r.parent;)r=r.parent,s=s.prop("parent").cast(rt);const a=r.purePipeNodeIndices[e],o=we(pn.nodeValue).callFn([s,De(a)]);return e=>Qp(t.nodeIndex,t.bindingIndex,Xp(i,[o].concat(e)))}{const e=this._createPipe(t.sourceSpan,i),n=we(pn.nodeValue).callFn([Up,De(e)]);return e=>Qp(t.nodeIndex,t.bindingIndex,n.callMethod("transform",e))}}_createPipe(t,e){const n=this.nodes.length;let i=0;e.type.lifecycleHooks.forEach(t=>{t===yp.OnDestroy&&(i|=Pp(t))});const s=e.type.diDeps.map(t=>Op(this.outputCtx,t));return this.nodes.push(()=>({sourceSpan:t,nodeFlags:16,nodeDef:we(pn.pipeDef).callFn([De(i),this.outputCtx.importExpr(e.type.reference),ke(s)])})),n}_preprocessUpdateExpression(t){return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Kr({createLiteralArrayConverter:e=>this._createLiteralArrayConverter(t.sourceSpan,e),createLiteralMapConverter:e=>this._createLiteralMapConverter(t.sourceSpan,e),createPipeConverter:(e,n)=>this._createPipeConverter(t,e,n)},t.value)}}_createNodeExpressions(){const t=this;let e=0;const n=[],i=[],s=this.nodes.map((t,e)=>{const{nodeDef:s,nodeFlags:a,updateDirectives:o,updateRenderer:l,sourceSpan:c}=t();l&&n.push(...r(e,c,l,!1)),o&&i.push(...r(e,c,o,(327680&a)>0));return ve(3&a?new Zt([zp.callFn([]).callFn([]),s]):s,c)});return{updateRendererStmts:n,updateDirectivesStmts:i,nodeDefExprs:s};function r(n,i,s,r){const a=[],o=s.map(({sourceSpan:n,context:i,value:s})=>{const r=""+e++,o=i===$p?t:null,{stmts:l,currValExpr:c}=Xr(o,i,s,r,er.General);return a.push(...l.map(t=>be(t,n))),ve(c,n)});return(s.length||r)&&a.push(be(Xp(n,o).toStmt(),i)),a}}_createElementHandleEventFn(t,e){const n=[];let i,s=0;if(e.forEach(({context:t,eventAst:e,dirAst:i})=>{const r=""+s++,a=t===$p?this:null,{stmts:o,allowDefault:l}=Gr(a,t,e.handler,r),c=o;l&&c.push(Yp.set(l.and(Yp)).toStmt());const{target:d,name:p}=Jp(e,i),u=eu(d,p);n.push(be(new pe(De(u).identical(Wp),c),e.sourceSpan))}),n.length>0){const t=[Yp.set(De(!0)).toDeclStmt(ot)];!this.component.isHost&&fe(n).has($p.name)&&t.push($p.set(Up.prop("component")).toDeclStmt(this.compType)),i=Ie([new Ht(Up.name,at),new Ht(Wp.name,at),new Ht(Wr.event.name,at)],[...t,...n,new ae(Yp)],at)}else i=Xt;return i}visitDirective(t,e){}visitDirectiveProperty(t,e){}visitReference(t,e){}visitVariable(t,e){}visitEvent(t,e){}visitElementProperty(t,e){}visitAttr(t,e){}}function Kp(t){const e=t[t.length-1];return e instanceof Vo?e.hasViewContainer:e instanceof jo?a(e.name)&&e.children.length?Kp(e.children):e.hasViewContainer:e instanceof qo}function Zp(t){const e=Object.create(null);return t.attrs.forEach(t=>{e[t.name]=t.value}),t.directives.forEach(t=>{Object.keys(t.directive.hostAttributes).forEach(n=>{const i=t.directive.hostAttributes[n],s=e[n];var r,a,o;e[n]=null!=s?(a=s,o=i,"class"==(r=n)||"style"==r?`${a} ${o}`:o):i})}),ke(Object.keys(e).sort().map(t=>ke([De(t),De(e[t])])))}function Xp(t,e){return e.length>10?qp.callFn([Up,De(t),De(1),ke(e)]):qp.callFn([Up,De(t),De(0),...e])}function Qp(t,e,n){return we(pn.unwrapValue).callFn([Up,De(t),De(e),n])}function Jp(t,e){return t.isAnimation?{name:`@${t.name}.${t.phase}`,target:e&&e.directive.isComponent?"component":null}:t}function tu(t){let e=0;return t.first&&t.static?e|=268435456:e|=536870912,e}function eu(t,e){return t?`${t}:${e}`:e}new Set(["useValue","useFactory","data","id","loadChildren"]);class nu{static build(){const t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new iu(t):nu.empty}}}}nu.missing={},nu.empty={resolve:t=>nu.missing};class iu extends nu{constructor(t){super(),this.bindings=t}resolve(t){return this.bindings.has(t)?this.bindings.get(t):nu.missing}}class su{}class ru{constructor(){this._summaries=new Map}isLibraryFile(){return!1}toSummaryFileName(t){return t}fromSummaryFileName(t){return t}resolveSummary(t){return this._summaries.get(t)||null}getSymbolsOf(){return[]}getImportAs(t){return t}getKnownModuleName(t){return null}addSummary(t){this._summaries.set(t.symbol,t)}}function au(t,e,n,i,s){const r=i.createChildWihtLocalVars();for(let o=0;o<t.length;o++)r.vars.set(t[o],e[o]);const a=s.visitAllStatements(n,r);return a?a.value:null}class ou{constructor(t,e,n,i){this.parent=t,this.instance=e,this.className=n,this.vars=i,this.exports=[]}createChildWihtLocalVars(){return new ou(this,this.instance,this.className,new Map)}}class lu{constructor(t){this.value=t}}class cu{constructor(t){this.reflector=t}debugAst(t){return function(t){const e=new jp,n=js.createRoot();return(Array.isArray(t)?t:[t]).forEach(t=>{if(t instanceof ne)t.visitStatement(e,n);else if(t instanceof bt)t.visitExpression(e,n);else{if(!(t instanceof tt))throw new Error(`Don't know how to print debug info for ${t}`);t.visitType(e,n)}}),n.toSource()}(t)}visitDeclareVarStmt(t,e){const n=t.value?t.value.visitExpression(this,e):void 0;return e.vars.set(t.name,n),t.hasModifier(Jt.Exported)&&e.exports.push(t.name),null}visitWriteVarExpr(t,e){const n=t.value.visitExpression(this,e);let i=e;for(;null!=i;){if(i.vars.has(t.name))return i.vars.set(t.name,n),n;i=i.parent}throw new Error(`Not declared variable ${t.name}`)}visitWrappedNodeExpr(t,e){throw new Error("Cannot interpret a WrappedNodeExpr.")}visitTypeofExpr(t,e){throw new Error("Cannot interpret a TypeofExpr")}visitReadVarExpr(t,e){let n=t.name;if(null!=t.builtin)switch(t.builtin){case ht.Super:return Object.getPrototypeOf(e.instance);case ht.This:return e.instance;case ht.CatchError:n=pu;break;case ht.CatchStack:n=uu;break;default:throw new Error(`Unknown builtin variable ${t.builtin}`)}let i=e;for(;null!=i;){if(i.vars.has(n))return i.vars.get(n);i=i.parent}throw new Error(`Not declared variable ${n}`)}visitWriteKeyExpr(t,e){const n=t.receiver.visitExpression(this,e),i=t.index.visitExpression(this,e),s=t.value.visitExpression(this,e);return n[i]=s,s}visitWritePropExpr(t,e){const n=t.receiver.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[t.name]=i,i}visitInvokeMethodExpr(t,e){const n=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);let s;if(null!=t.builtin)switch(t.builtin){case mt.ConcatArray:s=n.concat(...i);break;case mt.SubscribeObservable:s=n.subscribe({next:i[0]});break;case mt.Bind:s=n.bind(...i);break;default:throw new Error(`Unknown builtin method ${t.builtin}`)}else s=n[t.name].apply(n,i);return s}visitInvokeFunctionExpr(t,e){const n=this.visitAllExpressions(t.args,e),i=t.fn;if(i instanceof vt&&i.builtin===ht.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;return t.fn.visitExpression(this,e).apply(null,n)}visitReturnStmt(t,e){return new lu(t.value.visitExpression(this,e))}visitDeclareClassStmt(t,e){const n=function(t,e,n){const i={};t.getters.forEach(s=>{i[s.name]={configurable:!1,get:function(){const i=new ou(e,this,t.name,e.vars);return au([],[],s.body,i,n)}}}),t.methods.forEach(function(s){const r=s.params.map(t=>t.name);i[s.name]={writable:!1,configurable:!1,value:function(...i){const a=new ou(e,this,t.name,e.vars);return au(r,i,s.body,a,n)}}});const s=t.constructorMethod.params.map(t=>t.name),r=function(...i){const r=new ou(e,this,t.name,e.vars);t.fields.forEach(t=>{this[t.name]=void 0}),au(s,i,t.constructorMethod.body,r,n)},a=t.parent?t.parent.visitExpression(n,e):Object;return r.prototype=Object.create(a.prototype,i),r}(t,e,this);return e.vars.set(t.name,n),t.hasModifier(Jt.Exported)&&e.exports.push(t.name),null}visitExpressionStmt(t,e){return t.expr.visitExpression(this,e)}visitIfStmt(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null}visitTryCatchStmt(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(TH){const i=e.createChildWihtLocalVars();return i.vars.set(pu,TH),i.vars.set(uu,TH.stack),this.visitAllStatements(t.catchStmts,i)}}visitThrowStmt(t,e){throw t.error.visitExpression(this,e)}visitInstantiateExpr(t,e){const n=this.visitAllExpressions(t.args,e);return new(t.classExpr.visitExpression(this,e))(...n)}visitLiteralExpr(t,e){return t.value}visitLocalizedString(t,e){return null}visitExternalExpr(t,e){return this.reflector.resolveExternalReference(t.value)}visitConditionalExpr(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null}visitNotExpr(t,e){return!t.condition.visitExpression(this,e)}visitAssertNotNullExpr(t,e){return t.condition.visitExpression(this,e)}visitCastExpr(t,e){return t.value.visitExpression(this,e)}visitFunctionExpr(t,e){return du(t.params.map(t=>t.name),t.statements,e,this)}visitDeclareFunctionStmt(t,e){const n=t.params.map(t=>t.name);return e.vars.set(t.name,du(n,t.statements,e,this)),t.hasModifier(Jt.Exported)&&e.exports.push(t.name),null}visitUnaryOperatorExpr(t,e){const n=()=>t.expr.visitExpression(this,e);switch(t.operator){case pt.Plus:return+n();case pt.Minus:return-n();default:throw new Error(`Unknown operator ${t.operator}`)}}visitBinaryOperatorExpr(t,e){const n=()=>t.lhs.visitExpression(this,e),i=()=>t.rhs.visitExpression(this,e);switch(t.operator){case ut.Equals:return n()==i();case ut.Identical:return n()===i();case ut.NotEquals:return n()!=i();case ut.NotIdentical:return n()!==i();case ut.And:return n()&&i();case ut.Or:return n()||i();case ut.Plus:return n()+i();case ut.Minus:return n()-i();case ut.Divide:return n()/i();case ut.Multiply:return n()*i();case ut.Modulo:return n()%i();case ut.Lower:return n()<i();case ut.LowerEquals:return n()<=i();case ut.Bigger:return n()>i();case ut.BiggerEquals:return n()>=i();default:throw new Error(`Unknown operator ${t.operator}`)}}visitReadPropExpr(t,e){let n;return n=t.receiver.visitExpression(this,e)[t.name],n}visitReadKeyExpr(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]}visitLiteralArrayExpr(t,e){return this.visitAllExpressions(t.entries,e)}visitLiteralMapExpr(t,e){const n={};return t.entries.forEach(t=>n[t.key]=t.value.visitExpression(this,e)),n}visitCommaExpr(t,e){const n=this.visitAllExpressions(t.parts,e);return n[n.length-1]}visitAllExpressions(t,e){return t.map(t=>t.visitExpression(this,e))}visitAllStatements(t,e){for(let n=0;n<t.length;n++){const i=t[n].visitStatement(this,e);if(i instanceof lu)return i}return null}}function du(t,e,n,i){return(...s)=>au(t,s,e,n,i)}const pu="error",uu="stack";class hu{constructor(t,e,n,i,s,r,a,o,l,c,d){this._metadataResolver=t,this._templateParser=e,this._styleCompiler=n,this._viewCompiler=i,this._ngModuleCompiler=s,this._summaryResolver=r,this._reflector=a,this._jitEvaluator=o,this._compilerConfig=l,this._console=c,this.getExtraNgModuleProviders=d,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}compileModuleSync(t){return Ve(this._compileModuleAndComponents(t,!0))}compileModuleAsync(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))}compileModuleAndAllComponentsSync(t){return Ve(this._compileModuleAndAllComponents(t,!0))}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))}getComponentFactory(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory}loadAotSummaries(t){this.clearCache(),this._addAotSummaries(t)}_addAotSummaries(t){if(this._addedAotSummaries.has(t))return;this._addedAotSummaries.add(t);const e=t();for(let n=0;n<e.length;n++){const t=e[n];if("function"==typeof t)this._addAotSummaries(t);else{const e=t;this._summaryResolver.addSummary({symbol:e.type.reference,metadata:null,type:e})}}}hasAotSummary(t){return!!this._summaryResolver.resolveSummary(t)}_filterJitIdentifiers(t){return t.map(t=>t.reference).filter(t=>!this.hasAotSummary(t))}_compileModuleAndComponents(t,e){return Be(this._loadModules(t,e),()=>(this._compileComponents(t,null),this._compileModule(t)))}_compileModuleAndAllComponents(t,e){return Be(this._loadModules(t,e),()=>{const e=[];return this._compileComponents(t,e),{ngModuleFactory:this._compileModule(t),componentFactories:e}})}_loadModules(t,e){const n=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(t=>{const i=this._metadataResolver.getNgModuleMetadata(t);this._filterJitIdentifiers(i.declaredDirectives).forEach(t=>{const s=this._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);s&&n.push(s)}),this._filterJitIdentifiers(i.declaredPipes).forEach(t=>this._metadataResolver.getOrLoadPipeMetadata(t))}),He(n)}_compileModule(t){let e=this._compiledNgModuleCache.get(t);if(!e){const n=this._metadataResolver.getNgModuleMetadata(t),i=this.getExtraNgModuleProviders(n.type.reference),s=gu(),r=this._ngModuleCompiler.compile(s,n,i);e=this._interpretOrJit(function(t){return Ln(`${yn(t.type)}/module.ngfactory.js`)}(n),s.statements)[r.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,e)}return e}_compileComponents(t,e){const n=this._metadataResolver.getNgModuleMetadata(t),i=new Map,s=new Set,r=this._filterJitIdentifiers(n.transitiveModule.modules);r.forEach(t=>{const n=this._metadataResolver.getNgModuleMetadata(t);this._filterJitIdentifiers(n.declaredDirectives).forEach(t=>{i.set(t,n);const r=this._metadataResolver.getDirectiveMetadata(t);if(r.isComponent&&(s.add(this._createCompiledTemplate(r,n)),e)){const t=this._createCompiledHostTemplate(r.type.reference,n);s.add(t),e.push(r.componentFactory)}})}),r.forEach(t=>{const e=this._metadataResolver.getNgModuleMetadata(t);this._filterJitIdentifiers(e.declaredDirectives).forEach(t=>{const e=this._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(t=>{const e=i.get(t.componentType);s.add(this._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(t=>{if(!this.hasAotSummary(t.componentType)){const e=i.get(t.componentType);s.add(this._createCompiledHostTemplate(t.componentType,e))}})}),s.forEach(t=>this._compileTemplate(t))}clearCacheFor(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t);this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)}clearCache(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()}_createCompiledHostTemplate(t,e){if(!e)throw new Error(`Component ${Ge(t)} is not part of any NgModule or the module has not been imported into your module.`);let n=this._compiledHostTemplateCache.get(t);if(!n){const i=this._metadataResolver.getDirectiveMetadata(t);fu(i);const s=this._metadataResolver.getHostComponentMetadata(i,i.componentFactory.viewDefFactory);n=new mu(!0,i.type,s,e,[i.type]),this._compiledHostTemplateCache.set(t,n)}return n}_createCompiledTemplate(t,e){let n=this._compiledTemplateCache.get(t.type.reference);return n||(fu(t),n=new mu(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n}_compileTemplate(t){if(t.isCompiled)return;const e=t.compMeta,n=new Map,i=gu(),s=this._styleCompiler.compileComponent(i,e);e.template.externalStylesheets.forEach(t=>{const i=this._styleCompiler.compileStyles(gu(),e,t);n.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(s,n);t.ngModule.transitiveModule.pipes.map(t=>this._metadataResolver.getPipeSummary(t.reference));const{template:r,pipes:a}=this._parseTemplate(e,t.ngModule,t.directives),o=this._viewCompiler.compileComponent(i,e,r,_e(s.stylesVar),a),l=this._interpretOrJit(function(t,e){return Ln(`${yn(t)}/${yn(e.type)}.ngfactory.js`)}(t.ngModule.type,t.compMeta),i.statements),c=l[o.viewClassVar],d=l[o.rendererTypeVar];t.compiled(c,d)}_parseTemplate(t,e,n){const i=t.template.preserveWhitespaces,s=n.map(t=>this._metadataResolver.getDirectiveSummary(t.reference)),r=e.transitiveModule.pipes.map(t=>this._metadataResolver.getPipeSummary(t.reference));return this._templateParser.parse(t,t.template.htmlAst,s,r,e.schemas,Fn(e.type,t,t.template),i)}_resolveStylesCompileResult(t,e){t.dependencies.forEach((t,n)=>{const i=e.get(t.moduleUrl),s=this._resolveAndEvalStylesCompileResult(i,e);t.setValue(s)})}_resolveAndEvalStylesCompileResult(t,e){return this._resolveStylesCompileResult(t,e),this._interpretOrJit(function(t,e){const n=t.moduleUrl.split(/\/\\/g);return Ln(`css/${e}${n[n.length-1]}.ngstyle.js`)}(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]}_interpretOrJit(t,e){return this._compilerConfig.useJit?this._jitEvaluator.evaluateStatements(t,e,this._reflector,this._compilerConfig.jitDevMode):function(t,e){const n=new ou(null,null,null,new Map);new cu(e).visitAllStatements(t,n);const i={};return n.exports.forEach(t=>{i[t]=n.vars.get(t)}),i}(e,this._reflector)}}class mu{constructor(t,e,n,i,s){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=i,this.directives=s,this._viewClass=null,this.isCompiled=!1}compiled(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(let n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0}}function fu(t){if(!t.isComponent)throw new Error(`Could not compile '${yn(t.type)}' because it is not a component.`)}function gu(){return{statements:[],genFilePath:"",importExpr:t=>we({name:yn(t),moduleName:null,runtime:t}),constantPool:new rn}}class bu{}const vu=class{constructor(t=null){this._packagePrefix=t}resolve(t,e){let n=e;null!=t&&t.length>0&&(n=function(t,e){const n=wu(encodeURI(e)),i=wu(t);if(null!=n[_u.Scheme])return xu(n);n[_u.Scheme]=i[_u.Scheme];for(let a=_u.Scheme;a<=_u.Port;a++)null==n[a]&&(n[a]=i[a]);if("/"==n[_u.Path][0])return xu(n);let s=i[_u.Path];null==s&&(s="/");const r=s.lastIndexOf("/");return s=s.substring(0,r+1)+n[_u.Path],n[_u.Path]=s,xu(n)}(t,n));const i=wu(n);let s=this._packagePrefix;if(null!=s&&null!=i&&"package"==i[_u.Scheme]){let t=i[_u.Path];return s=s.replace(/\/+$/,""),t=t.replace(/^\/+/,""),`${s}/${t}`}return n}};const yu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");var _u;function wu(t){return t.match(yu)}function xu(t){let e=t[_u.Path];return e=null==e?"":function(t){if("/"==t)return"/";const e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",i=t.split("/"),s=[];let r=0;for(let a=0;a<i.length;a++){const t=i[a];switch(t){case"":case".":break;case"..":s.length>0?s.pop():r++;break;default:s.push(t)}}if(""==e){for(;r-- >0;)s.unshift("..");0===s.length&&s.push(".")}return e+s.join("/")+n}(e),t[_u.Path]=e,function(t,e,n,i,s,r,a){const o=[];return null!=t&&o.push(t+":"),null!=n&&(o.push("//"),null!=e&&o.push(e+"@"),o.push(n),null!=i&&o.push(":"+i)),null!=s&&o.push(s),null!=r&&o.push("?"+r),null!=a&&o.push("#"+a),o.join("")}(t[_u.Scheme],t[_u.UserInfo],t[_u.Domain],t[_u.Port],e,t[_u.QueryData],t[_u.Fragment])}!function(t){t[t.Scheme=1]="Scheme",t[t.UserInfo=2]="UserInfo",t[t.Domain=3]="Domain",t[t.Port=4]="Port",t[t.Path=5]="Path",t[t.QueryData=6]="QueryData",t[t.Fragment=7]="Fragment"}(_u||(_u={}));!function(t){(t.ng||(t.ng={})).\u0275compilerFacade=new _d}(Je);var Cu=n("SVse");class Su extends Cu["\u0275DomAdapter"]{constructor(){super()}supportsDOMEvents(){return!0}}(()=>{if(s["\u0275global"].Node)s["\u0275global"].Node.prototype.contains})();class ku extends Su{static makeCurrent(){Object(Cu["\u0275setRootDomAdapter"])(new ku)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}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}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=function(){if(!Iu&&(Iu=document.querySelector("base"),!Iu))return null;return Iu.getAttribute("href")}();return null==e?null:function(t){Eu||(Eu=document.createElement("a"));return Eu.setAttribute("href",t),"/"===Eu.pathname.charAt(0)?Eu.pathname:"/"+Eu.pathname}(e)}resetBaseElement(){Iu=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(Cu["\u0275parseCookieValue"])(document.cookie,t)}}let Eu,Iu=null;const Au=new s.InjectionToken("TRANSITION_ID");const Du=[{provide:s.APP_INITIALIZER,useFactory:function(t,e,n){return()=>{n.get(s.ApplicationInitStatus).donePromise.then(()=>{const n=Object(Cu["\u0275getDOM"])();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Au,Cu.DOCUMENT,s.Injector],multi:!0}];class Tu{static init(){Object(s.setTestabilityGetter)(new Tu)}addToWindow(t){s["\u0275global"].getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s["\u0275global"].getAllAngularTestabilities=()=>t.getAllTestabilities(),s["\u0275global"].getAllAngularRootElements=()=>t.getAllRootElements();s["\u0275global"].frameworkStabilizers||(s["\u0275global"].frameworkStabilizers=[]),s["\u0275global"].frameworkStabilizers.push(t=>{const e=s["\u0275global"].getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};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?Object(Cu["\u0275getDOM"])().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}function Ou(t,e){if("undefined"==typeof COMPILED||!COMPILED){(s["\u0275global"].ng=s["\u0275global"].ng||{})[t]=e}}const Pu={ApplicationRef:s.ApplicationRef,NgZone:s.NgZone};function Nu(t){return Object(s["\u0275getDebugNodeR2"])(t)}const Mu=[{provide:s.APP_INITIALIZER,useFactory:function(t){return Ou("probe",Nu),Ou("coreTokens",Object.assign(Object.assign({},Pu),function(t){return t.reduce((t,e)=>(t[e.name]=e.token,t),{})}(t||[]))),()=>Nu},deps:[[s.NgProbeToken,new s.Optional]],multi:!0}],Ru=new s.InjectionToken("EventManagerPlugins");class Lu{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 i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error(`No event manager plugin found for event ${t}`)}}Lu.decorators=[{type:s.Injectable}],Lu.ctorParameters=()=>[{type:Array,decorators:[{type:s.Inject,args:[Ru]}]},{type:s.NgZone}];class Fu{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Object(Cu["\u0275getDOM"])().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}class ju{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)}}ju.decorators=[{type:s.Injectable}];class Vu extends ju{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(Cu["\u0275getDOM"])().remove(t))}}Vu.decorators=[{type:s.Injectable}],Vu.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];const Bu={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/"},Hu=/%COMP%/g,zu="_nghost-%COMP%",Uu="_ngcontent-%COMP%";function qu(t,e,n){for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?qu(t,s,n):(s=s.replace(Hu,t),n.push(s))}return n}function $u(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}class Wu{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Yu(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Gu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case s.ViewEncapsulation.ShadowDom:return new Ku(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=qu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}Wu.decorators=[{type:s.Injectable}],Wu.ctorParameters=()=>[{type:Lu},{type:Vu},{type:String,decorators:[{type:s.Inject,args:[s.APP_ID]}]}];class Yu{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Bu[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,i){if(i){e=i+":"+e;const s=Bu[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=Bu[n];i?t.removeAttributeNS(i,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,i){i&(s.RendererStyleFlags2.DashCase|s.RendererStyleFlags2.Important)?t.style.setProperty(e,n,i&s.RendererStyleFlags2.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.RendererStyleFlags2.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,$u(n)):this.eventManager.addEventListener(t,e,$u(n))}}"@".charCodeAt(0);class Gu extends Yu{constructor(t,e,n,i){super(t),this.component=n;const s=qu(i+"-"+n.id,n.styles,[]);var r;e.addStyles(s),this.contentAttr=(r=i+"-"+n.id,Uu.replace(Hu,r)),this.hostAttr=function(t){return zu.replace(Hu,t)}(i+"-"+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 Ku extends Yu{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=qu(i.id,i.styles,[]);for(let r=0;r<s.length;r++){const t=document.createElement("style");t.textContent=s[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)))}}class Zu extends Fu{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)}}Zu.decorators=[{type:s.Injectable}],Zu.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];const Xu={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Qu=new s.InjectionToken("HammerGestureConfig"),Ju=new s.InjectionToken("HammerLoader");class th{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}th.decorators=[{type:s.Injectable}];class eh extends Fu{constructor(t,e,n,i){super(t),this._config=e,this.console=n,this.loader=i}supports(t){return!(!Xu.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))&&(!(!window.Hammer&&!this.loader)||(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),!1))}addEventListener(t,e,n){const i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let i=!1,s=()=>{i=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=()=>{});i||(s=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom Hammer.JS loader failed.`),s=()=>{}}),()=>{s()}}return i.runOutsideAngular(()=>{const s=this._config.buildHammer(t),r=function(t){i.runGuarded(function(){n(t)})};return s.on(e,r),()=>{s.off(e,r),"function"==typeof s.destroy&&s.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}eh.decorators=[{type:s.Injectable}],eh.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:th,decorators:[{type:s.Inject,args:[Qu]}]},{type:s["\u0275Console"]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Ju]}]}];const nh=[{provide:Ru,useClass:eh,multi:!0,deps:[Cu.DOCUMENT,Qu,s["\u0275Console"],[new s.Optional,Ju]]},{provide:Qu,useClass:th,deps:[]}],ih=nh;(class{}).decorators=[{type:s.NgModule,args:[{providers:nh}]}];const sh=["alt","control","meta","shift"],rh={"\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"},ah={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"},oh={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};class lh extends Fu{constructor(t){super(t)}supports(t){return null!=lh.parseEventName(t)}addEventListener(t,e,n){const i=lh.parseEventName(e),s=lh.eventCallback(i.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(Cu["\u0275getDOM"])().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;const i=lh._normalizeKey(e.pop());let s="";if(sh.forEach(t=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),s+=t+".")}),s+=i,0!=e.length||0===i.length)return null;const r={};return r.domEventName=n,r.fullKey=s,r}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&&ah.hasOwnProperty(e)&&(e=ah[e]))}return rh[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),sh.forEach(i=>{if(i!=n){(0,oh[i])(t)&&(e+=i+".")}}),e+=n,e}static eventCallback(t,e,n){return i=>{lh.getEventFullKey(i)===t&&n.runGuarded(()=>e(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}lh.decorators=[{type:s.Injectable}],lh.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class ch{}function dh(t){return new ph(t.get(Cu.DOCUMENT))}ch.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return Object(s["\u0275\u0275inject"])(ph)},token:ch,providedIn:"root"}),ch.decorators=[{type:s.Injectable,args:[{providedIn:"root",useExisting:Object(s.forwardRef)(()=>ph)}]}];class ph extends ch{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.SecurityContext.NONE:return e;case s.SecurityContext.HTML:return Object(s["\u0275allowSanitizationBypassAndThrow"])(e,"HTML")?Object(s["\u0275unwrapSafeValue"])(e):Object(s["\u0275_sanitizeHtml"])(this._doc,String(e));case s.SecurityContext.STYLE:return Object(s["\u0275allowSanitizationBypassAndThrow"])(e,"Style")?Object(s["\u0275unwrapSafeValue"])(e):e;case s.SecurityContext.SCRIPT:if(Object(s["\u0275allowSanitizationBypassAndThrow"])(e,"Script"))return Object(s["\u0275unwrapSafeValue"])(e);throw new Error("unsafe value used in a script context");case s.SecurityContext.URL:Object(s["\u0275getSanitizationBypassType"])(e);return Object(s["\u0275allowSanitizationBypassAndThrow"])(e,"URL")?Object(s["\u0275unwrapSafeValue"])(e):Object(s["\u0275_sanitizeUrl"])(String(e));case s.SecurityContext.RESOURCE_URL:if(Object(s["\u0275allowSanitizationBypassAndThrow"])(e,"ResourceURL"))return Object(s["\u0275unwrapSafeValue"])(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 Object(s["\u0275bypassSanitizationTrustHtml"])(t)}bypassSecurityTrustStyle(t){return Object(s["\u0275bypassSanitizationTrustStyle"])(t)}bypassSecurityTrustScript(t){return Object(s["\u0275bypassSanitizationTrustScript"])(t)}bypassSecurityTrustUrl(t){return Object(s["\u0275bypassSanitizationTrustUrl"])(t)}bypassSecurityTrustResourceUrl(t){return Object(s["\u0275bypassSanitizationTrustResourceUrl"])(t)}}ph.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return dh(Object(s["\u0275\u0275inject"])(s.INJECTOR))},token:ph,providedIn:"root"}),ph.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:dh,deps:[s.Injector]}]}],ph.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];const uh=Cu["\u0275PLATFORM_BROWSER_ID"],hh=[{provide:s.PLATFORM_ID,useValue:uh},{provide:s.PLATFORM_INITIALIZER,useValue:function(){ku.makeCurrent(),Tu.init()},multi:!0},{provide:Cu.DOCUMENT,useFactory:function(){return Object(s["\u0275setDocument"])(document),document},deps:[]}],mh=[{provide:s.Sanitizer,useExisting:ch},{provide:ch,useClass:ph,deps:[Cu.DOCUMENT]}],fh=(Object(s.createPlatformFactory)(s.platformCore,"browser",hh),[mh,{provide:s["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:s.ErrorHandler,useFactory:function(){return new s.ErrorHandler},deps:[]},{provide:Ru,useClass:Zu,multi:!0,deps:[Cu.DOCUMENT,s.NgZone,s.PLATFORM_ID]},{provide:Ru,useClass:lh,multi:!0,deps:[Cu.DOCUMENT]},ih,{provide:Wu,useClass:Wu,deps:[Lu,Vu,s.APP_ID]},{provide:s.RendererFactory2,useExisting:Wu},{provide:ju,useExisting:Vu},{provide:Vu,useClass:Vu,deps:[Cu.DOCUMENT]},{provide:s.Testability,useClass:s.Testability,deps:[s.NgZone]},{provide:Lu,useClass:Lu,deps:[Ru,s.NgZone]},Mu]);class gh{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(t){return{ngModule:gh,providers:[{provide:s.APP_ID,useValue:t.appId},{provide:Au,useExisting:s.APP_ID},Du]}}}function bh(){return new vh(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))}gh.decorators=[{type:s.NgModule,args:[{providers:fh,exports:[Cu.CommonModule,s.ApplicationModule]}]}],gh.ctorParameters=()=>[{type:gh,decorators:[{type:s.Optional},{type:s.SkipSelf},{type:s.Inject,args:[gh]}]}];class vh{constructor(t){this._doc=t,this._dom=Object(Cu["\u0275getDOM"])()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");this._setMetaElementAttributes(t,n);return this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(this._getMetaKeyMap(n),t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(this._getMetaKeyMap(n))===t[n])}_getMetaKeyMap(t){return yh[t]||t}}vh.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:bh,token:vh,providedIn:"root"}),vh.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:bh,deps:[]}]}],vh.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];const yh={httpEquiv:"http-equiv"};function _h(){return new wh(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))}class wh{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}wh.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:_h,token:wh,providedIn:"root"}),wh.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:_h,deps:[]}]}],wh.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];"undefined"!=typeof window&&window;class xh{constructor(){this.store={},this.onSerializeCallbacks={}}static init(t){const e=new xh;return e.store=t,e}get(t,e){return void 0!==this.store[t]?this.store[t]:e}set(t,e){this.store[t]=e}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}onSerialize(t,e){this.onSerializeCallbacks[t]=e}toJson(){for(const t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(TH){console.warn("Exception in onSerialize callback: ",TH)}return JSON.stringify(this.store)}}xh.decorators=[{type:s.Injectable}];(class{}).decorators=[{type:s.NgModule,args:[{providers:[{provide:xh,useFactory:function(t,e){const n=t.getElementById(e+"-state");let i={};if(n&&n.textContent)try{i=JSON.parse(function(t){const e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,t=>e[t])}(n.textContent))}catch(TH){console.warn("Exception while restoring TransferState for app "+e,TH)}return xh.init(i)},deps:[Cu.DOCUMENT,s.APP_ID]}]}]}];new s.Version("11.0.9");const Ch=function(){const t=new Map;return t.set(pn.ANALYZE_FOR_ENTRY_COMPONENTS,s.ANALYZE_FOR_ENTRY_COMPONENTS),t.set(pn.ElementRef,s.ElementRef),t.set(pn.NgModuleRef,s.NgModuleRef),t.set(pn.ViewContainerRef,s.ViewContainerRef),t.set(pn.ChangeDetectorRef,s.ChangeDetectorRef),t.set(pn.Renderer2,s.Renderer2),t.set(pn.QueryList,s.QueryList),t.set(pn.TemplateRef,s.TemplateRef),t.set(pn.CodegenComponentFactoryResolver,s["\u0275CodegenComponentFactoryResolver"]),t.set(pn.ComponentFactoryResolver,s.ComponentFactoryResolver),t.set(pn.ComponentFactory,s.ComponentFactory),t.set(pn.ComponentRef,s.ComponentRef),t.set(pn.NgModuleFactory,s.NgModuleFactory),t.set(pn.createModuleFactory,s["\u0275cmf"]),t.set(pn.moduleDef,s["\u0275mod"]),t.set(pn.moduleProviderDef,s["\u0275mpd"]),t.set(pn.RegisterModuleFactoryFn,s["\u0275registerModuleFactory"]),t.set(pn.Injector,s.Injector),t.set(pn.ViewEncapsulation,s.ViewEncapsulation),t.set(pn.ChangeDetectionStrategy,s.ChangeDetectionStrategy),t.set(pn.SecurityContext,s.SecurityContext),t.set(pn.LOCALE_ID,s.LOCALE_ID),t.set(pn.TRANSLATIONS_FORMAT,s.TRANSLATIONS_FORMAT),t.set(pn.inlineInterpolate,s["\u0275inlineInterpolate"]),t.set(pn.interpolate,s["\u0275interpolate"]),t.set(pn.EMPTY_ARRAY,s["\u0275EMPTY_ARRAY"]),t.set(pn.EMPTY_MAP,s["\u0275EMPTY_MAP"]),t.set(pn.viewDef,s["\u0275vid"]),t.set(pn.elementDef,s["\u0275eld"]),t.set(pn.anchorDef,s["\u0275and"]),t.set(pn.textDef,s["\u0275ted"]),t.set(pn.directiveDef,s["\u0275did"]),t.set(pn.providerDef,s["\u0275prd"]),t.set(pn.queryDef,s["\u0275qud"]),t.set(pn.pureArrayDef,s["\u0275pad"]),t.set(pn.pureObjectDef,s["\u0275pod"]),t.set(pn.purePipeDef,s["\u0275ppd"]),t.set(pn.pipeDef,s["\u0275pid"]),t.set(pn.nodeValue,s["\u0275nov"]),t.set(pn.ngContentDef,s["\u0275ncd"]),t.set(pn.unwrapValue,s["\u0275unv"]),t.set(pn.createRendererType2,s["\u0275crt"]),t.set(pn.createComponentFactory,s["\u0275ccf"]),t}();const Sh=new s.InjectionToken("ErrorCollector"),kh={provide:s.PACKAGE_ROOT_URL,useValue:"/"},Eh={get(t){throw new Error(`No ResourceLoader implementation has been provided. Can't read the url "${t}"`)}},Ih=new s.InjectionToken("HtmlParser");const Ah=new class{constructor(){this.reflectionCapabilities=new s["\u0275ReflectionCapabilities"]}componentModuleUrl(t,e){const n=e.moduleId;if("string"==typeof n){return function(t){const e=wu(t);return e&&e[_u.Scheme]||""}(n)?n:`package:${n}`}if(null!=n)throw Ue(`moduleId should be a string in "${Object(s["\u0275stringify"])(t)}". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.`);return`./${Object(s["\u0275stringify"])(t)}`}parameters(t){return this.reflectionCapabilities.parameters(t)}tryAnnotations(t){return this.annotations(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}shallowAnnotations(t){throw new Error("Not supported in JIT mode")}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}guards(t){return this.reflectionCapabilities.guards(t)}resolveExternalReference(t){return Ch.get(t)||t.runtime}},Dh=Eh,Th=new Ld,Oh=[{provide:bu,useValue:Ah},{provide:yd,useValue:Dh},{provide:ru,deps:[]},{provide:su,useExisting:ru},{provide:s["\u0275Console"],deps:[]},{provide:Ll,deps:[]},{provide:Kl,deps:[Ll]},{provide:Ih,useClass:vo,deps:[]},{provide:hp,useFactory:(t,e,n,i,r)=>{const a=(e=e||"")?i.missingTranslation:s.MissingTranslationStrategy.Ignore;return new hp(t,e,n,a,r)},deps:[Ih,[new s.Optional,new s.Inject(s.TRANSLATIONS)],[new s.Optional,new s.Inject(s.TRANSLATIONS_FORMAT)],[Ld],[s["\u0275Console"]]]},{provide:vo,useExisting:hp},{provide:vl,deps:[Ld,bu,Kl,sc,hp,s["\u0275Console"]]},{provide:Us,useClass:Us,deps:[]},{provide:jd,deps:[yd,vu,vo,Ld]},{provide:xp,deps:[Ld,vo,Fp,Hd,Vp,su,sc,jd,s["\u0275Console"],[s.Optional,fn],bu,[s.Optional,Sh]]},kh,{provide:Fa,deps:[vu]},{provide:Hp,deps:[bu]},{provide:Lp,deps:[bu]},{provide:Ld,useValue:Th},{provide:s.Compiler,useClass:class{constructor(t,e,n,i,s,r,a,o,l,c,d){this._metadataResolver=e,this._delegate=new hu(e,n,i,s,r,a,o,l,c,d,this.getExtraNgModuleProviders.bind(this)),this.injector=t}getExtraNgModuleProviders(){return[this._metadataResolver.getProviderMetadata(new Mn(s.Compiler,{useValue:this}))]}compileModuleSync(t){return this._delegate.compileModuleSync(t)}compileModuleAsync(t){return this._delegate.compileModuleAsync(t)}compileModuleAndAllComponentsSync(t){const e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}}compileModuleAndAllComponentsAsync(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(t=>({ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}))}loadAotSummaries(t){this._delegate.loadAotSummaries(t)}hasAotSummary(t){return this._delegate.hasAotSummary(t)}getComponentFactory(t){return this._delegate.getComponentFactory(t)}clearCache(){this._delegate.clearCache()}clearCacheFor(t){this._delegate.clearCacheFor(t)}getModuleId(t){const e=this._metadataResolver.getNgModuleMetadata(t);return e&&e.id||void 0}},deps:[s.Injector,xp,vl,Fa,Hp,Lp,su,bu,Us,Ld,s["\u0275Console"]]},{provide:oc,deps:[]},{provide:sc,useExisting:oc},{provide:vu,deps:[s.PACKAGE_ROOT_URL]},{provide:Hd,deps:[bu]},{provide:Vp,deps:[bu]},{provide:Fp,deps:[bu]}],Ph=(s.Compiler,Oh);function Nh(t){for(let e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Mh(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}const Rh=Object(s.createPlatformFactory)(s.platformCore,"coreDynamic",[{provide:s.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:s.CompilerFactory,useClass:class{constructor(t){const e={useJit:!0,defaultEncapsulation:s.ViewEncapsulation.Emulated,missingTranslation:s.MissingTranslationStrategy.Warning};this._defaultOptions=[e,...t]}createCompiler(t=[]){const e={useJit:Nh((n=this._defaultOptions.concat(t)).map(t=>t.useJit)),defaultEncapsulation:Nh(n.map(t=>t.defaultEncapsulation)),providers:Mh(n.map(t=>t.providers)),missingTranslation:Nh(n.map(t=>t.missingTranslation)),preserveWhitespaces:Nh(n.map(t=>t.preserveWhitespaces))};var n;return s.Injector.create([Ph,{provide:Ld,useFactory:()=>new Ld({useJit:e.useJit,jitDevMode:Object(s.isDevMode)(),defaultEncapsulation:e.defaultEncapsulation,missingTranslation:e.missingTranslation,preserveWhitespaces:e.preserveWhitespaces}),deps:[]},e.providers]).get(s.Compiler)}},deps:[s.COMPILER_OPTIONS]}]);class Lh extends yd{get(t){let e,n;const i=new Promise((t,i)=>{e=t,n=i}),s=new XMLHttpRequest;return s.open("GET",t,!0),s.responseType="text",s.onload=function(){const i=s.response||s.responseText;let r=1223===s.status?204:s.status;0===r&&(r=i?200:0),200<=r&&r<=300?e(i):n(`Failed to load ${t}`)},s.onerror=function(){n(`Failed to load ${t}`)},s.send(),i}}Lh.decorators=[{type:s.Injectable}];const Fh={providers:[{provide:yd,useClass:Lh,deps:[]}]},jh=Cu["\u0275PLATFORM_BROWSER_ID"],Vh=[hh,{provide:s.COMPILER_OPTIONS,useValue:Fh,multi:!0},{provide:s.PLATFORM_ID,useValue:jh}];new s.Version("11.0.9");const Bh=Object(s.createPlatformFactory)(Rh,"browserDynamic",Vh);function Hh(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function zh(t,e,n,i){return new(n||(n=Promise))(function(s,r){function a(t){try{l(i.next(t))}catch(TH){r(TH)}}function o(t){try{l(i.throw(t))}catch(TH){r(TH)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,o)}l((i=i.apply(t,e||[])).next())})}var Uh=n("cp0P"),qh=n("Cfvw"),$h=n("lJxs");const Wh=new s.InjectionToken("NgValueAccessor"),Yh={provide:Wh,useExisting:Object(s.forwardRef)(()=>Gh),multi:!0};class Gh{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}Gh.decorators=[{type:s.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[Yh]}]}],Gh.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef}];const Kh={provide:Wh,useExisting:Object(s.forwardRef)(()=>Xh),multi:!0};const Zh=new s.InjectionToken("CompositionEventMode");class Xh{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(Cu["\u0275getDOM"])()?Object(Cu["\u0275getDOM"])().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){const e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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)}}function Qh(t){return null==t||0===t.length}function Jh(t){return null!=t&&"number"==typeof t.length}Xh.decorators=[{type:s.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[Kh]}]}],Xh.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef},{type:Boolean,decorators:[{type:s.Optional},{type:s.Inject,args:[Zh]}]}];const tm=new s.InjectionToken("NgValidators"),em=new s.InjectionToken("NgAsyncValidators"),nm=/^(?=.{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 im{static min(t){return e=>{if(Qh(e.value)||Qh(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Qh(e.value)||Qh(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Qh(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Qh(t.value)||nm.test(t.value)?null:{email:!0}}static minLength(t){return e=>Qh(e.value)||!Jh(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>Jh(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return im.nullValidator;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(Qh(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(sm);return 0==e.length?null:function(t){return am(om(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(sm);return 0==e.length?null:function(t){const n=om(t,e).map(rm);return Object(Uh.a)(n).pipe(Object($h.a)(am))}}}function sm(t){return null!=t}function rm(t){const e=Object(s["\u0275isPromise"])(t)?Object(qh.a)(t):t;return Object(s["\u0275isObservable"])(e),e}function am(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 om(t,e){return e.map(e=>e(t))}function lm(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function cm(t){return null!=t?im.compose(lm(t)):null}function dm(t){return null!=t?im.composeAsync(lm(t)):null}function pm(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function um(t){return t._rawValidators}function hm(t){return t._rawAsyncValidators}class mm{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=cm(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=dm(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}}class fm extends mm{get formDirective(){return null}get path(){return null}}class gm extends mm{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class bm{constructor(t){this._cd=t}get ngClassUntouched(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.untouched)&&void 0!==n&&n}get ngClassTouched(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.touched)&&void 0!==n&&n}get ngClassPristine(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pristine)&&void 0!==n&&n}get ngClassDirty(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.dirty)&&void 0!==n&&n}get ngClassValid(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.valid)&&void 0!==n&&n}get ngClassInvalid(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.invalid)&&void 0!==n&&n}get ngClassPending(){var t,e,n;return null!==(n=null===(e=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===e?void 0:e.pending)&&void 0!==n&&n}}const vm={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"};class ym extends bm{constructor(t){super(t)}}ym.decorators=[{type:s.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:vm}]}],ym.ctorParameters=()=>[{type:gm,decorators:[{type:s.Self}]}];class _m extends bm{constructor(t){super(t)}}_m.decorators=[{type:s.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:vm}]}],_m.ctorParameters=()=>[{type:fm,decorators:[{type:s.Optional},{type:s.Self}]}];const wm={provide:Wh,useExisting:Object(s.forwardRef)(()=>xm),multi:!0};class xm{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){const e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}xm.decorators=[{type:s.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[wm]}]}],xm.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef}];const Cm={provide:Wh,useExisting:Object(s.forwardRef)(()=>km),multi:!0};class Sm{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)}}Sm.decorators=[{type:s.Injectable}];class km{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(gm),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}}km.decorators=[{type:s.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Cm]}]}],km.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef},{type:Sm},{type:s.Injector}],km.propDecorators={name:[{type:s.Input}],formControlName:[{type:s.Input}],value:[{type:s.Input}]};const Em={provide:Wh,useExisting:Object(s.forwardRef)(()=>Im),multi:!0};class Im{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}Im.decorators=[{type:s.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Em]}]}],Im.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef}];const Am={provide:Wh,useExisting:Object(s.forwardRef)(()=>Tm),multi:!0};function Dm(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}class Tm{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=Dm(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_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}}Tm.decorators=[{type:s.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[Am]}]}],Tm.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef}],Tm.propDecorators={compareWith:[{type:s.Input}]};class Om{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(Dm(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))}}Om.decorators=[{type:s.Directive,args:[{selector:"option"}]}],Om.ctorParameters=()=>[{type:s.ElementRef},{type:s.Renderer2},{type:Tm,decorators:[{type:s.Optional},{type:s.Host}]}],Om.propDecorators={ngValue:[{type:s.Input,args:["ngValue"]}],value:[{type:s.Input,args:["value"]}]};const Pm={provide:Wh,useExisting:Object(s.forwardRef)(()=>Mm),multi:!0};function Nm(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}class Mm{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},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 i=t.item(e),s=this._getOptionValue(i.value);n.push(s)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_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}}Mm.decorators=[{type:s.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[Pm]}]}],Mm.ctorParameters=()=>[{type:s.Renderer2},{type:s.ElementRef}],Mm.propDecorators={compareWith:[{type:s.Input}]};class Rm{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(Nm(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Nm(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))}}function Lm(t,e){return[...e.path,t]}function Fm(t,e){Bm(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&zm(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&&zm(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 jm(t,e){const n=()=>{0};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),Hm(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Vm(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Bm(t,e,n){const i=um(t);null!==e.validator?t.setValidators(pm(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const s=hm(t);if(null!==e.asyncValidator?t.setAsyncValidators(pm(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),n){const n=()=>t.updateValueAndValidity();Vm(e._rawValidators,n),Vm(e._rawAsyncValidators,n)}}function Hm(t,e,n){if(null!==t){if(null!==e.validator){const n=um(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=hm(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};Vm(e._rawValidators,t),Vm(e._rawAsyncValidators,t)}}function zm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Um(t,e){Bm(t,e,!1)}function qm(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}Rm.decorators=[{type:s.Directive,args:[{selector:"option"}]}],Rm.ctorParameters=()=>[{type:s.ElementRef},{type:s.Renderer2},{type:Mm,decorators:[{type:s.Optional},{type:s.Host}]}],Rm.propDecorators={ngValue:[{type:s.Input,args:["ngValue"]}],value:[{type:s.Input,args:["value"]}]};const $m=[Gh,Im,xm,Tm,Mm,km];function Wm(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Ym(t,e){if(!e)return null;let n,i,s;return Array.isArray(e),e.forEach(t=>{var e;t.constructor===Xh?n=t:(e=t,$m.some(t=>e.constructor===t)?i=t:s=t)}),s||(i||(n||null))}function Gm(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Km(t){return(Jm(t)?t.validators:t)||null}function Zm(t){return Array.isArray(t)?cm(t):t||null}function Xm(t,e){return(Jm(e)?e.asyncValidators:t)||null}function Qm(t){return Array.isArray(t)?dm(t):t||null}function Jm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class tf{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=Zm(this._rawValidators),this._composedAsyncValidatorFn=Qm(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"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}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=Zm(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Qm(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="PENDING",!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="DISABLED",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="VALID",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(),"VALID"!==this.status&&"PENDING"!==this.status||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()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=rm(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(n)),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof nf?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof sf&&i.at(t)||null}),i}(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.EventEmitter,this.statusChanges=new s.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_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){Jm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){const e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}}class ef extends tf{constructor(t=null,e,n){super(Km(e),Xm(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){Gm(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Gm(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 nf extends tf{constructor(t,e,n){super(Km(e),Xm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),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={}){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,i)=>{n.reset(t[i],{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 ef?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=>t(this.controls[e],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,i)=>{n=e(n,t,i)}),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 sf extends tf{constructor(t,e,n){super(Km(e),Xm(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),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={}){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,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ef?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_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)}}const rf={provide:fm,useExisting:Object(s.forwardRef)(()=>of)},af=Promise.resolve(null);class of extends fm{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.EventEmitter,this.form=new nf({},cm(t),dm(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){af.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Fm(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){af.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Gm(this._directives,t)})}addFormGroup(t){af.then(()=>{const e=this._findContainer(t.path),n=new nf({});Um(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){af.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){af.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Wm(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}of.decorators=[{type:s.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]",providers:[rf],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],of.ctorParameters=()=>[{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]}],of.propDecorators={options:[{type:s.Input,args:["ngFormOptions"]}]};class lf extends fm{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Lm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}lf.decorators=[{type:s.Directive}];const cf={provide:fm,useExisting:Object(s.forwardRef)(()=>df)};class df extends lf{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){!(this._parent instanceof df)&&this._parent,0}}df.decorators=[{type:s.Directive,args:[{selector:"[ngModelGroup]",providers:[cf],exportAs:"ngModelGroup"}]}],df.ctorParameters=()=>[{type:fm,decorators:[{type:s.Host},{type:s.SkipSelf}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]}],df.propDecorators={name:[{type:s.Input,args:["ngModelGroup"]}]};const pf={provide:gm,useExisting:Object(s.forwardRef)(()=>hf)},uf=Promise.resolve(null);class hf extends gm{constructor(t,e,n,i){super(),this.control=new ef,this._registered=!1,this.update=new s.EventEmitter,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Ym(0,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),qm(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Lm(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(){Fm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){0}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){uf.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;uf.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}hf.decorators=[{type:s.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[pf],exportAs:"ngModel"}]}],hf.ctorParameters=()=>[{type:fm,decorators:[{type:s.Optional},{type:s.Host}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[Wh]}]}],hf.propDecorators={name:[{type:s.Input}],isDisabled:[{type:s.Input,args:["disabled"]}],model:[{type:s.Input,args:["ngModel"]}],options:[{type:s.Input,args:["ngModelOptions"]}],update:[{type:s.Output,args:["ngModelChange"]}]};class mf{}mf.decorators=[{type:s.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}];const ff=new s.InjectionToken("NgModelWithFormControlWarning"),gf={provide:gm,useExisting:Object(s.forwardRef)(()=>bf)};class bf extends gm{constructor(t,e,n,i){super(),this._ngModelWarningConfig=i,this.update=new s.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=Ym(0,n)}set isDisabled(t){0}ngOnChanges(t){this._isControlChanged(t)&&(Fm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),qm(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}bf._ngModelWarningSentOnce=!1,bf.decorators=[{type:s.Directive,args:[{selector:"[formControl]",providers:[gf],exportAs:"ngForm"}]}],bf.ctorParameters=()=>[{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[Wh]}]},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[ff]}]}],bf.propDecorators={form:[{type:s.Input,args:["formControl"]}],isDisabled:[{type:s.Input,args:["disabled"]}],model:[{type:s.Input,args:["ngModel"]}],update:[{type:s.Output,args:["ngModelChange"]}]};const vf={provide:fm,useExisting:Object(s.forwardRef)(()=>yf)};class yf extends fm{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new s.EventEmitter,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Fm(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Gm(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Um(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Um(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(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,Wm(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(jm(t.control||null,t),e&&Fm(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Bm(this.form,this,!1),this._oldForm&&Hm(this._oldForm,this,!1)}_checkFormPresent(){this.form,0}}yf.decorators=[{type:s.Directive,args:[{selector:"[formGroup]",providers:[vf],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],yf.ctorParameters=()=>[{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]}],yf.propDecorators={form:[{type:s.Input,args:["formGroup"]}],ngSubmit:[{type:s.Output}]};const _f={provide:fm,useExisting:Object(s.forwardRef)(()=>wf)};class wf extends lf{constructor(t,e,n){super(),this._parent=t,this._setValidators(e),this._setAsyncValidators(n)}_checkParentType(){Sf(this._parent),0}}wf.decorators=[{type:s.Directive,args:[{selector:"[formGroupName]",providers:[_f]}]}],wf.ctorParameters=()=>[{type:fm,decorators:[{type:s.Optional},{type:s.Host},{type:s.SkipSelf}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]}],wf.propDecorators={name:[{type:s.Input,args:["formGroupName"]}]};const xf={provide:fm,useExisting:Object(s.forwardRef)(()=>Cf)};class Cf extends fm{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 Lm(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Sf(this._parent),0}}function Sf(t){return!(t instanceof wf||t instanceof yf||t instanceof Cf)}Cf.decorators=[{type:s.Directive,args:[{selector:"[formArrayName]",providers:[xf]}]}],Cf.ctorParameters=()=>[{type:fm,decorators:[{type:s.Optional},{type:s.Host},{type:s.SkipSelf}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]}],Cf.propDecorators={name:[{type:s.Input,args:["formArrayName"]}]};const kf={provide:gm,useExisting:Object(s.forwardRef)(()=>Ef)};class Ef extends gm{constructor(t,e,n,i,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new s.EventEmitter,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Ym(0,i)}set isDisabled(t){0}ngOnChanges(t){this._added||this._setUpControl(),qm(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 Lm(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){0}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}Ef._ngModelWarningSentOnce=!1,Ef.decorators=[{type:s.Directive,args:[{selector:"[formControlName]",providers:[kf]}]}],Ef.ctorParameters=()=>[{type:fm,decorators:[{type:s.Optional},{type:s.Host},{type:s.SkipSelf}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[tm]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[em]}]},{type:Array,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[Wh]}]},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[ff]}]}],Ef.propDecorators={name:[{type:s.Input,args:["formControlName"]}],isDisabled:[{type:s.Input,args:["disabled"]}],model:[{type:s.Input,args:["ngModel"]}],update:[{type:s.Output,args:["ngModelChange"]}]};const If={provide:tm,useExisting:Object(s.forwardRef)(()=>Df),multi:!0},Af={provide:tm,useExisting:Object(s.forwardRef)(()=>Tf),multi:!0};class Df{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&"false"!=`${t}`,this._onChange&&this._onChange()}validate(t){return this.required?im.required(t):null}registerOnValidatorChange(t){this._onChange=t}}Df.decorators=[{type:s.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[If],host:{"[attr.required]":'required ? "" : null'}}]}],Df.propDecorators={required:[{type:s.Input}]};class Tf extends Df{validate(t){return this.required?im.requiredTrue(t):null}}Tf.decorators=[{type:s.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Af],host:{"[attr.required]":'required ? "" : null'}}]}];const Of={provide:tm,useExisting:Object(s.forwardRef)(()=>Pf),multi:!0};class Pf{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?im.email(t):null}registerOnValidatorChange(t){this._onChange=t}}Pf.decorators=[{type:s.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Of]}]}],Pf.propDecorators={email:[{type:s.Input}]};const Nf={provide:tm,useExisting:Object(s.forwardRef)(()=>Mf),multi:!0};class Mf{constructor(){this._validator=im.nullValidator}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=im.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}Mf.decorators=[{type:s.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Nf],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Mf.propDecorators={minlength:[{type:s.Input}]};const Rf={provide:tm,useExisting:Object(s.forwardRef)(()=>Lf),multi:!0};class Lf{constructor(){this._validator=im.nullValidator}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=im.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}Lf.decorators=[{type:s.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Rf],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Lf.propDecorators={maxlength:[{type:s.Input}]};const Ff={provide:tm,useExisting:Object(s.forwardRef)(()=>jf),multi:!0};class jf{constructor(){this._validator=im.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=im.pattern(this.pattern)}}jf.decorators=[{type:s.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Ff],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],jf.propDecorators={pattern:[{type:s.Input}]};const Vf=[mf,Om,Rm,Xh,xm,Im,Gh,Tm,Mm,km,ym,_m,Df,Mf,Lf,jf,Tf,Pf],Bf=[hf,df,of],Hf=[bf,yf,Ef,wf,Cf];class zf{}zf.decorators=[{type:s.NgModule,args:[{declarations:Vf,exports:Vf}]}];class Uf{group(t,e=null){const n=this._reduceControls(t);let i,s=null,r=null;return null!=e&&(!function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null):(s=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0)),new nf(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new ef(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new sf(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){if(t instanceof ef||t instanceof nf||t instanceof sf)return t;if(Array.isArray(t)){const e=t[0],n=t.length>1?t[1]:null,i=t.length>2?t[2]:null;return this.control(e,n,i)}return this.control(t)}}Uf.decorators=[{type:s.Injectable}];new s.Version("11.0.9");class qf{}qf.decorators=[{type:s.NgModule,args:[{declarations:Bf,providers:[Sm],exports:[zf,Bf]}]}];class $f{static withConfig(t){return{ngModule:$f,providers:[{provide:ff,useValue:t.warnOnNgModelWithFormControl}]}}}$f.decorators=[{type:s.NgModule,args:[{declarations:[Hf],providers:[Uf,Sm],exports:[zf,Hf]}]}];var Wf=n("iInd"),Yf=n("IheW"),Gf=n("XNiG"),Kf=n("0bW5");const Zf=!0,Xf="https://hub.helplinema.org/api1",Qf="https://hub.helplinema.org/api1",Jf=window.location.protocol+"//"+window.location.hostname+":"+window.location.port,tg="ea564fc4-e7e8-4aaa-9942-0d7665daf438",eg="https://mahelpline.b2clogin.com/mahelpline.onmicrosoft.com/b2c_1_sign1",ng="https://mahelpline.b2clogin.com/mahelpline.onmicrosoft.com/B2C_1_passwordreset",ig="https://mahelpline.onmicrosoft.com/users/user_impersonation";let sg=class{constructor(t,e,n){this.http=t,this.router=e,this.msalService=n,this.loggedInStateChangedSource=new Gf.a,this.loggedInStateChanged$=this.loggedInStateChangedSource.asObservable(),this.change=new s.EventEmitter,this.isLoggedIn()&&this.loggedInStateChangedSource.next(!0)}isLoggedIn(){var t=localStorage.getItem("msal.idtoken");if(null!=t){var e=t.split("."),n=JSON.parse(atob(e[1])),i=Math.round((new Date).getTime()/1e3);return n.exp>i}return!1}getLoggedInUser(){if(this.isLoggedIn())return this.currentUser}logout(t){localStorage.clear(),this.loggedInStateChangedSource.next(!1),this.router.navigate([t||"/"]),this.msalService.logout()}login(){this.isLoggedIn()&&this.loggedInStateChangedSource.next(!0)}setAlreadyExistUser(t){this.alreadyExistUser=t}getAlreadyExistUser(){return this.alreadyExistUser}emitData(t){this.change.emit(t)}getMe(){return this.http.get(Qf+"/v1/secure/me")}};sg.ctorParameters=()=>[{type:Yf.HttpClient},{type:Wf.Router},{type:Kf.MsalService}],sg.propDecorators={change:[{type:s.Output}]},sg=Hh([Object(s.Injectable)({providedIn:"root"})],sg);let rg=class{constructor(){}loggedIn(){return!!localStorage.getItem("SessionUser")}};rg.ctorParameters=()=>[],rg=Hh([Object(s.Injectable)({providedIn:"root"})],rg);let ag=class{constructor(t,e,n,i,r){this.fb=t,this.router=e,this.authService=n,this.loginService=i,this.titleService=r,this.ans="",this.submitted=!1,this.outtoparent=new s.EventEmitter,this.titleService.setTitle("Login - Massachusetts Substance Use Helpline")}get login(){return this.loginForm.controls}ngOnInit(){this.authService.isLoggedIn()&&(null!=localStorage.getItem("msal.error")&&localStorage.getItem("msal.error").length>0&&localStorage.clear(),this.router.navigateByUrl("/overview")),this.loginForm=this.fb.group({emailaddress:[null,[im.required]],password:[null,[im.required]]})}loginSubmit(t){this.submitted=!0,this.loginForm.valid&&console.log(t)}getproviderval(){"Yes"==this.ans?this.router.navigate(["/createaccount"]):"No"==this.ans&&this.router.navigate(["/create-citizen-account"])}};ag.ctorParameters=()=>[{type:Uf},{type:Wf.Router},{type:sg},{type:rg},{type:wh}],ag.propDecorators={ans:[{type:s.Input}],outtoparent:[{type:s.Output}]},ag=Hh([Object(s.Component)({selector:"app-login",template:'<div class="container body">\n    <div class="row">\n        <div class="col-sm-6">\n             <div class="row">\n                <div class="col-sm-12">\n                    <div class="page_heading">Login</div>\n                    <p class="top10">If you already have an account, please enter your email address and password to log in.</p>\n                </div>\n            </div>\n            \n            <div class="row">\n                <div class="col-sm-12">\n                    <div id="err_placeholder" style="display:none;" class="alert alert-danger"></div>\n                </div>\n            </div> \n            \n            <form [formGroup]="loginForm"  #lgForm="ngForm" (ngSubmit)="loginSubmit(lgForm.value)" autocomplete="off">\n        \n                <div class="row">\n                    <div class="col-sm-12">\n                        <div class="form-group">\n                            <label for="un">Email Address</label>\n                            <input  type="text"  class="form-control"  id="emailaddress" name="emailaddress" formControlName="emailaddress"/>\n                            <div *ngIf="submitted && login.emailaddress?.errors">\n                                <small class="text-danger ml-1" *ngIf="login.emailaddress.errors.required">Please enter Emailaddress</small>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-sm-12">\n                        <div class="form-group">\n                            <label for="pw">Password</label>\n                            <input  type="password"  class="form-control"  id="password" name="password" formControlName="password"/>\n                            <div *ngIf="submitted && login.password?.errors">\n                                <small class="text-danger ml-1" *ngIf="login.password.errors.required">Please enter Password</small>\n                            </div> \n                            <div class="text-right"><a href="/account-assistance">Forgot Password?</a></div>\n                        </div>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-sm-12">\n                        <div class="form-group text-center">\t\t\t\t\t\t\n                            <button type="submit" class="button button_medium" >Login</button>\n                        </div>\n                    </div>\n                </div>\n           \n            </form>\n        </div>\n        <div class="col-sm-6">\n            <div class="row">\n                <div class="col-sm-12">\n                    <div class="page_heading">Account Sign Up</div>\n                </div>\n                <div class="col-sm-12">\n                    <h4 class="top10">Not registered yet?</h4>\n                    <p>Sign up below to create a new account. By signing up, you can:</p>\n                     <ul style="list-style-type:square; padding-left:30px; margin-top:20px;">\n                      \x3c!-- <li>Keep track of your saved searches</li>\t\t\t\t   --\x3e\n                      <li>View/Edit Provider Information</li>\n                      <li>Keep track of your submitted requests</li>\n                      <li>Update your profile</li>\t\t\t\t  \n                      <li><em>and more...</em></li>\n                    </ul> \n                </div>\n                <div class="col-sm-12">\n                    \x3c!-- <span id="are_you">Are you a Service Provider?&nbsp;</span> <label><input [(ngModel)]="ans" type="radio" name="asProvider" id="asProvider1" value="Yes" />&nbsp;Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" [(ngModel)]="ans" name="asProvider" id="asProvider2" value="No" />&nbsp;No</label> --\x3e\n                    <div class="text-center top10" id="signup_button">\n                        <button id="dynamic_signup_link" class="button button_small" (click)="getproviderval()" >Sign Up</button>\n                    </div>\n                </div>\n            </div>\n        </div>\t\n    </div>\n    </div>',styles:[".h4, h4 {\n  font-size: 18px;\n}\n\n.container {\n  max-width: 1170px !important;\n}\n\n.page_heading {\n  font-size: 2.3em !important;\n}\n\np {\n  font-size: 16px;\n}\n\nlabel {\n  font-size: 16px;\n}\n\nul li {\n  font-size: 16px;\n}\n\nspan#are_you, .text-right {\n  font-size: 16px;\n}\n\n::ng-deep #menu-footer {\n  margin-top: 4px !important;\n}"]})],ag);let og=class{constructor(t,e,n){this.fb=t,this.el=e,this.titleService=n,this.submitted=!1,this.titleService.setTitle("Account Assistance - Massachusetts Substance Use Helpline")}ngOnInit(){this.forgotpwdForm=this.fb.group({email:[null,[im.required,im.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]]})}get f(){return this.forgotpwdForm.controls}onSubmit(){if(this.submitted=!0,!this.forgotpwdForm.invalid)return!1;this.el.nativeElement.querySelectorAll("input.ng-invalid")[0].focus()}};og.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:wh}],og=Hh([Object(s.Component)({selector:"app-account-assistance",template:'<div class="container">\n    <div class="row" style="margin-bottom: 12px;">\n        <div class="col-sm-6">\n            <div class="page_heading">Reset your password</div>\t\n            <div id="err_location_fp"></div>\t\n            <div id="forgot_password">\t\t\t\n                <p class="top10">We\'ll email you a link to a page where you can create a new password.</p>\n                <form [formGroup]="forgotpwdForm" id="forgot_password_form" (ngSubmit)="onSubmit()">\n                    <div class="form-group">\n                        <label for="un">Email Address</label>\n                        <input type="text" class="form-control" formControlName="email" id="email" name="email" />\n                        <div *ngIf="submitted && f.email.errors">\n                            <small class="text-danger ml-1" *ngIf="f.email.errors.required">Please enter emailid</small>\n                            <small *ngIf="f.email.errors?.pattern" class="text-danger m1-1">Please enter valid Email Address</small>\n                        </div>\n                    </div>\n                    <div class="form-group text-center">\n                        <button type="submit" class="button button_medium">Submit</button>\n                    </div>\n                </form>\n            </div>\n            <div id="security_questions"></div>\n            <div id="email_sent_fp"></div>\n        </div>\n        <div class="col-sm-6">\n            <p class="top10">Upon submission of this form, if you don\'t receive an email: </p>\n            <ul class="default_ul">\n                <li>Make sure you\'re using the correct email address</li>\n                <li>Your account may be disabled</li>\n                <li>The email address you\'re checking may be different than the email on file in the system</li>\n            </ul>\n        </div>\n    </div>\n</div>',styles:[".container {\n  max-width: 1170px !important;\n  padding-top: 10px;\n}\n\n.page_heading {\n  font-size: 2.3em !important;\n}\n\n.top10, ul li, label {\n  font-size: 16px !important;\n}\n\n#errorcol {\n  color: red;\n}"]})],og);(new Yf.HttpHeaders).set("Content-Type","text/plain; charset=utf-8");let lg=class{constructor(t){this.http=t,this.backendUrl=Xf}saveAccount(t){return this.http.post(this.backendUrl+"/v1/open/register",t)}checkEmail(t){return this.http.post(this.backendUrl+"/v1/open/registercheck",t,{responseType:"text"})}};lg.ctorParameters=()=>[{type:Yf.HttpClient}],lg=Hh([Object(s.Injectable)({providedIn:"root"})],lg);let cg=class{constructor(t,e,n,i){this.fb=t,this.el=e,this.createAccountService=n,this.titleService=i,this.submitted=!1,this.colors=["#F00","#F90","#FF0","#9F0","#0F0"],this.saved=!1,this.formValidatedbeforeSubmit=!1,this.emailalert=!1,this.pwdpolicy=!1,this.titleService.setTitle("Create Account - Massachusetts Substance Use Helpline")}get provideraccount(){return this.accountSignupForm.controls}ngOnInit(){this.accountSignupForm=this.fb.group({firstname:[null,[im.required]],lastname:[null,im.required],email:["",[im.required,im.pattern("^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$")]],password:[null,im.required],confirmpwd:[null,im.required],contacttypeid:[null,im.required]},{validators:this.MustMatch("password","confirmpwd")})}checkEmail(t){var e;console.log(t),e={email:t},this.createAccountService.checkEmail(e).subscribe(t=>{console.log(t),this.emailalert="user already exists"==t})}onProviderAccountSubmit(){this.submitted=!0;let t=this.accountSignupForm.controls.password.value;if(!/^(?=.*\d)(?=.*[!@#$%^&*])(?=.*[a-z])(?=.*[A-Z]).{8,}$/.test(t)&&t)return this.pwdpolicy=!0,!1;this.accountSignupForm.valid?(this.formValidatedbeforeSubmit=!0,delete this.accountSignupForm.value.confirmpwd,console.log(this.accountSignupForm.value),this.createAccountService.saveAccount(this.accountSignupForm.value).subscribe(t=>{console.log(t),this.saved=!0,this.submitted=!1,this.formValidatedbeforeSubmit=!1})):(this.accountSignupForm.markAllAsTouched(),this.scrollToFirstInvalidControl())}scrollToFirstInvalidControl(){const t=this.el.nativeElement.querySelector("form .ng-invalid");window.scroll({top:this.getTopOffset(t),left:0,behavior:"smooth"})}getTopOffset(t){return t.getBoundingClientRect().top+window.scrollY-50}MustMatch(t,e){return n=>{const i=n.controls[t],s=n.controls[e];s.errors&&!s.errors.mustMatch||(i.value!==s.value?s.setErrors({mustMatch:!0}):s.setErrors(null))}}getstrength(){this.pwdpolicy=!1;var t=this.accountSignupForm.value.password;let e=0,n={};for(let a=0;a<t.length;a++)n[t[a]]=(n[t[a]]||0)+1,e+=5/n[t[a]];let i={digits:/\d/.test(t),lower:/[a-z]/.test(t),upper:/[A-Z]/.test(t),nonWords:/\W/.test(t)},s=0;for(let a in i)s+=i[a]?1:0;e+=10*(s-1),e=Math.trunc(e);let r=0;e>90?r=4:e>70?r=3:e>=40?r=2:e>=20&&(r=1);for(let a=0;a<5;a++)this["bar"+a]=a<r+1&&e>0?this.colors[r]:"#fff"}};cg.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:lg},{type:wh}],cg=Hh([Object(s.Component)({selector:"app-createaccount",template:'<div class="container">\n    <div class="row">\n        <div class="col-sm-12">\n            <div class="page_heading">New Account Sign Up</div>\n        </div>\n    </div>\n    <div *ngIf="!saved">\n        <div class="row">\n            <div class="col-sm-12">\n                <div id="err_location_create">\n                </div>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-sm-12">\n                <em>Fields marked with an (*) must be completed.</em>\n            </div>\n            \n        </div>\n        <form [formGroup]="accountSignupForm" (ngSubmit)="onProviderAccountSubmit()">\n            <span id="are_you">Are you a Service Provider?&nbsp;&nbsp;&nbsp;</span> <label>\n                <input type="radio" name="contacttypeid" id="asProvider1" value="2" formControlName="contacttypeid" />&nbsp;Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<label>\n                <input type="radio" name="contacttypeid" id="asProvider2" value="1" formControlName="contacttypeid" />&nbsp;No</label>\n                <div *ngIf="submitted && provideraccount.contacttypeid?.errors">\n                    <small class="text-danger ml-1" *ngIf="provideraccount.contacttypeid.errors.required">Please select service provider</small>\n                </div>    \n            <div class="form_section_heading">Personal Details</div>\n            <div class="row">\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="firstname" class="control-label">First Name: </label><span class="red">*</span>\n                        <input type="text" name="firstname" id="firstname" class="form-control" formControlName="firstname" />\n                        <div *ngIf="submitted && provideraccount.firstname?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.firstname.errors.required">Please enter Firstname</small>\n                        </div>\n                    </div>\n                </div>\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="lastname" class="control-label">Last Name: </label><span class="red">*</span>\n                        <input type="text" name="lastname" id="lastname" class="form-control" formControlName="lastname"/>\n                        <div *ngIf="submitted && provideraccount.lastname?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.lastname.errors.required">Please enter Lastname</small>\n                        </div>\n                    </div>\n                </div>\n            </div>\t\t\t\n            <div class="form_section_heading">Account Details</div>\n            <div class="row">\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="em" class="control-label">Email Address: </label><span class="red">* </span> <span *ngIf="emailalert==true" style="color: red;font-weight: 400;"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Account already exists in the system. Please reset your password using the <a href="/account-assistance" style="text-decoration: underline;">Forgot Password link</a></span>\n                        <input type="text" name="em" id="em" class="form-control" formControlName="email" [(ngModel)]="emailid" (change)="checkEmail(emailid)"/>\n                        <div *ngIf="submitted && provideraccount.email?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.email.errors.required">Please enter Email address</small>\n                        </div>\n                        <div *ngIf="provideraccount.email.errors?.pattern">\n                            <small class="text-danger ml-1">Please enter valid Email address</small>\n                        </div>\n                    </div>\n                </div>\n                <div class="col-sm-8">\n                    <div class="form-group">\t\t\t\t\n                        <ul class="default_ul">\n                            <li>Your email address will be your username.</li>\n                            <li>Be sure to provide a valid email address.</li>\n                            <li>A confirmation email will be sent to this address with instructions for activating your account.</li>\n                        </ul>\n                    </div>\n                </div>\n            </div>\n            <div class="row">\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="pw" class="control-label">Password: </label><span class="red">*</span>\n                        <input type="password" name="pw" (input)="getstrength()" id="pw" class="form-control" formControlName="password"/>\n                        <div *ngIf="submitted && provideraccount.password?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.password.errors.required">Please enter Password</small>\n                        </div>\n                        <div *ngIf="pwdpolicy">\n                            <small class="text-danger ml-1">Your password does not satisfy the current policy requirements</small>\n                        </div>\n                    </div>\n                </div>\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="cpw" class="control-label">Confirm Password: </label><span class="red">*</span>\n                        <input type="password" name="cpw" id="cpw" class="form-control" formControlName="confirmpwd"/>\n                        <div *ngIf="submitted && provideraccount.confirmpwd?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.confirmpwd.errors.required">Please enter Confirm Password</small>\n                            <div class="text-danger ml-1" *ngIf="provideraccount.confirmpwd.errors.mustMatch">Password and Confirm password must match</div>\n                        </div>\n                        \n                    </div>\n                </div>\n                <div class="col-sm-4">\n                    <p>Password Strength</p>\n                    <div class="pw_indicator">\n                        <div [style.background-color]="bar0" class="pw_strength_block pw_first"></div>\n                        <div [style.background-color]="bar1" class="pw_strength_block pw_second"></div>\n                        <div [style.background-color]="bar2" class="pw_strength_block pw_third"></div>\n                        <div [style.background-color]="bar3" class="pw_strength_block pw_fourth"></div>\n                        <div [style.background-color]="bar4" class="pw_strength_block pw_fifth"></div>\n                        <div class="pw_status"></div>\n                    </div>\n                </div>\n                <div class="col-sm-12">\n                    <div class="alert alert-info"><strong>Password Policy: </strong> Password must be at least 8 characters long, include at least one letter and one symbol and one number, and have at least one upper case and one lower case letter.</div>\n                </div>\n            </div>\n            \n            \x3c!-- <div class="form_section_heading">Security Questions</div> --\x3e\n            \x3c!-- <div class="row">\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="q_1" class="control-label">Security Question 1 </label><span class="red">*</span>\n                        <select name="q_1" id="q_1" class="form-control" formControlName="sec1">\n                            <option value="">Select One</option>\n                            <option value="What is your mother\'s maiden name?">What is your mother\'s maiden name?</option>\n                            <option value="Which street did you grow up on?">Which street did you grow up on?</option>\n                            <option value="What is the name of your first pet?">What is the name of your first pet?</option>\n                            <option value="In what city or town were you born?">In what city or town were you born?</option>\n                            <option value="In what city or town was your first job?">In what city or town was your first job?</option>\n                        </select>\n                        <div *ngIf="submitted && provideraccount.sec1?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.sec1.errors.required">Please choose a Security Question</small>\n                        </div>\n                    </div>\n                    <div class="form-group">\n                        <label for="sec_1" class="control-label">Security Answer 1 </label><span class="red">*</span>\n                        <input type="text" name="sec_1" id="sec_1" class="form-control" formControlName="secans1"/>\n                        <div *ngIf="submitted && provideraccount.secans1?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.secans1.errors.required">Please enter Security Answer</small>\n                        </div>\n                    </div>\n                </div>\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="q_2" class="control-label">Security Question 2 </label><span class="red">*</span>\n                        <select name="q_2" id="q_2" class="form-control" formControlName="sec2">\n                            <option value="">Select One</option>\n                            <option value="What is your mother\'s maiden name?">What is your mother\'s maiden name?</option>\n                            <option value="Which street did you grow up on?">Which street did you grow up on?</option>\n                            <option value="What is the name of your first pet?">What is the name of your first pet?</option>\n                            <option value="In what city or town were you born?">In what city or town were you born?</option>\n                            <option value="In what city or town was your first job?">In what city or town was your first job?</option>\n                        </select>\t\n                        <div *ngIf="submitted && provideraccount.sec2?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.sec2.errors.required">Please choose a Security Question</small>\n                        </div>\t\t\t\n                    </div>\n                    <div class="form-group">\n                        <label for="sec_2" class="control-label">Security Answer 2 </label><span class="red">*</span>\n                        <input type="text" name="sec_2" id="sec_2" class="form-control" formControlName="secans2"/>\n                        <div *ngIf="submitted && provideraccount.secans2?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.secans2.errors.required">Please enter Security Answer</small>\n                        </div>\n                    </div>\n                </div>\n                <div class="col-sm-4">\n                    <div class="form-group">\n                        <label for="q_3" class="control-label">Security Question 3 </label><span class="red">*</span>\n                        <select name="q_3" id="q_3" class="form-control" formControlName="sec3">\n                            <option value="">Select One</option>\n                            <option value="What is your mother\'s maiden name?">What is your mother\'s maiden name?</option>\n                            <option value="Which street did you grow up on?">Which street did you grow up on?</option>\n                            <option value="What is the name of your first pet?">What is the name of your first pet?</option>\n                            <option value="In what city or town were you born?">In what city or town were you born?</option>\n                            <option value="In what city or town was your first job?">In what city or town was your first job?</option>\n                        </select>\t\n                        <div *ngIf="submitted && provideraccount.sec3?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.sec3.errors.required">Please choose a Security Question</small>\n                        </div>\t\t\t\n                    </div>\n                    <div class="form-group">\n                        <label for="sec_3" class="control-label">Security Answer 3 </label><span class="red">*</span>\n                        <input type="text" name="sec_3" id="sec_3" class="form-control" formControlName="secans3"/>\n                        <div *ngIf="submitted && provideraccount.secans3?.errors">\n                            <small class="text-danger ml-1" *ngIf="provideraccount.secans3.errors.required">Please enter Security Answer</small>\n                        </div>\n                    </div>\n                </div>\n            </div> --\x3e\n            \x3c!-- <div class="row">\n                <div class="col-sm-12">\n                    <p class="help-block">Remember these answers, they will be asked in the <em>"Forgot Your Password"</em> process.</p>\n                </div>\n            </div>\t --\x3e\n            <div class="row">\n                <div class="col-sm-12">\n                    <div class="form-group text-center">\n                        <button [disabled]="formValidatedbeforeSubmit ? true : null" type="submit" class="button">Submit</button>\n                        <img *ngIf="formValidatedbeforeSubmit" style="width:115px" src="../../../assets/images/Curve-Loading.gif"/>\n                    </div>\n                </div>\n            </div>\n            <input type="hidden" name="email" id="email" />\n        </form>\n    </div>\n    <div *ngIf="saved">\n        <div class="row pt-5 pb-5">\n            <div class="col-sm-12">\n                <div id="err_location_create" class="alert alert-info" role="alert">\n                    Your account has been created successfully <a class="log-in" href="/">log-in here</a> with your credentials\n                </div>\n            </div>\n        </div>\n    </div>\n</div>',styles:[".form-control.ng-touched.ng-invalid {\n  border-color: red;\n}\n\n.container {\n  max-width: 1170px !important;\n  padding-top: 10px;\n}\n\nem {\n  font-size: 16px;\n}\n\n.page_heading {\n  font-size: 2.3em !important;\n}\n\n.alert-info {\n  font-size: 16px;\n}\n\n.form_section_heading {\n  font-size: 19px;\n}\n\nlabel, ul li {\n  font-size: 16px;\n}\n\n.help-block {\n  font-size: 16px;\n}"]})],cg);let dg=class{constructor(t,e,n){this.fb=t,this.el=e,this.titleService=n,this.submitted=!1,this.colors=["#F00","#F90","#FF0","#9F0","#0F0"],this.titleService.setTitle("Create Citizen - Massachusetts Substance Use Helpline")}get provideraccount(){return this.citizenAccountSignupForm.controls}ngOnInit(){this.citizenAccountSignupForm=this.fb.group({firstname:[null,[im.required]],lastname:[null,im.required],emailaddr:[null,im.required],password:[null,im.required],confirmpwd:[null,im.required],sec1:[null,im.required],sec2:[null,im.required],sec3:[null,im.required],secans1:[null,im.required],secans2:[null,im.required],secans3:[null,im.required]},{validators:this.MustMatch("password","confirmpwd")})}getTopOffset(t){return t.getBoundingClientRect().top+window.scrollY-50}scrollToFirstInvalidControl(){const t=this.el.nativeElement.querySelector("form .ng-invalid");window.scroll({top:this.getTopOffset(t),left:0,behavior:"smooth"})}MustMatch(t,e){return n=>{const i=n.controls[t],s=n.controls[e];s.errors&&!s.errors.mustMatch||(i.value!==s.value?s.setErrors({mustMatch:!0}):s.setErrors(null))}}getstrength(){var t=this.citizenAccountSignupForm.value.password;let e=0,n={};for(let a=0;a<t.length;a++)n[t[a]]=(n[t[a]]||0)+1,e+=5/n[t[a]];let i={digits:/\d/.test(t),lower:/[a-z]/.test(t),upper:/[A-Z]/.test(t),nonWords:/\W/.test(t)},s=0;for(let a in i)s+=i[a]?1:0;e+=10*(s-1),e=Math.trunc(e);let r=0;e>90?r=4:e>70?r=3:e>=40?r=2:e>=20&&(r=1);for(let a=0;a<5;a++)this["bar"+a]=a<r+1&&e>0?this.colors[r]:"#fff"}citizenaccSubmit(){this.submitted=!0,this.citizenAccountSignupForm.valid?console.log(this.citizenAccountSignupForm.value):(this.citizenAccountSignupForm.markAllAsTouched(),this.scrollToFirstInvalidControl())}};dg.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:wh}],dg=Hh([Object(s.Component)({selector:"app-create-citizen-account",template:'<div class="container">\n    <div class="row">\n        <div class="col-sm-12">\n            <div class="page_heading">New Account Sign Up (Public)</div>\n            <p>Creating an account will allow you to save any searches you conduct for services, making it easier to find information in the future either online or if you call us. You can also choose to receive email updates from the Helpline.</p>\n\t\t    <p>The information you share with the Helpline is confidential. The Helpline will not share or sell your personal information.</p>\n        </div>\n    </div>\n    \n    <div class="row">\n        <div class="col-sm-12">\n            <div id="err_location_create">\n            </div>\n        </div>\n    </div>\n    <form id="citizen_account_sign_up" [formGroup]="citizenAccountSignupForm" (ngSubmit)="citizenaccSubmit()">\n        <div class="row">\n            <div class="col-sm-12">\n                <em>Fields marked with an (*) must be completed.</em>\n            </div>\n            <div class="col-sm-12">\n              <div class="alert alert-info top10" style="margin-bottom:0;">\n                <strong>Note:</strong> This form is only for substance abuse Service Providers. If you want to sign up as an individual, please click <strong><a href="/app/utils/create_citizen_account">here</a>.</strong>\n              </div>\n            </div>\n        </div>\n        <div class="form_section_heading">Personal Details</div>\n        <div class="row">\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="fn" class="control-label">First Name: </label><span class="red">*</span>\n                    <input type="text" name="firstname" id="firstname" class="form-control" formControlName="firstname" />\n                    <div *ngIf="submitted && provideraccount.firstname?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.firstname.errors.required">Please enter Firstname</small>\n                    </div>\n                </div>\n            </div>\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="ln" class="control-label">Last Name: </label><span class="red">*</span>\n                    <input type="text" name="lastname" id="lastname" class="form-control" formControlName="lastname"/>\n                    <div *ngIf="submitted && provideraccount.lastname?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.lastname.errors.required">Please enter Lastname</small>\n                    </div>\n                </div>\n            </div>\n        </div>\t\t\t\n        \n        <div class="form_section_heading">Account Details</div>\n        <div class="row">\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="em" class="control-label">Email Address: </label><span class="red">*</span>\n                    <input type="text" name="em" id="em" class="form-control" formControlName="emailaddr"/>\n                    <div *ngIf="submitted && provideraccount.emailaddr?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.emailaddr.errors.required">Please enter Email address</small>\n                    </div>\n                </div>\n            </div>\n            <div class="col-sm-8">\n                <div class="form-group">\t\t\t\t\n                    <ul class="default_ul">\n                        <li>Your email address will be your username.</li>\n                        <li>Be sure to provide a valid email address.</li>\n                        <li>A confirmation email will be sent to this address with instructions for activating your account.</li>\n                    </ul>\n                </div>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="pw" class="control-label">Password: </label><span class="red">*</span>\n                    <input type="password" name="pw" (input)="getstrength()" id="pw" class="form-control" formControlName="password"/>\n                    <div *ngIf="submitted && provideraccount.password?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.password.errors.required">Please enter Password</small>\n                    </div>\n                </div>\n            </div>\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="cpw" class="control-label">Confirm Password: </label><span class="red">*</span>\n                    <input type="password" name="cpw" id="cpw" class="form-control" formControlName="confirmpwd"/>\n                    <div *ngIf="submitted && provideraccount.confirmpwd?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.confirmpwd.errors.required">Please enter Confirm Password</small>\n                        <div class="text-danger ml-1" *ngIf="provideraccount.confirmpwd.errors.mustMatch">Password and Confirm password must match</div>\n                    </div>\n                    \n                </div>\n            </div>\n            <div class="col-sm-4">\n                <p>Password Strength</p>\n                <div class="pw_indicator">\n                    <div [style.background-color]="bar0" class="pw_strength_block pw_first"></div>\n                    <div [style.background-color]="bar1" class="pw_strength_block pw_second"></div>\n                    <div [style.background-color]="bar2" class="pw_strength_block pw_third"></div>\n                    <div [style.background-color]="bar3" class="pw_strength_block pw_fourth"></div>\n                    <div [style.background-color]="bar4" class="pw_strength_block pw_fifth"></div>\n                    <div class="pw_status"></div>\n                </div>\n            </div>\n            <div class="col-sm-12">\n                <div class="alert alert-info"><strong>Password Policy: </strong>  Password must be at least six characters long, include at least one letter and one number, and have at least one upper case and one lower case letter.</div>\n            </div>\n        </div>\n        <div class="form_section_heading">Security Questions</div>\n        <div class="row">\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="q_1" class="control-label">Security Question 1 </label><span class="red">*</span>\n                    <select name="q_1" id="q_1" class="form-control" formControlName="sec1">\n                        <option value="">Select One</option>\n                        <option value="What is your mother\'s maiden name?">What is your mother\'s maiden name?</option>\n                        <option value="Which street did you grow up on?">Which street did you grow up on?</option>\n                        <option value="What is the name of your first pet?">What is the name of your first pet?</option>\n                        <option value="In what city or town were you born?">In what city or town were you born?</option>\n                        <option value="In what city or town was your first job?">In what city or town was your first job?</option>\n                    </select>\n                    <div *ngIf="submitted && provideraccount.sec1?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.sec1.errors.required">Please choose a Security Question</small>\n                    </div>\n                </div>\n                <div class="form-group">\n                    <label for="sec_1" class="control-label">Security Answer 1 </label><span class="red">*</span>\n                    <input type="text" name="sec_1" id="sec_1" class="form-control" formControlName="secans1"/>\n                    <div *ngIf="submitted && provideraccount.secans1?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.secans1.errors.required">Please enter Security Answer</small>\n                    </div>\n                </div>\n            </div>\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="q_2" class="control-label">Security Question 2 </label><span class="red">*</span>\n                    <select name="q_2" id="q_2" class="form-control" formControlName="sec2">\n                        <option value="">Select One</option>\n                        <option value="What is your mother\'s maiden name?">What is your mother\'s maiden name?</option>\n                        <option value="Which street did you grow up on?">Which street did you grow up on?</option>\n                        <option value="What is the name of your first pet?">What is the name of your first pet?</option>\n                        <option value="In what city or town were you born?">In what city or town were you born?</option>\n                        <option value="In what city or town was your first job?">In what city or town was your first job?</option>\n                    </select>\t\n                    <div *ngIf="submitted && provideraccount.sec2?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.sec2.errors.required">Please choose a Security Question</small>\n                    </div>\t\t\t\n                </div>\n                <div class="form-group">\n                    <label for="sec_2" class="control-label">Security Answer 2 </label><span class="red">*</span>\n                    <input type="text" name="sec_2" id="sec_2" class="form-control" formControlName="secans2"/>\n                    <div *ngIf="submitted && provideraccount.secans2?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.secans2.errors.required">Please enter Security Answer</small>\n                    </div>\n                </div>\n            </div>\n            <div class="col-sm-4">\n                <div class="form-group">\n                    <label for="q_3" class="control-label">Security Question 3 </label><span class="red">*</span>\n                    <select name="q_3" id="q_3" class="form-control" formControlName="sec3">\n                        <option value="">Select One</option>\n                        <option value="What is your mother\'s maiden name?">What is your mother\'s maiden name?</option>\n                        <option value="Which street did you grow up on?">Which street did you grow up on?</option>\n                        <option value="What is the name of your first pet?">What is the name of your first pet?</option>\n                        <option value="In what city or town were you born?">In what city or town were you born?</option>\n                        <option value="In what city or town was your first job?">In what city or town was your first job?</option>\n                    </select>\t\n                    <div *ngIf="submitted && provideraccount.sec3?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.sec3.errors.required">Please choose a Security Question</small>\n                    </div>\t\t\t\n                </div>\n                <div class="form-group">\n                    <label for="sec_3" class="control-label">Security Answer 3 </label><span class="red">*</span>\n                    <input type="text" name="sec_3" id="sec_3" class="form-control" formControlName="secans3"/>\n                    <div *ngIf="submitted && provideraccount.secans3?.errors">\n                        <small class="text-danger ml-1" *ngIf="provideraccount.secans3.errors.required">Please enter Security Answer</small>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-sm-12">\n                <p class="help-block">Remember these answers, they will be asked in the <em>"Forgot Your Password"</em> process.</p>\n            </div>\n        </div>\t\n        <div class="row">\n            <div class="col-sm-12">\n                <div class="form-group text-center">\n                    <button type="submit" class="button" id="account_sign_up_button">Submit</button>\n                </div>\n            </div>\n        </div>\n        <input type="hidden" name="email" id="email" />\n    </form>\n    </div>',styles:[""]})],dg);var pg=n("2Vo4"),ug=n("itXk"),hg=n("PqYM"),mg=n("5yfJ"),fg=n("xgIS"),gg=n("VRyK"),bg=n("Nv8m"),vg=n("HDdC"),yg=n("JX91"),_g=n("/uUt"),wg=n("eIep"),xg=n("1G5W"),Cg=n("pLZG"),Sg=n("IzEk"),kg=n("vkgz"),Eg=n("zp1y"),Ig=n("3E0/"),Ag=n("w1tV");function Dg(t){return parseInt(`${t}`,10)}function Tg(t){return null!=t?`${t}`:""}function Og(t,e,n=0){return Math.max(Math.min(t,e),n)}function Pg(t){return"string"==typeof t}function Ng(t){return!isNaN(Dg(t))}function Mg(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function Rg(t){return null!=t}function Lg(t){return Ng(t)?`0${t}`.slice(-2):""}function Fg(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});class jg{constructor(){this.closeOthers=!1}}jg.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],jg.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new jg},token:jg,providedIn:"root"});let Vg=0;class Bg{constructor(t){this.templateRef=t}}Bg.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPanelHeader]"}]}],Bg.ctorParameters=()=>[{type:s.TemplateRef}];class Hg{constructor(t){this.templateRef=t}}Hg.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPanelTitle]"}]}],Hg.ctorParameters=()=>[{type:s.TemplateRef}];class zg{constructor(t){this.templateRef=t}}zg.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPanelContent]"}]}],zg.ctorParameters=()=>[{type:s.TemplateRef}];class Ug{constructor(){this.disabled=!1,this.id="ngb-panel-"+Vg++,this.isOpen=!1}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}Ug.decorators=[{type:s.Directive,args:[{selector:"ngb-panel"}]}],Ug.propDecorators={disabled:[{type:s.Input}],id:[{type:s.Input}],title:[{type:s.Input}],type:[{type:s.Input}],cardClass:[{type:s.Input}],titleTpls:[{type:s.ContentChildren,args:[Hg,{descendants:!1}]}],headerTpls:[{type:s.ContentChildren,args:[Bg,{descendants:!1}]}],contentTpls:[{type:s.ContentChildren,args:[zg,{descendants:!1}]}]};class qg{constructor(t){this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new s.EventEmitter,this.type=t.type,this.closeOtherPanels=t.closeOthers}isExpanded(t){return this.activeIds.indexOf(t)>-1}expand(t){this._changeOpenState(this._findPanelById(t),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(t=>this._changeOpenState(t,!0))}collapse(t){this._changeOpenState(this._findPanelById(t),!1)}collapseAll(){this.panels.forEach(t=>{this._changeOpenState(t,!1)})}toggle(t){const e=this._findPanelById(t);e&&this._changeOpenState(e,!e.isOpen)}ngAfterContentChecked(){Pg(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(t=>t.isOpen=!t.disabled&&this.activeIds.indexOf(t.id)>-1),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0]),this._updateActiveIds())}_changeOpenState(t,e){if(t&&!t.disabled&&t.isOpen!==e){let n=!1;this.panelChange.emit({panelId:t.id,nextState:e,preventDefault:()=>{n=!0}}),n||(t.isOpen=e,e&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds())}}_closeOthers(t){this.panels.forEach(e=>{e.id!==t&&(e.isOpen=!1)})}_findPanelById(t){return this.panels.find(e=>e.id===t)}_updateActiveIds(){this.activeIds=this.panels.filter(t=>t.isOpen&&!t.disabled).map(t=>t.id)}}qg.decorators=[{type:s.Component,args:[{selector:"ngb-accordion",exportAs:"ngbAccordion",encapsulation:s.ViewEncapsulation.None,host:{class:"accordion",role:"tablist","[attr.aria-multiselectable]":"!closeOtherPanels"},template:'\n    <ng-template #t ngbPanelHeader let-panel>\n      <button class="btn btn-link" [ngbPanelToggle]="panel">\n        {{panel.title}}<ng-template [ngTemplateOutlet]="panel.titleTpl?.templateRef"></ng-template>\n      </button>\n    </ng-template>\n    <ng-template ngFor let-panel [ngForOf]="panels">\n      <div [class]="\'card \' + (panel.cardClass || \'\')">\n        <div role="tab" id="{{panel.id}}-header" [class]="\'card-header \' + (panel.type ? \'bg-\'+panel.type: type ? \'bg-\'+type : \'\')">\n          <ng-template [ngTemplateOutlet]="panel.headerTpl?.templateRef || t"\n                       [ngTemplateOutletContext]="{$implicit: panel, opened: panel.isOpen}"></ng-template>\n        </div>\n        <div id="{{panel.id}}" role="tabpanel" [attr.aria-labelledby]="panel.id + \'-header\'"\n             class="collapse" [class.show]="panel.isOpen" *ngIf="!destroyOnHide || panel.isOpen">\n          <div class="card-body">\n               <ng-template [ngTemplateOutlet]="panel.contentTpl?.templateRef"></ng-template>\n          </div>\n        </div>\n      </div>\n    </ng-template>\n  '}]}],qg.ctorParameters=()=>[{type:jg}],qg.propDecorators={panels:[{type:s.ContentChildren,args:[Ug]}],activeIds:[{type:s.Input}],closeOtherPanels:[{type:s.Input,args:["closeOthers"]}],destroyOnHide:[{type:s.Input}],type:[{type:s.Input}],panelChange:[{type:s.Output}]};class $g{constructor(t,e){this.accordion=t,this.panel=e}set ngbPanelToggle(t){t&&(this.panel=t)}}$g.decorators=[{type:s.Directive,args:[{selector:"button[ngbPanelToggle]",host:{type:"button","[disabled]":"panel.disabled","[class.collapsed]":"!panel.isOpen","[attr.aria-expanded]":"panel.isOpen","[attr.aria-controls]":"panel.id","(click)":"accordion.toggle(panel.id)"}}]}],$g.ctorParameters=()=>[{type:qg},{type:Ug,decorators:[{type:s.Optional},{type:s.Host}]}],$g.propDecorators={ngbPanelToggle:[{type:s.Input}]};const Wg=[qg,Ug,Hg,zg,Bg,$g];class Yg{}Yg.decorators=[{type:s.NgModule,args:[{declarations:Wg,exports:Wg,imports:[Cu.CommonModule]}]}];class Gg{constructor(){this.dismissible=!0,this.type="warning"}}Gg.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Gg.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Gg},token:Gg,providedIn:"root"});class Kg{constructor(t,e,n){this._renderer=e,this._element=n,this.close=new s.EventEmitter,this.dismissible=t.dismissible,this.type=t.type}closeHandler(){this.close.emit(null)}ngOnChanges(t){const e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${e.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${e.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}Kg.decorators=[{type:s.Component,args:[{selector:"ngb-alert",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,host:{role:"alert",class:"alert","[class.alert-dismissible]":"dismissible"},template:'\n    <ng-content></ng-content>\n    <button *ngIf="dismissible" type="button" class="close" aria-label="Close" i18n-aria-label="@@ngb.alert.close"\n      (click)="closeHandler()">\n      <span aria-hidden="true">&times;</span>\n    </button>\n    ',styles:["ngb-alert{display:block}"]}]}],Kg.ctorParameters=()=>[{type:Gg},{type:s.Renderer2},{type:s.ElementRef}],Kg.propDecorators={dismissible:[{type:s.Input}],type:[{type:s.Input}],close:[{type:s.Output}]};class Zg{}Zg.decorators=[{type:s.NgModule,args:[{declarations:[Kg],exports:[Kg],imports:[Cu.CommonModule],entryComponents:[Kg]}]}];class Xg{}Xg.decorators=[{type:s.Directive,args:[{selector:"[ngbButtonLabel]",host:{"[class.btn]":"true","[class.active]":"active","[class.disabled]":"disabled","[class.focus]":"focused"}}]}];const Qg={provide:Wh,useExisting:Object(s.forwardRef)(()=>Jg),multi:!0};class Jg{constructor(t,e){this._label=t,this._cd=e,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=t=>{},this.onTouched=()=>{}}set focused(t){this._label.focused=t,t||this.onTouched()}onInputChange(t){const e=t.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(e),this.onTouched(),this.writeValue(e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._label.disabled=t}writeValue(t){this.checked=t===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}Jg.decorators=[{type:s.Directive,args:[{selector:"[ngbButton][type=checkbox]",host:{"[checked]":"checked","[disabled]":"disabled","(change)":"onInputChange($event)","(focus)":"focused = true","(blur)":"focused = false"},providers:[Qg]}]}],Jg.ctorParameters=()=>[{type:Xg},{type:s.ChangeDetectorRef}],Jg.propDecorators={disabled:[{type:s.Input}],valueChecked:[{type:s.Input}],valueUnChecked:[{type:s.Input}]};const tb={provide:Wh,useExisting:Object(s.forwardRef)(()=>nb),multi:!0};let eb=0;class nb{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+eb++,this.onChange=t=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this.setDisabledState(t)}onRadioChange(t){this.writeValue(t.value),this.onChange(t.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(t){this._radios.add(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled=t,this._updateRadiosDisabled()}unregister(t){this._radios.delete(t)}writeValue(t){this._value=t,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(t=>t.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(t=>t.updateDisabled())}}nb.decorators=[{type:s.Directive,args:[{selector:"[ngbRadioGroup]",host:{role:"radiogroup"},providers:[tb]}]}],nb.propDecorators={name:[{type:s.Input}]};class ib{constructor(t,e,n,i,s){this._group=t,this._label=e,this._renderer=n,this._element=i,this._cd=s,this._value=null,this._group.register(this),this.updateDisabled()}set value(t){this._value=t;const e=t?t.toString():"";this._renderer.setProperty(this._element.nativeElement,"value",e),this._group.onRadioValueUpdate()}set disabled(t){this._disabled=!1!==t,this.updateDisabled()}set focused(t){this._label&&(this._label.focused=t),t||this._group.onTouched()}get checked(){return this._checked}get disabled(){return this._group.disabled||this._disabled}get value(){return this._value}get nameAttr(){return this.name||this._group.name}ngOnDestroy(){this._group.unregister(this)}onChange(){this._group.onRadioChange(this)}updateValue(t){this.value!==t&&this._cd.markForCheck(),this._checked=this.value===t,this._label.active=this._checked}updateDisabled(){this._label.disabled=this.disabled}}ib.decorators=[{type:s.Directive,args:[{selector:"[ngbButton][type=radio]",host:{"[checked]":"checked","[disabled]":"disabled","[name]":"nameAttr","(change)":"onChange()","(focus)":"focused = true","(blur)":"focused = false"}}]}],ib.ctorParameters=()=>[{type:nb},{type:Xg},{type:s.Renderer2},{type:s.ElementRef},{type:s.ChangeDetectorRef}],ib.propDecorators={name:[{type:s.Input}],value:[{type:s.Input,args:["value"]}],disabled:[{type:s.Input,args:["disabled"]}]};const sb=[Xg,Jg,nb,ib];class rb{}rb.decorators=[{type:s.NgModule,args:[{declarations:sb,exports:sb}]}];class ab{constructor(){this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}}ab.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ab.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new ab},token:ab,providedIn:"root"});let ob=0;class lb{constructor(t){this.tplRef=t,this.id="ngb-slide-"+ob++}}lb.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbSlide]"}]}],lb.ctorParameters=()=>[{type:s.TemplateRef}],lb.propDecorators={id:[{type:s.Input}]};class cb{constructor(t,e,n,i){this._platformId=e,this._ngZone=n,this._cd=i,this.NgbSlideEventSource=pb,this._destroy$=new Gf.a,this._interval$=new pg.a(0),this._mouseHover$=new pg.a(!1),this._pauseOnHover$=new pg.a(!1),this._pause$=new pg.a(!1),this._wrap$=new pg.a(!1),this.slide=new s.EventEmitter,this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard,this.pauseOnHover=t.pauseOnHover,this.showNavigationArrows=t.showNavigationArrows,this.showNavigationIndicators=t.showNavigationIndicators}set interval(t){this._interval$.next(t)}get interval(){return this._interval$.value}set wrap(t){this._wrap$.next(t)}get wrap(){return this._wrap$.value}set pauseOnHover(t){this._pauseOnHover$.next(t)}get pauseOnHover(){return this._pauseOnHover$.value}mouseEnter(){this._mouseHover$.next(!0)}mouseLeave(){this._mouseHover$.next(!1)}ngAfterContentInit(){Object(Cu.isPlatformBrowser)(this._platformId)&&this._ngZone.runOutsideAngular(()=>{const t=Object(ug.b)(this.slide.pipe(Object($h.a)(t=>t.current),Object(yg.a)(this.activeId)),this._wrap$,this.slides.changes.pipe(Object(yg.a)(null))).pipe(Object($h.a)(([t,e])=>{const n=this.slides.toArray(),i=this._getSlideIdxById(t);return e?n.length>1:i<n.length-1}),Object(_g.a)());Object(ug.b)(this._pause$,this._pauseOnHover$,this._mouseHover$,this._interval$,t).pipe(Object($h.a)(([t,e,n,i,s])=>t||e&&n||!s?0:i),Object(_g.a)(),Object(wg.a)(t=>t>0?Object(hg.a)(t,t):mg.a),Object(xg.a)(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(pb.TIMER)))}),this.slides.changes.pipe(Object(xg.a)(this._destroy$)).subscribe(()=>this._cd.markForCheck())}ngAfterContentChecked(){let t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:null}ngOnDestroy(){this._destroy$.next()}select(t,e){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t),e)}prev(t){this._cycleToSelected(this._getPrevSlide(this.activeId),db.RIGHT,t)}next(t){this._cycleToSelected(this._getNextSlide(this.activeId),db.LEFT,t)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}_cycleToSelected(t,e,n){let i=this._getSlideById(t);i&&i.id!==this.activeId&&(this.slide.emit({prev:this.activeId,current:i.id,direction:e,paused:this._pause$.value,source:n}),this.activeId=i.id),this._cd.markForCheck()}_getSlideEventDirection(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?db.RIGHT:db.LEFT}_getSlideById(t){return this.slides.find(e=>e.id===t)}_getSlideIdxById(t){return this.slides.toArray().indexOf(this._getSlideById(t))}_getNextSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id}_getPrevSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id}}cb.decorators=[{type:s.Component,args:[{selector:"ngb-carousel",exportAs:"ngbCarousel",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,host:{class:"carousel slide","[style.display]":'"block"',tabIndex:"0","(keydown.arrowLeft)":"keyboard && prev(NgbSlideEventSource.ARROW_LEFT)","(keydown.arrowRight)":"keyboard && next(NgbSlideEventSource.ARROW_RIGHT)"},template:'\n    <ol class="carousel-indicators" *ngIf="showNavigationIndicators">\n      <li *ngFor="let slide of slides" [id]="slide.id" [class.active]="slide.id === activeId"\n          (click)="select(slide.id, NgbSlideEventSource.INDICATOR)"></li>\n    </ol>\n    <div class="carousel-inner">\n      <div *ngFor="let slide of slides" class="carousel-item" [class.active]="slide.id === activeId">\n        <ng-template [ngTemplateOutlet]="slide.tplRef"></ng-template>\n      </div>\n    </div>\n    <a class="carousel-control-prev" role="button" (click)="prev(NgbSlideEventSource.ARROW_LEFT)" *ngIf="showNavigationArrows">\n      <span class="carousel-control-prev-icon" aria-hidden="true"></span>\n      <span class="sr-only" i18n="@@ngb.carousel.previous">Previous</span>\n    </a>\n    <a class="carousel-control-next" role="button" (click)="next(NgbSlideEventSource.ARROW_RIGHT)" *ngIf="showNavigationArrows">\n      <span class="carousel-control-next-icon" aria-hidden="true"></span>\n      <span class="sr-only" i18n="@@ngb.carousel.next">Next</span>\n    </a>\n  '}]}],cb.ctorParameters=()=>[{type:ab},{type:void 0,decorators:[{type:s.Inject,args:[s.PLATFORM_ID]}]},{type:s.NgZone},{type:s.ChangeDetectorRef}],cb.propDecorators={slides:[{type:s.ContentChildren,args:[lb]}],activeId:[{type:s.Input}],interval:[{type:s.Input}],wrap:[{type:s.Input}],keyboard:[{type:s.Input}],pauseOnHover:[{type:s.Input}],showNavigationArrows:[{type:s.Input}],showNavigationIndicators:[{type:s.Input}],slide:[{type:s.Output}],mouseEnter:[{type:s.HostListener,args:["mouseenter"]}],mouseLeave:[{type:s.HostListener,args:["mouseleave"]}]};const db={LEFT:"left",RIGHT:"right"},pb={TIMER:"timer",ARROW_LEFT:"arrowLeft",ARROW_RIGHT:"arrowRight",INDICATOR:"indicator"},ub=[cb,lb];class hb{}hb.decorators=[{type:s.NgModule,args:[{declarations:ub,exports:ub,imports:[Cu.CommonModule]}]}];class mb{constructor(){this.collapsed=!1}}mb.decorators=[{type:s.Directive,args:[{selector:"[ngbCollapse]",exportAs:"ngbCollapse",host:{"[class.collapse]":"true","[class.show]":"!collapsed"}}]}],mb.propDecorators={collapsed:[{type:s.Input,args:["ngbCollapse"]}]};class fb{}fb.decorators=[{type:s.NgModule,args:[{declarations:[mb],exports:[mb]}]}];class gb{static from(t){return t instanceof gb?t:t?new gb(t.year,t.month,t.day):null}constructor(t,e,n){this.year=Mg(t)?t:null,this.month=Mg(e)?e:null,this.day=Mg(n)?n:null}equals(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day}before(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day<t.day:this.month<t.month:this.year<t.year)}after(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.day>t.day:this.month>t.month:this.year>t.year)}}function bb(t){return new gb(t.getFullYear(),t.getMonth()+1,t.getDate())}function vb(t){const e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function yb(){return new wb}class _b{}_b.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:yb}]}],_b.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:yb,token:_b,providedIn:"root"});class wb extends _b{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){let i=vb(t),s=!0,r=i.getMonth();switch(e){case"y":i.setFullYear(i.getFullYear()+n);break;case"m":r+=n,i.setMonth(r),r%=12,r<0&&(r+=12);break;case"d":i.setDate(i.getDate()+n),s=!1;break;default:return t}return s&&i.getMonth()!==r&&i.setDate(0),bb(i)}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){let e=vb(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=vb(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const i=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((i-n.getTime())/864e5)/7)+1}getToday(){return bb(new Date)}isValid(t){if(!(t&&Mg(t.year)&&Mg(t.month)&&Mg(t.day)))return!1;if(0===t.year)return!1;const e=vb(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day}}function xb(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function Cb(t,e){return!(!t&&!e)&&(!t||!e||(t.year!==e.year||t.month!==e.month))}function Sb(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t}function kb(t,e){const{minDate:n,maxDate:i,disabled:s,markDisabled:r}=e;return!(!Rg(t)||s||r&&r(t,{year:t.year,month:t.month})||n&&t.before(n)||i&&t.after(i))}function Eb(t,e,n,i,s){const{displayMonths:r,months:a}=n,o=a.splice(0,a.length);return Array.from({length:r},(n,i)=>{const r=Object.assign(t.getNext(e,"m",i),{day:1});if(a[i]=null,!s){const t=o.findIndex(t=>t.firstDate.equals(r));-1!==t&&(a[i]=o.splice(t,1)[0])}return r}).forEach((e,s)=>{null===a[s]&&(a[s]=function(t,e,n,i,s={}){const{dayTemplateData:r,minDate:a,maxDate:o,firstDayOfWeek:l,markDisabled:c,outsideDays:d}=n,p=t.getToday();s.firstDate=null,s.lastDate=null,s.number=e.month,s.year=e.year,s.weeks=s.weeks||[],s.weekdays=s.weekdays||[],e=function(t,e,n){const i=t.getDaysPerWeek(),s=new gb(e.year,e.month,1),r=t.getWeekday(s)%i;return t.getPrev(s,"d",(i+r-n)%i)}(t,e,l);for(let u=0;u<t.getWeeksPerMonth();u++){let n=s.weeks[u];n||(n=s.weeks[u]={number:0,days:[],collapsed:!0});const h=n.days;for(let l=0;l<t.getDaysPerWeek();l++){0===u&&(s.weekdays[l]=t.getWeekday(e));const n=new gb(e.year,e.month,e.day),d=t.getNext(n),m=i.getDayAriaLabel(n);let f=!!(a&&n.before(a)||o&&n.after(o));!f&&c&&(f=c(n,{month:s.number,year:s.year}));let g=n.equals(p),b=r?r(n,{month:s.number,year:s.year}):void 0;null===s.firstDate&&n.month===s.number&&(s.firstDate=n),n.month===s.number&&d.month!==s.number&&(s.lastDate=n);let v=h[l];v||(v=h[l]={}),v.date=n,v.context=Object.assign(v.context||{},{$implicit:n,date:n,data:b,currentMonth:s.number,currentYear:s.year,disabled:f,focused:!1,selected:!1,today:g}),v.tabindex=-1,v.ariaLabel=m,v.hidden=!1,e=d}n.number=t.getWeekNumber(h.map(t=>t.date),l),n.collapsed="collapsed"===d&&h[0].date.month!==s.number&&h[h.length-1].date.month!==s.number}return s}(t,e,n,i,o.shift()||{}))}),a}function Ib(t){return new Db(t)}wb.decorators=[{type:s.Injectable}];class Ab{getDayNumerals(t){return`${t.day}`}getWeekNumerals(t){return`${t}`}getYearNumerals(t){return`${t}`}}Ab.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:Ib,deps:[s.LOCALE_ID]}]}],Ab.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return Ib(Object(s["\u0275\u0275inject"])(s.LOCALE_ID))},token:Ab,providedIn:"root"});class Db extends Ab{constructor(t){super(),this._locale=t;const e=Object(Cu.getLocaleDayNames)(t,Cu.FormStyle.Standalone,Cu.TranslationWidth.Short);this._weekdaysShort=e.map((t,n)=>e[(n+1)%7]),this._monthsShort=Object(Cu.getLocaleMonthNames)(t,Cu.FormStyle.Standalone,Cu.TranslationWidth.Abbreviated),this._monthsFull=Object(Cu.getLocaleMonthNames)(t,Cu.FormStyle.Standalone,Cu.TranslationWidth.Wide)}getWeekdayShortName(t){return this._weekdaysShort[t-1]}getMonthShortName(t){return this._monthsShort[t-1]}getMonthFullName(t){return this._monthsFull[t-1]}getDayAriaLabel(t){const e=new Date(t.year,t.month-1,t.day);return Object(Cu.formatDate)(e,"fullDate",this._locale)}}Db.decorators=[{type:s.Injectable}],Db.ctorParameters=()=>[{type:String,decorators:[{type:s.Inject,args:[s.LOCALE_ID]}]}];class Tb{constructor(t,e){this._calendar=t,this._i18n=e,this._VALIDATORS={dayTemplateData:t=>{if(this._state.dayTemplateData!==t)return{dayTemplateData:t}},displayMonths:t=>{if(Mg(t=Dg(t))&&t>0&&this._state.displayMonths!==t)return{displayMonths:t}},disabled:t=>{if(this._state.disabled!==t)return{disabled:t}},firstDayOfWeek:t=>{if(Mg(t=Dg(t))&&t>=0&&this._state.firstDayOfWeek!==t)return{firstDayOfWeek:t}},focusVisible:t=>{if(this._state.focusVisible!==t&&!this._state.disabled)return{focusVisible:t}},markDisabled:t=>{if(this._state.markDisabled!==t)return{markDisabled:t}},maxDate:t=>{const e=this.toValidDate(t,null);if(xb(this._state.maxDate,e))return{maxDate:e}},minDate:t=>{const e=this.toValidDate(t,null);if(xb(this._state.minDate,e))return{minDate:e}},navigation:t=>{if(this._state.navigation!==t)return{navigation:t}},outsideDays:t=>{if(this._state.outsideDays!==t)return{outsideDays:t}}},this._model$=new Gf.a,this._dateSelect$=new Gf.a,this._state={disabled:!1,displayMonths:1,firstDayOfWeek:1,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectBoxes:{years:[],months:[]},selectedDate:null}}get model$(){return this._model$.pipe(Object(Cg.a)(t=>t.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(Cg.a)(t=>null!==t))}set(t){let e=Object.keys(t).map(e=>this._VALIDATORS[e](t[e])).reduce((t,e)=>Object.assign({},t,e),{});Object.keys(e).length>0&&this._nextState(e)}focus(t){!this._state.disabled&&this._calendar.isValid(t)&&xb(this._state.focusDate,t)&&this._nextState({focusDate:t})}focusSelect(){kb(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(t){const e=this.toValidDate(t,this._calendar.getToday());this._state.disabled||this._state.firstDate&&!Cb(this._state.firstDate,t)||this._nextState({firstDate:e})}select(t,e={}){const n=this.toValidDate(t,null);this._state.disabled||(xb(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&kb(n,this._state)&&this._dateSelect$.next(n))}toValidDate(t,e){const n=gb.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e}getMonth(t){for(let e of this._state.months)if(t.month===e.number&&t.year===e.year)return e;throw new Error(`month ${t.month} of year ${t.year} not found`)}_nextState(t){const e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)}_patchContexts(t){const{months:e,displayMonths:n,selectedDate:i,focusDate:s,focusVisible:r,disabled:a,outsideDays:o}=t;t.months.forEach(t=>{t.weeks.forEach(l=>{l.days.forEach(l=>{s&&(l.context.focused=s.equals(l.date)&&r),l.tabindex=!a&&l.date.equals(s)&&s.month===t.number?0:-1,!0===a&&(l.context.disabled=!0),void 0!==i&&(l.context.selected=null!==i&&i.equals(l.date)),t.number!==l.date.month&&(l.hidden="hidden"===o||"collapsed"===o||n>1&&l.date.after(e[0].firstDate)&&l.date.before(e[n-1].lastDate))})})})}_updateState(t){const e=Object.assign({},this._state,t);let n=e.firstDate;if(("minDate"in t||"maxDate"in t)&&(!function(t,e){if(e&&t&&e.before(t))throw new Error(`'maxDate' ${e} should be greater than 'minDate' ${t}`)}(e.minDate,e.maxDate),e.focusDate=Sb(e.focusDate,e.minDate,e.maxDate),e.firstDate=Sb(e.firstDate,e.minDate,e.maxDate),n=e.focusDate),"disabled"in t&&(e.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(n=e.selectedDate),"focusVisible"in t)return e;if("focusDate"in t&&(e.focusDate=Sb(e.focusDate,e.minDate,e.maxDate),n=e.focusDate,0!==e.months.length&&!e.focusDate.before(e.firstDate)&&!e.focusDate.after(e.lastDate)))return e;if("firstDate"in t&&(e.firstDate=Sb(e.firstDate,e.minDate,e.maxDate),n=e.firstDate),n){const i="dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t,s=Eb(this._calendar,n,e,this._i18n,i);e.months=s,e.firstDate=s.length>0?s[0].firstDate:void 0,e.lastDate=s.length>0?s[s.length-1].lastDate:void 0,"selectedDate"in t&&!kb(e.selectedDate,e)&&(e.selectedDate=null),"firstDate"in t&&(void 0===e.focusDate||e.focusDate.before(e.firstDate)||e.focusDate.after(e.lastDate))&&(e.focusDate=n);const r=!this._state.firstDate||this._state.firstDate.year!==e.firstDate.year,a=!this._state.firstDate||this._state.firstDate.month!==e.firstDate.month;"select"===e.navigation?(("minDate"in t||"maxDate"in t||0===e.selectBoxes.years.length||r)&&(e.selectBoxes.years=function(t,e,n){if(!t)return[];const i=e?Math.max(e.year,t.year-500):t.year-10,s=(n?Math.min(n.year,t.year+500):t.year+10)-i+1,r=Array(s);for(let a=0;a<s;a++)r[a]=i+a;return r}(e.firstDate,e.minDate,e.maxDate)),("minDate"in t||"maxDate"in t||0===e.selectBoxes.months.length||r)&&(e.selectBoxes.months=function(t,e,n,i){if(!e)return[];let s=t.getMonths(e.year);if(n&&e.year===n.year){const t=s.findIndex(t=>t===n.month);s=s.slice(t)}if(i&&e.year===i.year){const t=s.findIndex(t=>t===i.month);s=s.slice(0,t+1)}return s}(this._calendar,e.firstDate,e.minDate,e.maxDate))):e.selectBoxes={years:[],months:[]},"arrows"!==e.navigation&&"select"!==e.navigation||!(a||r||"minDate"in t||"maxDate"in t||"disabled"in t)||(e.prevDisabled=e.disabled||function(t,e,n){const i=Object.assign(t.getPrev(e,"m"),{day:1});return n&&(i.year===n.year&&i.month<n.month||i.year<n.year&&1===n.month)}(this._calendar,e.firstDate,e.minDate),e.nextDisabled=e.disabled||function(t,e,n){const i=Object.assign(t.getNext(e,"m"),{day:1});return n&&i.after(n)}(this._calendar,e.lastDate,e.maxDate))}return e}}Tb.decorators=[{type:s.Injectable}],Tb.ctorParameters=()=>[{type:_b},{type:Ab}];const Ob={PREV:0,NEXT:1};Ob[Ob.PREV]="PREV",Ob[Ob.NEXT]="NEXT";class Pb{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}}function Nb(){return new Rb}Pb.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Pb.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Pb},token:Pb,providedIn:"root"});class Mb{}Mb.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:Nb}]}],Mb.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:Nb,token:Mb,providedIn:"root"});class Rb extends Mb{fromModel(t){return t&&Mg(t.year)&&Mg(t.month)&&Mg(t.day)?{year:t.year,month:t.month,day:t.day}:null}toModel(t){return t&&Mg(t.year)&&Mg(t.month)&&Mg(t.day)?{year:t.year,month:t.month,day:t.day}:null}}Rb.decorators=[{type:s.Injectable}];const Lb={provide:Wh,useExisting:Object(s.forwardRef)(()=>jb),multi:!0};class Fb{constructor(t){this.templateRef=t}}Fb.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbDatepickerContent]"}]}],Fb.ctorParameters=()=>[{type:s.TemplateRef}];class jb{constructor(t,e,n,i,r,a,o,l){this._service=t,this._calendar=e,this.i18n=n,this._elementRef=a,this._ngbDateAdapter=o,this._ngZone=l,this._destroyed$=new Gf.a,this._publicState={},this.navigate=new s.EventEmitter,this.dateSelect=new s.EventEmitter,this.select=this.dateSelect,this.onChange=t=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(t=>this[t]=i[t]),t.dateSelect$.pipe(Object(xg.a)(this._destroyed$)).subscribe(t=>{this.dateSelect.emit(t)}),t.model$.pipe(Object(xg.a)(this._destroyed$)).subscribe(t=>{const e=t.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:t.maxDate,minDate:t.minDate,firstDate:t.firstDate,lastDate:t.lastDate,focusedDate:t.focusDate,months:t.months.map(t=>t.firstDate)};let i=!1;if(!e.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month},preventDefault:()=>i=!0}),i&&null!==n))return void this._service.open(n);const s=t.selectedDate,a=t.focusDate,o=this.model?this.model.focusDate:null;this.model=t,xb(s,this._controlValue)&&(this._controlValue=s,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(s))),xb(a,o)&&o&&t.focusVisible&&this.focus(),r.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(t){this._service.focus(gb.from(t))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(Sg.a)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');t&&t.focus()})}navigateTo(t){this._service.open(gb.from(t?t.day?t:Object.assign({},t,{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=Object(fg.a)(this._contentEl.nativeElement,"focusin"),e=Object(fg.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(gg.a)(t,e).pipe(Object(Cg.a)(({target:t,relatedTarget:e})=>!(Fg(t,"ngb-dp-day")&&Fg(e,"ngb-dp-day")&&n.contains(t)&&n.contains(e))),Object(xg.a)(this._destroyed$)).subscribe(({type:t})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===t})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const t={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>t[e]=this[e]),this._service.set(t),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(t){const e={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(e=>e in t).forEach(t=>e[t]=this[t]),this._service.set(e),"startDate"in t){const{currentValue:e,previousValue:n}=t.startDate;Cb(n,e)&&this.navigateTo(this.startDate)}}onDateSelect(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})}onNavigateDateSelect(t){this._service.open(t)}onNavigateEvent(t){switch(t){case Ob.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case Ob.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._service.set({disabled:t})}writeValue(t){this._controlValue=gb.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)}}jb.decorators=[{type:s.Component,args:[{exportAs:"ngbDatepicker",selector:"ngb-datepicker",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,template:'\n    <ng-template #defaultDayTemplate let-date="date" let-currentMonth="currentMonth" let-selected="selected" let-disabled="disabled" let-focused="focused">\n      <div ngbDatepickerDayView\n        [date]="date"\n        [currentMonth]="currentMonth"\n        [selected]="selected"\n        [disabled]="disabled"\n        [focused]="focused">\n      </div>\n    </ng-template>\n\n    <ng-template #defaultContentTemplate>\n      <div *ngFor="let month of model.months; let i = index;" class="ngb-dp-month">\n        <div *ngIf="navigation === \'none\' || (displayMonths > 1 && navigation === \'select\')" class="ngb-dp-month-name">\n          {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n        </div>\n        <ngb-datepicker-month [month]="month.firstDate"></ngb-datepicker-month>\n      </div>\n    </ng-template>\n\n    <div class="ngb-dp-header">\n      <ngb-datepicker-navigation *ngIf="navigation !== \'none\'"\n        [date]="model.firstDate"\n        [months]="model.months"\n        [disabled]="model.disabled"\n        [showSelect]="model.navigation === \'select\'"\n        [prevDisabled]="model.prevDisabled"\n        [nextDisabled]="model.nextDisabled"\n        [selectBoxes]="model.selectBoxes"\n        (navigate)="onNavigateEvent($event)"\n        (select)="onNavigateDateSelect($event)">\n      </ngb-datepicker-navigation>\n    </div>\n\n    <div class="ngb-dp-content" [class.ngb-dp-months]="!contentTemplate" #content>\n      <ng-template [ngTemplateOutlet]="contentTemplate?.templateRef || defaultContentTemplate"></ng-template>\n    </div>\n\n    <ng-template [ngTemplateOutlet]="footerTemplate"></ng-template>\n  ',providers:[Lb,Tb],styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"]}]}],jb.ctorParameters=()=>[{type:Tb},{type:_b},{type:Ab},{type:Pb},{type:s.ChangeDetectorRef},{type:s.ElementRef},{type:Mb},{type:s.NgZone}],jb.propDecorators={_defaultDayTemplate:[{type:s.ViewChild,args:["defaultDayTemplate",{static:!0}]}],_contentEl:[{type:s.ViewChild,args:["content",{static:!0}]}],contentTemplate:[{type:s.ContentChild,args:[Fb,{static:!0}]}],dayTemplate:[{type:s.Input}],dayTemplateData:[{type:s.Input}],displayMonths:[{type:s.Input}],firstDayOfWeek:[{type:s.Input}],footerTemplate:[{type:s.Input}],markDisabled:[{type:s.Input}],maxDate:[{type:s.Input}],minDate:[{type:s.Input}],navigation:[{type:s.Input}],outsideDays:[{type:s.Input}],showWeekdays:[{type:s.Input}],showWeekNumbers:[{type:s.Input}],startDate:[{type:s.Input}],navigate:[{type:s.Output}],dateSelect:[{type:s.Output}],select:[{type:s.Output}]};const Vb={Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40};Vb[Vb.Tab]="Tab",Vb[Vb.Enter]="Enter",Vb[Vb.Escape]="Escape",Vb[Vb.Space]="Space",Vb[Vb.PageUp]="PageUp",Vb[Vb.PageDown]="PageDown",Vb[Vb.End]="End",Vb[Vb.Home]="Home",Vb[Vb.ArrowLeft]="ArrowLeft",Vb[Vb.ArrowUp]="ArrowUp",Vb[Vb.ArrowRight]="ArrowRight",Vb[Vb.ArrowDown]="ArrowDown";class Bb{processKey(t,e){const{state:n,calendar:i}=e;switch(t.which){case Vb.PageUp:e.focusDate(i.getPrev(n.focusedDate,t.shiftKey?"y":"m",1));break;case Vb.PageDown:e.focusDate(i.getNext(n.focusedDate,t.shiftKey?"y":"m",1));break;case Vb.End:e.focusDate(t.shiftKey?n.maxDate:n.lastDate);break;case Vb.Home:e.focusDate(t.shiftKey?n.minDate:n.firstDate);break;case Vb.ArrowLeft:e.focusDate(i.getPrev(n.focusedDate,"d",1));break;case Vb.ArrowUp:e.focusDate(i.getPrev(n.focusedDate,"d",i.getDaysPerWeek()));break;case Vb.ArrowRight:e.focusDate(i.getNext(n.focusedDate,"d",1));break;case Vb.ArrowDown:e.focusDate(i.getNext(n.focusedDate,"d",i.getDaysPerWeek()));break;case Vb.Enter:case Vb.Space:e.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}}Bb.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Bb.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Bb},token:Bb,providedIn:"root"});class Hb{constructor(t,e,n,i){this.i18n=t,this.datepicker=e,this._keyboardService=n,this._service=i}set month(t){this.viewModel=this._service.getMonth(t)}onKeyDown(t){this._keyboardService.processKey(t,this.datepicker)}doSelect(t){t.context.disabled||t.hidden||this.datepicker.onDateSelect(t.date)}}Hb.decorators=[{type:s.Component,args:[{selector:"ngb-datepicker-month",host:{role:"grid","(keydown)":"onKeyDown($event)"},encapsulation:s.ViewEncapsulation.None,template:'\n    <div *ngIf="datepicker.showWeekdays" class="ngb-dp-week ngb-dp-weekdays" role="row">\n      <div *ngIf="datepicker.showWeekNumbers" class="ngb-dp-weekday ngb-dp-showweek"></div>\n      <div *ngFor="let w of viewModel.weekdays" class="ngb-dp-weekday small" role="columnheader">\n        {{ i18n.getWeekdayShortName(w) }}\n      </div>\n    </div>\n    <ng-template ngFor let-week [ngForOf]="viewModel.weeks">\n      <div *ngIf="!week.collapsed" class="ngb-dp-week" role="row">\n        <div *ngIf="datepicker.showWeekNumbers" class="ngb-dp-week-number small text-muted">{{ i18n.getWeekNumerals(week.number) }}</div>\n        <div *ngFor="let day of week.days" (click)="doSelect(day); $event.preventDefault()" class="ngb-dp-day" role="gridcell"\n          [class.disabled]="day.context.disabled"\n          [tabindex]="day.tabindex"\n          [class.hidden]="day.hidden"\n          [class.ngb-dp-today]="day.context.today"\n          [attr.aria-label]="day.ariaLabel">\n          <ng-template [ngIf]="!day.hidden">\n            <ng-template [ngTemplateOutlet]="datepicker.dayTemplate" [ngTemplateOutletContext]="day.context"></ng-template>\n          </ng-template>\n        </div>\n      </div>\n    </ng-template>\n  ',styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{border-bottom:1px solid rgba(0,0,0,.125);border-radius:0;background-color:#f8f9fa;background-color:var(--light)}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default}.ngb-dp-day[tabindex="0"]{z-index:1}']}]}],Hb.ctorParameters=()=>[{type:Ab},{type:jb},{type:Bb},{type:Tb}],Hb.propDecorators={month:[{type:s.Input}]};class zb{constructor(t){this.i18n=t,this.navigation=Ob,this.months=[],this.navigate=new s.EventEmitter,this.select=new s.EventEmitter}onClickPrev(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}zb.decorators=[{type:s.Component,args:[{selector:"ngb-datepicker-navigation",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,template:'\n    <div class="ngb-dp-arrow">\n      <button type="button" class="btn btn-link ngb-dp-arrow-btn" (click)="onClickPrev($event)" [disabled]="prevDisabled"\n              i18n-aria-label="@@ngb.datepicker.previous-month" aria-label="Previous month"\n              i18n-title="@@ngb.datepicker.previous-month" title="Previous month">\n        <span class="ngb-dp-navigation-chevron"></span>\n      </button>\n    </div>\n    <ngb-datepicker-navigation-select *ngIf="showSelect" class="ngb-dp-navigation-select"\n      [date]="date"\n      [disabled] = "disabled"\n      [months]="selectBoxes.months"\n      [years]="selectBoxes.years"\n      (select)="select.emit($event)">\n    </ngb-datepicker-navigation-select>\n\n    <ng-template *ngIf="!showSelect" ngFor let-month [ngForOf]="months" let-i="index">\n      <div class="ngb-dp-arrow" *ngIf="i > 0"></div>\n      <div class="ngb-dp-month-name">\n        {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}\n      </div>\n      <div class="ngb-dp-arrow" *ngIf="i !== months.length - 1"></div>\n    </ng-template>\n    <div class="ngb-dp-arrow right">\n      <button type="button" class="btn btn-link ngb-dp-arrow-btn" (click)="onClickNext($event)" [disabled]="nextDisabled"\n              i18n-aria-label="@@ngb.datepicker.next-month" aria-label="Next month"\n              i18n-title="@@ngb.datepicker.next-month" title="Next month">\n        <span class="ngb-dp-navigation-chevron"></span>\n      </button>\n    </div>\n    ',styles:["ngb-datepicker-navigation{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;-webkit-transform:rotate(-135deg);transform:rotate(-135deg)}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:-ms-flexbox;display:flex;-ms-flex:1 1 9rem;flex:1 1 9rem}"]}]}],zb.ctorParameters=()=>[{type:Ab}],zb.propDecorators={date:[{type:s.Input}],disabled:[{type:s.Input}],months:[{type:s.Input}],showSelect:[{type:s.Input}],prevDisabled:[{type:s.Input}],nextDisabled:[{type:s.Input}],selectBoxes:[{type:s.Input}],navigate:[{type:s.Output}],select:[{type:s.Output}]};const Ub=(t,e)=>!!e&&e.some(e=>e.contains(t)),qb=(t,e)=>!e||null!=function(t,e){return e?t.closest(e):null}(t,e),$b="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function Wb(t,e,n,i,s,r,a,o){var l;n&&t.runOutsideAngular((l=()=>{const l=Object(fg.a)(e,"keydown").pipe(Object(xg.a)(s),Object(Cg.a)(t=>t.which===Vb.Escape),Object(kg.a)(t=>t.preventDefault())),c=Object(fg.a)(e,"mousedown").pipe(Object($h.a)(t=>{const e=t.target;return 2!==t.button&&!Ub(e,a)&&("inside"===n?Ub(e,r)&&qb(e,o):"outside"===n?!Ub(e,r):qb(e,o)||!Ub(e,r))}),Object(xg.a)(s)),d=Object(fg.a)(e,"mouseup").pipe(Object(Eg.a)(c),Object(Cg.a)(([t,e])=>e),Object(Ig.a)(0),Object(xg.a)(s));Object(bg.a)([l,d]).subscribe(()=>t.run(i))},$b?()=>setTimeout(()=>l(),100):l))}const Yb=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Gb(t){const e=Array.from(t.querySelectorAll(Yb)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const Kb=(t,e,n,i=!1)=>{t.runOutsideAngular(()=>{const t=Object(fg.a)(e,"focusin").pipe(Object(xg.a)(n),Object($h.a)(t=>t.target));Object(fg.a)(e,"keydown").pipe(Object(xg.a)(n),Object(Cg.a)(t=>t.which===Vb.Tab),Object(Eg.a)(t)).subscribe(([t,n])=>{const[i,s]=Gb(e);n!==i&&n!==e||!t.shiftKey||(s.focus(),t.preventDefault()),n!==s||t.shiftKey||(i.focus(),t.preventDefault())}),i&&Object(fg.a)(e,"click").pipe(Object(xg.a)(n),Object(Eg.a)(t),Object($h.a)(t=>t[1])).subscribe(t=>t.focus())})};const Zb=/\s+/,Xb=new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(i=this.offset(e,!1)),i.top+=e.clientTop,i.left+=e.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,s=window.pageXOffset-document.documentElement.clientLeft;let r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+s,right:n.right+s};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(t,e,n,i){const[s="top",r="center"]=n.split("-"),a=i?this.offset(t,!1):this.position(t,!1),o=this.getAllStyles(e),l=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),d=parseFloat(o.marginLeft),p=parseFloat(o.marginRight);let u=0,h=0;switch(s){case"top":u=a.top-(e.offsetHeight+l+c);break;case"bottom":u=a.top+a.height;break;case"left":h=a.left-(e.offsetWidth+d+p);break;case"right":h=a.left+a.width}switch(r){case"top":u=a.top;break;case"bottom":u=a.top+a.height-e.offsetHeight;break;case"left":h=a.left;break;case"right":h=a.left+a.width-e.offsetWidth;break;case"center":"top"===s||"bottom"===s?h=a.left+a.width/2-e.offsetWidth/2:u=a.top+a.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(h)}px, ${Math.round(u)}px)`;const m=e.getBoundingClientRect(),f=document.documentElement,g=window.innerHeight||f.clientHeight,b=window.innerWidth||f.clientWidth;return m.left>=0&&m.top>=0&&m.right<=b&&m.bottom<=g}};function Qb(t,e,n,i,s){let r=Array.isArray(n)?n:n.split(Zb);const a=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],o=e.classList,l=t=>{const[e,n]=t.split("-"),i=[];return s&&(i.push(`${s}-${e}`),n&&i.push(`${s}-${e}-${n}`),i.forEach(t=>{o.add(t)})),i};s&&a.forEach(t=>{o.remove(`${s}-${t}`)});let c=r.findIndex(t=>"auto"===t);c>=0&&a.forEach(function(t){null==r.find(e=>-1!==e.search("^"+t))&&r.splice(c++,1,t)});const d=e.style;let p;d.position="absolute",d.top="0",d.left="0",d["will-change"]="transform";let u=!1;for(p of r){let n=l(p);if(Xb.positionElements(t,e,p,i)){u=!0;break}s&&n.forEach(t=>{o.remove(t)})}return u||(p=r[0],l(p),Xb.positionElements(t,e,p,i)),p}function Jb(){return new ev}class tv{}tv.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:Jb}]}],tv.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:Jb,token:tv,providedIn:"root"});class ev extends tv{parse(t){if(t){const e=t.trim().split("-");if(1===e.length&&Ng(e[0]))return{year:Dg(e[0]),month:null,day:null};if(2===e.length&&Ng(e[0])&&Ng(e[1]))return{year:Dg(e[0]),month:Dg(e[1]),day:null};if(3===e.length&&Ng(e[0])&&Ng(e[1])&&Ng(e[2]))return{year:Dg(e[0]),month:Dg(e[1]),day:Dg(e[2])}}return null}format(t){return t?`${t.year}-${Ng(t.month)?Lg(t.month):""}-${Ng(t.day)?Lg(t.day):""}`:""}}ev.decorators=[{type:s.Injectable}];class nv extends Pb{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}}nv.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],nv.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new nv},token:nv,providedIn:"root"});const iv={provide:Wh,useExisting:Object(s.forwardRef)(()=>rv),multi:!0},sv={provide:tm,useExisting:Object(s.forwardRef)(()=>rv),multi:!0};class rv{constructor(t,e,n,i,r,a,o,l,c,d,p){this._parserFormatter=t,this._elRef=e,this._vcRef=n,this._renderer=i,this._cfr=r,this._ngZone=a,this._calendar=o,this._dateAdapter=l,this._document=c,this._changeDetector=d,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this.dateSelect=new s.EventEmitter,this.navigate=new s.EventEmitter,this.closed=new s.EventEmitter,this._onChange=t=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(t=>this[t]=p[t]),this._zoneSubscription=a.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(t){this._disabled=""===t||t&&"false"!==t,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}registerOnValidatorChange(t){this._validatorChange=t}setDisabledState(t){this.disabled=t}validate(t){const e=t.value;if(null==e)return null;const n=this._fromDateStruct(this._dateAdapter.fromModel(e));return this._calendar.isValid(n)?this.minDate&&n.before(gb.from(this.minDate))?{ngbDate:{requiredBefore:this.minDate}}:this.maxDate&&n.after(gb.from(this.maxDate))?{ngbDate:{requiredAfter:this.maxDate}}:void 0:{ngbDate:{invalid:t.value}}}writeValue(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)}manualDateChange(t,e=!1){const n=t!==this._inputValue;n&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),!n&&e||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===t?null:t),e&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const t=this._cfr.resolveComponentFactory(jb);this._cRef=this._vcRef.createComponent(t),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(t=>{this.writeValue(t),this._onChange(t),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Kb(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),Wb(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let t=this._elWithFocus;Pg(this.restoreFocus)?t=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(t=this.restoreFocus),t&&t.focus?t.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(t){this.isOpen()&&this._cRef.instance.navigateTo(t)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(t){(t.minDate||t.maxDate)&&(this._validatorChange(),this.isOpen()&&(t.minDate&&(this._cRef.instance.minDate=this.minDate),t.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(t)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(t){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(e=>{void 0!==this[e]&&(t[e]=this[e])}),t.startDate=this.startDate||this._model}_applyPopupStyling(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.addClass(t,"show"),"body"===this.container&&this._renderer.addClass(t,"ngb-dp-body")}_subscribeForDatepickerOutputs(t){t.navigate.subscribe(t=>this.navigate.emit(t)),t.dateSelect.subscribe(t=>{this.dateSelect.emit(t),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(t){const e=this._parserFormatter.format(t);this._inputValue=e,this._renderer.setProperty(this._elRef.nativeElement,"value",e),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())}_fromDateStruct(t){const e=t?new gb(t.year,t.month,t.day):null;return this._calendar.isValid(e)?e:null}_updatePopupPosition(){if(!this._cRef)return;let t;if(t=Pg(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");Qb(t,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}rv.decorators=[{type:s.Directive,args:[{selector:"input[ngbDatepicker]",exportAs:"ngbDatepicker",host:{"(input)":"manualDateChange($event.target.value)","(change)":"manualDateChange($event.target.value, true)","(focus)":"onFocus()","(blur)":"onBlur()","[disabled]":"disabled"},providers:[iv,sv,{provide:Pb,useExisting:nv}]}]}],rv.ctorParameters=()=>[{type:tv},{type:s.ElementRef},{type:s.ViewContainerRef},{type:s.Renderer2},{type:s.ComponentFactoryResolver},{type:s.NgZone},{type:_b},{type:Mb},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.ChangeDetectorRef},{type:nv}],rv.propDecorators={autoClose:[{type:s.Input}],dayTemplate:[{type:s.Input}],dayTemplateData:[{type:s.Input}],displayMonths:[{type:s.Input}],firstDayOfWeek:[{type:s.Input}],footerTemplate:[{type:s.Input}],markDisabled:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],navigation:[{type:s.Input}],outsideDays:[{type:s.Input}],placement:[{type:s.Input}],restoreFocus:[{type:s.Input}],showWeekdays:[{type:s.Input}],showWeekNumbers:[{type:s.Input}],startDate:[{type:s.Input}],container:[{type:s.Input}],positionTarget:[{type:s.Input}],dateSelect:[{type:s.Output}],navigate:[{type:s.Output}],closed:[{type:s.Output}],disabled:[{type:s.Input}]};class av{constructor(t){this.i18n=t}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}av.decorators=[{type:s.Component,args:[{selector:"[ngbDatepickerDayView]",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,host:{class:"btn-light","[class.bg-primary]":"selected","[class.text-white]":"selected","[class.text-muted]":"isMuted()","[class.outside]":"isMuted()","[class.active]":"focused"},template:"{{ i18n.getDayNumerals(date) }}",styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"]}]}],av.ctorParameters=()=>[{type:Ab}],av.propDecorators={currentMonth:[{type:s.Input}],date:[{type:s.Input}],disabled:[{type:s.Input}],focused:[{type:s.Input}],selected:[{type:s.Input}]};class ov{constructor(t,e){this.i18n=t,this._renderer=e,this.select=new s.EventEmitter,this._month=-1,this._year=-1}changeMonth(t){this.select.emit(new gb(this.date.year,Dg(t),1))}changeYear(t){this.select.emit(new gb(Dg(t),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}ov.decorators=[{type:s.Component,args:[{selector:"ngb-datepicker-navigation-select",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,template:'\n    <select #month\n      [disabled]="disabled"\n      class="custom-select"\n      i18n-aria-label="@@ngb.datepicker.select-month" aria-label="Select month"\n      i18n-title="@@ngb.datepicker.select-month" title="Select month"\n      (change)="changeMonth($event.target.value)">\n        <option *ngFor="let m of months" [attr.aria-label]="i18n.getMonthFullName(m, date?.year)"\n                [value]="m">{{ i18n.getMonthShortName(m, date?.year) }}</option>\n    </select><select #year\n      [disabled]="disabled"\n      class="custom-select"\n      i18n-aria-label="@@ngb.datepicker.select-year" aria-label="Select year"\n      i18n-title="@@ngb.datepicker.select-year" title="Select year"\n      (change)="changeYear($event.target.value)">\n        <option *ngFor="let y of years" [value]="y">{{ i18n.getYearNumerals(y) }}</option>\n    </select>\n  ',styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"]}]}],ov.ctorParameters=()=>[{type:Ab},{type:s.Renderer2}],ov.propDecorators={date:[{type:s.Input}],disabled:[{type:s.Input}],months:[{type:s.Input}],years:[{type:s.Input}],select:[{type:s.Output}],monthSelect:[{type:s.ViewChild,args:["month",{static:!0,read:s.ElementRef}]}],yearSelect:[{type:s.ViewChild,args:["year",{static:!0,read:s.ElementRef}]}]};class lv extends _b{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){switch(t=new gb(t.year,t.month,t.day),e){case"y":return(t=this._setYear(t,t.year+n)).month=1,t.day=1,t;case"m":return(t=this._setMonth(t,t.month+n)).day=1,t;case"d":return this._setDay(t,t.day+n);default:return t}}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){const e=this.toGregorian(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=t[(11-e)%7],i=this.toGregorian(n);i.setDate(i.getDate()+4-(i.getDay()||7));const s=i.getTime(),r=this.toGregorian(new gb(n.year,1,1));return Math.floor(Math.round((s-r.getTime())/864e5)/7)+1}getToday(){return this.fromGregorian(new Date)}isValid(t){return t&&Ng(t.year)&&Ng(t.month)&&Ng(t.day)&&!isNaN(this.toGregorian(t).getTime())}_setDay(t,e){e=+e;let n=this.getDaysPerMonth(t.month,t.year);if(e<=0)for(;e<=0;)t=this._setMonth(t,t.month-1),n=this.getDaysPerMonth(t.month,t.year),e+=n;else if(e>n)for(;e>n;)e-=n,t=this._setMonth(t,t.month+1),n=this.getDaysPerMonth(t.month,t.year);return t.day=e,t}_setMonth(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t}_setYear(t,e){return t.year=+e,t}}function cv(t){const e=t.getFullYear();return e%4==0&&e%100!=0||e%400==0}function dv(t,e){return t-e*Math.floor(t/e)}lv.decorators=[{type:s.Injectable}];class pv extends lv{fromGregorian(t){const e=t.getFullYear(),n=t.getMonth(),i=t.getDate();let s=1721424.5+365*(e-1)+Math.floor((e-1)/4)+-Math.floor((e-1)/100)+Math.floor((e-1)/400)+Math.floor((367*(n+1)-362)/12+(n+1<=2?0:cv(t)?-1:-2)+i);s=Math.floor(s)+.5;const r=s-1948439.5,a=Math.floor((30*r+10646)/10631);let o=Math.ceil((r-29-(354*((l=a)-1)+Math.floor((3+11*l)/30)))/29.5);var l;o=Math.min(o,11);const c=Math.ceil(r-function(t,e){return Math.ceil(29.5*e)+354*(t-1)+Math.floor((3+11*t)/30)}(a,o))+1;return new gb(a,o+1,c)}toGregorian(t){const e=t.year,n=t.month-1,i=t.day+Math.ceil(29.5*n)+354*(e-1)+Math.floor((3+11*e)/30)+1948439.5-1,s=Math.floor(i-.5)+.5,r=s-1721425.5,a=Math.floor(r/146097),o=dv(r,146097),l=Math.floor(o/36524),c=dv(o,36524),d=Math.floor(c/1461),p=dv(c,1461),u=Math.floor(p/365);let h=400*a+100*l+4*d+u;4!==l&&4!==u&&h++;const m=s-(1721425.5+365*(h-1)+Math.floor((h-1)/4)-Math.floor((h-1)/100)+Math.floor((h-1)/400)),f=s<1721424.5+365*(h-1)+Math.floor((h-1)/4)-Math.floor((h-1)/100)+Math.floor((h-1)/400)+Math.floor(739/12+(cv(new Date(h,3,1))?-1:-2)+1)?0:cv(new Date(h,3,1))?1:2,g=Math.floor((12*(m+f)+373)/367),b=1721424.5+365*(h-1)+Math.floor((h-1)/4)-Math.floor((h-1)/100)+Math.floor((h-1)/400)+Math.floor((367*g-362)/12+(g<=2?0:cv(new Date(h,g-1,1))?-1:-2)+1);return new Date(h,g-1,s-b+1)}getDaysPerMonth(t,e){e+=Math.floor(t/13);let n=29+(t=(t-1)%12+1)%2;return 12===t&&(14+11*e)%30<11&&n++,n}}pv.decorators=[{type:s.Injectable}];const uv=new Date(1882,10,12),hv=new Date(2174,10,25),mv=["101010101010","110101010100","111011001001","011011010100","011011101010","001101101100","101010101101","010101010101","011010101001","011110010010","101110101001","010111010100","101011011010","010101011100","110100101101","011010010101","011101001010","101101010100","101101101010","010110101101","010010101110","101001001111","010100010111","011010001011","011010100101","101011010101","001011010110","100101011011","010010011101","101001001101","110100100110","110110010101","010110101100","100110110110","001010111010","101001011011","010100101011","101010010101","011011001010","101011101001","001011110100","100101110110","001010110110","100101010110","101011001010","101110100100","101111010010","010111011001","001011011100","100101101101","010101001101","101010100101","101101010010","101110100101","010110110100","100110110110","010101010111","001010010111","010101001011","011010100011","011101010010","101101100101","010101101010","101010101011","010100101011","110010010101","110101001010","110110100101","010111001010","101011010110","100101010111","010010101011","100101001011","101010100101","101101010010","101101101010","010101110101","001001110110","100010110111","010001011011","010101010101","010110101001","010110110100","100111011010","010011011101","001001101110","100100110110","101010101010","110101010100","110110110010","010111010101","001011011010","100101011011","010010101011","101001010101","101101001001","101101100100","101101110001","010110110100","101010110101","101001010101","110100100101","111010010010","111011001001","011011010100","101011101001","100101101011","010010101011","101010010011","110101001001","110110100100","110110110010","101010111001","010010111010","101001011011","010100101011","101010010101","101100101010","101101010101","010101011100","010010111101","001000111101","100100011101","101010010101","101101001010","101101011010","010101101101","001010110110","100100111011","010010011011","011001010101","011010101001","011101010100","101101101010","010101101100","101010101101","010101010101","101100101001","101110010010","101110101001","010111010100","101011011010","010101011010","101010101011","010110010101","011101001001","011101100100","101110101010","010110110101","001010110110","101001010110","111001001101","101100100101","101101010010","101101101010","010110101101","001010101110","100100101111","010010010111","011001001011","011010100101","011010101100","101011010110","010101011101","010010011101","101001001101","110100010110","110110010101","010110101010","010110110101","001011011010","100101011011","010010101101","010110010101","011011001010","011011100100","101011101010","010011110101","001010110110","100101010110","101010101010","101101010100","101111010010","010111011001","001011101010","100101101101","010010101101","101010010101","101101001010","101110100101","010110110010","100110110101","010011010110","101010010111","010101000111","011010010011","011101001001","101101010101","010101101010","101001101011","010100101011","101010001011","110101000110","110110100011","010111001010","101011010110","010011011011","001001101011","100101001011","101010100101","101101010010","101101101001","010101110101","000101110110","100010110111","001001011011","010100101011","010101100101","010110110100","100111011010","010011101101","000101101101","100010110110","101010100110","110101010010","110110101001","010111010100","101011011010","100101011011","010010101011","011001010011","011100101001","011101100010","101110101001","010110110010","101010110101","010101010101","101100100101","110110010010","111011001001","011011010010","101011101001","010101101011","010010101011","101001010101","110100101001","110101010100","110110101010","100110110101","010010111010","101000111011","010010011011","101001001101","101010101010","101011010101","001011011010","100101011101","010001011110","101000101110","110010011010","110101010101","011010110010","011010111001","010010111010","101001011101","010100101101","101010010101","101101010010","101110101000","101110110100","010110111001","001011011010","100101011010","101101001010","110110100100","111011010001","011011101000","101101101010","010101101101","010100110101","011010010101","110101001010","110110101000","110111010100","011011011010","010101011011","001010011101","011000101011","101100010101","101101001010","101110010101","010110101010","101010101110","100100101110","110010001111","010100100111","011010010101","011010101010","101011010110","010101011101","001010011101"];function fv(t){let e=wv(function(t,e,n){let i=_v(t);return xv(i.gy,3,i.march)+31*(e-1)-yv(e,7)*(e-7)+n-1}(t.year,t.month,t.day));return e.setHours(6,30,3,200),e}function gv(t){return function(t){let e,n,i,s=wv(t).getFullYear(),r=s-621,a=_v(r),o=xv(s,3,a.march);if(i=t-o,i>=0){if(i<=185)return n=1+yv(i,31),e=vv(i,31)+1,new gb(r,n,e);i-=186}else r-=1,i+=179,1===a.leap&&(i+=1);return n=7+yv(i,30),e=vv(i,30)+1,new gb(r,n,e)}(xv(t.getFullYear(),t.getMonth()+1,t.getDate()))}function bv(t,e){return e=+e,t.year=t.year+Math.floor((e-1)/12),t.month=Math.floor(((e-1)%12+12)%12)+1,t}function vv(t,e){return t-e*Math.floor(t/e)}function yv(t,e){return Math.trunc(t/e)}function _v(t){let e=[-61,9,38,199,426,686,756,818,1111,1181,1210,1635,2060,2097,2192,2262,2324,2394,2456,3178];const n=e.length,i=t+621;let s,r=-14,a=e[0];if(t<a||t>=e[n-1])throw new Error("Invalid Jalali year "+t);for(let d=1;d<n;d+=1){const n=e[d];if(s=n-a,t<n)break;r=r+8*yv(s,33)+yv(vv(s,33),4),a=n}let o=t-a;r=r+8*yv(o,33)+yv(vv(o,33)+3,4),4===vv(s,33)&&s-o==4&&(r+=1);const l=20+r-(yv(i,4)-yv(3*(yv(i,100)+1),4)-150);s-o<6&&(o=o-s+33*yv(s+4,33));let c=vv(vv(o+1,33)-1,4);return-1===c&&(c=4),{leap:c,gy:i,march:l}}function wv(t){let e=4*t+139361631;e=e+4*yv(3*yv(4*t+183187720,146097),4)-3908;const n=5*yv(vv(e,1461),4)+308,i=yv(vv(n,153),5)+1,s=vv(yv(n,153),12)+1,r=yv(e,1461)-100100+yv(8-s,6);return new Date(r,s-1,i)}function xv(t,e,n){let i=yv(1461*(t+yv(e-8,6)+100100),4)+yv(153*vv(e+9,12)+2,5)+n-34840408;return i=i-yv(3*yv(t+100100+yv(e-8,6),100),4)+752,i}function Cv(t,e){return t<=6?31:t<=11||0===_v(e).leap?30:29}(class extends pv{fromGregorian(t){let e=1,n=0,i=1300,s=function(t,e){const n=Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),s=Math.abs(n-i);return Math.round(s/864e5)}(t,uv);if(!(t.getTime()-uv.getTime()>=0&&t.getTime()-hv.getTime()<=0))return super.fromGregorian(t);{let t=1300;for(let r=0;r<mv.length;r++,t++)for(let a=0;a<12;a++){let o=+mv[r][a]+29;if(s<=o)return e=s+1,e>o&&(e=1,a++),a>11&&(a=0,t++),n=a,i=t,new gb(i,n+1,e);s-=o}}}toGregorian(t){const e=t.year,n=t.month-1,i=t.day;let s=new Date(uv),r=i-1;if(e>=1300&&e<=1600){for(let t=0;t<e-1300;t++)for(let e=0;e<12;e++)r+=+mv[t][e]+29;for(let t=0;t<n;t++)r+=+mv[e-1300][t]+29;s.setDate(uv.getDate()+r)}else s=super.toGregorian(t);return s}getDaysPerMonth(t,e){if(e>=1300&&e<=1600){return+mv[e-1300][t-1]+29}return super.getDaysPerMonth(t,e)}}).decorators=[{type:s.Injectable}];(class extends _b{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){switch(t=new gb(t.year,t.month,t.day),e){case"y":return(t=function(t,e){return t.year=+e,t}(t,t.year+n)).month=1,t.day=1,t;case"m":return(t=bv(t,t.month+n)).day=1,t;case"d":return function(t,e){let n=Cv(t.month,t.year);if(e<=0)for(;e<=0;)n=Cv((t=bv(t,t.month-1)).month,t.year),e+=n;else if(e>n)for(;e>n;)e-=n,n=Cv((t=bv(t,t.month+1)).month,t.year);return t.day=e,t}(t,t.day+n);default:return t}}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){const e=fv(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=t[(11-e)%7],i=fv(n);i.setDate(i.getDate()+4-(i.getDay()||7));const s=i.getTime(),r=fv(new gb(n.year,1,1));return Math.floor(Math.round((s-r.getTime())/864e5)/7)+1}getToday(){return gv(new Date)}isValid(t){return t&&Mg(t.year)&&Mg(t.month)&&Mg(t.day)&&!isNaN(fv(t).getTime())}}).decorators=[{type:s.Injectable}];function Sv(t){return t%4==0&&t%100!=0||t%400==0}function kv(t){let e=Math.floor((235*t-234)/19),n=13753*e+12084,i=29*e+Math.floor(n/25920),s=n%25920,r=i%7;return 2!==r&&4!==r&&6!==r||(i++,r=i%7),1===r&&s>16404&&!Dv(t)?i+=2:0===r&&s>23269&&Dv(t-1)&&i++,i}function Ev(t,e){let n=[31,28,31,30,31,30,31,31,30,31,30,31];return Sv(e)&&n[1]++,n[t-1]}function Iv(t){return Dv(t)?13:12}function Av(t){return kv(t+1)-kv(t)}function Dv(t){let e=(12*t+17)%19;return e>=(e<0?-7:12)}function Tv(t,e){let n=kv(e+1)-kv(e),i=(n<=380?n:n-30)-353,s=Dv(e)?[30,29,29,29,30,30,29,30,29,30,29,30,29]:[30,29,29,29,30,29,30,29,30,29,30,29];return i>0&&s[2]++,i>1&&s[1]++,s[t-1]}function Ov(t){let e=0;for(let n=1;n<t.month;n++)e+=Tv(n,t.year);return e+t.day}function Pv(t){const e=new Date(t),n=e.getFullYear(),i=e.getMonth(),s=e.getDate();let r=1721424.5+365*(n-1)+Math.floor((n-1)/4)-Math.floor((n-1)/100)+Math.floor((n-1)/400)+Math.floor((367*(i+1)-362)/12+(i+1<=2?0:Sv(n)?-1:-2)+s);r=Math.floor(r+.5);let a=r-347997,o=Math.floor(25920*a/765433),l=Math.floor((19*o+234)/235)+1,c=kv(l),d=a-c;for(;d<1;)l--,c=kv(l),d=a-c;let p=1,u=d;for(;u>Tv(p,l);)u-=Tv(p,l),p++;return new gb(l,p,u)}function Nv(t){const e=t.year,n=t.month,i=t.day;let s=kv(e);for(let d=1;d<n;d++)s+=Tv(d,e);s+=i;let r=s-2092591,a=r>=0;a||(r=-r);let o=1970,l=1,c=1;for(;r>0;)a?r>=(Sv(o)?366:365)?(r-=Sv(o)?366:365,o++):r>=Ev(l,o)?(r-=Ev(l,o),l++):(c+=r,r=0):r>=(Sv(o-1)?366:365)?(r-=Sv(o-1)?366:365,o--):(l>1?l--:(l=12,o--),r>=Ev(l,o)?r-=Ev(l,o):(c=Ev(l,o)-r+1,r=0));return new Date(o,l-1,c)}function Mv(t){if(!t)return"";const e=["","\u05d0","\u05d1","\u05d2","\u05d3","\u05d4","\u05d5","\u05d6","\u05d7","\u05d8"],n=["\u05d9","\u05d9\u05d0","\u05d9\u05d1","\u05d9\u05d2","\u05d9\u05d3","\u05d8\u05d5","\u05d8\u05d6","\u05d9\u05d6","\u05d9\u05d7","\u05d9\u05d8"],i=["","","\u05db","\u05dc","\u05de","\u05e0","\u05e1","\u05e2","\u05e4","\u05e6"],s=["","\u05e7","\u05e8","\u05e9","\u05ea","\u05ea\u05e7","\u05ea\u05e8","\u05ea\u05e9","\u05ea\u05ea","\u05ea\u05ea\u05e7"],r=["","\u05d0","\u05d1","\u05d1\u05d0","\u05d1\u05d1","\u05d4","\u05d4\u05d0","\u05d4\u05d1","\u05d4\u05d1\u05d0","\u05d4\u05d1\u05d1"];let a=0,o=[],l=0;for(;t>0;){let c=t%10;if(0===l)a=c;else if(1===l)1!==c?o.unshift(i[c],e[a]):o.unshift(n[a]);else{if(2!==l){5!==c&&o.unshift(r[c],"\u05f3"," ");break}o.unshift(s[c])}t=Math.floor(t/10),0===l&&0===t&&o.unshift(e[c]),l++}return o=o.join("").split(""),1===o.length?o.push("\u05f3"):o.length>1&&o.splice(o.length-1,0,"\u05f4"),o.join("")}(class extends _b{getDaysPerWeek(){return 7}getMonths(t){return t&&Dv(t)?[1,2,3,4,5,6,7,8,9,10,11,12,13]:[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}isValid(t){let e=t&&Ng(t.year)&&Ng(t.month)&&Ng(t.day);return e=e&&t.month>0&&t.month<=(Dv(t.year)?13:12),e=e&&t.day>0&&t.day<=Tv(t.month,t.year),e&&!isNaN(Nv(t).getTime())}getNext(t,e="d",n=1){switch(t=new gb(t.year,t.month,t.day),e){case"y":return t.year+=n,t.month=1,t.day=1,t;case"m":return(t=function(t,e){let n=e>=0;for(n||(e=-e);e>0;)n?e>Iv(t.year)-t.month?(e-=Iv(t.year)-t.month+1,t.year++,t.month=1):(t.month+=e,e=0):e>=t.month?(t.year--,e-=t.month,t.month=Iv(t.year)):(t.month-=e,e=0);return t}(t,n)).day=1,t;case"d":return function(t,e){let n=e>=0;for(n||(e=-e);e>0;)n?e>Av(t.year)-Ov(t)?(e-=Av(t.year)-Ov(t)+1,t.year++,t.month=1,t.day=1):e>Tv(t.month,t.year)-t.day?(e-=Tv(t.month,t.year)-t.day+1,t.month++,t.day=1):(t.day+=e,e=0):e>=t.day?(e-=t.day,t.month--,0===t.month&&(t.year--,t.month=Iv(t.year)),t.day=Tv(t.month,t.year)):(t.day-=e,e=0);return t}(t,n);default:return t}}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){const e=Nv(t).getDay();return 0===e?7:e}getWeekNumber(t,e){const n=t[t.length-1];return Math.ceil(Ov(n)/7)}getToday(){return Pv(new Date)}toGregorian(t){return bb(Nv(t))}fromGregorian(t){return Pv(vb(t))}}).decorators=[{type:s.Injectable}];const Rv=["\u05e9\u05e0\u05d9","\u05e9\u05dc\u05d9\u05e9\u05d9","\u05e8\u05d1\u05d9\u05e2\u05d9","\u05d7\u05de\u05d9\u05e9\u05d9","\u05e9\u05d9\u05e9\u05d9","\u05e9\u05d1\u05ea","\u05e8\u05d0\u05e9\u05d5\u05df"],Lv=["\u05ea\u05e9\u05e8\u05d9","\u05d7\u05e9\u05d5\u05df","\u05db\u05e1\u05dc\u05d5","\u05d8\u05d1\u05ea","\u05e9\u05d1\u05d8","\u05d0\u05d3\u05e8","\u05e0\u05d9\u05e1\u05df","\u05d0\u05d9\u05d9\u05e8","\u05e1\u05d9\u05d5\u05df","\u05ea\u05de\u05d5\u05d6","\u05d0\u05d1","\u05d0\u05dc\u05d5\u05dc"],Fv=["\u05ea\u05e9\u05e8\u05d9","\u05d7\u05e9\u05d5\u05df","\u05db\u05e1\u05dc\u05d5","\u05d8\u05d1\u05ea","\u05e9\u05d1\u05d8","\u05d0\u05d3\u05e8 \u05d0\u05f3","\u05d0\u05d3\u05e8 \u05d1\u05f3","\u05e0\u05d9\u05e1\u05df","\u05d0\u05d9\u05d9\u05e8","\u05e1\u05d9\u05d5\u05df","\u05ea\u05de\u05d5\u05d6","\u05d0\u05d1","\u05d0\u05dc\u05d5\u05dc"];(class extends Ab{getMonthShortName(t,e){return this.getMonthFullName(t,e)}getMonthFullName(t,e){return Dv(e)?Fv[t-1]:Lv[t-1]}getWeekdayShortName(t){return Rv[t-1]}getDayAriaLabel(t){return`${Mv(t.day)} ${this.getMonthFullName(t.month,t.year)} ${Mv(t.year)}`}getDayNumerals(t){return Mv(t.day)}getWeekNumerals(t){return Mv(t)}getYearNumerals(t){return Mv(t)}}).decorators=[{type:s.Injectable}];class jv extends Mb{fromModel(t){return t instanceof Date&&!isNaN(t.getTime())?this._fromNativeDate(t):null}toModel(t){return t&&Mg(t.year)&&Mg(t.month)&&Mg(t.day)?this._toNativeDate(t):null}_fromNativeDate(t){return{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate()}}_toNativeDate(t){const e=new Date(t.year,t.month-1,t.day,12);return e.setFullYear(t.year),e}}jv.decorators=[{type:s.Injectable}];(class extends jv{_fromNativeDate(t){return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate()}}_toNativeDate(t){const e=new Date(Date.UTC(t.year,t.month-1,t.day));return e.setUTCFullYear(t.year),e}}).decorators=[{type:s.Injectable}];class Vv{}Vv.decorators=[{type:s.NgModule,args:[{declarations:[jb,Fb,Hb,zb,ov,av,rv],exports:[jb,Fb,rv,Hb],imports:[Cu.CommonModule,qf],entryComponents:[jb]}]}];class Bv{constructor(){this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}Bv.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Bv.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Bv},token:Bv,providedIn:"root"});class Hv{}Hv.decorators=[{type:s.Directive,args:[{selector:".navbar"}]}];class zv{constructor(t){this.elementRef=t,this._disabled=!1}set disabled(t){this._disabled=""===t||!0===t}get disabled(){return this._disabled}}zv.decorators=[{type:s.Directive,args:[{selector:"[ngbDropdownItem]",host:{class:"dropdown-item","[class.disabled]":"disabled"}}]}],zv.ctorParameters=()=>[{type:s.ElementRef}],zv.propDecorators={disabled:[{type:s.Input}]};class Uv{constructor(t){this.dropdown=t,this.placement="bottom",this.isOpen=!1}}Uv.decorators=[{type:s.Directive,args:[{selector:"[ngbDropdownMenu]",host:{"[class.dropdown-menu]":"true","[class.show]":"dropdown.isOpen()","[attr.x-placement]":"placement","(keydown.ArrowUp)":"dropdown.onKeyDown($event)","(keydown.ArrowDown)":"dropdown.onKeyDown($event)","(keydown.Home)":"dropdown.onKeyDown($event)","(keydown.End)":"dropdown.onKeyDown($event)","(keydown.Enter)":"dropdown.onKeyDown($event)","(keydown.Space)":"dropdown.onKeyDown($event)"}}]}],Uv.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Object(s.forwardRef)(()=>Wv)]}]}],Uv.propDecorators={menuItems:[{type:s.ContentChildren,args:[zv]}]};class qv{constructor(t,e){this.dropdown=t,this._elementRef=e,this.anchorEl=e.nativeElement}getNativeElement(){return this._elementRef.nativeElement}}qv.decorators=[{type:s.Directive,args:[{selector:"[ngbDropdownAnchor]",host:{class:"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()"}}]}],qv.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Object(s.forwardRef)(()=>Wv)]}]},{type:s.ElementRef}];class $v extends qv{constructor(t,e){super(t,e)}}$v.decorators=[{type:s.Directive,args:[{selector:"[ngbDropdownToggle]",host:{class:"dropdown-toggle","aria-haspopup":"true","[attr.aria-expanded]":"dropdown.isOpen()","(click)":"dropdown.toggle()","(keydown.ArrowUp)":"dropdown.onKeyDown($event)","(keydown.ArrowDown)":"dropdown.onKeyDown($event)","(keydown.Home)":"dropdown.onKeyDown($event)","(keydown.End)":"dropdown.onKeyDown($event)"},providers:[{provide:qv,useExisting:Object(s.forwardRef)(()=>$v)}]}]}],$v.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Object(s.forwardRef)(()=>Wv)]}]},{type:s.ElementRef}];class Wv{constructor(t,e,n,i,r,a,o){this._changeDetector=t,this._document=n,this._ngZone=i,this._elementRef=r,this._renderer=a,this._closed$=new Gf.a,this._open=!1,this.openChange=new s.EventEmitter,this.placement=e.placement,this.container=e.container,this.autoClose=e.autoClose,this.display=o?"static":"dynamic",this._zoneSubscription=i.onStable.subscribe(()=>{this._positionMenu()})}ngAfterContentInit(){this._ngZone.onStable.pipe(Object(Sg.a)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(t){t.container&&this._open&&this._applyContainer(this.container),t.placement&&!t.placement.isFirstChange&&this._applyPlacementClasses()}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers())}_setCloseHandlers(){const t=this._anchor;Wb(this._ngZone,this._document,this.autoClose,()=>this.close(),this._closed$,this._menu?[this._menuElement.nativeElement]:[],t?[t.getNativeElement()]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._closed$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this._resetContainer(),this._closed$.next(),this._zoneSubscription.unsubscribe()}onKeyDown(t){const e=t.which,n=this._getMenuElements();let i=-1,s=!1,r=null;const a=this._isEventFromToggle(t);if(!a&&n.length&&n.forEach((e,n)=>{e.contains(t.target)&&(s=!0,r=e),e===this._document.activeElement&&(i=n)}),e!==Vb.Space&&e!==Vb.Enter){if(a||s){if(this.open(),n.length){switch(e){case Vb.ArrowDown:i=Math.min(i+1,n.length-1);break;case Vb.ArrowUp:if(this._isDropup()&&-1===i){i=n.length-1;break}i=Math.max(i-1,0);break;case Vb.Home:i=0;break;case Vb.End:i=n.length-1}n[i].focus()}t.preventDefault()}}else!s||!0!==this.autoClose&&"inside"!==this.autoClose||Object(fg.a)(r,"click").pipe(Object(Sg.a)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(t){return this._anchor.getNativeElement().contains(t.target)}_getMenuElements(){const t=this._menu;return null==t?[]:t.menuItems.filter(t=>!t.disabled).map(t=>t.elementRef.nativeElement)}_positionMenu(){const t=this._menu;this.isOpen()&&t&&this._applyPlacementClasses("dynamic"===this.display?Qb(this._anchor.anchorEl,this._bodyContainer||this._menuElement.nativeElement,this.placement,"body"===this.container):this._getFirstPlacement(this.placement))}_getFirstPlacement(t){return Array.isArray(t)?t[0]:t.split(" ")[0]}_resetContainer(){const t=this._renderer,e=this._menuElement;if(e){const n=this._elementRef.nativeElement,i=e.nativeElement;t.appendChild(n,i),t.removeStyle(i,"position"),t.removeStyle(i,"transform")}this._bodyContainer&&(t.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(t=null){if(this._resetContainer(),"body"===t){const t=this._renderer,e=this._menuElement.nativeElement,n=this._bodyContainer=this._bodyContainer||t.createElement("div");t.setStyle(n,"position","absolute"),t.setStyle(e,"position","static"),t.setStyle(n,"z-index","1050"),t.appendChild(n,e),t.appendChild(this._document.body,n)}}_applyPlacementClasses(t){const e=this._menu;if(e){t||(t=this._getFirstPlacement(this.placement));const n=this._renderer,i=this._elementRef.nativeElement;n.removeClass(i,"dropup"),n.removeClass(i,"dropdown"),e.placement="static"===this.display?null:t;const s=-1!==t.search("^top")?"dropup":"dropdown";n.addClass(i,s);const r=this._bodyContainer;r&&(n.removeClass(r,"dropup"),n.removeClass(r,"dropdown"),n.addClass(r,s))}}}Wv.decorators=[{type:s.Directive,args:[{selector:"[ngbDropdown]",exportAs:"ngbDropdown",host:{"[class.show]":"isOpen()"}}]}],Wv.ctorParameters=()=>[{type:s.ChangeDetectorRef},{type:Bv},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.NgZone},{type:s.ElementRef},{type:s.Renderer2},{type:Hv,decorators:[{type:s.Optional}]}],Wv.propDecorators={_menu:[{type:s.ContentChild,args:[Uv,{static:!1}]}],_menuElement:[{type:s.ContentChild,args:[Uv,{read:s.ElementRef,static:!1}]}],_anchor:[{type:s.ContentChild,args:[qv,{static:!1}]}],autoClose:[{type:s.Input}],_open:[{type:s.Input,args:["open"]}],placement:[{type:s.Input}],container:[{type:s.Input}],display:[{type:s.Input}],openChange:[{type:s.Output}]};const Yv=[Wv,qv,$v,Uv,zv,Hv];class Gv{}Gv.decorators=[{type:s.NgModule,args:[{declarations:Yv,exports:Yv}]}];class Kv{constructor(){this.backdrop=!0,this.keyboard=!0}}Kv.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Kv.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Kv},token:Kv,providedIn:"root"});class Zv{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class Xv{constructor(t,e,n,i,s,r){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=i,this._componentFactoryResolver=s,this._applicationRef=r}open(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef}close(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null))}_getContentRef(t,e){if(t){if(t instanceof s.TemplateRef){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new Zv([n.rootNodes],n)}return new Zv([[this._renderer.createText(`${t}`)]])}return new Zv([])}}const Qv=()=>{};class Jv{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Qv}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,i=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=`${i+t}px`,()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}Jv.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Jv.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}],Jv.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Jv(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:Jv,providedIn:"root"});class ty{}ty.decorators=[{type:s.Component,args:[{selector:"ngb-modal-backdrop",encapsulation:s.ViewEncapsulation.None,template:"",host:{"[class]":'"modal-backdrop fade show" + (backdropClass ? " " + backdropClass : "")',style:"z-index: 1050"}}]}],ty.propDecorators={backdropClass:[{type:s.Input}]};class ey{close(t){}dismiss(t){}}class ny{constructor(t,e,n,i){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=i,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}_dismiss(t){this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){const t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}const iy={BACKDROP_CLICK:0,ESC:1};iy[iy.BACKDROP_CLICK]="BACKDROP_CLICK",iy[iy.ESC]="ESC";class sy{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new Gf.a,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new s.EventEmitter}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:t}=this._elRef;if(this._zone.runOutsideAngular(()=>{Object(fg.a)(t,"keydown").pipe(Object(xg.a)(this._closed$),Object(Cg.a)(t=>t.which===Vb.Escape&&this.keyboard)).subscribe(t=>requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(iy.ESC))}));let e=!1;Object(fg.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(xg.a)(this._closed$),Object(kg.a)(()=>e=!1),Object(wg.a)(()=>Object(fg.a)(t,"mouseup").pipe(Object(xg.a)(this._closed$),Object(Sg.a)(1))),Object(Cg.a)(({target:e})=>t===e)).subscribe(()=>{e=!0}),Object(fg.a)(t,"click").pipe(Object(xg.a)(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||t!==n||e||this._zone.run(()=>this.dismiss(iy.BACKDROP_CLICK)),e=!1})}),!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=Gb(t)[0];(e||n||t).focus()}}ngOnDestroy(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}}sy.decorators=[{type:s.Component,args:[{selector:"ngb-modal-window",host:{"[class]":'"modal fade show d-block" + (windowClass ? " " + windowClass : "")',role:"dialog",tabindex:"-1","[attr.aria-modal]":"true","[attr.aria-labelledby]":"ariaLabelledBy"},template:"\n    <div #dialog [class]=\"'modal-dialog' + (size ? ' modal-' + size : '') + (centered ? ' modal-dialog-centered' : '') +\n     (scrollable ? ' modal-dialog-scrollable' : '')\" role=\"document\">\n        <div class=\"modal-content\"><ng-content></ng-content></div>\n    </div>\n    ",encapsulation:s.ViewEncapsulation.None,styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"]}]}],sy.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.ElementRef},{type:s.NgZone}],sy.propDecorators={_dialogEl:[{type:s.ViewChild,args:["dialog",{static:!0}]}],ariaLabelledBy:[{type:s.Input}],backdrop:[{type:s.Input}],centered:[{type:s.Input}],keyboard:[{type:s.Input}],scrollable:[{type:s.Input}],size:[{type:s.Input}],windowClass:[{type:s.Input}],dismissEvent:[{type:s.Output,args:["dismiss"]}]};class ry{constructor(t,e,n,i,s,r){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=i,this._rendererFactory=s,this._ngZone=r,this._activeWindowCmptHasChanged=new Gf.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];Kb(this._ngZone,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,i){const s=i.container instanceof HTMLElement?i.container:Rg(i.container)?this._document.querySelector(i.container):this._document.body,r=this._rendererFactory.createRenderer(null,null),a=this._scrollBar.compensate(),o=()=>{this._modalRefs.length||(r.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${i.container||"body"}" was not found in the DOM.`);const l=new ey,c=this._getContentRef(t,i.injector||e,n,l,i);let d=!1!==i.backdrop?this._attachBackdrop(t,s):null,p=this._attachWindowComponent(t,s,c),u=new ny(p,c,d,i.beforeDismiss);return this._registerModalRef(u),this._registerWindowCmpt(p),u.result.then(a,a),u.result.then(o,o),l.close=t=>{u.close(t)},l.dismiss=t=>{u.dismiss(t)},this._applyWindowOptions(p.instance,i),1===this._modalRefs.length&&r.addClass(this._document.body,"modal-open"),d&&d.instance&&this._applyBackdropOptions(d.instance,i),u}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(ty).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let i=t.resolveComponentFactory(sy).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{Rg(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{Rg(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,i,r){return n?n instanceof s.TemplateRef?this._createFromTemplateRef(n,i):Pg(n)?this._createFromString(n):this._createFromComponent(t,e,n,i,r):new Zv([])}_createFromTemplateRef(t,e){const n={$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}},i=t.createEmbeddedView(n);return this._applicationRef.attachView(i),new Zv([i.rootNodes],i)}_createFromString(t){const e=this._document.createTextNode(`${t}`);return new Zv([[e]])}_createFromComponent(t,e,n,i,r){const a=t.resolveComponentFactory(n),o=s.Injector.create({providers:[{provide:ey,useValue:i}],parent:e}),l=a.create(o),c=l.location.nativeElement;return r.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Zv([[c]],l.hostView,l)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&this._modalRefs.splice(e,1)};this._modalRefs.push(t),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}ry.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ry.ctorParameters=()=>[{type:s.ApplicationRef},{type:s.Injector},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Jv},{type:s.RendererFactory2},{type:s.NgZone}],ry.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new ry(Object(s["\u0275\u0275inject"])(s.ApplicationRef),Object(s["\u0275\u0275inject"])(s.INJECTOR),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Jv),Object(s["\u0275\u0275inject"])(s.RendererFactory2),Object(s["\u0275\u0275inject"])(s.NgZone))},token:ry,providedIn:"root"});class ay{constructor(t,e,n,i){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=i}open(t,e={}){const n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}ay.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ay.ctorParameters=()=>[{type:s.ComponentFactoryResolver},{type:s.Injector},{type:ry},{type:Kv}],ay.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new ay(Object(s["\u0275\u0275inject"])(s.ComponentFactoryResolver),Object(s["\u0275\u0275inject"])(s.INJECTOR),Object(s["\u0275\u0275inject"])(ry),Object(s["\u0275\u0275inject"])(Kv))},token:ay,providedIn:"root"});class oy{}oy.decorators=[{type:s.NgModule,args:[{declarations:[ty,sy],entryComponents:[ty,sy],providers:[ay]}]}];class ly{constructor(){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist"}}ly.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ly.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new ly},token:ly,providedIn:"root"});const cy=t=>Rg(t)&&""!==t;let dy=0;class py{constructor(t){this.templateRef=t}}py.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbNavContent]"}]}],py.ctorParameters=()=>[{type:s.TemplateRef}];class uy{constructor(t,e){this.elementRef=e,this.disabled=!1,this._nav=t}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){Rg(this.domId)||(this.domId="ngb-nav-"+dy++)}get active(){return this._nav.activeId===this.id}get id(){return cy(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(Rg(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}uy.decorators=[{type:s.Directive,args:[{selector:"[ngbNavItem]",exportAs:"ngbNavItem",host:{"[class.nav-item]":"true"}}]}],uy.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Object(s.forwardRef)(()=>hy)]}]},{type:s.ElementRef}],uy.propDecorators={destroyOnHide:[{type:s.Input}],disabled:[{type:s.Input}],domId:[{type:s.Input}],_id:[{type:s.Input,args:["ngbNavItem"]}],contentTpls:[{type:s.ContentChildren,args:[py,{descendants:!1}]}]};class hy{constructor(t,e,n){this.role=t,this._cd=n,this.activeIdChange=new s.EventEmitter,this.navChange=new s.EventEmitter,this.destroyOnHide=e.destroyOnHide,this.orientation=e.orientation,this.roles=e.roles}click(t){t.disabled||this._updateActiveId(t.id)}select(t){this._updateActiveId(t,!1)}ngAfterContentInit(){if(!Rg(this.activeId)){const t=this.items.first?this.items.first.id:null;cy(t)&&(this._updateActiveId(t,!1),this._cd.detectChanges())}}_updateActiveId(t,e=!0){if(this.activeId!==t){let n=!1;e&&this.navChange.emit({activeId:this.activeId,nextId:t,preventDefault:()=>{n=!0}}),n||(this.activeId=t,this.activeIdChange.emit(t))}}}hy.decorators=[{type:s.Directive,args:[{selector:"[ngbNav]",exportAs:"ngbNav",host:{"[class.nav]":"true","[class.flex-column]":"orientation === 'vertical'","[attr.aria-orientation]":"orientation === 'vertical' && roles === 'tablist' ? 'vertical' : undefined","[attr.role]":"role ? role : roles ? 'tablist' : undefined"}}]}],hy.ctorParameters=()=>[{type:String,decorators:[{type:s.Attribute,args:["role"]}]},{type:ly},{type:s.ChangeDetectorRef}],hy.propDecorators={activeId:[{type:s.Input}],activeIdChange:[{type:s.Output}],destroyOnHide:[{type:s.Input}],orientation:[{type:s.Input}],roles:[{type:s.Input}],items:[{type:s.ContentChildren,args:[uy]}],navChange:[{type:s.Output}]};class my{constructor(t,e,n){this.role=t,this.navItem=e,this.nav=n}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}my.decorators=[{type:s.Directive,args:[{selector:"a[ngbNavLink]",host:{"[id]":"navItem.domId","[class.nav-link]":"true","[class.nav-item]":"hasNavItemClass()","[attr.role]":"role ? role : nav.roles ? 'tab' : undefined",href:"","[class.active]":"navItem.active","[class.disabled]":"navItem.disabled","[attr.tabindex]":"navItem.disabled ? -1 : undefined","[attr.aria-controls]":"navItem.isPanelInDom() ? navItem.panelDomId : null","[attr.aria-selected]":"navItem.active","[attr.aria-disabled]":"navItem.disabled","(click)":"nav.click(navItem); $event.preventDefault()"}}]}],my.ctorParameters=()=>[{type:String,decorators:[{type:s.Attribute,args:["role"]}]},{type:uy},{type:hy}];class fy{}fy.decorators=[{type:s.Component,args:[{selector:"[ngbNavOutlet]",host:{"[class.tab-content]":"true"},encapsulation:s.ViewEncapsulation.None,template:'\n      <ng-template ngFor let-item [ngForOf]="nav.items">\n          <div class="tab-pane"\n               *ngIf="item.isPanelInDom()"\n               [id]="item.panelDomId"\n               [class.active]="item.active"\n               [attr.role]="paneRole ? paneRole : nav.roles ? \'tabpanel\' : undefined"\n               [attr.aria-labelledby]="item.domId">\n              <ng-template [ngTemplateOutlet]="item.contentTpl?.templateRef" [ngTemplateOutletContext]="{$implicit: item.active}"></ng-template>\n          </div>\n      </ng-template>\n  '}]}],fy.propDecorators={paneRole:[{type:s.Input}],nav:[{type:s.Input,args:["ngbNavOutlet"]}]};const gy=[py,hy,uy,my,fy];class by{}by.decorators=[{type:s.NgModule,args:[{declarations:gy,exports:gy,imports:[Cu.CommonModule]}]}];class vy{constructor(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}}vy.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],vy.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new vy},token:vy,providedIn:"root"});class yy{constructor(t){this.templateRef=t}}yy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPaginationEllipsis]"}]}],yy.ctorParameters=()=>[{type:s.TemplateRef}];class _y{constructor(t){this.templateRef=t}}_y.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPaginationFirst]"}]}],_y.ctorParameters=()=>[{type:s.TemplateRef}];class wy{constructor(t){this.templateRef=t}}wy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPaginationLast]"}]}],wy.ctorParameters=()=>[{type:s.TemplateRef}];class xy{constructor(t){this.templateRef=t}}xy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPaginationNext]"}]}],xy.ctorParameters=()=>[{type:s.TemplateRef}];class Cy{constructor(t){this.templateRef=t}}Cy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPaginationNumber]"}]}],Cy.ctorParameters=()=>[{type:s.TemplateRef}];class Sy{constructor(t){this.templateRef=t}}Sy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbPaginationPrevious]"}]}],Sy.ctorParameters=()=>[{type:s.TemplateRef}];class ky{constructor(t){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new s.EventEmitter(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}hasPrevious(){return this.page>1}hasNext(){return this.page<this.pageCount}nextDisabled(){return!this.hasNext()||this.disabled}previousDisabled(){return!this.hasPrevious()||this.disabled}selectPage(t){this._updatePages(t)}ngOnChanges(t){this._updatePages(this.page)}isEllipsis(t){return-1===t}_applyEllipses(t,e){this.ellipses&&(t>0&&(t>2?this.pages.unshift(-1):2===t&&this.pages.unshift(2),this.pages.unshift(1)),e<this.pageCount&&(e<this.pageCount-2?this.pages.push(-1):e===this.pageCount-2&&this.pages.push(this.pageCount-1),this.pages.push(this.pageCount)))}_applyRotation(){let t=0,e=this.pageCount,n=Math.floor(this.maxSize/2),i=this.maxSize%2==0?n-1:n;return this.page<=n?e=this.maxSize:this.pageCount-this.page<n?t=this.pageCount-this.maxSize:(t=this.page-n-1,e=this.page+i),[t,e]}_applyPagination(){let t=(Math.ceil(this.page/this.maxSize)-1)*this.maxSize;return[t,t+this.maxSize]}_setPageInRange(t){const e=this.page;this.page=Og(t,this.pageCount,1),this.page!==e&&Ng(this.collectionSize)&&this.pageChange.emit(this.page)}_updatePages(t){this.pageCount=Math.ceil(this.collectionSize/this.pageSize),Ng(this.pageCount)||(this.pageCount=0),this.pages.length=0;for(let e=1;e<=this.pageCount;e++)this.pages.push(e);if(this._setPageInRange(t),this.maxSize>0&&this.pageCount>this.maxSize){let t=0,e=this.pageCount;this.rotate?[t,e]=this._applyRotation():[t,e]=this._applyPagination(),this.pages=this.pages.slice(t,e),this._applyEllipses(t,e)}}}ky.decorators=[{type:s.Component,args:[{selector:"ngb-pagination",changeDetection:s.ChangeDetectionStrategy.OnPush,host:{role:"navigation"},template:'\n    <ng-template #first><span aria-hidden="true" i18n="@@ngb.pagination.first">&laquo;&laquo;</span></ng-template>\n    <ng-template #previous><span aria-hidden="true" i18n="@@ngb.pagination.previous">&laquo;</span></ng-template>\n    <ng-template #next><span aria-hidden="true" i18n="@@ngb.pagination.next">&raquo;</span></ng-template>\n    <ng-template #last><span aria-hidden="true" i18n="@@ngb.pagination.last">&raquo;&raquo;</span></ng-template>\n    <ng-template #ellipsis>...</ng-template>\n    <ng-template #defaultNumber let-page let-currentPage="currentPage">\n      {{ page }}\n      <span *ngIf="page === currentPage" class="sr-only">(current)</span>\n    </ng-template>\n    <ul [class]="\'pagination\' + (size ? \' pagination-\' + size : \'\')">\n      <li *ngIf="boundaryLinks" class="page-item"\n        [class.disabled]="previousDisabled()">\n        <a aria-label="First" i18n-aria-label="@@ngb.pagination.first-aria" class="page-link" href\n          (click)="selectPage(1); $event.preventDefault()" [attr.tabindex]="previousDisabled() ? \'-1\' : null"\n          [attr.aria-disabled]="previousDisabled() ? \'true\' : null">\n          <ng-template [ngTemplateOutlet]="tplFirst?.templateRef || first"\n                       [ngTemplateOutletContext]="{disabled: previousDisabled(), currentPage: page}"></ng-template>\n        </a>\n      </li>\n\n      <li *ngIf="directionLinks" class="page-item"\n        [class.disabled]="previousDisabled()">\n        <a aria-label="Previous" i18n-aria-label="@@ngb.pagination.previous-aria" class="page-link" href\n          (click)="selectPage(page-1); $event.preventDefault()" [attr.tabindex]="previousDisabled() ? \'-1\' : null"\n          [attr.aria-disabled]="previousDisabled() ? \'true\' : null">\n          <ng-template [ngTemplateOutlet]="tplPrevious?.templateRef || previous"\n                       [ngTemplateOutletContext]="{disabled: previousDisabled()}"></ng-template>\n        </a>\n      </li>\n      <li *ngFor="let pageNumber of pages" class="page-item" [class.active]="pageNumber === page"\n        [class.disabled]="isEllipsis(pageNumber) || disabled" [attr.aria-current]="(pageNumber === page ? \'page\' : null)">\n        <a *ngIf="isEllipsis(pageNumber)" class="page-link" tabindex="-1" aria-disabled="true">\n          <ng-template [ngTemplateOutlet]="tplEllipsis?.templateRef || ellipsis"\n                       [ngTemplateOutletContext]="{disabled: true, currentPage: page}"></ng-template>\n        </a>\n        <a *ngIf="!isEllipsis(pageNumber)" class="page-link" href (click)="selectPage(pageNumber); $event.preventDefault()" [attr.tabindex]="disabled ? \'-1\' : null"\n          [attr.aria-disabled]="disabled ? \'true\' : null">\n          <ng-template [ngTemplateOutlet]="tplNumber?.templateRef || defaultNumber"\n                       [ngTemplateOutletContext]="{disabled: disabled, $implicit: pageNumber, currentPage: page}"></ng-template>\n        </a>\n      </li>\n      <li *ngIf="directionLinks" class="page-item" [class.disabled]="nextDisabled()">\n        <a aria-label="Next" i18n-aria-label="@@ngb.pagination.next-aria" class="page-link" href\n          (click)="selectPage(page+1); $event.preventDefault()" [attr.tabindex]="nextDisabled() ? \'-1\' : null"\n          [attr.aria-disabled]="nextDisabled() ? \'true\' : null">\n          <ng-template [ngTemplateOutlet]="tplNext?.templateRef || next"\n                       [ngTemplateOutletContext]="{disabled: nextDisabled(), currentPage: page}"></ng-template>\n        </a>\n      </li>\n\n      <li *ngIf="boundaryLinks" class="page-item" [class.disabled]="nextDisabled()">\n        <a aria-label="Last" i18n-aria-label="@@ngb.pagination.last-aria" class="page-link" href\n          (click)="selectPage(pageCount); $event.preventDefault()" [attr.tabindex]="nextDisabled() ? \'-1\' : null"\n          [attr.aria-disabled]="nextDisabled() ? \'true\' : null">\n          <ng-template [ngTemplateOutlet]="tplLast?.templateRef || last"\n                       [ngTemplateOutletContext]="{disabled: nextDisabled(), currentPage: page}"></ng-template>\n        </a>\n      </li>\n    </ul>\n  '}]}],ky.ctorParameters=()=>[{type:vy}],ky.propDecorators={tplEllipsis:[{type:s.ContentChild,args:[yy,{static:!1}]}],tplFirst:[{type:s.ContentChild,args:[_y,{static:!1}]}],tplLast:[{type:s.ContentChild,args:[wy,{static:!1}]}],tplNext:[{type:s.ContentChild,args:[xy,{static:!1}]}],tplNumber:[{type:s.ContentChild,args:[Cy,{static:!1}]}],tplPrevious:[{type:s.ContentChild,args:[Sy,{static:!1}]}],disabled:[{type:s.Input}],boundaryLinks:[{type:s.Input}],directionLinks:[{type:s.Input}],ellipses:[{type:s.Input}],rotate:[{type:s.Input}],collectionSize:[{type:s.Input}],maxSize:[{type:s.Input}],page:[{type:s.Input}],pageSize:[{type:s.Input}],pageChange:[{type:s.Output}],size:[{type:s.Input}]};const Ey=[ky,yy,_y,wy,xy,Cy,Sy];class Iy{}Iy.decorators=[{type:s.NgModule,args:[{declarations:Ey,exports:Ey,imports:[Cu.CommonModule]}]}];class Ay{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const Dy={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};const Ty=t=>t>0?Object(Ig.a)(t):t=>t;function Oy(t,e,n,i,s,r,a=0,o=0){const l=function(t,e=Dy){const n=(t||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new Ay(n[0],n[1])}),s=i.filter(t=>t.isManual());if(s.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===s.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,e,n,i){return new vg.a(s=>{const r=[],a=()=>s.next(!0),o=()=>s.next(!1),l=()=>s.next(!i());return n.forEach(n=>{n.open===n.close?r.push(t.listen(e,n.open,l)):r.push(t.listen(e,n.open,a),t.listen(e,n.close,o))}),()=>{r.forEach(t=>t())}})}(t,e,l,i).pipe(function(t,e,n){return i=>{let s=null;const r=i.pipe(Object($h.a)(t=>({open:t})),Object(Cg.a)(t=>{const e=n();return e===t.open||s&&s.open!==e?(s&&s.open!==t.open&&(s=null),!1):(s=t,!0)}),Object(Ag.a)()),a=r.pipe(Object(Cg.a)(t=>t.open),Ty(t)),o=r.pipe(Object(Cg.a)(t=>!t.open),Ty(e));return Object(gg.a)(a,o).pipe(Object(Cg.a)(t=>t===s&&(s=null,t.open!==n())),Object($h.a)(t=>t.open))}}(a,o,i)).subscribe(t=>t?s():r());return()=>c.unsubscribe()}class Py{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="click",this.disablePopover=!1,this.openDelay=0,this.closeDelay=0}}Py.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Py.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Py},token:Py,providedIn:"root"});let Ny=0;class My{isTitleTemplate(){return this.title instanceof s.TemplateRef}}My.decorators=[{type:s.Component,args:[{selector:"ngb-popover-window",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,host:{"[class]":'"popover" + (popoverClass ? " " + popoverClass : "")',role:"tooltip","[id]":"id"},template:'\n    <div class="arrow"></div>\n    <h3 class="popover-header" *ngIf="title != null">\n      <ng-template #simpleTitle>{{title}}</ng-template>\n      <ng-template [ngTemplateOutlet]="isTitleTemplate() ? title : simpleTitle" [ngTemplateOutletContext]="context"></ng-template>\n    </h3>\n    <div class="popover-body"><ng-content></ng-content></div>',styles:["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{top:auto;bottom:.7em}"]}]}],My.propDecorators={title:[{type:s.Input}],id:[{type:s.Input}],popoverClass:[{type:s.Input}],context:[{type:s.Input}]};class Ry{constructor(t,e,n,i,r,a,o,l,c,d){this._elementRef=t,this._renderer=e,this._ngZone=o,this._document=l,this._changeDetector=c,this.shown=new s.EventEmitter,this.hidden=new s.EventEmitter,this._ngbPopoverWindowId="ngb-popover-"+Ny++,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disablePopover=a.disablePopover,this.popoverClass=a.popoverClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new Xv(My,n,r,e,i,d),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&Qb(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-popover")})}_isDisabled(){return!!this.disablePopover||!this.ngbPopover&&!this.popoverTitle}open(t){this._windowRef||this._isDisabled()||(this._windowRef=this._popupService.open(this.ngbPopover,t),this._windowRef.instance.title=this.popoverTitle,this._windowRef.instance.context=t,this._windowRef.instance.popoverClass=this.popoverClass,this._windowRef.instance.id=this._ngbPopoverWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbPopoverWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Wb(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())}close(){this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=Oy(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({ngbPopover:t,popoverTitle:e,disablePopover:n,popoverClass:i}){i&&this.isOpen()&&(this._windowRef.instance.popoverClass=i.currentValue),(t||e||n)&&this._isDisabled()&&this.close()}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}Ry.decorators=[{type:s.Directive,args:[{selector:"[ngbPopover]",exportAs:"ngbPopover"}]}],Ry.ctorParameters=()=>[{type:s.ElementRef},{type:s.Renderer2},{type:s.Injector},{type:s.ComponentFactoryResolver},{type:s.ViewContainerRef},{type:Py},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.ChangeDetectorRef},{type:s.ApplicationRef}],Ry.propDecorators={autoClose:[{type:s.Input}],ngbPopover:[{type:s.Input}],popoverTitle:[{type:s.Input}],placement:[{type:s.Input}],triggers:[{type:s.Input}],container:[{type:s.Input}],disablePopover:[{type:s.Input}],popoverClass:[{type:s.Input}],openDelay:[{type:s.Input}],closeDelay:[{type:s.Input}],shown:[{type:s.Output}],hidden:[{type:s.Output}]};class Ly{}Ly.decorators=[{type:s.NgModule,args:[{declarations:[Ry,My],exports:[Ry],imports:[Cu.CommonModule],entryComponents:[My]}]}];class Fy{constructor(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}}Fy.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Fy.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Fy},token:Fy,providedIn:"root"});class jy{constructor(t){this.value=0,this.max=t.max,this.animated=t.animated,this.striped=t.striped,this.textType=t.textType,this.type=t.type,this.showValue=t.showValue,this.height=t.height}set max(t){this._max=!Ng(t)||t<=0?100:t}get max(){return this._max}getValue(){return Og(this.value,this.max)}getPercentValue(){return 100*this.getValue()/this.max}}jy.decorators=[{type:s.Component,args:[{selector:"ngb-progressbar",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,template:'\n    <div class="progress" [style.height]="height">\n      <div class="progress-bar{{type ? \' bg-\' + type : \'\'}}{{textType ? \' text-\' + textType : \'\'}}\n      {{animated ? \' progress-bar-animated\' : \'\'}}{{striped ? \' progress-bar-striped\' : \'\'}}" role="progressbar" [style.width.%]="getPercentValue()"\n      [attr.aria-valuenow]="getValue()" aria-valuemin="0" [attr.aria-valuemax]="max">\n        <span *ngIf="showValue" i18n="@@ngb.progressbar.value">{{getPercentValue()}}%</span><ng-content></ng-content>\n      </div>\n    </div>\n  '}]}],jy.ctorParameters=()=>[{type:Fy}],jy.propDecorators={max:[{type:s.Input}],animated:[{type:s.Input}],striped:[{type:s.Input}],showValue:[{type:s.Input}],textType:[{type:s.Input}],type:[{type:s.Input}],value:[{type:s.Input}],height:[{type:s.Input}]};class Vy{}Vy.decorators=[{type:s.NgModule,args:[{declarations:[jy],exports:[jy],imports:[Cu.CommonModule]}]}];class By{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}}By.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],By.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new By},token:By,providedIn:"root"});const Hy={provide:Wh,useExisting:Object(s.forwardRef)(()=>zy),multi:!0};class zy{constructor(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new s.EventEmitter,this.leave=new s.EventEmitter,this.rateChange=new s.EventEmitter(!0),this.onChange=t=>{},this.onTouched=()=>{},this.max=t.max,this.readonly=t.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}enter(t){this.readonly||this.disabled||this._updateState(t),this.hover.emit(t)}handleBlur(){this.onTouched()}handleClick(t){this.readonly||this.disabled||this.update(this.resettable&&this.rate===t?0:t)}handleKeyDown(t){switch(t.which){case Vb.ArrowDown:case Vb.ArrowLeft:this.update(this.rate-1);break;case Vb.ArrowUp:case Vb.ArrowRight:this.update(this.rate+1);break;case Vb.Home:this.update(0);break;case Vb.End:this.update(this.max);break;default:return}t.preventDefault()}ngOnChanges(t){t.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(t,e)=>({fill:0,index:e})),this._updateState(this.rate)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(t){this.disabled=t}update(t,e=!0){const n=Og(t,this.max,0);this.readonly||this.disabled||this.rate===n||(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(t){this.update(t,!1),this._changeDetectorRef.markForCheck()}_getFillValue(t){const e=this.nextRate-t;return e>=1?100:e<1&&e>0?parseInt((100*e).toFixed(2),10):0}_updateState(t){this.nextRate=t,this.contexts.forEach((t,e)=>t.fill=this._getFillValue(e))}}zy.decorators=[{type:s.Component,args:[{selector:"ngb-rating",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,host:{class:"d-inline-flex","[tabindex]":"disabled ? -1 : 0",role:"slider","aria-valuemin":"0","[attr.aria-valuemax]":"max","[attr.aria-valuenow]":"nextRate","[attr.aria-valuetext]":"ariaValueText()","[attr.aria-disabled]":"readonly ? true : null","(blur)":"handleBlur()","(keydown)":"handleKeyDown($event)","(mouseleave)":"reset()"},template:'\n    <ng-template #t let-fill="fill">{{ fill === 100 ? \'&#9733;\' : \'&#9734;\' }}</ng-template>\n    <ng-template ngFor [ngForOf]="contexts" let-index="index">\n      <span class="sr-only">({{ index < nextRate ? \'*\' : \' \' }})</span>\n      <span (mouseenter)="enter(index + 1)" (click)="handleClick(index + 1)" [style.cursor]="readonly || disabled ? \'default\' : \'pointer\'">\n        <ng-template [ngTemplateOutlet]="starTemplate || starTemplateFromContent || t" [ngTemplateOutletContext]="contexts[index]">\n        </ng-template>\n      </span>\n    </ng-template>\n  ',providers:[Hy]}]}],zy.ctorParameters=()=>[{type:By},{type:s.ChangeDetectorRef}],zy.propDecorators={max:[{type:s.Input}],rate:[{type:s.Input}],readonly:[{type:s.Input}],resettable:[{type:s.Input}],starTemplate:[{type:s.Input}],starTemplateFromContent:[{type:s.ContentChild,args:[s.TemplateRef,{static:!1}]}],hover:[{type:s.Output}],leave:[{type:s.Output}],rateChange:[{type:s.Output}]};class Uy{}Uy.decorators=[{type:s.NgModule,args:[{declarations:[zy],exports:[zy],imports:[Cu.CommonModule]}]}];class qy{constructor(){this.justify="start",this.orientation="horizontal",this.type="tabs"}}qy.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],qy.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new qy},token:qy,providedIn:"root"});let $y=0;class Wy{constructor(t){this.templateRef=t}}Wy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbTabTitle]"}]}],Wy.ctorParameters=()=>[{type:s.TemplateRef}];class Yy{constructor(t){this.templateRef=t}}Yy.decorators=[{type:s.Directive,args:[{selector:"ng-template[ngbTabContent]"}]}],Yy.ctorParameters=()=>[{type:s.TemplateRef}];class Gy{constructor(){this.id="ngb-tab-"+$y++,this.disabled=!1}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.contentTpl=this.contentTpls.first}}Gy.decorators=[{type:s.Directive,args:[{selector:"ngb-tab"}]}],Gy.propDecorators={id:[{type:s.Input}],title:[{type:s.Input}],disabled:[{type:s.Input}],titleTpls:[{type:s.ContentChildren,args:[Wy,{descendants:!1}]}],contentTpls:[{type:s.ContentChildren,args:[Yy,{descendants:!1}]}]};class Ky{constructor(t){this.destroyOnHide=!0,this.tabChange=new s.EventEmitter,this.type=t.type,this.justify=t.justify,this.orientation=t.orientation}set justify(t){this.justifyClass="fill"===t||"justified"===t?`nav-${t}`:`justify-content-${t}`}select(t){let e=this._getTabById(t);if(e&&!e.disabled&&this.activeId!==e.id){let t=!1;this.tabChange.emit({activeId:this.activeId,nextId:e.id,preventDefault:()=>{t=!0}}),t||(this.activeId=e.id)}}ngAfterContentChecked(){let t=this._getTabById(this.activeId);this.activeId=t?t.id:this.tabs.length?this.tabs.first.id:null}_getTabById(t){let e=this.tabs.filter(e=>e.id===t);return e.length?e[0]:null}}Ky.decorators=[{type:s.Component,args:[{selector:"ngb-tabset",exportAs:"ngbTabset",encapsulation:s.ViewEncapsulation.None,template:'\n    <ul [class]="\'nav nav-\' + type + (orientation == \'horizontal\'?  \' \' + justifyClass : \' flex-column\')" role="tablist">\n      <li class="nav-item" *ngFor="let tab of tabs">\n        <a [id]="tab.id" class="nav-link" [class.active]="tab.id === activeId" [class.disabled]="tab.disabled"\n          href (click)="select(tab.id); $event.preventDefault()" role="tab" [attr.tabindex]="(tab.disabled ? \'-1\': undefined)"\n          [attr.aria-controls]="(!destroyOnHide || tab.id === activeId ? tab.id + \'-panel\' : null)"\n          [attr.aria-selected]="tab.id === activeId" [attr.aria-disabled]="tab.disabled">\n          {{tab.title}}<ng-template [ngTemplateOutlet]="tab.titleTpl?.templateRef"></ng-template>\n        </a>\n      </li>\n    </ul>\n    <div class="tab-content">\n      <ng-template ngFor let-tab [ngForOf]="tabs">\n        <div\n          class="tab-pane {{tab.id === activeId ? \'active\' : null}}"\n          *ngIf="!destroyOnHide || tab.id === activeId"\n          role="tabpanel"\n          [attr.aria-labelledby]="tab.id" id="{{tab.id}}-panel">\n          <ng-template [ngTemplateOutlet]="tab.contentTpl?.templateRef"></ng-template>\n        </div>\n      </ng-template>\n    </div>\n  '}]}],Ky.ctorParameters=()=>[{type:qy}],Ky.propDecorators={tabs:[{type:s.ContentChildren,args:[Gy]}],activeId:[{type:s.Input}],destroyOnHide:[{type:s.Input}],justify:[{type:s.Input}],orientation:[{type:s.Input}],type:[{type:s.Input}],tabChange:[{type:s.Output}]};const Zy=[Ky,Gy,Yy,Wy];class Xy{}Xy.decorators=[{type:s.NgModule,args:[{declarations:Zy,exports:Zy,imports:[Cu.CommonModule,by]}]}];class Qy{constructor(t,e,n){this.hour=Dg(t),this.minute=Dg(e),this.second=Dg(n)}changeHour(t=1){this.updateHour((isNaN(this.hour)?0:this.hour)+t)}updateHour(t){Ng(t)?this.hour=(t<0?24+t:t)%24:this.hour=NaN}changeMinute(t=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+t)}updateMinute(t){Ng(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN}changeSecond(t=1){this.updateSecond((isNaN(this.second)?0:this.second)+t)}updateSecond(t){Ng(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN}isValid(t=!0){return Ng(this.hour)&&Ng(this.minute)&&(!t||Ng(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}class Jy{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}function t_(){return new n_}Jy.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Jy.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Jy},token:Jy,providedIn:"root"});class e_{}e_.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:t_}]}],e_.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:t_,token:e_,providedIn:"root"});class n_ extends e_{fromModel(t){return t&&Mg(t.hour)&&Mg(t.minute)?{hour:t.hour,minute:t.minute,second:Mg(t.second)?t.second:null}:null}toModel(t){return t&&Mg(t.hour)&&Mg(t.minute)?{hour:t.hour,minute:t.minute,second:Mg(t.second)?t.second:null}:null}}function i_(t){return new r_(t)}n_.decorators=[{type:s.Injectable}];class s_{}s_.decorators=[{type:s.Injectable,args:[{providedIn:"root",useFactory:i_,deps:[s.LOCALE_ID]}]}],s_.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return i_(Object(s["\u0275\u0275inject"])(s.LOCALE_ID))},token:s_,providedIn:"root"});class r_ extends s_{constructor(t){super(),this._periods=Object(Cu.getLocaleDayPeriods)(t,Cu.FormStyle.Standalone,Cu.TranslationWidth.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}r_.decorators=[{type:s.Injectable}],r_.ctorParameters=()=>[{type:String,decorators:[{type:s.Inject,args:[s.LOCALE_ID]}]}];const a_=/[^0-9]/g,o_={provide:Wh,useExisting:Object(s.forwardRef)(()=>l_),multi:!0};class l_{constructor(t,e,n,i){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.i18n=i,this.onChange=t=>{},this.onTouched=()=>{},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}set hourStep(t){this._hourStep=Mg(t)?t:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(t){this._minuteStep=Mg(t)?t:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(t){this._secondStep=Mg(t)?t:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(t){const e=this._ngbTimeAdapter.fromModel(t);this.model=e?new Qy(e.hour,e.minute,e.second):new Qy,this.seconds||e&&Ng(e.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}changeHour(t){this.model.changeHour(t),this.propagateModelChange()}changeMinute(t){this.model.changeMinute(t),this.propagateModelChange()}changeSecond(t){this.model.changeSecond(t),this.propagateModelChange()}updateHour(t){const e=this.model.hour>=12,n=Dg(t);this.meridian&&(e&&n<12||!e&&12===n)?this.model.updateHour(n+12):this.model.updateHour(n),this.propagateModelChange()}updateMinute(t){this.model.updateMinute(Dg(t)),this.propagateModelChange()}updateSecond(t){this.model.updateSecond(Dg(t)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(t){t.value=t.value.replace(a_,"")}formatHour(t){return Ng(t)?this.meridian?Lg(t%12==0?12:t%12):Lg(t%24):Lg(NaN)}formatMinSec(t){return Lg(t)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(t){t.seconds&&!this.seconds&&this.model&&!Ng(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(t=!0){t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}l_.decorators=[{type:s.Component,args:[{selector:"ngb-timepicker",encapsulation:s.ViewEncapsulation.None,template:'\n    <fieldset [disabled]="disabled" [class.disabled]="disabled">\n      <div class="ngb-tp">\n        <div class="ngb-tp-input-container ngb-tp-hour">\n          <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeHour(hourStep)"\n            class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"\n            [disabled]="disabled">\n            <span class="chevron ngb-tp-chevron"></span>\n            <span class="sr-only" i18n="@@ngb.timepicker.increment-hours">Increment hours</span>\n          </button>\n          <input type="text" class="ngb-tp-input form-control" [class.form-control-sm]="isSmallSize"\n            [class.form-control-lg]="isLargeSize"\n            maxlength="2" inputmode="numeric" placeholder="HH" i18n-placeholder="@@ngb.timepicker.HH"\n            [value]="formatHour(model?.hour)" (change)="updateHour($event.target.value)"\n            [readOnly]="readonlyInputs" [disabled]="disabled" aria-label="Hours" i18n-aria-label="@@ngb.timepicker.hours"\n            (input)="formatInput($event.target)"\n            (keydown.ArrowUp)="changeHour(hourStep); $event.preventDefault()"\n            (keydown.ArrowDown)="changeHour(-hourStep); $event.preventDefault()">\n          <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeHour(-hourStep)"\n            class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"\n            [disabled]="disabled">\n            <span class="chevron ngb-tp-chevron bottom"></span>\n            <span class="sr-only" i18n="@@ngb.timepicker.decrement-hours">Decrement hours</span>\n          </button>\n        </div>\n        <div class="ngb-tp-spacer">:</div>\n        <div class="ngb-tp-input-container ngb-tp-minute">\n          <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeMinute(minuteStep)"\n            class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"\n            [disabled]="disabled">\n            <span class="chevron ngb-tp-chevron"></span>\n            <span class="sr-only" i18n="@@ngb.timepicker.increment-minutes">Increment minutes</span>\n          </button>\n          <input type="text" class="ngb-tp-input form-control" [class.form-control-sm]="isSmallSize" [class.form-control-lg]="isLargeSize"\n            maxlength="2" inputmode="numeric" placeholder="MM" i18n-placeholder="@@ngb.timepicker.MM"\n            [value]="formatMinSec(model?.minute)" (change)="updateMinute($event.target.value)"\n            [readOnly]="readonlyInputs" [disabled]="disabled" aria-label="Minutes" i18n-aria-label="@@ngb.timepicker.minutes"\n            (input)="formatInput($event.target)"\n            (keydown.ArrowUp)="changeMinute(minuteStep); $event.preventDefault()"\n            (keydown.ArrowDown)="changeMinute(-minuteStep); $event.preventDefault()">\n          <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeMinute(-minuteStep)"\n            class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize"  [class.disabled]="disabled"\n            [disabled]="disabled">\n            <span class="chevron ngb-tp-chevron bottom"></span>\n            <span class="sr-only"  i18n="@@ngb.timepicker.decrement-minutes">Decrement minutes</span>\n          </button>\n        </div>\n        <div *ngIf="seconds" class="ngb-tp-spacer">:</div>\n        <div *ngIf="seconds" class="ngb-tp-input-container ngb-tp-second">\n          <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeSecond(secondStep)"\n            class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"\n            [disabled]="disabled">\n            <span class="chevron ngb-tp-chevron"></span>\n            <span class="sr-only" i18n="@@ngb.timepicker.increment-seconds">Increment seconds</span>\n          </button>\n          <input type="text" class="ngb-tp-input form-control" [class.form-control-sm]="isSmallSize" [class.form-control-lg]="isLargeSize"\n            maxlength="2" inputmode="numeric" placeholder="SS" i18n-placeholder="@@ngb.timepicker.SS"\n            [value]="formatMinSec(model?.second)" (change)="updateSecond($event.target.value)"\n            [readOnly]="readonlyInputs" [disabled]="disabled" aria-label="Seconds" i18n-aria-label="@@ngb.timepicker.seconds"\n            (input)="formatInput($event.target)"\n            (keydown.ArrowUp)="changeSecond(secondStep); $event.preventDefault()"\n            (keydown.ArrowDown)="changeSecond(-secondStep); $event.preventDefault()">\n          <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeSecond(-secondStep)"\n            class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize"  [class.disabled]="disabled"\n            [disabled]="disabled">\n            <span class="chevron ngb-tp-chevron bottom"></span>\n            <span class="sr-only" i18n="@@ngb.timepicker.decrement-seconds">Decrement seconds</span>\n          </button>\n        </div>\n        <div *ngIf="meridian" class="ngb-tp-spacer"></div>\n        <div *ngIf="meridian" class="ngb-tp-meridian">\n          <button type="button" class="btn btn-outline-primary" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize"\n            [disabled]="disabled" [class.disabled]="disabled"\n                  (click)="toggleMeridian()">\n            <ng-container *ngIf="model?.hour >= 12; else am" i18n="@@ngb.timepicker.PM">{{ i18n.getAfternoonPeriod() }}</ng-container>\n            <ng-template #am i18n="@@ngb.timepicker.AM">{{ i18n.getMorningPeriod() }}</ng-template>\n          </button>\n        </div>\n      </div>\n    </fieldset>\n  ',providers:[o_],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.ngb-tp-input-container{width:4em}.ngb-tp-chevron::before{border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{top:-.3em;-webkit-transform:rotate(135deg);transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around}.ngb-tp-spacer{width:1em;text-align:center}']}]}],l_.ctorParameters=()=>[{type:Jy},{type:e_},{type:s.ChangeDetectorRef},{type:s_}],l_.propDecorators={meridian:[{type:s.Input}],spinners:[{type:s.Input}],seconds:[{type:s.Input}],hourStep:[{type:s.Input}],minuteStep:[{type:s.Input}],secondStep:[{type:s.Input}],readonlyInputs:[{type:s.Input}],size:[{type:s.Input}]};class c_{}c_.decorators=[{type:s.NgModule,args:[{declarations:[l_],exports:[l_],imports:[Cu.CommonModule]}]}];class d_{constructor(){this.autohide=!0,this.delay=500,this.ariaLive="polite"}}d_.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],d_.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new d_},token:d_,providedIn:"root"});class p_{}p_.decorators=[{type:s.Directive,args:[{selector:"[ngbToastHeader]"}]}];class u_{constructor(t,e){this.ariaLive=t,this.contentHeaderTpl=null,this.hideOutput=new s.EventEmitter,null==this.ariaLive&&(this.ariaLive=e.ariaLive),this.delay=e.delay,this.autohide=e.autohide}ngAfterContentInit(){this._init()}ngOnChanges(t){"autohide"in t&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout(),this.hideOutput.emit()}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}}u_.decorators=[{type:s.Component,args:[{selector:"ngb-toast",exportAs:"ngbToast",encapsulation:s.ViewEncapsulation.None,host:{role:"alert","[attr.aria-live]":"ariaLive","aria-atomic":"true","[class.toast]":"true","[class.show]":"true"},template:'\n    <ng-template #headerTpl>\n      <strong class="mr-auto">{{header}}</strong>\n    </ng-template>\n    <ng-template [ngIf]="contentHeaderTpl || header">\n      <div class="toast-header">\n        <ng-template [ngTemplateOutlet]="contentHeaderTpl || headerTpl"></ng-template>\n        <button type="button" class="close" aria-label="Close" i18n-aria-label="@@ngb.toast.close-aria" (click)="hide()">\n          <span aria-hidden="true">&times;</span>\n        </button>\n      </div>\n    </ng-template>\n    <div class="toast-body">\n      <ng-content></ng-content>\n    </div>\n  ',styles:[".ngb-toasts{position:fixed;top:0;right:0;margin:.5em;z-index:1200}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}"]}]}],u_.ctorParameters=()=>[{type:String,decorators:[{type:s.Attribute,args:["aria-live"]}]},{type:d_}],u_.propDecorators={delay:[{type:s.Input}],autohide:[{type:s.Input}],header:[{type:s.Input}],contentHeaderTpl:[{type:s.ContentChild,args:[p_,{read:s.TemplateRef,static:!0}]}],hideOutput:[{type:s.Output,args:["hide"]}]};class h_{}h_.decorators=[{type:s.NgModule,args:[{declarations:[u_,p_],imports:[Cu.CommonModule],exports:[u_,p_]}]}];class m_{constructor(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}}m_.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],m_.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new m_},token:m_,providedIn:"root"});let f_=0;class g_{}g_.decorators=[{type:s.Component,args:[{selector:"ngb-tooltip-window",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,host:{"[class]":'"tooltip show" + (tooltipClass ? " " + tooltipClass : "")',role:"tooltip","[id]":"id"},template:'<div class="arrow"></div><div class="tooltip-inner"><ng-content></ng-content></div>',styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"]}]}],g_.propDecorators={id:[{type:s.Input}],tooltipClass:[{type:s.Input}]};class b_{constructor(t,e,n,i,r,a,o,l,c,d){this._elementRef=t,this._renderer=e,this._ngZone=o,this._document=l,this._changeDetector=c,this.shown=new s.EventEmitter,this.hidden=new s.EventEmitter,this._ngbTooltipWindowId="ngb-tooltip-"+f_++,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new Xv(g_,n,r,e,i,d),this._zoneSubscription=o.onStable.subscribe(()=>{this._windowRef&&Qb(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){this._windowRef||!this._ngbTooltip||this.disableTooltip||(this._windowRef=this._popupService.open(this._ngbTooltip,t),this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),Wb(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),this.shown.emit())}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=Oy(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}b_.decorators=[{type:s.Directive,args:[{selector:"[ngbTooltip]",exportAs:"ngbTooltip"}]}],b_.ctorParameters=()=>[{type:s.ElementRef},{type:s.Renderer2},{type:s.Injector},{type:s.ComponentFactoryResolver},{type:s.ViewContainerRef},{type:m_},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.ChangeDetectorRef},{type:s.ApplicationRef}],b_.propDecorators={autoClose:[{type:s.Input}],placement:[{type:s.Input}],triggers:[{type:s.Input}],container:[{type:s.Input}],disableTooltip:[{type:s.Input}],tooltipClass:[{type:s.Input}],openDelay:[{type:s.Input}],closeDelay:[{type:s.Input}],shown:[{type:s.Output}],hidden:[{type:s.Output}],ngbTooltip:[{type:s.Input}]};class v_{}v_.decorators=[{type:s.NgModule,args:[{declarations:[b_,g_],exports:[b_],entryComponents:[g_]}]}];class y_{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(t){const e=Tg(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(t=>Tg(t).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(t=>t);this.parts=n.length?e.split(new RegExp(`(${n.join("|")})`,"gmi")):[e]}}y_.decorators=[{type:s.Component,args:[{selector:"ngb-highlight",changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,template:'<ng-template ngFor [ngForOf]="parts" let-part let-isOdd="odd"><span *ngIf="isOdd; else even" [class]="highlightClass">{{part}}</span><ng-template #even>{{part}}</ng-template></ng-template>',styles:[".ngb-highlight{font-weight:700}"]}]}],y_.propDecorators={highlightClass:[{type:s.Input}],result:[{type:s.Input}],term:[{type:s.Input}]};class __{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Tg,this.selectEvent=new s.EventEmitter,this.activeChangeEvent=new s.EventEmitter}hasActive(){return this.activeIdx>-1&&this.activeIdx<this.results.length}getActive(){return this.results[this.activeIdx]}markActive(t){this.activeIdx=t,this._activeChanged()}next(){this.activeIdx===this.results.length-1?this.activeIdx=this.focusFirst?(this.activeIdx+1)%this.results.length:-1:this.activeIdx++,this._activeChanged()}prev(){this.activeIdx<0?this.activeIdx=this.results.length-1:0===this.activeIdx?this.activeIdx=this.focusFirst?this.results.length-1:-1:this.activeIdx--,this._activeChanged()}resetActive(){this.activeIdx=this.focusFirst?0:-1,this._activeChanged()}select(t){this.selectEvent.emit(t)}ngOnInit(){this.resetActive()}_activeChanged(){this.activeChangeEvent.emit(this.activeIdx>=0?this.id+"-"+this.activeIdx:void 0)}}__.decorators=[{type:s.Component,args:[{selector:"ngb-typeahead-window",exportAs:"ngbTypeaheadWindow",encapsulation:s.ViewEncapsulation.None,host:{"(mousedown)":"$event.preventDefault()",class:"dropdown-menu show",role:"listbox","[id]":"id"},template:'\n    <ng-template #rt let-result="result" let-term="term" let-formatter="formatter">\n      <ngb-highlight [result]="formatter(result)" [term]="term"></ngb-highlight>\n    </ng-template>\n    <ng-template ngFor [ngForOf]="results" let-result let-idx="index">\n      <button type="button" class="dropdown-item" role="option"\n        [id]="id + \'-\' + idx"\n        [class.active]="idx === activeIdx"\n        (mouseenter)="markActive(idx)"\n        (click)="select(result)">\n          <ng-template [ngTemplateOutlet]="resultTemplate || rt"\n          [ngTemplateOutletContext]="{result: result, term: term, formatter: formatter}"></ng-template>\n      </button>\n    </ng-template>\n  '}]}],__.propDecorators={id:[{type:s.Input}],focusFirst:[{type:s.Input}],results:[{type:s.Input}],term:[{type:s.Input}],formatter:[{type:s.Input}],resultTemplate:[{type:s.Input}],selectEvent:[{type:s.Output,args:["select"]}],activeChangeEvent:[{type:s.Output,args:["activeChange"]}]};const w_=new s.InjectionToken("live announcer delay",{providedIn:"root",factory:function(){return 100}});function x_(t,e=!1){let n=t.body.querySelector("#ngb-live");return null==n&&e&&(n=t.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}class C_{constructor(t,e){this._document=t,this._delay=e}ngOnDestroy(){const t=x_(this._document);t&&t.parentElement.removeChild(t)}say(t){const e=x_(this._document,!0),n=this._delay;e.textContent="";const i=()=>e.textContent=t;null===n?i():setTimeout(i,n)}}C_.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],C_.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:void 0,decorators:[{type:s.Inject,args:[w_]}]}],C_.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new C_(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(w_))},token:C_,providedIn:"root"});class S_{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}S_.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],S_.ngInjectableDef=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new S_},token:S_,providedIn:"root"});const k_={provide:Wh,useExisting:Object(s.forwardRef)(()=>I_),multi:!0};let E_=0;class I_{constructor(t,e,n,i,r,a,o,l,c,d,p,u){this._elementRef=t,this._renderer=n,this._live=l,this._document=c,this._ngZone=d,this._changeDetector=p,this._closed$=new Gf.a,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new s.EventEmitter,this.popupId="ngb-typeahead-"+E_++,this._onTouched=()=>{},this._onChange=t=>{},this.container=a.container,this.editable=a.editable,this.focusFirst=a.focusFirst,this.showHint=a.showHint,this.placement=a.placement,this._valueChanges=Object(fg.a)(t.nativeElement,"input").pipe(Object($h.a)(t=>t.target.value)),this._resubscribeTypeahead=new pg.a(null),this._popupService=new Xv(__,i,e,n,r,u),this._zoneSubscription=o.onStable.subscribe(()=>{this.isPopupOpen()&&Qb(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const t=this._valueChanges.pipe(Object(kg.a)(t=>{this._inputValueBackup=this.showHint?t:null,this._onChange(this.editable?t:void 0)})).pipe(this.ngbTypeahead),e=this._resubscribeTypeahead.pipe(Object(wg.a)(()=>t));this._subscription=this._subscribeToUserInput(e)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.which){case Vb.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case Vb.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case Vb.Enter:case Vb.Tab:const e=this._windowRef.instance.getActive();Rg(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}}_openPopup(){this.isPopupOpen()||(this._inputValueBackup=this._elementRef.nativeElement.value,this._windowRef=this._popupService.open(),this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(t=>this._selectResultClosePopup(t)),this._windowRef.instance.activeChangeEvent.subscribe(t=>this.activeDescendant=t),"body"===this.container&&window.document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),Wb(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement]))}_closePopup(){this._closed$.next(),this._popupService.close(),this._windowRef=null,this.activeDescendant=void 0}_selectResult(t){let e=!1;this.selectItem.emit({item:t,preventDefault:()=>{e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef.instance.hasActive()&&null!=this._inputValueBackup){const t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}}_formatItemForInput(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):Tg(t)}_writeInputValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",Tg(t))}_subscribeToUserInput(t){return t.subscribe(t=>{t&&0!==t.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=t,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const e=t?t.length:0;this._live.say(0===e?"No results available":`${e} result${1===e?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}I_.decorators=[{type:s.Directive,args:[{selector:"input[ngbTypeahead]",exportAs:"ngbTypeahead",host:{"(blur)":"handleBlur()","[class.open]":"isPopupOpen()","(keydown)":"handleKeyDown($event)","[autocomplete]":"autocomplete",autocapitalize:"off",autocorrect:"off",role:"combobox","aria-multiline":"false","[attr.aria-autocomplete]":'showHint ? "both" : "list"',"[attr.aria-activedescendant]":"activeDescendant","[attr.aria-owns]":"isPopupOpen() ? popupId : null","[attr.aria-expanded]":"isPopupOpen()"},providers:[k_]}]}],I_.ctorParameters=()=>[{type:s.ElementRef},{type:s.ViewContainerRef},{type:s.Renderer2},{type:s.Injector},{type:s.ComponentFactoryResolver},{type:S_},{type:s.NgZone},{type:C_},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.NgZone},{type:s.ChangeDetectorRef},{type:s.ApplicationRef}],I_.propDecorators={autocomplete:[{type:s.Input}],container:[{type:s.Input}],editable:[{type:s.Input}],focusFirst:[{type:s.Input}],inputFormatter:[{type:s.Input}],ngbTypeahead:[{type:s.Input}],resultFormatter:[{type:s.Input}],resultTemplate:[{type:s.Input}],showHint:[{type:s.Input}],placement:[{type:s.Input}],selectItem:[{type:s.Output}]};class A_{}A_.decorators=[{type:s.NgModule,args:[{declarations:[I_,y_,__],exports:[I_,y_],imports:[Cu.CommonModule],entryComponents:[__]}]}];const D_=[Yg,Zg,rb,hb,fb,Vv,Gv,oy,by,Iy,Ly,Vy,Uy,Xy,c_,h_,v_,A_];class T_{}T_.decorators=[{type:s.NgModule,args:[{imports:D_,exports:D_}]}];var O_=n("z6cu"),P_=n("un/a"),N_=n("JIr8");const M_={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let R_=class{constructor(t){this.http=t,this.backendUrl=Xf,this.proginfo=new pg.a(null),this.castproginfo=this.proginfo.asObservable()}setProgramInfo(t){this.proginfo.next(t)}getProviderInfo(){return this.http.get(this.backendUrl+"/v1/secure/homepageprovideroverview",M_).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}getProviderPermission(t){return this.http.get(this.backendUrl+"/v1/secure/organizationspermissions/"+t,M_).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}getorganizationadress(t){return this.http.get(this.backendUrl+"/v1/secure/addressdetails/"+t,M_).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}saveProgramEdit(t){return this.http.put(this.backendUrl+"/v1/secure/updateorganization",t,M_)}addAttribute(t,e){const n=new FormData;return n.append("input",JSON.stringify(t)),null!=e&&null!=e&&n.append("file",e),this.http.post(this.backendUrl+"/v1/open/opportunity",n,{responseType:"text"})}delAttribute(t){return this.http.put(this.backendUrl+"/v1/open/attributes",t,M_)}deleteOrganisation(t){const e={headers:new Yf.HttpHeaders({"Content-Type":"application/json"}),body:t};return this.http.delete(this.backendUrl+"/v1/secure/organizationdelete",e)}cloneOrganisation(t){return this.http.post(this.backendUrl+"/v1/secure/organizationclone",t,M_)}deleteLicence(t){return this.http.post(this.backendUrl+"/v1/secure/deletelicensenumber",t,M_)}handleError(t){let e,n;return t instanceof Yf.HttpErrorResponse&&(!1===t.ok&&0===t.status?e="No internet connection or server might be unreachable. Please try again after sometime.":(n=t.error||"",e=n.message?n.message:n.error.message)),Object(O_.a)(e)}};R_.ctorParameters=()=>[{type:Yf.HttpClient}],R_=Hh([Object(s.Injectable)({providedIn:"root"})],R_);const L_={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let F_=class{constructor(t){this.http=t,this.backendUrl=Xf}getSubstances(){return this.http.get(this.backendUrl+"/v1/open/drugs",L_)}getPayments(){return this.http.get(this.backendUrl+"/v1/open/payments",L_)}getCities(){return this.http.get(this.backendUrl+"/v1/open/cities",L_)}doSelfAssessment(t){return this.http.post(this.backendUrl+"/v1/open/doSelfAssessment",t,L_)}getIncidentById(t){return this.http.get(this.backendUrl+"/v1/open/getIncidentById/"+t,L_)}getAttributesByIncidentId(t){return this.http.get(this.backendUrl+"/v1/open/attributes/incident/"+t,L_)}getExternalSearchResultByIncidentId(t){return this.http.get(this.backendUrl+"/v1/open/externalSearch/"+t,L_)}providerDetailsById(t){return this.http.get(this.backendUrl+"/v1/open/providerdetails/"+t,L_)}};F_.ctorParameters=()=>[{type:Yf.HttpClient}],F_=Hh([Object(s.Injectable)({providedIn:"root"})],F_);const j_=(new Yf.HttpHeaders).set("Content-Type","text/plain; charset=utf-8");let V_=class{constructor(t){this.http=t,this.backendUrl=Xf}GetIntakeHoursInfo(t){return this.http.get(this.backendUrl+"/v1/secure/providerintakehours/"+t)}EditIntakeHoursInfo(t,e){return this.http.get(this.backendUrl+"/v1/secure/intakehours/"+t+"/"+e)}SetIntakeHoursInfo(t){return this.http.post(this.backendUrl+"/v1/secure/intakehours",t)}DeleteIntakeHours(t){return this.http.delete(this.backendUrl+"/v1/secure/intakehours/"+t,{headers:j_,responseType:"text"})}UpdateIntakeHours(t){return this.http.put(this.backendUrl+"/v1/secure/intakehours/",t)}getstatisticsinfo(t){return this.http.get(this.backendUrl+"/v1/secure/providertaskreferrals/"+t)}checkLoginContactPermissions(t){return this.http.get(this.backendUrl+"/v1/secure/checkLoginContactRights/"+t)}getattributes(){return this.http.get(this.backendUrl+"/v1/open/attributesbytypemap")}};V_.ctorParameters=()=>[{type:Yf.HttpClient}],V_=Hh([Object(s.Injectable)({providedIn:"root"})],V_);let B_=class{constructor(t,e,n,i,s,r,a,o){this.modalService=t,this.intakeservice=e,this.overviewservice=n,this.findhelpService=i,this._Activatedroute=s,this._router=r,this.httpService=a,this.fb=o,this.title="appBootstrap",this.err=!1,this.err1=!1,this.submitted=!1,this.isChecked=!1,this.myCheckbox=new ef,this.deletereason="",this.phonecheck=!1,this.phonecheck_c=!1,this.loader=!1,this.disable=!1,this.phyStatema=!0,this.mailstatema=!0,this.clophystatema=!0,this.clomailstatema=!0,this.morlicence=[],this.remiveLic=0,this.rmIndex=0,this.states=[{id:1,name:"AK"},{id:2,name:"AL"},{id:3,name:"AR"},{id:4,name:"AS"},{id:5,name:"AZ"},{id:6,name:"CA"},{id:7,name:"CO"},{id:8,name:"CT"},{id:9,name:"DC"},{id:10,name:"DE"},{id:11,name:"FL"},{id:12,name:"FM"},{id:13,name:"GA"},{id:14,name:"GU"},{id:15,name:"HI"},{id:16,name:"IA"},{id:17,name:"ID"},{id:18,name:"IL"},{id:19,name:"IN"},{id:20,name:"KS"},{id:21,name:"KY"},{id:22,name:"LA"},{id:23,name:"MA"},{id:24,name:"MD"},{id:25,name:"ME"},{id:26,name:"MH"},{id:27,name:"MI"},{id:28,name:"MN"},{id:29,name:"MO"},{id:30,name:"MP"},{id:31,name:"MS"},{id:32,name:"MT"},{id:33,name:"NC"},{id:34,name:"ND"},{id:35,name:"NE"},{id:36,name:"NH"},{id:37,name:"NJ"},{id:38,name:"NM"},{id:39,name:"NV"},{id:40,name:"NY"},{id:41,name:"OH"},{id:42,name:"OK"},{id:43,name:"OR"},{id:44,name:"PA"},{id:45,name:"PR"},{id:46,name:"PW"},{id:47,name:"RI"},{id:48,name:"SC"},{id:49,name:"SD"},{id:50,name:"TN"},{id:51,name:"TX"},{id:52,name:"UT"},{id:53,name:"VA"},{id:54,name:"VI"},{id:55,name:"VT"},{id:56,name:"WA"},{id:57,name:"WI"},{id:58,name:"WV"},{id:59,name:"WY"}],this.cities=[{name:"Abington",id:1},{name:"Acoaxet",id:1227},{name:"Acton",id:870},{name:"Acushnet",id:871},{name:"Adams",id:872},{name:"Agawam",id:873},{name:"Alford",id:874},{name:"Allerton",id:1232},{name:"Allston",id:1234},{name:"Amesbury",id:875},{name:"Amherst",id:876},{name:"Andover",id:877},{name:"Aquinnah",id:878},{name:"Arlington",id:879},{name:"Ashburnham",id:880},{name:"Ashby",id:881},{name:"Ashfield",id:882},{name:"Ashland",id:883},{name:"Ashley Falls",id:1252},{name:"Assinippi",id:1287},{name:"Assonet",id:1222},{name:"Athol",id:884},{name:"Attleboro",id:885},{name:"Auburn",id:886},{name:"Auburnville",id:1276},{name:"Avon",id:887},{name:"Ayer",id:888},{name:"Back Bay (Boston)",id:1225},{name:"Baconsville",id:1298},{name:"Baldwinville",id:1282},{name:"Bancroft",id:1299},{name:"Barnstable",id:889},{name:"Barre",id:890},{name:"Bay Village (Boston)",id:1249},{name:"Beacon Hill (Boston)",id:1241},{name:"Becket",id:891},{name:"Bedford",id:892},{name:"Belchertown",id:893},{name:"Bellingham",id:894},{name:"Belmont",id:895},{name:"Berkley",id:896},{name:"Berkshire",id:1223},{name:"Berlin",id:897},{name:"Bernardston",id:898},{name:"Beverly",id:899},{name:"Billerica",id:900},{name:"Blackstone",id:901},{name:"Blandford",id:902},{name:"Bolton",id:903},{name:"Bondsville",id:1293},{name:"Boston",id:904},{name:"Bourne",id:905},{name:"Boxborough",id:906},{name:"Boxford",id:907},{name:"Boylston",id:908},{name:"Bradford",id:1261},{name:"Braintree",id:909},{name:"Brant Rock",id:1300},{name:"Brewster",id:910},{name:"Bridgewater",id:911},{name:"Briggsville",id:1266},{name:"Brighton",id:1229},{name:"Brimfield",id:912},{name:"Brockton",id:913},{name:"Brookfield",id:914},{name:"Brookline",id:915},{name:"Buckland",id:916},{name:"Burlington",id:917},{name:"Buzzards Bay",id:1233},{name:"Byfield",id:1301},{name:"Cambridge",id:918},{name:"Canton",id:919},{name:"Carlisle",id:920},{name:"Carver",id:921},{name:"Cataumet",id:1253},{name:"Cedarville",id:1258},{name:"Centerville",id:1240},{name:"Chaffinville",id:1302},{name:"Charlemont",id:922},{name:"Charlestown",id:1239},{name:"Charlton",id:923},{name:"Chatham",id:924},{name:"Chelmsford",id:925},{name:"Chelsea",id:926},{name:"Cheshire",id:927},{name:"Chester",id:928},{name:"Chesterfield",id:929},{name:"Chicopee",id:930},{name:"Chilmark",id:931},{name:"Chinatown (Boston)",id:1290},{name:"Clarksburg",id:932},{name:"Clayton",id:1295},{name:"Cliftondale",id:1303},{name:"Clinton",id:933},{name:"Cochituate",id:1274},{name:"Cohasset",id:934},{name:"Colrain",id:935},{name:"Concord",id:936},{name:"Conway",id:937},{name:"Cotuit",id:1267},{name:"Cummaquid",id:1304},{name:"Cummington",id:938},{name:"Cuttyhunk",id:1305},{name:"Dalton",id:939},{name:"Danvers",id:940},{name:"Dartmouth",id:941},{name:"Dedham",id:942},{name:"Deerfield",id:943},{name:"Dell",id:1306},{name:"Dennis",id:944},{name:"Dennisport",id:1254},{name:"Dighton",id:945},{name:"Dorchester",id:1220},{name:"Douglas",id:946},{name:"Dover",id:947},{name:"Dracut",id:948},{name:"Drury",id:1307},{name:"Dudley",id:949},{name:"Dunstable",id:950},{name:"Duxbury",id:951},{name:"Dwight",id:1308},{name:"East Boston",id:1226},{name:"East Bridgewater",id:952},{name:"East Brookfield",id:953},{name:"East Deerfield",id:1288},{name:"East Longmeadow",id:954},{name:"East Walpole",id:1236},{name:"Eastham",id:955},{name:"Easthampton",id:956},{name:"Easton",id:957},{name:"Eastville",id:1309},{name:"Edgartown",id:958},{name:"Egremont",id:959},{name:"Egypt",id:1310},{name:"Elmwood",id:1311},{name:"Erving",id:960},{name:"Essex",id:961},{name:"Everett",id:962},{name:"Fairhaven",id:963},{name:"Fall River",id:964},{name:"Falmouth",id:965},{name:"Farley",id:1312},{name:"Feeding Hills",id:1272},{name:"Fieldston",id:1313},{name:"Fiskdale",id:1281},{name:"Fitchburg",id:966},{name:"Florence",id:1268},{name:"Florida",id:967},{name:"Forestdale",id:1314},{name:"Foxborough",id:968},{name:"Framingham",id:969},{name:"Franklin",id:970},{name:"Freetown",id:971},{name:"Gardner",id:972},{name:"Georgetown",id:973},{name:"Gill",id:974},{name:"Glendale",id:1316},{name:"Gloucester",id:975},{name:"Goshen",id:976},{name:"Gosnold",id:977},{name:"Grafton",id:978},{name:"Granby",id:979},{name:"Granville",id:980},{name:"Great Barrington",id:981},{name:"Greenfield",id:982},{name:"Groton",id:983},{name:"Groveland",id:984},{name:"Hadley",id:985},{name:"Halifax",id:986},{name:"Hamilton",id:987},{name:"Hampden",id:988},{name:"Hancock",id:989},{name:"Hanover",id:990},{name:"Hanson",id:991},{name:"Hardwick",id:992},{name:"Harvard",id:993},{name:"Harwich",id:994},{name:"Harwich Port",id:1321},{name:"Hatfield",id:995},{name:"Haverhill",id:996},{name:"Hawley",id:997},{name:"Heath",id:998},{name:"Hingham",id:999},{name:"Hinsdale",id:1e3},{name:"Holbrook",id:1001},{name:"Holden",id:1002},{name:"Holland",id:1003},{name:"Holliston",id:1004},{name:"Holyoke",id:1005},{name:"Hopedale",id:1006},{name:"Hopkinton",id:1007},{name:"Hubbardston",id:1008},{name:"Hudson",id:1009},{name:"Hull",id:1010},{name:"Huntington",id:1011},{name:"Hyannis",id:1221},{name:"Hyde Park",id:1248},{name:"Indian Orchard",id:1279},{name:"Ipswich",id:1012},{name:"Jamaica Plain",id:1235},{name:"Jefferson",id:1273},{name:"Kingston",id:1013},{name:"Lakeville",id:1014},{name:"Lancaster",id:1015},{name:"Lanesborough",id:1016},{name:"Lawrence",id:1017},{name:"Lee",id:1018},{name:"Leeds",id:1296},{name:"Leicester",id:1019},{name:"Lenox",id:1020},{name:"Leominster",id:1021},{name:"Leverett",id:1022},{name:"Lexington",id:1023},{name:"Leyden",id:1024},{name:"Lincoln",id:1025},{name:"Littleton",id:1026},{name:"Longmeadow",id:1027},{name:"Loudville",id:1243},{name:"Lowell",id:1028},{name:"Ludlow",id:1029},{name:"Lunenburg",id:1030},{name:"Lynn",id:1031},{name:"Lynnfield",id:1032},{name:"Madaket",id:1329},{name:"Magnolia",id:1269},{name:"Malden",id:1033},{name:"Manchester by the Sea",id:1034},{name:"Mansfield",id:1035},{name:"Marblehead",id:1036},{name:"Marion",id:1037},{name:"Marlborough",id:1038},{name:"Marshfield",id:1039},{name:"Marstons Mills",id:1238},{name:"Mashpee",id:1040},{name:"Mattapan",id:1246},{name:"Mattapoisett",id:1041},{name:"Maynard",id:1042},{name:"Medfield",id:1043},{name:"Medford",id:1044},{name:"Medway",id:1045},{name:"Melrose",id:1046},{name:"Mendon",id:1047},{name:"Merrimac",id:1048},{name:"Methuen",id:1049},{name:"Middleborough",id:1050},{name:"Middlefield",id:1051},{name:"Middleton",id:1052},{name:"Milford",id:1053},{name:"Millbury",id:1054},{name:"Millis",id:1055},{name:"Millville",id:1056},{name:"Milton",id:1057},{name:"Mission Hill (Boston)",id:1318},{name:"Monroe",id:1058},{name:"Monson",id:1059},{name:"Montague",id:1060},{name:"Monterey",id:1061},{name:"Montgomery",id:1062},{name:"Mount Washington",id:1063},{name:"Nahant",id:1064},{name:"Nantucket",id:1065},{name:"Nashaquitsa",id:1323},{name:"Natick",id:1066},{name:"Needham",id:1067},{name:"New Ashford",id:1068},{name:"New Bedford",id:1069},{name:"New Boston",id:1286},{name:"New Braintree",id:1070},{name:"New Marlborough",id:1071},{name:"New Salem",id:1072},{name:"Newbury",id:1073},{name:"Newburyport",id:1074},{name:"Newton",id:1075},{name:"Newton Upper Falls",id:1284},{name:"Norfolk",id:1076},{name:"North Adams",id:1077},{name:"North Andover",id:1078},{name:"North Attleboro",id:1079},{name:"North Billerica",id:1294},{name:"North Brookfield",id:1080},{name:"North Dartmouth",id:1250},{name:"North Dighton",id:1230},{name:"North Grafton",id:1280},{name:"North Hadley",id:1278},{name:"North Reading",id:1081},{name:"North Weymouth",id:1289},{name:"Northampton",id:1082},{name:"Northborough",id:1083},{name:"Northbridge",id:1084},{name:"Northfield",id:1085},{name:"Norton",id:1086},{name:"Norwell",id:1087},{name:"Norwood",id:1088},{name:"Oak Bluffs",id:1089},{name:"Oakham",id:1090},{name:"Oakland",id:1325},{name:"Onset",id:1257},{name:"Orange",id:1091},{name:"Orleans",id:1092},{name:"Osterville",id:1322},{name:"Otis",id:1093},{name:"Oxford",id:1094},{name:"Palmer",id:1095},{name:"Paxton",id:1096},{name:"Peabody",id:1097},{name:"Pelham",id:1098},{name:"Pembroke",id:1099},{name:"Pepperell",id:1100},{name:"Peru",id:1101},{name:"Petersham",id:1102},{name:"Phillipston",id:1103},{name:"Pittsfield",id:1104},{name:"Plainfield",id:1105},{name:"Plainville",id:1106},{name:"Plymouth",id:1107},{name:"Plympton",id:1108},{name:"Pocasset",id:1270},{name:"Princeton",id:1109},{name:"Provincetown",id:1110},{name:"Quincy",id:1111},{name:"Randolph",id:1112},{name:"Raynham",id:1113},{name:"Raynham Center",id:1326},{name:"Reading",id:1114},{name:"Rehoboth",id:1115},{name:"Revere",id:1116},{name:"Richmond",id:1117},{name:"Riverside",id:1331},{name:"Rochester",id:1118},{name:"Rockland",id:1119},{name:"Rockport",id:1120},{name:"Roslindale",id:1242},{name:"Rowe",id:1121},{name:"Rowley",id:1122},{name:"Roxbury",id:1237},{name:"Royalston",id:1123},{name:"Russell",id:1124},{name:"Rutland",id:1125},{name:"Sagamore",id:1292},{name:"Salem",id:1126},{name:"Salisbury",id:1127},{name:"Sand Hills",id:1262},{name:"Sandisfield",id:1128},{name:"Sandwich",id:1129},{name:"Santuit",id:1277},{name:"Saugus",id:1130},{name:"Savoy",id:1131},{name:"Scituate",id:1132},{name:"Seekonk",id:1133},{name:"Sharon",id:1134},{name:"Sheffield",id:1135},{name:"Shelburne",id:1136},{name:"Shelburne Falls",id:1245},{name:"Sherborn",id:1137},{name:"Shirley",id:1138},{name:"Shrewsbury",id:1139},{name:"Shutesbury",id:1140},{name:"Somerset",id:1141},{name:"Somerville",id:1142},{name:"South Attleboro",id:1297},{name:"South Boston",id:1231},{name:"South Deerfield",id:1224},{name:"South Dennis",id:1319},{name:"South End (Boston)",id:1291},{name:"South Grafton",id:1275},{name:"South Hadley",id:1143},{name:"South Weymouth",id:1247},{name:"South Yarmouth",id:1263},{name:"Southampton",id:1144},{name:"Southborough",id:1145},{name:"Southbridge",id:1146},{name:"Southfield",id:1317},{name:"Southwick",id:1147},{name:"Spencer",id:1148},{name:"Springfield",id:1149},{name:"Stanley",id:1334},{name:"Sterling",id:1150},{name:"Still River",id:1330},{name:"Stockbridge",id:1151},{name:"Stoneham",id:1152},{name:"Stoughton",id:1153},{name:"Stow",id:1154},{name:"Sturbridge",id:1155},{name:"Sudbury",id:1156},{name:"Sunderland",id:1157},{name:"Sutton",id:1158},{name:"Swampscott",id:1159},{name:"Swansea",id:1160},{name:"Swift River",id:1256},{name:"Taunton",id:1161},{name:"Teaticket",id:1260},{name:"Templeton",id:1162},{name:"Tewksbury",id:1163},{name:"Tisbury",id:1164},{name:"Tolland",id:1165},{name:"Topsfield",id:1166},{name:"Townsend",id:1167},{name:"Truro",id:1168},{name:"Turners Falls",id:1265},{name:"Tyngsborough",id:1169},{name:"Tyringham",id:1170},{name:"Upton",id:1171},{name:"Uxbridge",id:1172},{name:"Vineyard Haven",id:1259},{name:"Waban",id:1285},{name:"Wakefield",id:1173},{name:"Wales",id:1174},{name:"Walpole",id:1175},{name:"Waltham",id:1176},{name:"Ware",id:1177},{name:"Wareham",id:1178},{name:"Warren",id:1179},{name:"Warwick",id:1180},{name:"Washington",id:1181},{name:"Watertown",id:1182},{name:"Wauwinet",id:1327},{name:"Wayland",id:1183},{name:"Webster",id:1184},{name:"Wellesley",id:1185},{name:"Wellesley Hills",id:1315},{name:"Wellfleet",id:1186},{name:"Wendell",id:1187},{name:"Wenham",id:1188},{name:"West Boylston",id:1189},{name:"West Bridgewater",id:1190},{name:"West Brookfield",id:1191},{name:"West Harwich",id:1328},{name:"West Newbury",id:1192},{name:"West Roxbury",id:1228},{name:"West Springfield",id:1193},{name:"West Stockbridge",id:1194},{name:"West Tisbury",id:1195},{name:"West Wareham",id:1324},{name:"West Yarmouth",id:1332},{name:"Westborough",id:1196},{name:"Westfield",id:1197},{name:"Westford",id:1198},{name:"Westhampton",id:1199},{name:"Westminster",id:1200},{name:"Weston",id:1201},{name:"Westport",id:1202},{name:"Westwood",id:1203},{name:"Weymouth",id:1204},{name:"Whately",id:1205},{name:"Wheelwright",id:1251},{name:"Whitinsville",id:1264},{name:"Whitman",id:1206},{name:"Wilbraham",id:1207},{name:"Williamsburg",id:1208},{name:"Williamstown",id:1209},{name:"Wilmington",id:1210},{name:"Winchendon",id:1211},{name:"Winchester",id:1212},{name:"Windsor",id:1213},{name:"Winthrop",id:1214},{name:"Woburn",id:1215},{name:"Woods Hole",id:1320},{name:"Woodville",id:1271},{name:"Worcester",id:1216},{name:"Woronoco",id:1333},{name:"Worthington",id:1217},{name:"Worthington Center",id:1255},{name:"Wrentham",id:1218},{name:"Yarmouth",id:1219},{name:"Yarmouth Port",id:1283},{name:"Zoar",id:1244}]}ngOnInit(){this.overviewservice.castproginfo.subscribe(t=>{console.log(t),this.pgminfo=t,t&&this.intakeservice.checkLoginContactPermissions(this.pgminfo.id).subscribe(t=>{console.log(t),this.permissions=t})}),this.editProfileForm=this.fb.group({p_providername:["",im.required],p_license:[""],p_website:[""],b_street1:["",im.required],b_street2:[""],b_city1:["",im.required],b_state1:["",im.required],b_zip1:["",im.required],p_street1:[""],p_street2:[""],p_city1:[""],p_state1:[""],p_zip1:[""],p_ph1:["",im.required],p_fax1:[""],p_domain1:[""],p_bsas1:["",im.required],p_ap1:[""],p_desc1:[""],p_dsas1:[""],p_ph_ext1:[""]}),this.cloneProfileForm=this.fb.group({p_providername_c:["",im.required],p_license_c:[""],b_street1_c:["",im.required],b_street2_c:[""],b_city1_c:["",im.required],b_state1_c:["",im.required],b_zip1_c:["",im.required],p_street1_c:[""],p_street2_c:[""],p_city1_c:[""],p_state1_c:[""],p_zip1_c:[""],p_ph1_c:["",im.required],p_fax1_c:[""],p_domain1_c:[""],p_bsas1_c:["",im.required],p_ap1_c:[""],p_desc1_c:[""],p_dsas1_c:[""],p_ph_ext1_c:[""]})}get ef(){return this.editProfileForm.controls}get cf(){return this.cloneProfileForm.controls}changePhonenumber(t){console.log(t),console.log(this.phonemask),this.phonecheck=!0}onProviderSubmit(){var t;if(console.log(this.editProfileForm.value.p_ph1),t="("+this.phonemask.slice(0,3)+")"+this.phonemask.slice(3,6)+"-"+this.phonemask.slice(6,10),console.log(t),this.err=!0,this.submitted=!0,this.editProfileForm.invalid&&(this.ef.p_providername.invalid||this.ef.b_street1.invalid||this.ef.b_zip1.invalid||this.ef.b_state1.invalid||this.ef.b_city1.invalid||this.ef.p_ph1.invalid||this.ef.p_bsas1.invalid))return;this.phonemask=this.editProfileForm.value.p_ph1,console.log("res:",this.editProfileForm.value);var e=this.pgminfo.id,n=[];let i=document.getElementById("p_license");if(i.value){let t={orgid:e.toString(),license:i.value,id:(null==i?void 0:i.getAttribute("licval"))>0?i.getAttribute("licval"):null};n.push(t)}var s;console.log("dddd",this.morlicence),this.morlicence.forEach((t,i)=>{let s=document.querySelectorAll(".more_licence")[i];if(console.log("lobj",s),s.value){let t={orgid:e.toString(),license:s.value,id:(null==s?void 0:s.getAttribute("licval"))>0?s.getAttribute("licval"):null};n.push(t)}}),s={id:this.pgminfo.id,name:this.editProfileForm.value.p_providername,fax:this.editProfileForm.value.p_fax1,ext:this.editProfileForm.value.p_ph_ext1,phonenumber:this.editProfileForm.value.p_ph1,provideremail:null==this.pgminfo.provideremail?"":this.pgminfo.provideremail,domainname:null,alternatenumber:null==this.pgminfo.alternatenumber?"":this.pgminfo.alternatenumber,licensenumber:n,website:this.editProfileForm.value.p_website,admissionprocedure:this.editProfileForm.value.p_ap1,externaldescription:this.editProfileForm.value.p_desc1,legacyparentid:null,bsasfunded:1==this.editProfileForm.value.p_bsas1,orgaddress:[{id:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].id:"",addresstypeid:3,street:this.editProfileForm.value.p_street1,postalcode:this.editProfileForm.value.p_zip1,cityname:this.editProfileForm.value.p_city1,countryid:null,organizationid:this.pgminfo.id,stateid:this.editProfileForm.value.p_state1,addrstype:"Mailing Address",addressline2:this.editProfileForm.value.p_street2},{id:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].id:"",addresstypeid:1,street:this.editProfileForm.value.b_street1,postalcode:this.editProfileForm.value.b_zip1,cityname:this.editProfileForm.value.b_city1,countryid:null,stateid:this.editProfileForm.value.b_state1,organizationid:this.pgminfo.id,addrstype:"Physiacl Address",addressline2:this.editProfileForm.value.b_street2}]},console.log(s),this.loader=!0,this.disable=!0,this.overviewservice.saveProgramEdit(s).subscribe(t=>{console.log(t),this.loader=!1,this.disable=!1,this.modalService.dismissAll(),location.reload()})}changePhonenumberclone(t){console.log(t),console.log(this.phonemask_c),this.phonecheck_c=!0}onCloneSubmit(){if(this.err1=!0,this.submitted=!0,this.phonemask_c)var t="("+this.phonemask_c.slice(0,3)+")"+this.phonemask_c.slice(3,6)+"-"+this.phonemask_c.slice(6,10);if(console.log(t),this.cloneProfileForm.invalid&&(this.cf.p_providername_c.invalid||this.cf.b_street1_c.invalid||this.cf.b_zip1_c.invalid||this.cf.b_state1_c.invalid||this.cf.b_city1_c.invalid||this.cf.p_ph1_c.invalid||this.cf.p_bsas1_c.invalid))return;var e=this.pgminfo.id,n=[];let i=document.getElementById("p_license_c");if(i.value){let t={orgid:e.toString(),license:i.value,id:(null==i?void 0:i.getAttribute("licval"))>0?i.getAttribute("licval"):null};n.push(t)}var s;console.log("dddd",this.morlicence),this.morlicence.forEach((t,i)=>{let s=document.querySelectorAll(".more_licence")[i];if(console.log("lobj",s),s.value){let t={orgid:e.toString(),license:s.value,id:(null==s?void 0:s.getAttribute("licval"))>0?s.getAttribute("licval"):null};n.push(t)}}),s={id:this.pgminfo.id,name:this.cloneProfileForm.value.p_providername_c,fax:this.cloneProfileForm.value.p_fax1_c,ext:this.editProfileForm.value.p_ph_ext1_c,phonenumber:this.editProfileForm.value.p_ph1_c,provideremail:null==this.pgminfo.provideremail?"":this.pgminfo.provideremail,domainname:null,alternatenumber:null==this.pgminfo.alternatenumber?"":this.pgminfo.alternatenumber,licensenumber:n,admissionprocedure:this.cloneProfileForm.value.p_ap1_c,externaldescription:this.cloneProfileForm.value.p_desc1_c,legacyparentid:null,bsasfunded:1==this.cloneProfileForm.value.p_bsas1_c,orgaddress:[{id:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].id:"",addresstypeid:3,street:this.cloneProfileForm.value.p_street1_c,postalcode:this.cloneProfileForm.value.p_zip1_c,cityname:this.cloneProfileForm.value.p_city1_c,stateval:this.cloneProfileForm.value.p_state1_c,countryid:null,organizationid:this.pgminfo.id,contactid:null,addrstype:"Mailing Address"},{id:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].id:"",addresstypeid:1,street:this.cloneProfileForm.value.b_street1_c,postalcode:this.cloneProfileForm.value.b_zip1_c,cityname:this.cloneProfileForm.value.b_city1_c,stateval:this.cloneProfileForm.value.b_state1_c,countryid:null,organizationid:this.pgminfo.id,contactid:null,addrstype:"Physiacl Address"}]},console.log(s),this.loader=!0,this.disable=!0,this.phonecheck_c=this.editProfileForm.value.p_ph1_c,this.overviewservice.cloneOrganisation(s).subscribe(t=>{console.log(t),this.disable=!1,t&&this._router.navigate(["overview",{clone:!0}]),this.loader=!1}),this.modalService.dismissAll()}openEditProgram(t,e){this.err=!1,this.submitted=!1,this.overviewservice.getorganizationadress(this.pgminfo.id).subscribe(e=>{var n,i;console.log(e),this.orgaddress=e,this.modalService.open(t,{ariaLabelledBy:"modal-basic-title"}).result.then(t=>{this.closeResult=`Closed with: ${t}`},t=>{this.closeResult=`Dismissed ${this.getDismissReason(t)}`}),"23"!=this.orgaddress.PhysicalAddress[0].stateid&&(this.phyStatema=!1),this.orgaddress.MailingAddress&&"23"!=this.orgaddress.MailingAddress[0].stateid&&(this.mailstatema=!1);var s=this.pgminfo.licensenumber;if(s.length>0){this.morlicence=Array(s.length-1).fill(1).map((t,e)=>t+e),document.getElementById("p_license").setAttribute("licval",null===(n=s[0])||void 0===n?void 0:n.id)}setTimeout(()=>{var t,e;if(s.length>1)for(var n=0;n<s.length-1;n++){let i=document.querySelectorAll(".more_licence")[n];i.value=null===(t=s[n+1])||void 0===t?void 0:t.license,i.setAttribute("licval",null===(e=s[n+1])||void 0===e?void 0:e.id)}},200),this.editProfileForm.patchValue({p_providername:this.pgminfo.name,p_license:null===(i=s[0])||void 0===i?void 0:i.license,p_website:this.pgminfo.website,b_street1:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].street:"",b_street2:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].addressline2:"",b_city1:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].cityname:"",b_state1:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].stateid:"",p_desc1:this.pgminfo.externaldescription,p_ap1:this.pgminfo.admissionprocedure,p_ph1:this.pgminfo.phonenumber,p_bsas1:1==this.pgminfo.bsasfunded?1:0,p_ph_ext1:this.pgminfo.ext,b_zip1:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].postalcode:"",p_street1:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].street:"",p_street2:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].addressline2:"",p_city1:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].cityname:"",p_state1:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].stateid:"",p_zip1:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].postalcode:"",p_fax1:this.pgminfo.fax}),console.log(this.editProfileForm.value),this.phonemask=this.editProfileForm.value.p_ph1})}openDeleteProgram(t,e){console.log(e),this.modalService.open(t,{ariaLabelledBy:"modal-basic-title"}).result.then(t=>{this.closeResult=`Closed with: ${t}`},t=>{this.closeResult=`Dismissed ${this.getDismissReason(t)}`})}openCloneProgram(t,e){this.err1=!1,this.submitted=!1,this.overviewservice.getorganizationadress(this.pgminfo.id).subscribe(n=>{var i,s;console.log(n),this.orgaddress=n,console.log(e),this.modalService.open(t,{ariaLabelledBy:"modal-basic-title"}).result.then(t=>{this.closeResult=`Closed with: ${t}`},t=>{this.closeResult=`Dismissed ${this.getDismissReason(t)}`}),"23"!=this.orgaddress.PhysicalAddress[0].stateid&&(this.clophystatema=!1),"23"!=this.orgaddress.MailingAddress[0].stateid&&(this.clomailstatema=!1);var r=this.pgminfo.licensenumber;if(r.length>0){this.morlicence=Array(r.length-1).fill(1).map((t,e)=>t+e),document.getElementById("p_license_c").setAttribute("licval",null===(i=r[0])||void 0===i?void 0:i.id)}setTimeout(()=>{var t,e;if(r.length>1)for(var n=0;n<r.length-1;n++){let i=document.querySelectorAll(".more_licence")[n];i.value=null===(t=r[n+1])||void 0===t?void 0:t.license,i.setAttribute("licval",null===(e=r[n+1])||void 0===e?void 0:e.id)}},200),this.cloneProfileForm.patchValue({p_providername_c:this.pgminfo.name,p_license_c:null===(s=r[0])||void 0===s?void 0:s.license,b_street1_c:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].street:"",b_street2:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].addressline2:"",b_city1_c:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].cityname:"",b_state1_c:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].stateid:"",p_desc1_c:this.pgminfo.externaldescription,p_ap1_c:this.pgminfo.admissionprocedure,p_ph1_c:this.pgminfo.phonenumber,p_bsas1_c:1==this.pgminfo.bsasfunded?1:0,p_ph_ext_c:this.pgminfo.ext,b_zip1_c:this.orgaddress.PhysicalAddress?this.orgaddress.PhysicalAddress[0].postalcode:"",p_street1_c:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].street:"",p_street2:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].addressline2:"",p_city1_c:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].cityname:"",p_state1_c:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].stateid:"",p_zip1_c:this.orgaddress.MailingAddress?this.orgaddress.MailingAddress[0].postalcode:"",p_fax1_c:this.pgminfo.fax}),this.phonemask_c=this.cloneProfileForm.value.p_ph1_c,console.log(this.cloneProfileForm.value)})}deleteOrganisationdetails(t){var e;e={id:this.pgminfo.id,deletereasonid:t.value.delete_reason,notes:t.value.delete_notes},this.disable=!0,this.overviewservice.deleteOrganisation(e).subscribe(t=>{console.log(t),t?this._router.navigate(["overview",{delete:!0}]):alert("We are unable to delete this Program. Please try again after some time"),this.disable=!1}),this.modalService.dismissAll()}checkEditValue(t){console.log(t.target.checked),this.editProfileForm.get("b_street1").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.editProfileForm.get("b_street2").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.editProfileForm.get("b_city1").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.editProfileForm.get("b_state1").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.editProfileForm.get("b_zip1").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),t.target.checked?(this.editProfileForm.patchValue({p_street1:this.editProfileForm.get("b_street1").value,p_street2:this.editProfileForm.get("b_street2").value,p_city1:this.editProfileForm.get("b_city1").value,p_state1:this.editProfileForm.get("b_state1").value,p_zip1:this.editProfileForm.get("b_zip1").value}),console.log(this.editProfileForm.value.b_street1)):this.editProfileForm.patchValue({p_street1:"",p_street2:"",p_city1:"",p_state1:"",p_zip1:""})}checkCloneValue(t){console.log(t.target.checked),this.cloneProfileForm.get("b_street1_c").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.cloneProfileForm.get("b_street2_c").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.cloneProfileForm.get("b_city1_c").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.cloneProfileForm.get("b_state1_c").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.cloneProfileForm.get("b_zip1_c").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),t.target.checked?this.cloneProfileForm.patchValue({p_street1_c:this.cloneProfileForm.get("b_street1_c").value,p_street2_c:this.cloneProfileForm.get("b_street2_c").value,p_city1_c:this.cloneProfileForm.get("b_city1_c").value,p_state1_c:this.cloneProfileForm.get("b_state1_c").value,p_zip1_c:this.cloneProfileForm.get("b_zip1_c").value}):this.cloneProfileForm.patchValue({p_street1_c:"",p_street2_c:"",p_city1_c:"",p_state1_c:"",p_zip1_c:""})}getDismissReason(t){return t===iy.ESC?"by pressing ESC":t===iy.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}phystatechange(){this.editProfileForm.get("b_city1").setValue(""),this.phyStatema="23"==this.editProfileForm.value.b_state1}mailstatechange(){this.editProfileForm.get("p_city1").setValue(""),this.mailstatema="23"==this.editProfileForm.value.p_state1}clnphystatechg(){this.cloneProfileForm.get("b_city1_c").setValue(""),this.clophystatema="23"==this.cloneProfileForm.value.b_state1_c}clnmailstatechg(){this.cloneProfileForm.get("p_city1_c").setValue(""),this.clomailstatema="23"==this.cloneProfileForm.value.p_state1_c}moreLicence(t){let e=document.getElementById(t),n=this.morlicence.length+1;return this.morlicence.push(n),setTimeout(()=>{let t=document.querySelectorAll(".more_licence")[this.morlicence.length-1];console.log("input",t),t.value=e.value,t.setAttribute("licval",null==e?void 0:e.getAttribute("licval")),e.value="",e.setAttribute("licval",""),console.log(this.morlicence)},200),!1}removeLicence(t,e){this.remiveLic=t,this.rmIndex=e;let n=document.querySelectorAll(".more_licence")[this.rmIndex];if((null==n?void 0:n.getAttribute("licval"))>0)$("#descriptionModal").modal("show");else{let t=this.morlicence.indexOf(this.remiveLic);this.morlicence.splice(t,1)}return!1}confirmDelete(){if(this.remiveLic>0){let t=document.querySelectorAll(".more_licence")[this.rmIndex];console.log("licids",t);let e={id:t.getAttribute("licval")};console.log("payload",e),this.overviewservice.deleteLicence(e).subscribe(t=>{console.log(t)});let n=this.morlicence.indexOf(this.remiveLic);this.morlicence.splice(n,1)}$("#delclo").click(),this.deleteclose()}deleteclose(){setTimeout(()=>{$("body").addClass("modal-open")},1e3)}};B_.ctorParameters=()=>[{type:ay},{type:V_},{type:R_},{type:F_},{type:Wf.ActivatedRoute},{type:Wf.Router},{type:Yf.HttpClient},{type:Uf}],B_.propDecorators={pgminfo:[{type:s.Input}]},B_=Hh([Object(s.Component)({selector:"app-programinfo",template:'\t<ng-template #editcontent let-modal>\n\t\t<form id="update_provider_form" [formGroup]="editProfileForm" (ngSubmit)="onProviderSubmit()">\n\t\t<div class="modal-header">\n\t\t\t<h4 *ngIf="pgminfo.organizationtypeid==69" class="modal-title" id="modal-basic-title">Edit Provider Information</h4>\n\t\t\t<h4 *ngIf="pgminfo.organizationtypeid==68" class="modal-title" id="modal-basic-title">Edit Agency Information</h4>\n\t\t\t<button type="button" class="close" aria-label="Close" (click)="modal.dismiss(\'Cross click\')" style="margin-top:-16px;">\n\t\t\t  <span aria-hidden="true" style="font-size: 26px;">\xd7</span>\n\t\t\t</button>\n\t\t  </div>\n\t\t\t<div class="modal-body">\n\t\t\t\t<div id="update_provider">\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t<em>Fields marked with an (*) are mandatory and cannot be left blank/empty</em>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form_errors" *ngIf="err"> \n\t\t\t\t\t\t\t<div *ngIf="ef.p_providername.errors && submitted && pgminfo.organizationtypeid==69"><strong>Provider Name :</strong> is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.p_providername.errors && submitted && pgminfo.organizationtypeid==68"><strong>Agency Name :</strong> is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.b_street1.errors && submitted"><strong>Address Line 1 :</strong> is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.b_city1.errors && submitted"><strong>City</strong>: is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.b_state1.errors && submitted"><strong>State :</strong> is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.b_zip1.errors && submitted"><strong>ZIP :</strong> is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.p_ph1.errors && submitted"><strong>Phone Number :</strong> is required</div>\n\t\t\t\t\t\t\t<div *ngIf="ef.p_bsas1.errors && submitted"><strong>BSAS Funded? :</strong> is required</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t<div id="err_location" tabindex="0">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form_section_heading" *ngIf="pgminfo.organizationtypeid==69">Provider Details</div>\n\t\t\t\t\t\t<div class="form_section_heading" *ngIf="pgminfo.organizationtypeid==68">Agency Details</div>\t\t\t\t\t\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label *ngIf="pgminfo.organizationtypeid==69" for="p_name" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.p_providername.errors }">Provider Name : <span class="red required_text">*</span></label>\n\t\t\t\t\t\t\t\t\t<label *ngIf="pgminfo.organizationtypeid==68" for="p_name" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.p_providername.errors }">Agency Name : <span class="red required_text">*</span></label>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_name" id="p_name" class="form-control" formControlName="p_providername" [ngClass]="{ \'is-invalid\': submitted && ef.p_providername.errors }"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_website" class="control-label">Website : </label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_website" id="p_website" class="form-control" formControlName="p_website"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_license" class="control-label">License No# : </label>\n\t\t\t\t\t\t\t\t\t<p *ngFor="let itm of morlicence;let i =index;">\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_license" id="p_license{itm}" style="width: 85%;" class="form-control more_licence"/>\t<button (click)="removeLicence(itm,i)" class="button button_medium" title="Delete" style="float: right;margin-top: -32px;"><i class="fa fa-minus">&nbsp;</i></button>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_license" id="p_license" class="form-control" style="margin-bottom: 8px;width: 85%; float: left;" formControlName="p_license"/><button (click)="moreLicence(\'p_license\')" class="button button_medium" title="Add More" style="float: right;padding: 4px 12px;"><i class="fa fa-plus" style="margin-right: -2px;margin-top: 4px;">&nbsp;</i></button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<div class="form_section_heading">Address Details</div>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<p><u><em>Physical Address</em></u></p>\n\t\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t\t<em>Note: For public use</em>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="b_addr1" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.b_street1.errors }">Address Line 1 : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t<input type="text" name="b_addr1" id="b_addr1" class="form-control" formControlName="b_street1"  [ngClass]="{ \'is-invalid\': submitted && ef.b_street1.errors }" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="b_addr2" class="control-label">Address Line 2 :</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="b_addr2" id="b_addr2" class="form-control" formControlName="b_street2"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="b_city" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.b_city1.errors }">City : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t\x3c!-- <input type="text" name="b_city" id="b_city" class="form-control" formControlName="b_city1" [ngClass]="{ \'is-invalid\': submitted && ef.b_city1.errors }"/> --\x3e\n\t\t\t\t\t\t\t\t\t<select *ngIf="phyStatema" name="b_city" id="b_city" class="geocode"  formControlName="b_city1" [ngClass]="{ \'is-invalid\': submitted && ef.b_city1.errors }">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\t\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\n\t\t\t\t\t\t\t\t   </select>\n\t\t\t\t\t\t\t\t   <input type="text" *ngIf="!phyStatema" name="b_city" id="b_city" class="geocode"  formControlName="b_city1" [ngClass]="{ \'is-invalid\': submitted && ef.b_city1.errors }"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="b_state" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.b_state1.errors }">State : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t<select name="b_state" id="b_state" class="" formControlName="b_state1" [ngClass]="{ \'is-invalid\': submitted && ef.b_state1.errors }" (change)="phystatechange()">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="b_zip" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.b_zip1.errors }">ZIP : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t<input type="text" name="b_zip" id="b_zip" maxlength="5" class="form-control" formControlName="b_zip1" [ngClass]="{ \'is-invalid\': submitted && ef.b_zip1.errors }"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<p><u><em>Mailing Address</em></u></p>\n\t\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t\t<label><input type="checkbox" (change)="checkEditValue($event)" id="p_same" /> Same as Physical Address</label>\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_addr1" class="control-label">Address Line 1 :</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_addr1" id="p_addr1" class="form-control" formControlName="p_street1"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_addr2" class="control-label">Address Line 2 :</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_addr2" id="p_addr2" class="form-control" formControlName="p_street2"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_city" class="control-label">City :</label>\n\t\t\t\t\t\t\t\t\t\x3c!-- <input type="text" name="p_city" id="p_city" class="form-control" formControlName="p_city1" /> --\x3e\n\t\t\t\t\t\t\t\t\t<select *ngIf="mailstatema" name="p_city" id="p_city" class="geocode" formControlName="p_city1" >\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\t\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\n\t\t\t\t\t\t\t\t   </select>\n\t\t\t\t\t\t\t\t   <input type="text" *ngIf="!mailstatema" name="p_city" id="p_city" class="geocode" formControlName="p_city1" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_state" class="control-label">State :</label>\n\t\t\t\t\t\t\t\t\t<select name="p_state" id="p_state" (change)="mailstatechange();"  class="form-control" formControlName="p_state1">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_zip" class="control-label">ZIP :</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_zip" id="p_zip" maxlength="5" class="form-control" formControlName="p_zip1"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<div class="form_section_heading">Other Details</div>\t\t\t\t\t\t\t\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class="row">\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-7 col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_ph" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.p_ph1.errors }">Phone Number : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_ph" id="p_ph" class="form-control" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="p_ph1" [(ngModel)]="phonemask" (change)="changePhonenumber(phonemask)" [ngClass]="{ \'is-invalid\': submitted && ef.p_ph1.errors }"  [showMaskTyped]="true" [dropSpecialCharacters]="false"/>\n\t\t\t\t\t\t\t\t\t\t\t<p class="help-block">For ex : (###) ###-####</p>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-md-5 col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_ph_ext">Ext :</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_ph_ext" style="width:150px;" id="p_ph_ext" class="form-control" formControlName="p_ph_ext1"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_fax" class="control-label">Fax :</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_fax" id="p_fax" class="form-control" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="p_fax1" [showMaskTyped]="true" [dropSpecialCharacters]="false"/>\n\t\t\t\t\t\t\t\t\t<p class="help-block">For ex: (###) ###-####</p>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\x3c!-- <div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_domain" class="control-label">Domain : </label>\n\t\t\t\t\t\t\t\t\t<input type="text" id="p_domain" name ="p_domain" class= "form-control" formControlName="p_domain1"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_bsas" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && ef.p_bsas1.errors }">BSAS Funded? :</label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t<select name="p_bsas" id="p_bsas" class="form-control" formControlName="p_bsas1" [ngClass]="{ \'is-invalid\': submitted && ef.p_bsas1.errors }">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4 hide">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_dph" class="control-label">DPH Approved? :</label>\n\t\t\t\t\t\t\t\t\t<select name="p_dph" id="p_dph" class="form-control" formControlName="p_dsas1">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_adm_proc" class="control-label">Admission Procedure : </label>\n\t\t\t\t\t\t\t\t\t<textarea name="p_adm_proc" id="p_adm_proc" class="form-control" formControlName="p_ap1"></textarea>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_desc" class="control-label">Description : </label>\n\t\t\t\t\t\t\t\t\t<textarea name="p_desc" id="p_desc" class="form-control" formControlName="p_desc1"></textarea>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="modal-footer modal-center">\n\t\t\t\t<input type="hidden" name="org_to_update" id="org_to_update" value="" />\n\t\t\t\t<button type="button" class="button button_medium"  aria-label="Close" (click)="modal.dismiss(\'Cross click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\t\n\t\t\t\t<button id="update_provider_button" [disabled]="disable ? true : null" class="button button_medium" type="submit"><i class="fa fa-save">&nbsp;</i>Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\t\t\t</div>\n\t\t</form>\n</ng-template>\n<ng-template #deletecontent let-modal>\n\t\t\t<form id="delete_provider_form" #deleteForm="ngForm" (ngSubmit)="deleteOrganisationdetails(deleteForm)">\n\t\t\t\t<div class="modal-header">\n\t\t\t\t\t<h4 class="modal-title" id="modal-basic-title">Delete Program</h4>\n\t\t\t\t\t<button type="button" class="close" style="margin-top: -16px;" aria-label="Close" (click)="modal.dismiss(\'Cross click\')">\n\t\t\t\t\t  <span aria-hidden="true" style="font-size: 26px;">\xd7</span>\n\t\t\t\t\t</button>\n\t\t\t\t  </div>\n\t\t\t<div class="modal-body">\n\t\t\t\t<div id="delete_provider">\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t<p>Deleting a program will remove it from the Helpline system. If you want to remove this program from your profile, but leave it active in the Helpline system, visit <strong>"Manage Users."</strong></p>\n\n                             <p>To delete this program from the Helpline system, select a reason below. By confirming deletion, this program will immediately be removed from Helpline search results and your Provider Portal profile.</p>\n\t\t\t\t\t\t\t<select name="delete_reason" id="delete_reason" class="form-control" [(ngModel)]=\'deletereason\'>\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1044">This program is closed</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1045">This program is a duplicate</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1046">This prog is operated by a diff agency</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1047">Other</option>\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<label for="delete_notes_label" class="control-label">Note to Helpline Administrator : </label>\n\t\t\t\t\t\t\t\t\t<textarea name="delete_notes" id="delete_notes" class="form-control" [(ngModel)]=\'deletenotes\'></textarea>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="modal-footer modal-center">\n\t\t\t\t<input type="hidden" name="org_to_delete" id="org_to_delete" value="" />\n\t\t\t\t<button type="button" class="button button_medium"  aria-label="Close" (click)="modal.dismiss(\'Cross click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\t\n\t\t\t\t<button id="delete_provider_button" class="button button_medium" [disabled]="disable ? true : null" type="submit"><i class="fa fa-save">&nbsp;</i>Save</button>\n\t\t\t</div>\n\t\t\t</form>\n</ng-template>\n<ng-template #clonecontent let-modal>\n<form id="clone_provider_form" [formGroup]="cloneProfileForm" (ngSubmit)="onCloneSubmit()">\n\t<div class="modal-header">\n\t\t<h4 class="modal-title" id="modal-basic-title">Clone Program</h4>\n\t\t<button type="button" class="close" style="margin-top: -16px;" aria-label="Close" (click)="modal.dismiss(\'Cross click\')">\n\t\t  <span aria-hidden="true" style="font-size: 26px;">\xd7</span>\n\t\t</button>\n\t  </div>\n<div class="modal-body">\n\t<div id="clone_provider1">\n\t\t<div class="row">\n\t\t\t<div class="col-sm-12">\n\t\t\t\t<div>Cloning a program sends a request to the Helpline to create a new program with the same attributes as the original program. Attributes include features of the program, like services offered and clients served. You may enter contact details below for the new program. You will be notified when your request for the new program has been processed. </div>\n\t\t\t\t<div class="top10">\n\t\t\t\t\t<em>Fields marked with an (*) are mandatory and cannot be left blank/empty</em>\n\t\t\t\t</div>\n\t\t\t\t<div *ngIf="err1">\n\t\t\t\t<div class="form_errors" >\n\t\t\t\t\t<div *ngIf="cf.p_providername_c.errors && submitted && pgminfo.organizationtypeid==69"><strong>Provider Name :</strong> is required</div>\n\t\t\t\t\t<div *ngIf="cf.p_providername_c.errors && submitted && pgminfo.organizationtypeid==68"><strong>Agency Name :</strong> is required</div>\n\t\t\t\t\t<div *ngIf="cf.b_street1_c.errors && submitted"><strong>Address Line 1 :</strong> is required</div>\n\t\t\t\t\t<div *ngIf="cf.b_city1_c.errors && submitted"><strong>City</strong>: is required</div>\n\t\t\t\t\t<div *ngIf="cf.b_state1_c.errors && submitted"><strong>State :</strong> is required</div>\n\t\t\t\t\t<div *ngIf="cf.b_zip1_c.errors && submitted"><strong>ZIP :</strong> is required</div>\n\t\t\t\t\t<div *ngIf="cf.p_ph1_c.errors && submitted"><strong>Phone Number :</strong> is required</div>\n\t\t\t\t\t<div *ngIf="cf.p_bsas1_c.errors && submitted"><strong>BSAS Funded? :</strong> is required</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t<div class="row">\n\t\t\t<div class="col-sm-12">\n\t\t\t\t<div id="err_location" tabindex="0">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\t\t\t\t\t\n\t\t\t<div class="form_section_heading" *ngIf="pgminfo.organizationtypeid==69">Provider Details</div>\t\n\t\t\t<div class="form_section_heading" *ngIf="pgminfo.organizationtypeid==68">Agency Details</div>\t\t\t\t\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label *ngIf="pgminfo.organizationtypeid==69" for="p_name_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.p_providername_c.errors }">Provider Name : <span class="red required_text">*</span></label>\n\t\t\t\t\t\t<label *ngIf="pgminfo.organizationtypeid==68" for="p_name_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.p_providername_c.errors }">Agency Name : <span class="red required_text">*</span></label>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<input type="text" name="p_name_c" id="p_name_c" class="form-control" formControlName="p_providername_c" [ngClass]="{ \'is-invalid\': submitted && cf.p_providername_c.errors }"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_license" class="control-label">License No# : </label>\n\t\t\t\t\t\t<p *ngFor="let itm of morlicence;let i =index;">\n\t\t\t\t\t\t\t<input type="text" name="p_license" id="p_license{itm}" style="width: 85%;" class="form-control more_licence"/>\t<button (click)="removeLicence(itm,i)" class="button button_medium" title="Delete" style="float: right;margin-top: -32px;"><i class="fa fa-minus">&nbsp;</i></button>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<input type="text" name="p_license_c" id="p_license_c" class="form-control" style="margin-bottom: 8px;width: 85%; float: left;" formControlName="p_license_c"/>\n\t\t\t\t\t\t<button (click)="moreLicence(\'p_license_c\')" class="button button_medium" title="Add More" style="float: right;padding: 4px 12px;"><i class="fa fa-plus" style="margin-right: -2px;margin-top: 4px;">&nbsp;</i></button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="form_section_heading">Address Details</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<p><u><em>Physical Address</em></u></p>\n\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t<em>Note : For public use</em>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="b_addr1_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.b_street1_c.errors }">Address Line 1 : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<input type="text" name="b_addr1_c" id="b_addr1_c" class="form-control" formControlName="b_street1_c" [ngClass]="{ \'is-invalid\': submitted && cf.b_street1_c.errors }"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="b_addr2_c" class="control-label">Address Line 2 :</label>\n\t\t\t\t\t\t<input type="text" name="b_addr2_c" id="b_addr2_c" class="form-control" formControlName="b_street2_c"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="b_city_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.b_city1_c.errors }">City : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\x3c!--<input type="text" name="b_city_c" id="b_city_c" class="form-control" /> --\x3e\n\t\t\t\t\t\t<select *ngIf="clophystatema" name="b_city_c" id="b_city_c" class="geocode" formControlName="b_city1_c" [ngClass]="{ \'is-invalid\': submitted && cf.b_city1_c.errors }">\n\t\t\t\t\t\t\t<option value="">Select One</option>\t\n\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\n\t\t\t\t\t   </select>\n\t\t\t\t\t   <input type="text"  *ngIf="!clophystatema" name="b_city_c" id="b_city_c" class="geocode" formControlName="b_city1_c" [ngClass]="{ \'is-invalid\': submitted && cf.b_city1_c.errors }" />\n\t\t\t\t\t\t<input type="text" name="tb_b_city_c" id="tb_b_city_c" class="form-control geocode hide" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="b_state_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.b_state1_c.errors }">State : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<select name="b_state_c" id="b_state_c" (change)="clnphystatechg()" class="" formControlName="b_state1_c" [ngClass]="{ \'is-invalid\': submitted && cf.b_state1_c.errors }">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="b_zip_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.b_zip1_c.errors }">ZIP : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<input type="text" name="b_zip_c" id="b_zip_c" maxlength="5" class="form-control" formControlName="b_zip1_c" [ngClass]="{ \'is-invalid\': submitted && cf.b_zip1_c.errors }"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<p><u><em>Mailing Address</em></u></p>\n\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t<label><input type="checkbox" id="p_same_c" (change)="checkCloneValue($event)"/> Same as Physical Address</label>\n\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_addr1" class="control-label">Address Line 1 :</label>\n\t\t\t\t\t\t<input type="text" name="p_addr1_c" id="p_addr1_c" class="form-control" formControlName="p_street1_c"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_addr2" class="control-label">Address Line 2 :</label>\n\t\t\t\t\t\t<input type="text" name="p_addr2_c" id="p_addr2_c" class="form-control" formControlName="p_street2_c"/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_city" class="control-label">City :</label>\n\t\t\t\t\t\t\x3c!--<input type="text" name="p_city_c" id="p_city_c" class="form-control" /> --\x3e\n\t\t\t\t\t\t<select *ngIf="clomailstatema" name="p_city_c" id="p_city_c" class="geocode" formControlName="p_city1_c">\n\t\t\t\t\t\t\t<option value="">Select One</option>\t\n\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\n\t\t\t\t\t   </select>\n\t\t\t\t\t   <input type="text" *ngIf="!clomailstatema" name="p_city_c" id="p_city_c" class="geocode" formControlName="p_city1_c" />\n\t\t\t\t\t\t<input type="text" name="tb_p_city_c" id="tb_p_city_c" class="form-control geocode hide" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_state_c" class="control-label">State :</label>\n\t\t\t\t\t\t<select name="p_state_c" id="p_state_c" (change)="clnmailstatechg()" class="" formControlName="p_state1_c">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_zip_c" class="control-label">ZIP :</label>\n\t\t\t\t\t\t<input type="text" name="p_zip_c" id="p_zip_c" maxlength="5" class="form-control" formControlName="p_zip1_c"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\t\t\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="form_section_heading">Other Details</div>\t\t\t\t\t\t\t\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\n\t\t\t\t\t\t<div class="row">\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class="col-md-7 col-sm-12">\n\t\t\t\t\t\t\t\t<label for="p_ph_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.p_ph1_c.errors }">Phone Number : </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t<input type="text" name="p_ph_c" id="p_ph_c" class="form-control" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="p_ph1_c" [(ngModel)]="phonemask_c" (change)="changePhonenumberclone(phonemask_c)" [ngClass]="{ \'is-invalid-label\': submitted && cf.p_ph1_c.errors }" [showMaskTyped]="true" [dropSpecialCharacters]="false"/>\n\t\t\t\t\t\t\t\t<p class="help-block">For ex: (###) ###-####</p>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-md-5 col-sm-12">\n\t\t\t\t\t\t\t\t<label for="p_ph_ext_c">Ext:</label>\n\t\t\t\t\t\t\t\t<input type="text" name="p_ph_ext_c" style="width:150px;" id="p_ph_ext_c" class="form-control" formControlName="p_ph_ext1_c"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_fax_c" class="control-label">Fax :</label>\n\t\t\t\t\t\t<input type="text" name="p_fax_c" id="p_fax_c" class="form-control" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="p_fax1_c" [showMaskTyped]="true" [dropSpecialCharacters]="false"/>\n\t\t\t\t\t\t<p class="help-block">For ex: (###) ###-####</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\n\t\t\t</div>\t\t\t\t\t\t\t\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_bsas_c" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && cf.p_bsas1_c.errors }">BSAS Funded? </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<select name="p_bsas_c" id="p_bsas_c" class="" formControlName="p_bsas1_c" [ngClass]="{ \'is-invalid\': submitted && cf.p_bsas1_c.errors }">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4 hide">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_dph_c" class="control-label">DPH Approved? </label>\n\t\t\t\t\t\t<select name="p_dph_c" id="p_dph_c" class="form-control" formControlName="p_dsas1_c">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_adm_proc_c" class="control-label">Admission Procedure : </label>\n\t\t\t\t\t\t<textarea name="p_adm_proc_c" id="p_adm_proc_c" class="form-control" formControlName="p_ap1_c"></textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="p_desc_c" class="control-label">Description : </label>\n\t\t\t\t\t\t<textarea name="p_desc_c" id="p_desc_c" class="form-control" formControlName="p_desc1_c"></textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t</div>\n</div>\n<div class="modal-footer modal-center">\n\t<input type="hidden" name="org_to_clone" id="org_to_clone" value="" />\n\t<button type="button" class="button button_medium"  aria-label="Close" (click)="modal.dismiss(\'Cross click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\t\n\t<button id="clone_provider_button" [disabled]="disable ? true : null" class="button button_medium"><i class="fa fa-save">&nbsp;</i>Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n</div>\n</form>\n</ng-template>\n<div class="dashboard_box provider_hover_edit" *ngIf="pgminfo">\n\t<h3 class="dasboard_box_heading" *ngIf="pgminfo.organizationtypeid==69">Program Info</h3>\n\t<h3 class="dasboard_box_heading" *ngIf="pgminfo.organizationtypeid==68">Agency Info</h3>\n\t<div id="provider_details" *ngIf="pgminfo">\n\t\t<table class="table table-condensed">\n\t\t\t<tbody>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label">Name:</td>\n\t\t\t\t\t<td><span id="load_name">{{pgminfo.name}}</span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label">License No#:</td>\n\t\t\t\t\t<td><span id="load_license" *ngFor="let li of pgminfo.licensenumber;let i=index">{{li.license}}<span *ngIf="i!=pgminfo.licensenumber.length-1">,\n\t\t\t\t\t</span></span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label">Physical Address:</td>\n\t\t\t\t\t<td *ngIf="pgminfo.orgaddress!=null && pgminfo.orgaddress[0].addresstypeid==1">\n\t\t\t\t\t\t<span id="load_address" *ngIf="pgminfo.orgaddress[0].street">{{pgminfo.orgaddress[0].street!=null?pgminfo.orgaddress[0].street!=\'\'?pgminfo.orgaddress[0].street +\', \':\'\':\'\'}}</span>\n\t\t\t\t\t\t <span *ngIf="pgminfo.orgaddress[0].cityname">{{pgminfo.orgaddress[0].cityname!=null?pgminfo.orgaddress[0].cityname!=\'\'?pgminfo.orgaddress[0].cityname +\', \':\'\':\'\' }}</span>\n\t\t\t\t\t\t <span *ngIf="pgminfo.orgaddress[0].stateval">{{pgminfo.orgaddress[0].stateval!=null?pgminfo.orgaddress[0].stateval!=\'\'?pgminfo.orgaddress[0].stateval:\'\':\'\'}}</span>\n\t\t\t\t\t\t  <span *ngIf="pgminfo.orgaddress[0].postalcode"> {{pgminfo.orgaddress[0].postalcode!=null?pgminfo.orgaddress[0].postalcode!=\'\'?pgminfo.orgaddress[0].postalcode:\'\':\'\'}}</span>\n\t\t\t\t\t</td>\n\t\t\t\t\t<td *ngIf="pgminfo.orgaddress!=null && pgminfo.orgaddress[0].addresstypeid!=1">\n\t\t\t\t\t\t<span id="load_address" *ngIf="pgminfo.orgaddress[1]?.street">\n\t\t\t\t\t\t\t{{pgminfo.orgaddress[1]?pgminfo.orgaddress[1].street!=null?pgminfo.orgaddress[1].street+\', \':\'\':\'\'}} </span>\n\t\t\t\t\t\t\t<span *ngIf="pgminfo.orgaddress[1].cityname"> {{pgminfo.orgaddress[1]?pgminfo.orgaddress[1].cityname!=null?pgminfo.orgaddress[1].cityname+\', \':\'\':\'\'}}, </span>\n\t\t\t\t\t\t\t<span *ngIf="pgminfo.orgaddress[1].stateval"> {{pgminfo.orgaddress[1]?pgminfo.orgaddress[1].stateval!=null?pgminfo.orgaddress[1].stateval:\'\':\'\'}}</span> &nbsp;\n\t\t\t\t\t\t\t<span *ngIf="pgminfo.orgaddress[1].postalcode">{{pgminfo.orgaddress[1]?pgminfo.orgaddress[1].postalcode!=null?pgminfo.orgaddress[1].postalcode:\'\':\'\'}}</span></td>\n\t\t\t\t\t\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label">Phone Number:</td>\n\t\t\t\t\t<div *ngIf="pgminfo.phonenumber!=null" style="display: contents">\n\t\t\t\t\t<td style="padding-left: 6px;" *ngIf="pgminfo.phonenumber!=\'\' && pgminfo.phonenumber[0]==\'(\'"><span id="load_phone">{{pgminfo.phonenumber}}</span></td>\n\t\t\t\t\t<td style="padding-left: 6px;" *ngIf="pgminfo.phonenumber!=\'\' && pgminfo.phonenumber[0]!=\'(\'"><span id="load_phone">({{pgminfo.phonenumber | slice:0:3}}){{pgminfo.phonenumber | slice:3:6}}-{{pgminfo.phonenumber | slice:6:10}}</span></td>\n\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label" style="padding-right: 8px;">Admission Procedure:</td>\n\t\t\t\t\t<td><span id="load_ap">{{pgminfo.admissionprocedure}}</span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label">Description:</td>\n\t\t\t\t\t<td><span id="load_desc">{{pgminfo.externaldescription}}</span></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class="td_label">BSAS Funded?</td>\n\t\t\t\t\t<td  *ngIf="pgminfo.bsasfunded==true"><span id="load_bsas"><img src=\'../../../assets/images/icons/approved.png\'></span></td>\n\t\t\t\t\t<td  *ngIf="pgminfo.bsasfunded==false"><span id="load_bsas"><img src=\'../../../assets/images/icons/denied.png\'></span></td>\n\t\t\t\t</tr>\n\t\t\t</tbody>\n\t\t</table>\n\t\t<div class="text-right" *ngIf="pgminfo.organizationtypeid==69 && permissions" style="padding-right:7px;">\n\t\t<div *ngIf="permissions.admin">\n\t\t\t<a id="edit_provider"  (click)="openEditProgram(editcontent,pgminfo)"  role="button"><strong>Edit Details</strong></a>\n\t\t\t \x3c!-- <a id="edit_provider" *ngIf="permissions.admin==false"  role="button"><strong>Edit Details</strong></a> --\x3e\n\t\t\t |\n\t\t\t<a id="delete_provider"  (click)="openDeleteProgram(deletecontent,pgminfo)"  role="button"><strong>Delete this program</strong></a>\n\t\t\t \x3c!-- <a id="delete_provider" *ngIf="permissions.admin==false"  role="button"><strong>Delete this program</strong></a> --\x3e\n\t\t\t |\n\t\t\t<a id="clone_provider"    (click)="openCloneProgram(clonecontent,pgminfo)"  role="button"><strong>Clone this program</strong></a>\n\t\t\t\x3c!-- <a id="clone_provider"   *ngIf="permissions.admin==false"  role="button"><strong>Clone this program</strong></a> --\x3e\n\t\t\n\t\t</div> \n\t\t</div>\n\t\t<div class="text-right" *ngIf="pgminfo.organizationtypeid==68" style="padding-right:7px;">\n\t\t\t<a id="edit_provider" (click)="openEditProgram(editcontent,pgminfo)"  role="button"><strong>Edit Details</strong></a>\n\t\t\t\t| \n\t\t\t   <a id="delete_provider" (click)="openDeleteProgram(deletecontent,pgminfo)"  role="button"><strong>Delete this agency</strong></a>\n\t\t\t   | \n\t\t\t   <a id="clone_provider" (click)="openCloneProgram(clonecontent,pgminfo)"  role="button"><strong>Clone this agency</strong></a>\n\t\t   </div>\n\t</div>\n\t<div title="Edit Information" id="provider_info_overlay"></div>\n</div>\n<div id="descriptionModal" class="modal fade" role="dialog" style="z-index: 9999999999 !important;">\n\t<div class="modal-dialog" style="z-index: 9999999999 !important; width: 30% !important;">\n\t\t<div class="modal-content" id="modelContent">\n\t\t\t<div class="modal-header p-2" style="background-color: #784f74;color: #fff;margin: 10px;">\n\t\t\t\t<h4 class="modal-title font-16">Delete Licence</h4>\n\t\t\t\t<button type="button" class="close" id="delclo" (click)="deleteclose();" style="margin-top:-18px;width: auto; color: #fff;" data-dismiss="modal">\xd7</button>\n\t\t\t</div>\n\t\t\t<div class="modal-body pt-0">\n\t\t\t\t<p style="font-size: 16px;text-align: center;margin: 10px 10px 24px 10px;">Are you sure want to delete this licence number</p>\n\t\t\t\t<p style="text-align: center;"><button class="button button_medium" (click)="confirmDelete();">Ok</button></p>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n<div style="text-align: center;margin-top: 10px;">\n\t<a id="clone_provider" style="text-decoration: underline;font-size: 16px;\n\t" *ngIf="pgminfo" target="_blank" [routerLink]="[\'/provider_details\',pgminfo.id]"  role="button"> <strong>Program Preview</strong></a></div>',styles:["a#edit_provider, a#delete_provider, a#clone_provider {\n  color: #8c5c8d;\n}\n\n#edit_provider:hover, #delete_provider:hover, #clone_provider:hover {\n  text-decoration: underline;\n  cursor: pointer;\n}\n\n.is-invalid {\n  border: 1px solid #a94442 !important;\n}\n\n.is-invalid-label {\n  color: #a94442 !important;\n}\n\n.form_errors {\n  background-color: #13518e;\n  border-color: #13518e;\n  color: #fff;\n  width: 100%;\n  margin: 10px;\n  border-radius: 5px;\n  font-size: 16px;\n}\n\n.form_errors strong {\n  padding-left: 10px;\n}\n\ntd.td_label {\n  border-right: 1px solid #c3c3c3 !important;\n}"]})],B_);var H_=n("3UWI"),z_=n("Kj3r"),U_=n("eNwd"),q_=n("7Hc7");const $_=/[&<>"']/g,W_=RegExp($_.source),Y_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function G_(t){return null!=t}function K_(t){return"object"==typeof t&&G_(t)}function Z_(t){return t instanceof Function}class X_{constructor(t){this.element=t,this.escape=!0}ngOnChanges(t){var e;this.element.nativeElement.innerHTML=this.escape?(e=this.ngItemLabel)&&W_.test(e)?e.replace($_,t=>Y_[t]):e:this.ngItemLabel}}X_.decorators=[{type:s.Directive,args:[{selector:"[ngItemLabel]"}]}],X_.ctorParameters=()=>[{type:s.ElementRef}],X_.propDecorators={ngItemLabel:[{type:s.Input}],escape:[{type:s.Input}]};class Q_{constructor(t){this.template=t}}Q_.decorators=[{type:s.Directive,args:[{selector:"[ng-option-tmp]"}]}],Q_.ctorParameters=()=>[{type:s.TemplateRef}];class J_{constructor(t){this.template=t}}J_.decorators=[{type:s.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],J_.ctorParameters=()=>[{type:s.TemplateRef}];class tw{constructor(t){this.template=t}}tw.decorators=[{type:s.Directive,args:[{selector:"[ng-label-tmp]"}]}],tw.ctorParameters=()=>[{type:s.TemplateRef}];class ew{constructor(t){this.template=t}}ew.decorators=[{type:s.Directive,args:[{selector:"[ng-multi-label-tmp]"}]}],ew.ctorParameters=()=>[{type:s.TemplateRef}];class nw{constructor(t){this.template=t}}nw.decorators=[{type:s.Directive,args:[{selector:"[ng-header-tmp]"}]}],nw.ctorParameters=()=>[{type:s.TemplateRef}];class iw{constructor(t){this.template=t}}iw.decorators=[{type:s.Directive,args:[{selector:"[ng-footer-tmp]"}]}],iw.ctorParameters=()=>[{type:s.TemplateRef}];class sw{constructor(t){this.template=t}}sw.decorators=[{type:s.Directive,args:[{selector:"[ng-notfound-tmp]"}]}],sw.ctorParameters=()=>[{type:s.TemplateRef}];class rw{constructor(t){this.template=t}}rw.decorators=[{type:s.Directive,args:[{selector:"[ng-typetosearch-tmp]"}]}],rw.ctorParameters=()=>[{type:s.TemplateRef}];class aw{constructor(t){this.template=t}}aw.decorators=[{type:s.Directive,args:[{selector:"[ng-loadingtext-tmp]"}]}],aw.ctorParameters=()=>[{type:s.TemplateRef}];class ow{constructor(t){this.template=t}}ow.decorators=[{type:s.Directive,args:[{selector:"[ng-tag-tmp]"}]}],ow.ctorParameters=()=>[{type:s.TemplateRef}];class lw{constructor(t){this.template=t}}lw.decorators=[{type:s.Directive,args:[{selector:"[ng-loadingspinner-tmp]"}]}],lw.ctorParameters=()=>[{type:s.TemplateRef}];class cw{warn(t){console.warn(t)}}function dw(){return"axxxxxxxxxxx".replace(/[x]/g,function(t){return(16*Math.random()|0).toString(16)})}cw.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],cw.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new cw},token:cw,providedIn:"root"});const pw={"\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 uw(t){return t.replace(/[^\u0000-\u007E]/g,t=>pw[t]||t)}class hw{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&&G_(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=uw(t).toLocaleLowerCase(),this.filteredItems.find(e=>uw(e.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t)return void this.resetFilteredItems();this._filteredItems=[],t=this._ngSelect.searchFn?t:uw(t).toLocaleLowerCase();const e=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(const i of Array.from(this._groups.keys())){const s=[];for(const r of this._groups.get(i)){if(n&&(r.parent&&r.parent.selected||r.selected))continue;e(t,this._ngSelect.searchFn?r.value:r)&&s.push(r)}if(s.length>0){const[t]=s.slice(-1);if(t.parent){const e=this._items.find(e=>e===t.parent);this._filteredItems.push(e)}this._filteredItems.push(...s)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=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(!K_(t))return t;if(-1===e.indexOf("."))return t[e];{let n=e.split("."),i=t;for(let t=0,e=n.length;t<e;++t){if(null==i)return null;i=i[n[t]]}return i}}mapItem(t,e){const n=G_(t.$ngOptionLabel)?t.$ngOptionLabel:this.resolveNested(t,this._ngSelect.bindLabel),i=G_(t.$ngOptionValue)?t.$ngOptionValue:t;return{index:e,label:G_(n)?n.toString():"",value:i,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,i=G_(n)?this.findItem(n):null;this._selectionModel.unselect(e,t),this._selectionModel.select(i||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){if(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))}else t.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==t))}_defaultSearchFn(t,e){return uw(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 i of t){const t=(i.value[e]||[]).map((t,e)=>this.mapItem(t,e));n.set(i,t)}return n}const i=Z_(this._ngSelect.groupBy),s=t=>{let n=i?e(t.value):t.value[e];return G_(n)?n:void 0};for(const r of t){let t=s(r);const e=n.get(t);e?e.push(r):n.set(t,[r])}return n}_flatten(t){const e=Z_(this._ngSelect.groupBy),n=[];for(const i of Array.from(t.keys())){let s=n.length;if(void 0===i){const e=t.get(void 0)||[];n.push(...e.map(t=>(t.index=s++,t)));continue}const r=K_(i),a={label:r?"":String(i),children:void 0,parent:null,index:s++,disabled:!this._ngSelect.selectableGroup,htmlId:dw()},o=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,l=this._ngSelect.groupValue||(()=>r?i.value:{[o]:i}),c=t.get(i).map(t=>(t.parent=a,t.children=void 0,t.index=s++,t));a.children=c,a.value=l(i,c.map(t=>t.value)),n.push(a),n.push(...c)}return n}}const mw={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};mw[mw.Tab]="Tab",mw[mw.Enter]="Enter",mw[mw.Esc]="Esc",mw[mw.Space]="Space",mw[mw.ArrowUp]="ArrowUp",mw[mw.ArrowDown]="ArrowDown",mw[mw.Backspace]="Backspace";class fw{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(t,e,n){const i=this._dimensions,s=i.itemHeight*e,r=Math.max(0,t)/s*e;let a=Math.min(e,Math.ceil(r)+(i.itemsPerViewport+1));const o=a,l=Math.max(0,o-i.itemsPerViewport);let c=Math.min(l,Math.floor(r)),d=i.itemHeight*Math.ceil(c)-i.itemHeight*Math.min(c,n);return d=isNaN(d)?0:d,c=isNaN(c)?-1:c,a=isNaN(a)?-1:a,c-=n,c=Math.max(0,c),a+=n,a=Math.min(e,a),{topPadding:d,scrollHeight:s,start:c,end:a}}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:i}=this.dimensions,s=t+e,r=n+i;return i>=s&&n===t?null:s>r?n+s-r:t<=n?t:null}}fw.decorators=[{type:s.Injectable}];const gw="undefined"!=typeof requestAnimationFrame?U_.b:q_.b;class bw{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.EventEmitter,this.scroll=new s.EventEmitter,this.scrollToEnd=new s.EventEmitter,this.outsideClick=new s.EventEmitter,this._destroy$=new Gf.a,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 i;if(this.virtualScroll){const t=this._panelService.dimensions.itemHeight;i=this._panelService.getScrollTo(n*t,t,this._lastScrollPosition)}else{const n=this._dropdown.querySelector(`#${t.htmlId}`),s=e?n.offsetTop:this._lastScrollPosition;i=this._panelService.getScrollTo(n.offsetTop,n.clientHeight,s)}G_(i)&&(this._scrollablePanel.scrollTop=i)}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,"ng-select-top"),this._renderer.removeClass(this._dropdown,"ng-select-bottom"),this._renderer.addClass(this._select,"ng-select-top"),this._renderer.removeClass(this._select,"ng-select-bottom")):(this._renderer.addClass(this._dropdown,"ng-select-bottom"),this._renderer.removeClass(this._dropdown,"ng-select-top"),this._renderer.addClass(this._select,"ng-select-bottom"),this._renderer.removeClass(this._select,"ng-select-top")),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_handleScroll(){this._zone.runOutsideAngular(()=>{Object(fg.a)(this.scrollElementRef.nativeElement,"scroll").pipe(Object(xg.a)(this._destroy$),Object(H_.a)(0,gw)).subscribe(t=>{const e=t.path||t.composedPath&&t.composedPath(),n=e&&0!==e.length?e[0].scrollTop:t.target.scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Object(gg.a)(Object(fg.a)(this._document,"touchstart",{capture:!0}),Object(fg.a)(this._document,"mousedown",{capture:!0})).pipe(Object(xg.a)(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(()=>{const e=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,e),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;t=t||this._scrollablePanel.scrollTop;const e=this._panelService.calculateItems(t,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})}),G_(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;this._virtualPadding.style.height=e*this.itemsLength+"px";const n=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(e,n),this._panelService.dimensions})}_fireScrollToEnd(t){if(this._scrollToEndFired||0===t)return;const e=this.virtualScroll?this._virtualPadding:this._contentPanel;t+this._dropdown.clientHeight>=e.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(),n=t.left-e.left;this._dropdown.style.left=n+"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;if("top"===this._currentPosition){const i=e.bottom-t.bottom;this._dropdown.style.bottom=i+n+"px",this._dropdown.style.top="auto"}else if("bottom"===this._currentPosition){const i=t.top-e.top;this._dropdown.style.top=i+n+"px",this._dropdown.style.bottom="auto"}}}bw.decorators=[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n        <div *ngIf="headerTemplate" class="ng-dropdown-header">\n            <ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>\n        </div>\n        <div #scroll class="ng-dropdown-panel-items scroll-host">\n            <div #padding [class.total-padding]="virtualScroll"></div>\n            <div #content [class.scrollable-content]="virtualScroll && items.length">\n                <ng-content></ng-content>\n            </div>\n        </div>\n        <div *ngIf="footerTemplate" class="ng-dropdown-footer">\n            <ng-container [ngTemplateOutlet]="footerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>\n        </div>\n    '}]}],bw.ctorParameters=()=>[{type:s.Renderer2},{type:s.NgZone},{type:fw},{type:s.ElementRef},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cu.DOCUMENT]}]}],bw.propDecorators={items:[{type:s.Input}],markedItem:[{type:s.Input}],position:[{type:s.Input}],appendTo:[{type:s.Input}],bufferAmount:[{type:s.Input}],virtualScroll:[{type:s.Input}],headerTemplate:[{type:s.Input}],footerTemplate:[{type:s.Input}],filterValue:[{type:s.Input}],update:[{type:s.Output}],scroll:[{type:s.Output}],scrollToEnd:[{type:s.Output}],outsideClick:[{type:s.Output}],contentElementRef:[{type:s.ViewChild,args:["content",{read:s.ElementRef,static:!0}]}],scrollElementRef:[{type:s.ViewChild,args:["scroll",{read:s.ElementRef,static:!0}]}],paddingElementRef:[{type:s.ViewChild,args:["padding",{read:s.ElementRef,static:!0}]}],handleMousedown:[{type:s.HostListener,args:["mousedown",["$event"]]}]};class vw{constructor(t){this.elementRef=t,this.stateChange$=new Gf.a,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}`}}vw.decorators=[{type:s.Component,args:[{selector:"ng-option",changeDetection:s.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],vw.ctorParameters=()=>[{type:s.ElementRef}],vw.propDecorators={value:[{type:s.Input}],disabled:[{type:s.Input}]};class yw{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"}}yw.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],yw.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new yw},token:yw,providedIn:"root"});const _w=new s.InjectionToken("ng-select-selection-model");class ww{constructor(t,e,n,i,r,a,o){this.classes=t,this.autoFocus=e,this._cd=a,this._console=o,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.EventEmitter,this.focusEvent=new s.EventEmitter,this.changeEvent=new s.EventEmitter,this.openEvent=new s.EventEmitter,this.closeEvent=new s.EventEmitter,this.searchEvent=new s.EventEmitter,this.clearEvent=new s.EventEmitter,this.addEvent=new s.EventEmitter,this.removeEvent=new s.EventEmitter,this.scroll=new s.EventEmitter,this.scrollToEnd=new s.EventEmitter,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=dw(),this.escapeHTML=!0,this.useDefaultClass=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Gf.a,this._keyPress$=new Gf.a,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 hw(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(!Z_(t))throw Error("`compareWith` must be a function.");this._compareWith=t}get clearSearchOnAdd(){return G_(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=G_(t.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),G_(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(t){if(mw[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 mw.ArrowDown:this._handleArrowDown(t);break;case mw.ArrowUp:this._handleArrowUp(t);break;case mw.Space:this._handleSpace(t);break;case mw.Enter:this._handleEnter(t);break;case mw.Tab:this._handleTab(t);break;case mw.Esc:this.close(),t.preventDefault();break;case mw.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=Z_(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=G_(e)?!K_(e):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(t),t.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&G_(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=Object(gg.a)(this.ngOptions.changes,this._destroy$);Object(gg.a)(...this.ngOptions.map(t=>t.stateChange$)).pipe(Object(xg.a)(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(Object(yg.a)(this.ngOptions),Object(xg.a)(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,t(n),e()})}_isValidWriteValue(t){if(!G_(t)||this.multiple&&""===t||Array.isArray(t)&&0===t.length)return!1;const e=t=>!(!G_(this.compareWith)&&K_(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=K_(t),i=!n&&!this.bindValue;n||i?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(Object(xg.a)(this._destroy$),Object(kg.a)(t=>this._pressedKeys.push(t)),Object(z_.a)(200),Object(Cg.a)(()=>this._pressedKeys.length>0),Object($h.a)(()=>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;if(n.children){const t=this.groupValue?this.bindValue:this.groupBy;e=n.value[t||this.groupBy]}else e=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(G_(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=G_(this.virtualScroll)?this.virtualScroll:!!G_(t.disableVirtualScroll)&&!t.disableVirtualScroll,this.openOnEnter=G_(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}}ww.decorators=[{type:s.Component,args:[{selector:"ng-select",template:'<div\n    (mousedown)="handleMousedown($event)"\n    [class.ng-appearance-outline]="appearance === \'outline\'"\n    [class.ng-has-value]="hasValue"\n    class="ng-select-container">\n\n    <div class="ng-value-container">\n        <div class="ng-placeholder">{{placeholder}}</div>\n\n        <ng-container *ngIf="(!multiLabelTemplate  || !multiple ) && selectedItems.length > 0">\n            <div [class.ng-value-disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems; trackBy: trackByOption">\n                <ng-template #defaultLabelTemplate>\n                    <span class="ng-value-icon left" (click)="unselect(item);" aria-hidden="true">\xd7</span>\n                    <span class="ng-value-label" [ngItemLabel]="item.label" [escape]="escapeHTML"></span>\n                </ng-template>\n\n                <ng-template\n                    [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n                    [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n                </ng-template>\n            </div>\n        </ng-container>\n\n        <ng-template *ngIf="multiple && multiLabelTemplate && selectedValues.length > 0"\n                [ngTemplateOutlet]="multiLabelTemplate"\n                [ngTemplateOutletContext]="{ items: selectedValues, clear: clearItem }">\n        </ng-template>\n\n        <div class="ng-input"\n            role="combobox" \n            [attr.aria-expanded]="isOpen" \n            [attr.aria-owns]="isOpen ? dropdownId : null" \n            aria-haspopup="listbox">\n\n            <input #searchInput\n                   [attr.id]="labelForId"\n                   [attr.tabindex]="tabIndex"\n                   [readOnly]="!searchable || itemsList.maxItemsSelected"\n                   [disabled]="disabled"\n                   [value]="searchTerm ? searchTerm : \'\'"\n                   (input)="filter(searchInput.value)"\n                   (compositionstart)="onCompositionStart()"\n                   (compositionend)="onCompositionEnd(searchInput.value)"\n                   (focus)="onInputFocus($event)"\n                   (blur)="onInputBlur($event)"\n                   (change)="$event.stopPropagation()"\n                   [attr.aria-activedescendant]="isOpen ? itemsList?.markedItem?.htmlId : null"\n                   aria-autocomplete="list"\n                   [attr.aria-controls]="isOpen ? dropdownId : null">\n        </div>\n    </div>\n\n    <ng-container *ngIf="loading">\n        <ng-template #defaultLoadingSpinnerTemplate>\n            <div class="ng-spinner-loader"></div>\n        </ng-template>\n\n        <ng-template\n            [ngTemplateOutlet]="loadingSpinnerTemplate || defaultLoadingSpinnerTemplate">\n        </ng-template>\n    </ng-container>\n\n    <span *ngIf="showClear()" class="ng-clear-wrapper" title="{{clearAllText}}">\n        <span class="ng-clear" aria-hidden="true">\xd7</span>\n    </span>\n\n    <span class="ng-arrow-wrapper">\n        <span class="ng-arrow"></span>\n    </span>\n</div>\n\n<ng-dropdown-panel *ngIf="isOpen"\n                   class="ng-dropdown-panel"\n                   [virtualScroll]="virtualScroll"\n                   [bufferAmount]="bufferAmount"\n                   [appendTo]="appendTo"\n                   [position]="dropdownPosition"\n                   [headerTemplate]="headerTemplate"\n                   [footerTemplate]="footerTemplate"\n                   [filterValue]="searchTerm"\n                   [items]="itemsList.filteredItems"\n                   [markedItem]="itemsList.markedItem"\n                   (update)="viewPortItems = $event"\n                   (scroll)="scroll.emit($event)"\n                   (scrollToEnd)="scrollToEnd.emit($event)"\n                   (outsideClick)="close()"\n                   [class.ng-select-multiple]="multiple"\n                   [ngClass]="appendTo ? classes : null"\n                   [id]="dropdownId"\n                   role="listbox"\n                   aria-label="Options list">\n\n    <ng-container>\n        <div class="ng-option" [attr.role]="item.children ? \'group\' : \'option\'" (click)="toggleItem(item)" (mouseover)="onItemHover(item)"\n                *ngFor="let item of viewPortItems; trackBy: trackByOption"\n                [class.ng-option-disabled]="item.disabled"\n                [class.ng-option-selected]="item.selected"\n                [class.ng-optgroup]="item.children"\n                [class.ng-option]="!item.children"\n                [class.ng-option-child]="!!item.parent"\n                [class.ng-option-marked]="item === itemsList.markedItem"\n                [attr.aria-selected]="item.selected"\n                [attr.id]="item?.htmlId">\n\n            <ng-template #defaultOptionTemplate>\n                <span class="ng-option-label" [ngItemLabel]="item.label" [escape]="escapeHTML"></span>\n            </ng-template>\n\n            <ng-template\n                [ngTemplateOutlet]="item.children ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)"\n                [ngTemplateOutletContext]="{ item: item.value, item$:item, index: item.index, searchTerm: searchTerm }">\n            </ng-template>\n        </div>\n\n        <div class="ng-option" [class.ng-option-marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag">\n            <ng-template #defaultTagTemplate>\n                <span><span class="ng-tag-label">{{addTagText}}</span>"{{searchTerm}}"</span>\n            </ng-template>\n\n            <ng-template\n                [ngTemplateOutlet]="tagTemplate || defaultTagTemplate"\n                [ngTemplateOutletContext]="{ searchTerm: searchTerm }">\n            </ng-template>\n        </div>\n    </ng-container>\n\n    <ng-container *ngIf="showNoItemsFound()">\n        <ng-template #defaultNotFoundTemplate>\n            <div class="ng-option ng-option-disabled">{{notFoundText}}</div>\n        </ng-template>\n\n        <ng-template\n            [ngTemplateOutlet]="notFoundTemplate || defaultNotFoundTemplate"\n            [ngTemplateOutletContext]="{ searchTerm: searchTerm }">\n        </ng-template>\n    </ng-container>\n\n    <ng-container *ngIf="showTypeToSearch()">\n        <ng-template #defaultTypeToSearchTemplate>\n            <div class="ng-option ng-option-disabled">{{typeToSearchText}}</div>\n        </ng-template>\n\n        <ng-template\n            [ngTemplateOutlet]="typeToSearchTemplate || defaultTypeToSearchTemplate">\n        </ng-template>\n    </ng-container>\n\n    <ng-container *ngIf="loading && itemsList.filteredItems.length === 0">\n        <ng-template #defaultLoadingTextTemplate>\n            <div class="ng-option ng-option-disabled">{{loadingText}}</div>\n        </ng-template>\n\n        <ng-template\n            [ngTemplateOutlet]="loadingTextTemplate || defaultLoadingTextTemplate"\n            [ngTemplateOutletContext]="{ searchTerm: searchTerm }">\n        </ng-template>\n    </ng-container>\n\n</ng-dropdown-panel>\n',providers:[{provide:Wh,useExisting:Object(s.forwardRef)(()=>ww),multi:!0},fw],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,host:{"[class.ng-select]":"useDefaultClass","[class.ng-select-single]":"!multiple"},styles:['.ng-select{display:block;position:relative}.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{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.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{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;padding:0;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]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width: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{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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{left:0;position:absolute;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{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width: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{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}']}]}],ww.ctorParameters=()=>[{type:String,decorators:[{type:s.Attribute,args:["class"]}]},{type:void 0,decorators:[{type:s.Attribute,args:["autofocus"]}]},{type:yw},{type:void 0,decorators:[{type:s.Inject,args:[_w]}]},{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:cw}],ww.propDecorators={bindLabel:[{type:s.Input}],bindValue:[{type:s.Input}],markFirst:[{type:s.Input}],placeholder:[{type:s.Input}],notFoundText:[{type:s.Input}],typeToSearchText:[{type:s.Input}],addTagText:[{type:s.Input}],loadingText:[{type:s.Input}],clearAllText:[{type:s.Input}],appearance:[{type:s.Input}],dropdownPosition:[{type:s.Input}],appendTo:[{type:s.Input}],loading:[{type:s.Input}],closeOnSelect:[{type:s.Input}],hideSelected:[{type:s.Input}],selectOnTab:[{type:s.Input}],openOnEnter:[{type:s.Input}],maxSelectedItems:[{type:s.Input}],groupBy:[{type:s.Input}],groupValue:[{type:s.Input}],bufferAmount:[{type:s.Input}],virtualScroll:[{type:s.Input}],selectableGroup:[{type:s.Input}],selectableGroupAsModel:[{type:s.Input}],searchFn:[{type:s.Input}],trackByFn:[{type:s.Input}],clearOnBackspace:[{type:s.Input}],labelForId:[{type:s.Input}],inputAttrs:[{type:s.Input}],tabIndex:[{type:s.Input}],readonly:[{type:s.Input}],searchWhileComposing:[{type:s.Input}],minTermLength:[{type:s.Input}],editableSearchTerm:[{type:s.Input}],keyDownFn:[{type:s.Input}],typeahead:[{type:s.Input},{type:s.HostBinding,args:["class.ng-select-typeahead"]}],multiple:[{type:s.Input},{type:s.HostBinding,args:["class.ng-select-multiple"]}],addTag:[{type:s.Input},{type:s.HostBinding,args:["class.ng-select-taggable"]}],searchable:[{type:s.Input},{type:s.HostBinding,args:["class.ng-select-searchable"]}],clearable:[{type:s.Input},{type:s.HostBinding,args:["class.ng-select-clearable"]}],isOpen:[{type:s.Input},{type:s.HostBinding,args:["class.ng-select-opened"]}],items:[{type:s.Input}],compareWith:[{type:s.Input}],clearSearchOnAdd:[{type:s.Input}],blurEvent:[{type:s.Output,args:["blur"]}],focusEvent:[{type:s.Output,args:["focus"]}],changeEvent:[{type:s.Output,args:["change"]}],openEvent:[{type:s.Output,args:["open"]}],closeEvent:[{type:s.Output,args:["close"]}],searchEvent:[{type:s.Output,args:["search"]}],clearEvent:[{type:s.Output,args:["clear"]}],addEvent:[{type:s.Output,args:["add"]}],removeEvent:[{type:s.Output,args:["remove"]}],scroll:[{type:s.Output,args:["scroll"]}],scrollToEnd:[{type:s.Output,args:["scrollToEnd"]}],optionTemplate:[{type:s.ContentChild,args:[Q_,{read:s.TemplateRef}]}],optgroupTemplate:[{type:s.ContentChild,args:[J_,{read:s.TemplateRef}]}],labelTemplate:[{type:s.ContentChild,args:[tw,{read:s.TemplateRef}]}],multiLabelTemplate:[{type:s.ContentChild,args:[ew,{read:s.TemplateRef}]}],headerTemplate:[{type:s.ContentChild,args:[nw,{read:s.TemplateRef}]}],footerTemplate:[{type:s.ContentChild,args:[iw,{read:s.TemplateRef}]}],notFoundTemplate:[{type:s.ContentChild,args:[sw,{read:s.TemplateRef}]}],typeToSearchTemplate:[{type:s.ContentChild,args:[rw,{read:s.TemplateRef}]}],loadingTextTemplate:[{type:s.ContentChild,args:[aw,{read:s.TemplateRef}]}],tagTemplate:[{type:s.ContentChild,args:[ow,{read:s.TemplateRef}]}],loadingSpinnerTemplate:[{type:s.ContentChild,args:[lw,{read:s.TemplateRef}]}],dropdownPanel:[{type:s.ViewChild,args:[Object(s.forwardRef)(()=>bw)]}],searchInput:[{type:s.ViewChild,args:["searchInput",{static:!0}]}],ngOptions:[{type:s.ContentChildren,args:[vw,{descendants:!0}]}],disabled:[{type:s.HostBinding,args:["class.ng-select-disabled"]}],filtered:[{type:s.HostBinding,args:["class.ng-select-filtered"]}],handleKeyDown:[{type:s.HostListener,args:["keydown",["$event"]]}]};class xw{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),n&&this._activeChildren(t)?this._selected=[...this._selected.filter(e=>e.parent!==t),t]:this._selected=[...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 Cw=function(){return new xw};class Sw{}Sw.decorators=[{type:s.NgModule,args:[{declarations:[bw,vw,ww,J_,Q_,tw,ew,nw,iw,sw,rw,aw,ow,lw,X_],imports:[Cu.CommonModule],exports:[ww,vw,J_,Q_,tw,ew,nw,iw,sw,rw,aw,ow,lw],providers:[{provide:_w,useValue:Cw}]}]}];let kw=class{constructor(t,e,n,i,s,r,a,o){this.fb=t,this.modalService=e,this.httpService=n,this.route=i,this.overviewservice=s,this.restservice=r,this._Activatedroute=a,this.titleService=o,this.title="appBootstrap",this.allDrugs=[],this.existedAttributes=[],this.selection=[],this.attrData=[],this.allattrData=[],this.url="",this.org_id="",this.atrType="",this.rt_m="",this.attributevalues=[],this.load_name="",this.loader=!1,this.baseurl=Xf,this.selectedAttribute=[],this.noattrexists=!1,this.isattrexists=!1,this.isLicenseExist=!1,this.isAttachmentExist=!1}ngOnInit(){this.accountSignupForm=this.fb.group({attrs:[null,[im.required]],lic:[null,[im.required]],up:[null,[im.required]],des:[null,[im.required]]}),this.routeSub=this.route.params.subscribe(t=>{t.id>0?(this.org_id=t.id,this.restservice.checkLoginContactPermissions(this.org_id).subscribe(t=>{this.permissions=t,console.log("this.permissions",this.permissions)}),console.log(this.org_id),this.url=this.baseurl+"/v1/open/providerattributes/"+this.org_id):this.url=this.baseurl+"/v1/open/attributesbytypemap"}),this.httpService.get(this.baseurl+"/v1/open/providerattributes/"+this.org_id).subscribe(t=>{this.attrData=t},t=>{console.log(t.message)}),this.httpService.get(this.baseurl+"/v1/open/attributesbytypemap").subscribe(t=>{this.allattrData=t},t=>{console.log(t.message)})}multiselct(t){}ngAfterViewInit(){$(".accordion-item").eq(0).find(".accordion-content").eq(0).show(),$(document).unbind().on("click",".accordion-title",function(){if($(this).hasClass("active"))return $(".accordion-content").slideUp(250),$(".accordion-title").removeClass("active"),!1;$(".accordion-title").removeClass("active"),$(this).addClass("active"),$(".accordion-content").slideUp(250),$(this).parent().next().slideDown(250)});const t=this;$("body").on("click","#confirmYes",function(){t.loader=!0;let e=$("#attrid").val(),n=$("#orgid").val(),i={attrid:parseInt(e),orgid:parseInt(n)};t.overviewservice.delAttribute(i).subscribe(t=>{t&&window.location.reload()},t=>{console.log(t.message)})})}beforeChange(t){console.log(t.panelId),t.panelId}getAttributesInfo2(t,e,n){var i,s;if(this.load_name=$("body").find("#load_name").text(),this.selection=[],this.rt_m=n,this.isLicenseExist=!1,this.isAttachmentExist=!1,"AgeServed"==e&&(this.atrType="AgeServed",i=this.allattrData["Age Served"],s=this.attrData["Age Served"],console.log("a",i),console.log("b",s)),"GenderServed"==e&&(this.atrType="GenderServed",console.log("this.allattrData",this.allattrData),i=this.allattrData["Gender  Served"],s=this.attrData["Gender  Served"],console.log("a",i),console.log("b",s)),"Drug"==e&&(this.atrType="Drug",i=this.allattrData.Drug,s=this.attrData.Drug),"Payment"==e&&(this.atrType="Payment",i=this.allattrData.Payment,s=this.attrData.Payment),"cc"==e&&(this.atrType="Client",i=this.allattrData["Special Populations"],s=this.attrData["Special Populations"],console.log("a",i),console.log("b",s)),"Treatment"==e&&(this.atrType="Treatment",this.isLicenseExist=!0,this.isAttachmentExist=!0,i=this.allattrData.Treatment,s=this.attrData.Treatment,console.log("a",i),console.log("b",s)),"addsvc"==e&&(this.atrType="Additional",i=this.allattrData["Additional Services"],s=this.attrData["Additional Services"]),void 0!==i&&void 0!==s){let t=s.filter(t=>!i.map(t=>JSON.stringify(t.id)).includes(JSON.stringify(t.id))),e=i.filter(t=>!s.map(t=>JSON.stringify(t.id)).includes(JSON.stringify(t.id))),n=[...t,...e];this.attributevalues=n.sort((t,e)=>t.name>e.name?1:-1),console.log([...t,...e])}else void 0!==i&&(this.attributevalues=i.sort((t,e)=>t.name>e.name?1:-1));this.isattrexists=!1,this.noattrexists=!0,void 0!==this.attributevalues&&this.attributevalues.length>0&&(this.isattrexists=!0,this.noattrexists=!1),this.modalService.open(t,{ariaLabelledBy:"modal-basic-title"}).result.then(t=>{this.closeResult=`Closed with: ${t}`},t=>{this.closeResult=`Dismissed ${this.getDismissReason(t)}`}),setTimeout(()=>{$("#lic,#des,#up").val("")},100)}comparer(t){return function(e){return 0==t.filter(function(t){return t.value==e.value&&t.display==e.display}).length}}getAttributesInfo(t,e,n,i){this.selectedAttribute=null;let s=[];this.attributevalues=[];for(let r=0;r<e.length;r++)delete n[e[r]];$.each(n,function(t,e){var n={};n.id=t,n.name=e,s.push(n)}),this.attributevalues=s,this.attributevalues.length>0?(this.isattrexists=!0,this.noattrexists=!1):(this.noattrexists=!0,this.isattrexists=!1),"Treatment"==i?(this.isLicenseExist=!0,this.isAttachmentExist=!0):(this.isLicenseExist=!1,this.isAttachmentExist=!1),this.modalService.open(t,{ariaLabelledBy:"modal-basic-title"}).result.then(t=>{this.closeResult=`Closed with: ${t}`},t=>{this.closeResult=`Dismissed ${this.getDismissReason(t)}`})}getDismissReason(t){return t===iy.ESC?"by pressing ESC":t===iy.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}onChange(t){console.log("id",t)}delAttribute(t,e){console.log("attrid",t),t>0&&e>0&&($("#myModal103").modal("show"),$("input#attrid").val(t),$("input#orgid").val(e))}reloadPage(){window.location.reload()}acSubmit(){return zh(this,void 0,void 0,function*(){if(console.log(this.selection),0==this.selection.length)$("#myModal101").modal("show");else{this.loader=!0;let n=document.getElementById("up"),i=document.getElementById("lic");var t,e;null!==n&&void 0!==n.files[0]&&(t=n.files[0],console.log("file ",n.files[0])),null!==i&&(e=i.value);let s=[];this.selection.forEach(t=>{s.push(t.id)});let r=document.getElementById("des"),a={attributelist:s,orgid:this.org_id,type:this.atrType,notes:r.value,licenseno:e};console.log("postObj ",a),this.overviewservice.addAttribute(a,t).subscribe(t=>{console.log("data ",t);let e=t.split("-");$("span#refno").html(""),parseInt(e[1])>0?($("button#closemodal").click(),$("#myModal102").modal({show:!0,backdrop:"static"}),$("span#refno").html("The service request number is "+t)):window.location.reload()},t=>{console.log(t.message)})}})}};kw.ctorParameters=()=>[{type:Uf},{type:ay},{type:Yf.HttpClient},{type:Wf.ActivatedRoute},{type:R_},{type:V_},{type:Wf.ActivatedRoute},{type:wh}],kw.propDecorators={accordion:[{type:s.ViewChild,args:["myaccordion",{static:!0}]}],ngSelectComponent:[{type:s.ViewChild,args:[ww]}],attributedata:[{type:s.Input}]},kw=Hh([Object(s.Component)({selector:"app-attributes",template:'<ng-template #attributes let-modal>\n    <div class="modal-header">\n        <h4 class="modal-title" id="modal-basic-title">{{load_name}}</h4>\n        <button type="button" id="closemodal" style="margin-top: -16px;" class="close" aria-label="Close" (click)="modal.dismiss(\'Cross click\')">\n          <span aria-hidden="true" style="font-size: 26px;">\xd7</span>\n        </button>\n      </div>\n       <form [formGroup]="accountSignupForm" (ngSubmit)="acSubmit()" autocomplete="off">\n        <div class="modal-body">\n            <div id="no_attributes_left" *ngIf="noattrexists">\n                <p>All attributes of this type have already been added for this program.</p>\n            </div>\n            \n            <div id="some_attributes_left" *ngIf="isattrexists">\n                <small><em>Fields marked with <span class="red">*</span> are mandatory</em></small>\n                <p>Use this section to add new items to <span id="rt_m">{{rt_m}}</span></p>\n                <div class="form-group">\n                    <label>Choose or type a name:</label><span class="red">*</span>\n                    \x3c!-- <ng-select [items]="attributevalues"\n                        bindLabel="name"\n                        placeholder="Select an option"\n                        appendTo="body"\n                        multiple="true"\n                        (change)="onChange(selection)"\n                        [(ngModel)]="selection"\n                        formControlName="attrs"\n                        [closeOnSelect]="true"\n                        [hideSelected]="true"\n                        [clearable]="false"\n                        >\n                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                            <span class="ng-value-label"> {{item.name}}</span>\n                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                        </ng-template>\n                    </ng-select> --\x3e\n\n                    <ng-select [items]="attributevalues" bindLabel="name" placeholder="Select an option" appendTo="body"\n                        multiple="true" (change)="onChange(selection)" [(ngModel)]="selection"\n                         formControlName="attrs" [closeOnSelect]="true"\n                        [hideSelected]="true" [clearable]="false">\n                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                            <span class="ng-value-label"> {{item.name}}</span>\n                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                        </ng-template>\n                    </ng-select>\n\n                </div>\n                <div class="form-group" *ngIf="isLicenseExist">\n                    <label for="lic">License Number:</label>\n                    <input type="text" formControlName="lic" class="form-control" name="lic" id="lic" />\n                </div>\n                <div class="form-group" *ngIf="isAttachmentExist">\n                    <label for="up">Attachment (if any):</label>\n                    <input type="file" formControlName="up" name="up" id="up"/>\n                </div>\n                <div class="form-group">\n                    <label for="des">Note to Helpline Administrator:</label>\n                    <textarea id="des" formControlName="des" name="des" class="form-control"></textarea>\n                </div>\n                <input type="hidden" name="selAttribute_m" id="selAttribute_m" />\n                <input type="hidden" name="curOrg_m" id="curOrg_m" />\n                <input type="hidden" name="attributeType_m" id="attributeType_m" />\n            </div>\n        </div>\n        <div class="modal-footer modal-center">\n            <button type="button" class="button button_small" aria-label="Close" (click)="modal.dismiss(\'Cross click\')">Cancel</button>\t\t\t\t\t\n            <button type="submit" *ngIf="isattrexists" id="add_attribute_button" class="button button_small">Submit</button>&nbsp;<img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n        </div>\n        </form>\n</ng-template>\n<div *ngIf="attributedata">\n<div class="dashboard_box top10" *ngIf="attributedata.organizationtypeid!=68">\n\n<h3 class="dasboard_box_heading">Attributes</h3>\n<div class="panel-group" id="attribute_accordion">\n    <div id="accordion">\n         <div class="card" >\n          <div class="card-header" id="headingOne">\n              <button class="btn btn-link accordion-title" aria-controls="collapseOne">\n                Substances Treated</button>\n               <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'Drug\',\'Substances Treated\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n          </div>\n          <div id="collapseOne" class="collapse accordion-content" aria-labelledby="headingOne" aria-expanded="false">\n            <div class="card-body">\n                <div *ngIf="attrData">\n                <table class="table table-bordered table-condensed" *ngIf="attrData.Drug;else nosubstances">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let attr of attrData.Drug">\n                            <td>{{attr[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{attr[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(attr.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                    </tbody>\n                </table>\n                <ng-template #nosubstances>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                        Please click <a class="panel_plus_trigger" (click)="getAttributesInfo2(attributes,\'Drug\',\'Substances Treated\')" role="button">here</a> to add a new Substance</p>\n                </ng-template>\n                </div>\n            </div>\n          </div>\n        </div>\n        \n        <div class="card">\n            <div class="card-header" id="headingOne">\n                <button class="btn btn-link accordion-title"  data-target="#collapseTwo"  aria-controls="collapseTwo">\n                  Treatments Offered\n                  </button>\n                  <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'Treatment\',\'Treatments Offered\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n            </div>\n            <div id="collapseTwo" class="collapse accordion-content" aria-labelledby="headingTwo" data-parent="#accordion" aria-expanded="false">\n              <div class="card-body">\n                  <div *ngIf="attrData">\n                <table class="table table-bordered table-condensed" *ngIf="attrData.Treatment;else notreatments">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let attr of attrData.Treatment">\n                            <td>{{attr[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{attr[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(attr.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                    </tbody>\n                </table>\n                <ng-template #notreatments>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                        Please click <a class="panel_plus_trigger" (click)="getAttributesInfo2(attributes,\'Treatment\',\'Treatments Offered\');" role="button">here</a> to add a new Substance</p>\n                </ng-template>\n                </div>\n              </div>\n            </div>\n        </div>\n        \n         <div class="card">\n          <div class="card-header" id="headingThree">\n              <button class="btn btn-link accordion-title"  data-target="#collapseThree"  aria-controls="collapseThree">\n                Payments Accepted\n              </button>\n              <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'Payment\',\'Payments Accepted\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n          </div>\n          <div id="collapseThree" class="collapse accordion-content" aria-labelledby="headingThree" data-parent="#accordion" aria-expanded="false">\n            <div class="card-body">\n                <div  *ngIf="attrData">\n                <table class="table table-bordered table-condensed" *ngIf="attrData.Payment;else nopayments">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let attr of attrData.Payment">\n                            <td>{{attr[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{attr[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(attr.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                    </tbody>\n                </table>\n                <ng-template #nopayments>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                        Please click <a class="panel_plus_trigger" (click)="getAttributesInfo2(attributes,\'Payment\',\'Payments Accepted\')" role="button">here</a> to add a new Substance</p>\n                </ng-template>\n                </div>\n            </div>\n          </div>\n         </div> \n         \n          <div class="card">\n            <div class="card-header" id="headingFour">\n                <button class="btn btn-link accordion-title" data-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">\n                  Additional Services\n                </button>\n                <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'addsvc\',\'Additional Services\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n            </div>\n            <div id="collapseFour" class="collapse accordion-content" aria-labelledby="headingFour" data-parent="#accordion" aria-expanded="false">\n              <div class="card-body">\n                <div *ngIf="attrData">\n                <table class="table table-bordered table-condensed" *ngIf="attrData[\'Additional Services\']; else noaddtionsvc">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let attr of attrData[\'Additional Services\']">\n                            <td>{{attr[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{attr[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(attr.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                    </tbody>\n                </table>\n                 <ng-template #noaddtionsvc>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                    Please click <a class="panel_plus_trigger" (click)="getAttributesInfo2(attributes,\'addsvc\',\'Additional Services\')"  role="button">here</a> to add a new Substance</p>\n                </ng-template>\n                </div>\n              </div>\n            </div>\n          </div> \n          \n          <div class="card">\n            <div class="card-header" id="headingFive">\n                <button class="btn btn-link accordion-title"  data-target="#collapseFive" aria-expanded="false" aria-controls="collapseFive">\n                    Special Populations\n                </button>\n                <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'cc\',\'Special Populations\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n            </div>\n            <div id="collapseFive" class="collapse accordion-content" aria-labelledby="headingFive" data-parent="#accordion" aria-expanded="false">\n              <div class="card-body">\n                <div *ngIf="attrData">\n                <table class="table table-bordered table-condensed" *ngIf="attrData[\'Special Populations\'];else noclientchars">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let attr of attrData[\'Special Populations\']">\n                            <td>{{attr[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{attr[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(attr.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                    </tbody>\n                </table>\n                <ng-template #noclientchars>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                        Please click <a class="panel_plus_trigger" (click)="getAttributesInfo2(attributes,\'cc\',\'Special Populations\')" role="button">here</a> to add a new Substance</p>\n                </ng-template>\n            </div>\n              </div>\n            </div>\n          </div> \n\n          <div class="card">\n            <div class="card-header" id="headingSix">\n                <button class="btn btn-link accordion-title"  data-target="#collapseSix"  aria-controls="collapseSix">\n                  Ages Served\n                </button>\n                <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'AgeServed\',\'Ages Served\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n            </div>\n            <div id="collapseSix" class="collapse accordion-content" aria-labelledby="headingSix" data-parent="#accordion" aria-expanded="false">\n              <div class="card-body">\n                <div *ngIf="attrData">\n                <table class="table table-bordered table-condensed" *ngIf="attrData[\'Age Served\'];else noageattr">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let attr of attrData[\'Age Served\']">\n                            <td>{{attr[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{attr[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(attr.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                    </tbody>\n                </table>\n                <ng-template #noageattr>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                        Please click <a class="panel_plus_trigger" role="button">here</a> to add a new Substance</p>\n                    </ng-template>\n                </div>\n              </div>\n            </div>\n          </div> \n          <div class="card">\n            <div class="card-header" id="headingSeven">\n                <button class="btn btn-link accordion-title"   data-target="#collapseSeven" aria-expanded="false" aria-controls="collapseSeven">\n                  Gender Served\n                </button>\n                <a *ngIf="permissions" class="panel_plus" (click)="getAttributesInfo2(attributes,\'GenderServed\',\'Gender Served\')"> <i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n            </div>\n            <div id="collapseSeven" class="collapse accordion-content" aria-labelledby="headingSeven" data-parent="#accordion" aria-expanded="false">\n              <div class="card-body">\n                <div>\n                <table class="table table-bordered table-condensed" *ngIf="attrData[\'Gender  Served\'];else nogender;">\n                    <thead>\n                        <tr>\n                        <th>Name</th>\n                            <th>Status</th>\n                            <th width="120px">Action</th>\n                        </tr>\n                    </thead>\n                    <tbody>\n                        <tr *ngFor="let atrb of attrData[\'Gender  Served\']">\n                            <td>{{atrb[\'name\']}}</td>\n                            <td style="text-align: center"><span class="button button_small button_active_green">\n                                {{atrb[\'active\'] === true ? \'Active\' : \'Not Active\'}}\n                                </span></td>\n                            <td style="text-align: center"><button type="button" (click)="delAttribute(atrb.id,org_id);" class="button button_small">Delete</button></td>\n                        </tr>\t\t\t\t\t\t\t\t\t\t\n                     </tbody>\n                </table>\n                <ng-template #nogender>\n                    <p style="padding:10px; font-weight:bold;">No records found. \n                        Please click <a class="panel_plus_trigger" (click)="getAttributesInfo2(attributes,\'GenderServed\',\'Gender Served\')" role="button">here</a> to add a new Substance</p>\n                    </ng-template>\n                </div>\n              </div>\n            </div>\n          </div> \n    </div>\n</div>\n</div>\n</div>\n<div id="myModal101" class="modal fade" style="z-index: 9999999999;">\n<div class="modal-dialog">\n<div class="modal-content">\n    <span style="text-align: right; margin-right: 8px;" data-dismiss="modal" aria-label="Close" class="close">&times;</span>\n    <div class="confirm">\n    <div></div>\n    <div>\n        <div id="confirmMessage" style="text-align:center;"><svg style="color:orange; margin:-3px 2px; height:20px; width:20px;" width="16" height="16" fill="currentColor" class="bi bi-exclamation-triangle" viewBox="0 0 16 16">\n        <path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/>\n        <path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/>\n        </svg>\n        &nbsp; At least one item needs to be selected from the dropdown</div>\n        <div style="text-align: center; padding-top: 15px;">\n        <input data-dismiss="modal" aria-label="Close"  type="button" class="btn btn-success" value="Ok" />\n        </div>\n        <br/>\n    </div>\n    </div>\n    </div>\n</div>\n</div>\n<div id="myModal102" class="modal fade" style="z-index: 9999999999;">\n<div class="modal-dialog">\n<div class="modal-content">\n    \x3c!-- <span style="text-align: right; margin-right: 8px;" data-dismiss="modal" aria-label="Close" class="close">&times;</span> --\x3e\n    <div class="confirm">\n    <div></div>\n    <div>\n        <div id="confirmMessage" style="padding-left: 15px; padding-top: 20px;"><svg version="1.1" id="Layer_1"  width="16" height="16" style="color:green; margin:-3px 2px;" width="16" height="16" viewBox="0 0 122.877 101.052" fill="currentColor" xml:space="preserve"><g><path d="M4.43,63.63c-2.869-2.755-4.352-6.42-4.427-10.11c-0.074-3.689,1.261-7.412,4.015-10.281 c2.752-2.867,6.417-4.351,10.106-4.425c3.691-0.076,7.412,1.255,10.283,4.012l24.787,23.851L98.543,3.989l1.768,1.349l-1.77-1.355 c0.141-0.183,0.301-0.339,0.479-0.466c2.936-2.543,6.621-3.691,10.223-3.495V0.018l0.176,0.016c3.623,0.24,7.162,1.85,9.775,4.766 c2.658,2.965,3.863,6.731,3.662,10.412h0.004l-0.016,0.176c-0.236,3.558-1.791,7.035-4.609,9.632l-59.224,72.09l0.004,0.004 c-0.111,0.141-0.236,0.262-0.372,0.368c-2.773,2.435-6.275,3.629-9.757,3.569c-3.511-0.061-7.015-1.396-9.741-4.016L4.43,63.63 L4.43,63.63z"/></g></svg>&nbsp;Your request to add a treatment offered has been received and is pending approval. <span id="refno"></span> You will receive an email when the change has been approved.\n        </div>\n        <div style="text-align: center; padding-top: 15px;">\n        <input data-dismiss="modal" aria-label="Close" (click)="reloadPage()"  type="button" class="btn btn-success" value="Ok" />\n        </div>\n        <br/>\n    </div>\n    </div>\n    </div>\n</div>\n</div>\n<div id="myModal103" class="modal fade" style="z-index: 9999999999;">\n<div class="modal-dialog">\n<div class="modal-content">\n    <span style="text-align: right; margin-right: 8px;" data-dismiss="modal" aria-label="Close" class="close">&times;</span>\n    <div class="confirm">\n    <div></div>\n    <div>\n        <div id="confirmMessage" style="text-align:center;"><svg style="color:orange; margin:-3px 2px; height:20px; width:20px;" width="16" height="16" fill="currentColor" class="bi bi-exclamation-triangle" viewBox="0 0 16 16">\n        <path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/>\n        <path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/>\n        </svg>\n        &nbsp;Are you sure, you want to delete this attribute?</div>\n        <div style="text-align: center; padding-top: 15px;">\n        <input id="confirmYes" type="button" class="btn btn-success" value="Yes" />&nbsp;&nbsp;<img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n        <input id="confirmNo" data-dismiss="modal" aria-label="Close"  type="button" class="btn btn-danger" value="No" />\n        <input type="hidden" id="attrid" />\n        <input type="hidden" id="orgid" />\n        <input type="hidden" id="actype" value="0" />\n        </div>\n        <br/>\n    </div>\n    </div>\n    </div>\n</div>\n</div>\n\x3c!-- <div class="dashboard_box top10">\n<h3 class="dasboard_box_heading">Attributes</h3>\n<div class="panel-group" id="attribute_accordion">\n<div class="panel panel-default">\n<div class="panel-heading" id="panel_heading_1">\n    <h4 class="panel-title">\n        <a data-toggle="collapse" data-parent="#attribute_accordion" href="#panel_content_1">\n            Substances Treated \n        </a>\n       \n        <a href="#" data-orgname="" data-orgid="" data-record="Drug" class="panel_plus"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</a>\n        \n    </h4>\n</div>\n<div id="panel_content_1" class="panel-collapse collapse">\n    <div class="panel-body">\n                 \'<table class="table table-bordered table-condensed">\';\n                     \'<thead>\';\n                         \'<tr>\';\n                             \'<th>Name</th>\';\n                             \'<th>Status</th>\';\n                             \'<th width="120px">Action</th>\';\n                         \'</tr>\';\n                     \'</thead>\';\n                     \'<tbody>\';\n                           \n                         \'<tr>\';\n                             \'<td></td>\';\n                             \'<td></td>\';\n                             \'<td></td>\';\n                         \'</tr>\';\t\t\t\t\t\t\t\t\t\t\n                     \'</tbody>\';\n                 \'</table>\';\n           \n                echo \'<p style="padding:10px; font-weight:bold;">No records found.Please click <a class="panel_plus_trigger" href="#">here</a> to add a new Substance\' : \'\').\'</p>\';\n    </div>\n</div>\n</div>\n</div>\n</div> --\x3e\n',styles:[".btn-link {\n  color: #8c5c8d !important;\n}\n\n.panel_plus {\n  margin-top: 2%;\n  margin-right: 5%;\n}\n\n.card-header {\n  padding: 0.35rem 1.25rem;\n  margin-bottom: 2px;\n  background-color: #ece8e8;\n  border-bottom: 2px;\n  border-color: #ddd;\n}\n\n.accordion .card.hide {\n  display: block !important;\n}\n\n::ng-deep .accordion-title:hover {\n  text-decoration: underline !important;\n}\n\n::ng-deep .ui-dialog {\n  margin-left: 26%;\n  margin-top: 20%;\n}\n\n::ng-deep input[type=text] {\n  height: auto !important;\n}\n\n::ng-deep .purple-bg:focus {\n  color: #fff !important;\n}\n\n.modal-dialog {\n  width: 504px;\n  top: 100px !important;\n}"]})],kw);let Ew=class{constructor(t,e,n){this._Activatedroute=t,this.overviewservice=e,this.titleService=n,this.programdata=[],this.titleService.setTitle("Provider Detail - Massachusetts Substance Use Helpline")}ngOnInit(){this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.progid=t.get("id"),console.log(this.progid),this.overviewservice.getProviderInfo().subscribe(t=>{this.programdata=t,console.log(this.programdata);for(let e=0;e<this.programdata.length;e++)if(this.programdata[e].id==this.progid)this.pgminfo=this.programdata[e],console.log(this.pgminfo);else if(null!=this.programdata[e].programList)for(let t=0;t<this.programdata[e].programList.length;t++)this.programdata[e].programList[t].id==this.progid&&(this.pgminfo=this.programdata[e].programList[t],console.log(this.pgminfo));this.overviewservice.setProgramInfo(this.pgminfo)})})}};Ew.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:R_},{type:wh}],Ew=Hh([Object(s.Component)({selector:"app-provider-detail",template:'<div class="container p-3">\n    <div class="row">\n        <div class="col-md-12">\n            <div class="col-md-6">\n                <app-programinfo [pgminfo]="pgminfo"></app-programinfo>\n                <app-attributes [attributedata]="pgminfo"></app-attributes>\n            </div>\n            <div class="col-md-6">\n                <app-viewusers></app-viewusers>\n                <app-showwaitlists [waitlistdata]="pgminfo"></app-showwaitlists>\n                 <app-showintake [intakedata]="pgminfo"></app-showintake>\n                 <app-showstatistcs [statistics]="pgminfo"></app-showstatistcs>\n                \n            </div>\n        </div>\n    </div>\n</div>\n',styles:["@media screen and (max-width: 768px) {\n  ::ng-deep .col-md-6 {\n    padding: 0px !important;\n  }\n\n  ::ng-deep .modal-dialog {\n    width: auto !important;\n  }\n\n  ::ng-deep .text-right {\n    padding-right: 0px !important;\n  }\n\n  ::ng-deep .col-md-6 {\n    max-width: 100% !important;\n  }\n}\n@media screen and (max-width: 992px) {\n  ::ng-deep .col-md-6 {\n    max-width: 100% !important;\n  }\n}"]})],Ew);let Iw=class{constructor(){}ngOnInit(){}};Iw.ctorParameters=()=>[],Iw=Hh([Object(s.Component)({selector:"app-reports",template:"<router-outlet></router-outlet>",styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    background-color: #eceaf3;\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;\n    border-right: none;*/\n}#search-btn{background-color:#4D5E80;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#a770a1;\n    display: block;\n    line-height: 45px !important;\n    border-bottom: solid 1px #dcdcdc;\n}.sidenav a:hover, .sidenav a.active{ color:#13518e; background:white}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #4D5E80 !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:16px;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}::ng-deep .mat-select-min-line{font-size:13px !important;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}\n\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{width:98%;}.purple-bg:hover, .btn-primary:hover, .btn-primary:active {\n  background: #8c5c8d;\n  color: #fff;\n}.purple-bg, .btn-primary {\n  background: #8c5c8d;\n  color: #fff;\n}.btn {\n  padding: 4px 12px;\n  border: none;\n}.req-btn{ margin:2px;padding:3px 10px; color: #fff;}.table {\n  margin-bottom: 10px;  \n}.psd_tr{\n    min-height: 70px;\n}.psd_col_td {    \n    padding-left: 3px;\n}#wl_pending_admission .psd_tr:hover .up_down_action{\n    visibility: visible;\n}.page_heading{font-size: 2em !important;}#wl_pending_admission .psd_tr:hover{\n    background-color: lightyellow !important\n}.round-box-1 {background-color: #ccc;display: block;border-radius: 10px;padding: 10px;border-left: 10px solid #6cac3c;}.round-box-1 p{ font-size:16px; font-size: 14px;line-height: 18px; color:#000; padding-top:0px;}.round-box-1 h4{border-bottom: 1px solid #6cac3c;padding-bottom: 5px; margin-bottom: 5px;}.round-box-2 {background-color: #ccc;display: block;border-radius: 10px;padding: 10px;border-left: 10px solid #f7b00a;}.round-box-2 p{ font-size:16px; font-size: 14px;line-height: 18px; color:#000; padding-top:0px;}.round-box-2 h4{border-bottom: 1px solid #f7b00a;padding-bottom: 5px; margin-bottom: 5px;}.round-box-3 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #0a5ef7;}.round-box-3 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}.round-box-3 h4{border-bottom: 1px solid #0a5ef7;    padding-bottom: 5px; margin-bottom: 5px;}.round-box-4 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #005d68;}.round-box-4 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}.round-box-4 h4{border-bottom: 1px solid #005d68;    padding-bottom: 5px; margin-bottom: 5px;}.round-box-5 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #11cedf;}.round-box-5 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}.round-box-5 h4{border-bottom: 1px solid #11cedf;    padding-bottom: 5px; margin-bottom: 5px;}.round-box-6 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #6411df;}.round-box-6 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}.round-box-6 h4{border-bottom: 1px solid #6411df;    padding-bottom: 5px; margin-bottom: 5px;}.type-beds .col-md-2{padding: 0 5px}.bg-info { background-color: #d9edf7 !important;}.bg-danger {\n    background-color: #f2dede !important;\n}.time-update{\n    background: #795179 !important;padding: 0px 15px;margin-top: 7px;color: white;\n}table.dataTable.no-footer {font-size: 18px;}table.dataTable.table-bordered>tbody>tr>td, table.dataTable.table-bordered>tbody>tr>th {line-height: 30px;}.btn-group-sm>.btn, .btn-sm { font-size: .875rem;}.dataTables_wrapper .dataTables_paginate .paginate_button {padding: 0 .6em;}#wl_pending_admission_filter{margin: 0 10px}#wl_pending_admission_filter input{border: 1px solid #ccc; }#wl_pending_admission_length,#wl_admitted_length,#wl_removed_length{display: none}#wl_pending_admission_wrapper { background: #f1f1f185;padding: 10px;}#wl_admitted_filter{margin: 20px 0}#wl_admitted_filter input{border: 1px solid #ccc; }#wl_admitted_wrapper { background: #f1f1f185;padding: 10px;margin-top: 10px;}#wl_removed_filter{margin: 20px 0}#wl_removed_filter input{border: 1px solid #ccc; }#wl_removed_wrapper { background: #f1f1f185;padding: 10px;margin-top: 10px;}.removal_reason{margin-bottom: 10px;}/*#accSection{\n    background-color: #ccc;\n}*/.filter_admit_data td,.filter_rmv_data td{text-align: center;}.filter_admit_data td:first-child,.filter_rmv_data td:first-child{width: 15%}.notes-text{position:relative; z-index: 99; font-weight: bold;}.t-116{top:116px;}@media screen and (max-width: 992px) {\n.container{ max-width: 100%;}\n}.dataTables_wrapper{\n    max-height: 700px;\n    overflow-y: auto;\n}@media screen and (max-width: 768px) {\n#wl_pending_admission_wrapper, #wl_admitted_wrapper, #wl_removed_wrapper {overflow: scroll;}\n}@media screen and (max-width: 624px) {\n#inner-page {   margin: 100px 0 0 0;}\n}.tablinks{\n  flex: 1 1;\n}.tab {\n  overflow: hidden;\n  border: 1px solid #ccc;\n  border-bottom:none;\n  background-color: #f1f1f1;\n  border-radius:5px;\n  border-bottom-left-radius:0px;\n  border-bottom-right-radius:0px;\n}table.dataTable {\n    border-collapse: collapse !important;\n}.tab button {\n    background-color: #4D5E80;\n    float: left;\n    border: none;\n    outline: none;\n    cursor: pointer;\n    padding: 8px 106.1px;\n    transition: 0.3s;\n    font-size: 17px;\n    font-weight: bold;\n    color: white;\n}@media only screen and (max-width: 1920px) {\n.tab button {\n    background-color: transparent;\n    float: left;\n    border: none;\n    outline: none;\n    cursor: pointer;\n    padding: 8px 0px;\n    transition: 0.3s;\n    font-size: 17px;\n    font-weight: bold;\n    color: #9c6b9e;\n    border: 1px solid transparent;\n    border-top-left-radius: .25rem;\n    border-top-right-radius: .25rem;\n}\n}/* Change background color of buttons on hover */.tab button:hover {\n  background-color: #ddd;\n}/* Create an active/current tablink class */.tab button.active {\n  /*background-color: #fcfaff;\n  color: #4D5E80;*/\n  color: #495057;\n    background-color: #fff;\n    border-color: #dee2e6 #dee2e6 #fff;\n}/* Style the tab content */.tabcontent {\n  display: none;\n  padding: 6px 12px;\n  border: 1px solid #ccc;\n  border-top: none;\n  margin-bottom:10px;\n}/* Style the tab content */.tabcontent {\n  display: none;\n  padding: 6px 12px;\n  border: 1px solid #ccc;\n  border-top: none;\n  margin-bottom:10px;\n}.psd_agency_program_box {\n    background-color: #f3eee64f !Important;\n    }.tabcontent {       \n        padding: 6px 5px !Important;\n    }.m-b-10 { margin-bottom:10px;}.deleteCapacity{ position:absolute; color:red; right:10px; top: -2px; cursor:pointer; }div.dt-buttons {\n    position: relative;\n    float: right;\n}button.dt-button, div.dt-button, a.dt-button{\n      padding: 0 10px 0 10px;\n      background: #4D5E80 !important;\n      color: #fff !important;\n}button.dt-button span{\n  font-size: 14px;\n}@media only screen and (max-width: 1920px){\n.tab button {\n  font-size: 15px;  \n}\n}.alert-danger {\n    color: #a94442;\n    background-color: #f2dede;\n    border-color: #ebccd1;\n}.btn-group-sm>.btn, .btn-sm{\n    padding: 2px 5px !important;\n}.btn-group-sm>.btn, .btn-sm{\n    font-size: .775rem;\n}a span{ color:#fff !important;}#wl_patient_data{z-index:999999999999 !important}.mytooltip:hover:after{\n  background: #333;\n  background: rgba(0,0,0,.9);\n  border-radius: 5px;\n  color: #fff;\n  content: "Use the arrows next to the fields to sort the data";\n  margin-left:20px;\n  padding: 5px 15px;\n  position: absolute;\n  z-index: 9999999999999 !important;\n  width: 390px;\n  top:0px;\n  }.mytooltipexp:hover:after{\n  background: #333;\n  background: rgba(0,0,0,.9);\n  border-radius: 5px;\n  color: #fff;\n  content: "Use the arrows next to the fields to sort the data";\n  margin-left:-400px;\n  padding: 5px 15px;\n  position: absolute;\n  z-index: 9999999999999 !important;\n  width: 390px;\n  top:0px;\n  }.mytooltip2:hover:after{\n  background: #333;\n  background: rgba(0,0,0,.9);\n  border-radius: 5px;\n  color: #fff;\n  content: "Click on a person\'s name to view their full record";\n  margin-right:20px;\n  padding: 5px 15px;\n  position: absolute;\n  z-index: 98;\n  width: auto;}button.drag{display:none;}button.buttons-excel{display:none;}input[type=\'search\']::-moz-placeholder {font-size:13px !important;}input[type=\'search\']::placeholder {font-size:13px !important;}.table-bordered>thead>tr>td, .table-bordered>thead>tr>th{width:-moz-max-content !important;width:max-content !important;}table#wl_screening_admission1,table#wl_all_slog_data{ margin-top:32px;}table#wl_admitted,table#wl_removed,table#wl_all_admitted_data,table#wl_all_rmv_data{margin-top:25px;}.addperson_btn{\n    margin-top: -35px;\n    border-radius: 25px;\n    /* padding: 7px 10px; */\n    position: absolute;\n    margin-left: 20px;}.addperson_waitlistbtn{\n    border-radius: 25px;\n    /* padding: 7px 10px; */\n    position: absolute;\n    margin-left: 20px;\n    }:host ::ng-deep .dt-button{display: none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep #wl_screening_admission1_info,#wl_pending_admission_info {\n      color: #9281c5;\n      font-weight: bold;\n      font-size:12px;\n   }:host ::ng-deep #wl_screening_admission1_paginate{\n      font-size:12px;\n   }:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n      background: #9281c5 !important;\n      color: white !important;\n   }:host ::ng-deep #wl_screening_admission1_wrapper{ width:98% !important}li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\nfont-size: 1.0em;\nfont-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}\n.col-md-3{max-width:26% !important;}}@media screen and (max-height: 450px) {\n.sidenav {padding-top: 15px;}\n.sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\nfont-size:15px;\nfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep #wl_screening_admission1_info,#wl_pending_admission_info {\ncolor: #9281c5;\nfont-weight: bold;\nfont-size:12px;\n}:host ::ng-deep #wl_pending_admission_info {\ncolor: #9281c5;\nfont-weight: bold;\nfont-size:12px;\n}:host ::ng-deep #wl_admitted_info {\ncolor: #9281c5;\nfont-weight: bold;\nfont-size:12px;\n}:host ::ng-deep #wl_removed_info {\ncolor: #9281c5;\nfont-weight: bold;\nfont-size:12px;\n}:host ::ng-deep #wl_screening_admission1_paginate{\nfont-size:12px;\n}:host ::ng-deep #wl_pending_admission_paginate{\nfont-size:12px;\n}:host ::ng-deep #wl_admitted_paginate{font-size:12px;}:host ::ng-deep #wl_removed_paginate{font-size:12px;}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\nbackground: #9281c5 !important;\ncolor: white !important;\n}:host ::ng-deep #wl_screening_admission1_wrapper{ width:98% !important}.bg-secondary{ background-color: #ebeff3 !important;}.bg-secondary:hover{ color:#fff !important;}a,a span{color: #8c5c8d;}:host ::ng-deep #wl_pending_admission_wrapper {\nbackground: #f1f1f185;\npadding: 10px;\n}:host ::ng-deep .notes-text {\nposition: relative;\nz-index: 99;\nfont-weight: bold;\n}:host ::ng-deep .addperson_waitlistbtn{\nborder-radius: 25px;\n/* position: absolute; */\nmargin-left: 20px;\nfloat: left !important;\nmargin-bottom:10px;\n}.modal-content{\nwidth:1024px;\nleft:50%;\ntransform: translate(-50%);\n}.green-bg{    \nbackground: #949c17;\ncolor: #fff;\n}.btn-sm {\nfont-size: 1.10rem !important;\n}.modal-content{\nwidth: 1073px;\nleft: 50%;\ntransform: translate(-50%);\n}form span, form .h4{\nfont-weight: normal;\n}:host ::ng-deep select{background: none !important;}.table td, .table th{padding: 0.25rem;}.purple-bg, .btn-primary {\nbackground: #8c5c8d;\ncolor: #fff !important;\nborder: none;\n}.btn {padding: 2px 8px !important;}.modal-footer{display: block;}.psd_newperson_title{\nbackground-color: #8c5c8d;\nheight: auto;\npadding-left: 10px;\npadding-right: 25px;\n}.btn-sm{font-size: 12px !important;}.btn-primary{\npadding: 2px 10px !important;\nmargin: 3px;\nfont-size: 13px;\n}.modal-header{\ndisplay: inline !important;\n}.button_small{\npadding: 4px 8px !important;\nmargin: 2px !important;\n}.exportBtn{\ndisplay: none;\n}.modal-content {\nbackground-color: #fefefe;\nmargin: auto;\npadding: 20px;\nborder: 1px solid #888;\nwidth: 80%;\n}/* The Close Button */.close {\ncolor: #aaaaaa;\nfloat: right;\nfont-size: 28px;\nfont-weight: bold;\n}.close,.close:hover,\n.close:focus {\ncolor: #000;\ntext-decoration: none;\ncursor: pointer;\n}modal{\npadding-top: 100px;\n}:host ::ng-deep .mat-sort-header-content{\nfont-weight: bold !important;\ncolor:#000;\n}:host ::ng-deep .alert-info{\nmargin-bottom: 0rem !important;\n}::ng-deep .mat-form-field-underline {\ndisplay: none;\n}::ng-deep .mat-form-field-label-wrapper{\ndisplay:none;\n}label{margin-bottom: 0;}button.btnSubmit:last-child{float: right;}:host ::ng-deep th.mat-column-action .mat-sort-header-container{left: 21%;}/* :host ::ng-deep thead tr{\nbackground: #e0e4ec;\n} */::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper{\npadding-bottom: 0.25em !important;\n}:host ::ng-deep span.alert-info{\nwidth: 100%;\nfont-size: 16px;\ndisplay: block;\nfont-weight: 500;\n}/* td,th{\nborder-right: 1px solid gray;\n} */::ng-deep .mat-sort-header-container {\ndisplay:flex;\njustify-content:center;\n}::ng-deep .mat-cell{\ntext-align: center;\n}/* .mat-cell, .mat-footer-cell{font-size: 12px !important;} */a{color: blue !important; cursor: pointer;}#hader-col img{height: 30px; width: 30px; padding: 0px 0px 6px 3px;}tr:nth-child(even) {background-color: #f2f2f2;}::ng-deep app-footer{width: 100% !important; left: 0% !important;}::ng-deep .mat-table{border:solid 1px lightgray;}::ng-deep input.mat-input-element{border:solid 1px lightgray; height: 35px; width: 166px; float: right;}::ng-deep .custom-table thead tr {\n  background: #EFEDEA !important;\n  border: 1px solid #dedede !important;\n}::ng-deep .mat-form-field{width: 100%;}::ng-deep .mat-form-field-wrapper{width: 100%;}/* :host ::ng-deep .modal-backdrop{\nz-index: 99999999 !important;\n} */.ng-select .ng-arrow-wrapper .ng-arrow {\n    display: none;\n}.ng-select span.ng-arrow-wrapper:before {\n    content: "\\f0ab";\n    display: inline-block;\n    font: normal normal normal 14px/1 FontAwesome;\n    font-size: inherit;\n    text-rendering: auto;\n}::ng-deep .ui-widget-header {\n    border: 1px solid #dddddd !important;\n    background: rgb(44, 191, 163) !important;\n    color: #fff !important;\n    font-weight: bold;\n}::ng-deep .ui-dialog{\n    margin-left: 26%;\n    margin-top: 20%;\n}::ng-deep input[type="text"]{\n    height: auto !important;\n}::ng-deep .purple-bg:focus{\n    color: #fff !important;\n}::ng-deep .hria_result_box h3,::ng-deep .hria_result_box p{\n    font-size: 16px !important;\n    overflow-wrap: break-word;\n}::ng-deep .ui-dialog{\n    z-index: 9999999 !important;\n}::ng-deep .btn-group-xs>.btn, .btn-xs{\n    font-size: 15px;\n}::ng-deep .error{\n    border:solid 1px red;\n}::ng-deep .covid {\n    background-color: #FFBF00;\n    color: black;\n    padding-right: 22%;\n    left: 10px;\n}::ng-deep ._hria_result_container {\n    margin-bottom: 20px;\n    background: aliceblue;\n    border: 1px solid #d1d7dc;\n}::ng-deep .hria_result_box p {\n    margin-left: 39px !important;\n    font-size: 0.8em !important;\n    margin-bottom: 5 !important;\n}.line-vt{\n    height: 1.5px;\n    width: 50px;\n    background: #263c49;\n    display: block;\n    margin: 20px 0;  \n}.top-content {\n    margin-top: 0;\n    margin-bottom: 1rem;\n}.btn-get-started {\n    letter-spacing: 0;\n    display: inline-block;\n    padding: 6px 22px;\n    border-radius: 50px;\n    transition: 0.5s;\n    font-size: 16px;\n    color: #fff;\n    background: #2cbfa3;\n    border: 2px solid #2cbfa3;\n    min-width: 50px;\n}::ng-deep .ng-value-label a{\n    color: #5c6b80 !important;\n}::ng-deep .ng-value-label a:focus{\n    color: #5c6b80 !important;\n}#clr-btn{\n    background: none!important;\n    border: none;\n    padding: 0!important;\n    text-decoration: none;\n    cursor: pointer;\n}#clr-btn:hover{\n    text-decoration: underline !important;\n}._result_summary{\n    background-color:rgb(44, 191, 163);\n}#hashmsg{display: none;}.results_top{}/* Extra small devices (phones, 600px and down) */@media only screen and (max-width: 1000px) {\n    #city,#zipcode{\n        width: 100% !important;\n    }\n    span#orlabel{\n        width: 100% !important;\n        left: 41%;\n        bottom: 3px;\n        text-align: center !important;\n    }\n    .col-sm-6{width: 100%;}\n    button.btn-xs{margin: 3px !important;}\n}@media only screen and (min-width:1000px) and (max-width: 1200px) {\n    button.btn-xs{margin: 1px !important;height: 36px !important;}\n}@media only screen and (min-width:480) and (max-width: 1024px) {\n    .col-sm-12{     flex: 0 0 100%;max-width: 100% !important;   \n    }\n}@media only screen and (min-width:480) and (max-width: 786px) {\n    #results_top.result_btns.btn-group.btn {\n        padding: 5px 8px !important;\n    }\n}@media only screen and (min-width:380) and (max-width: 750px) {\n    .results_top .col-sm-12{\n        flex: 0 0 50% !important;\n        max-width: 50% !important;\n        display: grid !important;\n    }\n    .btn-group-xs > .btn, .btn-xs{font-size: 10px !important;}\n}.results_top{ display: flex; align-content: space-around}.ng-select .ng-arrow-wrapper .ng-arrow {\n  display: none;\n}table.custom-table{z-index: 9 !important;}::ng-deep .mat-form-field{\n    width: 15% !important;\n}::ng-deep .sidenav a:nth-child(7){display:none !important;}\n']})],Iw);var Aw=n("quSY"),Dw=n("LRne");function Tw(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function Ow(t){return null!=t&&"false"!=`${t}`}function Pw(t,e=0){return Nw(t)?Number(t):e}function Nw(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Mw(t){return Array.isArray(t)?t:[t]}function Rw(t){return null==t?"":"string"==typeof t?t:`${t}px`}function Lw(t){return t instanceof s.ElementRef?t.nativeElement:t}let Fw,jw;try{Fw="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(eJ){Fw=!1}class Vw{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(Cu.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Fw)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}Vw.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Vw(Object(s["\u0275\u0275inject"])(s.PLATFORM_ID))},token:Vw,providedIn:"root"}),Vw.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Vw.ctorParameters=()=>[{type:Object,decorators:[{type:s.Inject,args:[s.PLATFORM_ID]}]}];class Bw{}Bw.decorators=[{type:s.NgModule,args:[{}]}];const Hw=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function zw(){if(jw)return jw;if("object"!=typeof document||!document)return jw=new Set(Hw),jw;let t=document.createElement("input");return jw=new Set(Hw.filter(e=>(t.setAttribute("type",e),t.type===e))),jw}let Uw,qw,$w,Ww;function Yw(t){return function(){if(null==Uw&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Uw=!0}))}finally{Uw=Uw||!1}return Uw}()?t:!!t.capture}function Gw(){if(null==$w){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $w=!1,$w;if("scrollBehavior"in document.documentElement.style)$w=!0;else{const t=Element.prototype.scrollTo;$w=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return $w}function Kw(){if("object"!=typeof document||!document)return 0;if(null==qw){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),qw=0,0===t.scrollLeft&&(t.scrollLeft=1,qw=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return qw}function Zw(t){if(function(){if(null==Ww){const t="undefined"!=typeof document?document.head:null;Ww=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Ww}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}class Xw{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}Xw.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Xw},token:Xw,providedIn:"root"}),Xw.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];class Qw{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Lw(t);return new vg.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new Gf.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}Qw.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Qw(Object(s["\u0275\u0275inject"])(Xw))},token:Qw,providedIn:"root"}),Qw.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Qw.ctorParameters=()=>[{type:Xw}];class Jw{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Pw(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(z_.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}Jw.decorators=[{type:s.Directive,args:[{selector:"[cdkObserveContent]",exportAs:"cdkObserveContent"}]}],Jw.ctorParameters=()=>[{type:Qw},{type:s.ElementRef},{type:s.NgZone}],Jw.propDecorators={event:[{type:s.Output,args:["cdkObserveContent"]}],disabled:[{type:s.Input,args:["cdkObserveContentDisabled"]}],debounce:[{type:s.Input}]};class tx{}tx.decorators=[{type:s.NgModule,args:[{exports:[Jw],declarations:[Jw],providers:[Xw]}]}];function ex(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let nx=0;const ix=new Map;let sx=null;class rx{constructor(t){this._document=t}describe(t,e,n){if(!this._canBeDescribed(t,e))return;const i=ax(e,n);"string"!=typeof e?(ox(e),ix.set(i,{messageElement:e,referenceCount:0})):ix.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}removeDescription(t,e,n){if(!e||!this._isElementNode(t))return;const i=ax(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){const t=ix.get(i);t&&0===t.referenceCount&&this._deleteMessageElement(i)}sx&&0===sx.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");sx&&this._deleteMessagesContainer(),ix.clear()}_createMessageElement(t,e){const n=this._document.createElement("div");ox(n),n.textContent=t,e&&n.setAttribute("role",e),this._createMessagesContainer(),sx.appendChild(n),ix.set(ax(t,e),{messageElement:n,referenceCount:0})}_deleteMessageElement(t){const e=ix.get(t),n=e&&e.messageElement;sx&&n&&sx.removeChild(n),ix.delete(t)}_createMessagesContainer(){if(!sx){const t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode&&t.parentNode.removeChild(t),sx=this._document.createElement("div"),sx.id="cdk-describedby-message-container",sx.style.visibility="hidden",sx.classList.add("cdk-visually-hidden"),this._document.body.appendChild(sx)}}_deleteMessagesContainer(){sx&&sx.parentNode&&(sx.parentNode.removeChild(sx),sx=null)}_removeCdkDescribedByReferenceIds(t){const e=ex(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=ix.get(e);!function(t,e,n){const i=ex(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=ix.get(e);n.referenceCount--,function(t,e,n){const i=ex(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=ex(t,"aria-describedby"),i=ix.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":`${e}`.trim(),i=t.getAttribute("aria-label");return!!n&&(!i||i.trim()!==n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}function ax(t,e){return"string"==typeof t?`${e||""}/${t}`:t}function ox(t){t.id||(t.id="cdk-describedby-message-"+nx++)}rx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new rx(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:rx,providedIn:"root"}),rx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],rx.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class lx{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Gf.a,this._typeaheadSubscription=Aw.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Gf.a,this.change=new Gf.a,t instanceof s.QueryList&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(kg.a)(t=>this._pressedLetters.push(t)),Object(z_.a)(t),Object(Cg.a)(()=>this._pressedLetters.length>0),Object($h.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,s=e[i];if(!this._skipPredicateFn(s)&&0===s.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(t=!0){return this._homeAndEnd=t,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Tw(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length,s=e[i];if(!this._skipPredicateFn(s))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.QueryList?this._items.toArray():this._items}}class cx extends lx{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class dx extends lx{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}class px{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(eJ){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===hx(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=hx(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&(!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||(this._platform.FIREFOX||t.hasAttribute("controls"))):t.tabIndex>=0))}isFocusable(t,e){return function(t){if(function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t))return!1;return function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||ux(t)}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}function ux(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function hx(t){if(!ux(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}px.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new px(Object(s["\u0275\u0275inject"])(Vw))},token:px,providedIn:"root"}),px.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],px.ctorParameters=()=>[{type:Vw}];class mx{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute(`cdk-focus-${t}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute(`cdk-focus-region-${t}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),!this._checker.isFocusable(t)){const e=this._getFirstTabbableElement(t);return null==e||e.focus(),!!e}return t.focus(),!0}return this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(Sg.a)(1)).subscribe(t)}}class fx{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new mx(t,this._checker,this._ngZone,this._document,e)}}fx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new fx(Object(s["\u0275\u0275inject"])(px),Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:fx,providedIn:"root"}),fx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],fx.ctorParameters=()=>[{type:px},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class gx{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Ow(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Ow(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){var t,e;const n=null===(t=this._document)||void 0===t?void 0:t.activeElement;this._previouslyFocusedElement=(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.activeElement)||n,this.focusTrap.focusInitialElementWhenReady()}}gx.decorators=[{type:s.Directive,args:[{selector:"[cdkTrapFocus]",exportAs:"cdkTrapFocus"}]}],gx.ctorParameters=()=>[{type:s.ElementRef},{type:fx},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}],gx.propDecorators={enabled:[{type:s.Input,args:["cdkTrapFocus"]}],autoCapture:[{type:s.Input,args:["cdkTrapFocusAutoCapture"]}]};class bx extends mx{constructor(t,e,n,i,s,r,a){super(t,e,n,i,a.defer),this._focusTrapManager=s,this._inertStrategy=r,this._focusTrapManager.register(this)}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}destroy(){this._focusTrapManager.deregister(this),super.destroy()}_enable(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}_disable(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}function vx(t,e){if(!(t instanceof Node))return null;let n=t;for(;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(yx?n.closest(e):function(t,e){let n=t;for(;null!=n&&!(n instanceof Element&&_x(n,e));)n=n.parentNode;return n||null}(n,e))}const yx="undefined"!=typeof Element&&!!Element.prototype.closest;function _x(t,e){return t.matches?t.matches(e):t.msMatchesSelector(e)}class wx{constructor(){this._listener=null}preventFocus(t){this._listener&&t._document.removeEventListener("focus",this._listener,!0),this._listener=e=>this._trapFocus(t,e),t._ngZone.runOutsideAngular(()=>{t._document.addEventListener("focus",this._listener,!0)})}allowFocus(t){this._listener&&(t._document.removeEventListener("focus",this._listener,!0),this._listener=null)}_trapFocus(t,e){const n=e.target,i=t._element;i.contains(n)||null!==vx(n,"div.cdk-overlay-pane")||setTimeout(()=>{t.enabled&&!i.contains(t._document.activeElement)&&t.focusFirstTabbableElement()})}}class xx{constructor(){this.defer=!1}}const Cx=new s.InjectionToken("FOCUS_TRAP_INERT_STRATEGY");class Sx{constructor(){this._focusTrapStack=[]}register(t){this._focusTrapStack=this._focusTrapStack.filter(e=>e!==t);let e=this._focusTrapStack;e.length&&e[e.length-1]._disable(),e.push(t),t._enable()}deregister(t){t._disable();const e=this._focusTrapStack,n=e.indexOf(t);-1!==n&&(e.splice(n,1),e.length&&e[e.length-1]._enable())}}Sx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Sx},token:Sx,providedIn:"root"}),Sx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];class kx{constructor(t,e,n,i,s){this._checker=t,this._ngZone=e,this._focusTrapManager=n,this._document=i,this._inertStrategy=s||new wx}create(t,e=new xx){let n;return"boolean"==typeof e?(n=new xx,n.defer=e):n=e,new bx(t,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,n)}}kx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new kx(Object(s["\u0275\u0275inject"])(px),Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Sx),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Cx,8))},token:kx,providedIn:"root"}),kx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],kx.ctorParameters=()=>[{type:px},{type:s.NgZone},{type:Sx},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cx]}]}];const Ex=new s.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}});const Ix=new s.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");class Ax{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}Ax.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Ax(Object(s["\u0275\u0275inject"])(Ex,8),Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Ix,8))},token:Ax,providedIn:"root"}),Ax.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Ax.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Ex]}]},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Ix]}]}];class Dx{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}function Tx(t){return 0===t.buttons}function Ox(t){const e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}Dx.decorators=[{type:s.Directive,args:[{selector:"[cdkAriaLive]",exportAs:"cdkAriaLive"}]}],Dx.ctorParameters=()=>[{type:s.ElementRef},{type:Ax},{type:Qw},{type:s.NgZone}],Dx.propDecorators={politeness:[{type:s.Input,args:["cdkAriaLive"]}]};const Px=new s.InjectionToken("cdk-focus-monitor-default-options"),Nx=Yw({passive:!0,capture:!0});class Mx{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Tx(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{Ox(t)?this._lastTouchTarget||this._setOriginForCurrentEventQueue("keyboard"):(null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Rx(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650))},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Rx(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Lw(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(Dw.a)(null);const i=Zw(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const r={checkChildren:e,subject:new Gf.a,rootNode:i};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=Lw(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=Lw(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([t,n])=>this._originChanged(t,e,n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Rx(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===Rx(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Nx),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Nx)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Nx),t.addEventListener("mousedown",this._documentMousedownListener,Nx),t.addEventListener("touchstart",this._documentTouchstartListener,Nx),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Nx),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Nx),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Nx),t.removeEventListener("mousedown",this._documentMousedownListener,Nx),t.removeEventListener("touchstart",this._documentTouchstartListener,Nx),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}_getClosestElementsInfo(t){const e=[];return this._elementInfo.forEach((n,i)=>{(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}function Rx(t){return t.composedPath?t.composedPath()[0]:t.target}Mx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Mx(Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Vw),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT,8),Object(s["\u0275\u0275inject"])(Px,8))},token:Mx,providedIn:"root"}),Mx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Mx.ctorParameters=()=>[{type:s.NgZone},{type:Vw},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Px]}]}];class Lx{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.EventEmitter}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}Lx.decorators=[{type:s.Directive,args:[{selector:"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],Lx.ctorParameters=()=>[{type:s.ElementRef},{type:Mx}],Lx.propDecorators={cdkFocusChange:[{type:s.Output}]};class Fx{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}Fx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Fx(Object(s["\u0275\u0275inject"])(Vw),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:Fx,providedIn:"root"}),Fx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Fx.ctorParameters=()=>[{type:Vw},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class jx{constructor(t){t._applyBodyHighContrastModeCssClasses()}}jx.decorators=[{type:s.NgModule,args:[{imports:[Bw,tx],declarations:[Dx,gx,Lx],exports:[Dx,gx,Lx]}]}],jx.ctorParameters=()=>[{type:Fx}];const Vx=new s.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.inject)(Cu.DOCUMENT)}});class Bx{constructor(t){if(this.value="ltr",this.change=new s.EventEmitter,t){const e=t.body?t.body.dir:null,n=t.documentElement?t.documentElement.dir:null,i=e||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}Bx.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Bx(Object(s["\u0275\u0275inject"])(Vx,8))},token:Bx,providedIn:"root"}),Bx.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],Bx.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Vx]}]}];class Hx{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new s.EventEmitter}get dir(){return this._dir}set dir(t){const e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}Hx.decorators=[{type:s.Directive,args:[{selector:"[dir]",providers:[{provide:Bx,useExisting:Hx}],host:{"[attr.dir]":"_rawDir"},exportAs:"dir"}]}],Hx.propDecorators={change:[{type:s.Output,args:["dirChange"]}],dir:[{type:s.Input}]};class zx{}zx.decorators=[{type:s.NgModule,args:[{exports:[Hx],declarations:[Hx]}]}];const Ux=new s.Version("11.2.13");class qx{}function $x(t,e){return{type:7,name:t,definitions:e,options:{}}}function Wx(t,e=null){return{type:4,styles:e,timings:t}}function Yx(t,e=null){return{type:2,steps:t,options:e}}function Gx(t){return{type:6,styles:t,offset:null}}function Kx(t,e,n){return{type:0,name:t,styles:e,options:n}}function Zx(t){return{type:5,steps:t}}function Xx(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Qx(t=null){return{type:9,options:t}}function Jx(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function tC(t){Promise.resolve(null).then(t)}class eC{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(){tC(()=>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(){}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 nC{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,i=0;const s=this.players.length;0==s?tC(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&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}}function iC(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function sC(t){switch(t.length){case 0:return new eC;case 1:return t[0];default:return new nC(t)}}function rC(t,e,n,i,s={},r={}){const a=[],o=[];let l=-1,c=null;if(i.forEach(t=>{const n=t.offset,i=n==l,d=i&&c||{};Object.keys(t).forEach(n=>{let i=n,o=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),o){case"!":o=s[n];break;case"*":o=r[n];break;default:o=e.normalizeStyleValue(n,i,o,a)}d[i]=o}),i||o.push(d),c=d,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return o}function aC(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&oC(n,"start",t)));break;case"done":t.onDone(()=>i(n&&oC(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&oC(n,"destroy",t)))}}function oC(t,e,n){const i=n.totalTime,s=!!n.disabled,r=lC(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,s),a=t._data;return null!=a&&(r._data=a),r}function lC(t,e,n,i,s="",r=0,a){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!a}}function cC(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function dC(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let pC=(t,e)=>!1;let uC=(t,e)=>!1;let hC=(t,e,n)=>[];const mC=iC();(mC||"undefined"!=typeof Element)&&(pC=(t,e)=>t.contains(e),uC=(()=>{if(mC||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]):uC}})(),hC=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let fC=null,gC=!1;function bC(t){fC||(fC=function(){if("undefined"!=typeof document)return document.body;return null}()||{},gC=!!fC.style&&"WebkitAppearance"in fC.style);let e=!0;if(fC.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in fC.style,!e&&gC)){e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in fC.style}return e}const vC=uC,yC=pC,_C=hC;function wC(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}class xC{validateStyleProperty(t){return bC(t)}matchesElement(t,e){return vC(t,e)}containsElement(t,e){return yC(t,e)}query(t,e,n){return _C(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,r=[],a){return new eC(n,i)}}xC.decorators=[{type:s.Injectable}];class CC{}CC.NOOP=new xC;function SC(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:kC(parseFloat(e[1]),e[2])}function kC(t,e){switch(e){case"s":return 1e3*t;default:return t}}function EC(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){const i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;let s,r=0,a="";if("string"==typeof t){const n=t.match(i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=kC(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=kC(parseFloat(o),n[4]));const l=n[5];l&&(a=l)}else s=t;if(!n){let n=!1,i=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:r,easing:a}}(t,e,n)}function IC(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function AC(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else IC(t,n);return n}function DC(t,e,n){return n?e+":"+n+";":""}function TC(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=DC(0,i,t.style.getPropertyValue(i))}for(const n in t.style){if(!t.style.hasOwnProperty(n)||n.startsWith("_"))continue;e+=DC(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n])}t.setAttribute("style",e)}function OC(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const s=VC(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),iC()&&TC(t))}function PC(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=VC(e);t.style[n]=""}),iC()&&TC(t))}function NC(t){return Array.isArray(t)?1==t.length?t[0]:Yx(t):t}const MC=new RegExp("{{\\s*(.+?)\\s*}}","g");function RC(t){let e=[];if("string"==typeof t){let n;for(;n=MC.exec(t);)e.push(n[1]);MC.lastIndex=0}return e}function LC(t,e,n){const i=t.toString(),s=i.replace(MC,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),s=""),s.toString()});return s==i?t:s}function FC(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const jC=/-+([a-z0-9])/g;function VC(t){return t.replace(jC,(...t)=>t[1].toUpperCase())}function BC(t,e){return 0===t||0===e}function HC(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],a=[];if(i.forEach(t=>{r.hasOwnProperty(t)||a.push(t),r[t]=n[t]}),a.length)for(var s=1;s<e.length;s++){let n=e[s];a.forEach(function(e){n[e]=UC(t,e)})}}return e}function zC(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 UC(t,e){return window.getComputedStyle(t)[e]}function qC(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],a=i[3];e.push(YC(s,a));const o="*"==s&&"*"==a;"<"!=r[0]||o||e.push(YC(a,s))}(t,n,e)):n.push(t),n}const $C=new Set(["true","1"]),WC=new Set(["false","0"]);function YC(t,e){const n=$C.has(t)||WC.has(t),i=$C.has(e)||WC.has(e);return(s,r)=>{let a="*"==t||t==s,o="*"==e||e==r;return!a&&n&&"boolean"==typeof s&&(a=s?$C.has(t):WC.has(t)),!o&&i&&"boolean"==typeof r&&(o=r?$C.has(e):WC.has(e)),a&&o}}const GC=new RegExp("s*:selfs*,?","g");function KC(t,e,n){return new ZC(t).build(e,n)}class ZC{constructor(t){this._driver=t}build(t,e){const n=new XC(e);return this._resetContextStyleTimingState(n),zC(this,NC(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(QC(t)){const e=t;Object.keys(e).forEach(t=>{RC(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=FC(s.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=zC(this,NC(t.animation),e);return{type:1,matchers:qC(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:JC(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>zC(this,t,e)),options:JC(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=zC(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,options:JC(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 tS(EC(t,e).duration,0,"")}const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=tS(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||EC(i,e),tS(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Gx({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,r=!1;if(!s){r=!0;const t={};n.easing&&(t.easing=n.easing),s=Gx(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=r,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(QC(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e){if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=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],a=r[n];let o=!0;a&&(s!=i&&s>=a.startTime&&i<=a.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${a.startTime}ms" and "${a.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),o=!1),s=a.startTime),o&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=RC(t);s.length&&s.forEach(t=>{i.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 i=0;const s=[];let r=!1,a=!1,o=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(QC(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(QC(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),a=a||c<0||c>1,r=r||c<o,o=c,s.push(c),n});a&&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 d=0;i>0&&i<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(c-1));const p=c-1,u=e.currentTime,h=e.currentAnimateTimings,m=h.duration;return l.forEach((t,i)=>{const r=d>0?i==p?1:d*i:s[i],a=r*m;e.currentTime=u+h.delay+a,h.duration=a,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:zC(this,NC(t.animation),e),options:JC(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:JC(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:JC(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);e&&(t=t.replace(GC,""));return[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,cC(e.collectedStyles,e.currentQuerySelector,{});const a=zC(this,NC(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:JC(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"}:EC(t.timings,e.errors,!0);return{type:12,animation:zC(this,NC(t.animation),e),timings:n,options:null}}}class XC{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 QC(t){return!Array.isArray(t)&&"object"==typeof t}function JC(t){var e;return t?(t=IC(t)).params&&(t.params=(e=t.params)?IC(e):null):t={},t}function tS(t,e,n){return{duration:t,delay:e,easing:n}}function eS(t,e,n,i,s,r,a=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:a,subTimeline:o}}class nS{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 iS=new RegExp(":enter","g"),sS=new RegExp(":leave","g");function rS(t,e,n,i,s,r={},a={},o,l,c=[]){return(new aS).buildKeyframes(t,e,n,i,s,r,a,o,l,c)}class aS{buildKeyframes(t,e,n,i,s,r,a,o,l,c=[]){l=l||new nS;const d=new lS(t,e,l,i,s,c,[]);d.options=o,d.currentTimeline.setStyles([r],null,d.errors,o),zC(this,n,d);const p=d.timelines.filter(t=>t.containsAnimation());if(p.length&&Object.keys(a).length){const t=p[p.length-1];t.allowOnlyTimelineStyles()||t.setStyles([a],null,d.errors,o)}return p.length?p.map(t=>t.buildKeyframes()):[eS(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 i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=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 i=e.currentTimeline.currentTime;const s=null!=n.duration?SC(n.duration):null,r=null!=n.delay?SC(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),zC(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=oS);const t=SC(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>zC(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?SC(t.options.delay):0;t.steps.forEach(r=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),zC(this,r,a),i=Math.max(i,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return EC(e.params?LC(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{const n=t.offset||0;r.forwardTime(n*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?SC(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=oS);let r=n;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;let o=null;a.forEach((n,i)=>{e.currentQueryIndex=i;const a=e.createSubContext(t.options,n);s&&a.delayNextStep(s),n===e.element&&(o=a.currentTimeline),zC(this,t.animation,a),a.currentTimeline.applyStylesToKeyframe();const l=a.currentTimeline.currentTime;r=Math.max(r,l)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let o=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=a-o;break;case"full":o=n.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const c=l.currentTime;zC(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const oS={};class lS{constructor(t,e,n,i,s,r,a,o){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=oS,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new cS(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=SC(n.duration)),null!=n.delay&&(i.delay=SC(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=LC(s[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 i=e||this.element,s=new lS(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=oS,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new dS(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(iS,"."+this._enterClassName)).replace(sS,"."+this._leaveClassName);const e=1!=n;let i=this._driver.query(this.element,t,e);0!==n&&(i=n<0?i.slice(i.length+n,i.length):i.slice(0,n)),a.push(...i)}return s||0!=a.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class cS{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,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 cS(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]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},r=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):AC(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=LC(r[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{const n=t[e];this._currentKeyframe[e]=n}),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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,r)=>{const a=AC(s,!0);Object.keys(a).forEach(n=>{const i=a[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(a.offset=r/this.duration),i.push(a)});const s=t.size?FC(t.values()):[],r=e.size?FC(e.values()):[];if(n){const t=i[0],e=IC(t);t.offset=0,e.offset=1,i=[t,e]}return eS(this.element,i,s,r,this.duration,this.startTime,this.easing,!1)}}class dS extends cS{constructor(t,e,n,i,s,r,a=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=a,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:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,a=e/r,o=AC(t[0],!1);o.offset=0,s.push(o);const l=AC(t[0],!1);l.offset=pS(a),s.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let a=AC(t[i],!1);const o=e+a.offset*n;a.offset=pS(o/r),s.push(a)}n=r,e=0,i="",t=s}return eS(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function pS(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class uS{}class hS extends uS{normalizePropertyName(t,e){return VC(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(mS[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}const mS=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 fS(t,e,n,i,s,r,a,o,l,c,d,p,u){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:p,errors:u}}const gS={};class bS{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,a,o,l,c){const d=[],p=this.ast.options&&this.ast.options.params||gS,u=a&&a.params||gS,h=this.buildStyles(n,u,d),m=o&&o.params||gS,f=this.buildStyles(i,m,d),g=new Set,b=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},p),m)},w=c?[]:rS(t,e,this.ast.animation,s,r,h,f,_,l,d);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),d.length)return fS(e,this._triggerName,n,i,y,h,f,[],[],b,v,x,d);w.forEach(t=>{const n=t.element,i=cC(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=cC(v,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&g.add(n)});const C=FC(g.values());return fS(e,this._triggerName,n,i,y,h,f,w,C,b,v,x)}}class vS{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=IC(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=LC(r,i,e)),n[t]=r})}}),n}}class yS{constructor(t,e){var n,i;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{const e=t.options&&t.options.params||{};this.states[t.name]=new vS(t.style,e)}),_S(this.states,"true","1"),_S(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new bS(t,e,this.states))}),this.fallbackTransition=(n=t,i=this.states,new bS(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},i))}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function _S(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const wS=new nS;class xS{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=KC(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]=i}_buildPlayer(t,e,n){const i=t.element,s=rC(this._driver,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let r;const a=new Map;if(s?(r=rS(this._driver,e,s,"ng-enter","ng-leave",{},{},n,wS,i),r.forEach(t=>{const e=cC(a,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),r=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const o=sC(r.map(t=>{const e=a.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=o,o.onDestroy(()=>this.destroy(t)),this.players.push(o),o}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,i){const s=lC(e,"","","");return aC(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n){const n=i[0]||{};return void this.create(t,e,n)}const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const CS=[],SS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kS={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ES{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value"),i=n?t.value:t;if(this.value=function(t){return null!=t?t:null}(i),n){const e=IC(t);delete e.value,this.options=e}else this.options={};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 IS=new ES("void");class AS{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,RS(e,this._hostClassName)}listen(t,e,n,i){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"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=cC(this._elementListeners,t,[]),a={name:e,phase:n,callback:i};r.push(a);const o=cC(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(RS(t,"ng-trigger"),RS(t,"ng-trigger-"+e),o[e]=IS),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(a);t>=0&&r.splice(t,1),this._triggers[e]||delete o[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,i=!0){const s=this._getTrigger(e),r=new TS(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(RS(t,"ng-trigger"),RS(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));let o=a[e];const l=new ES(n,this.id);!(n&&n.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),a[e]=l,o||(o=IS);if(!("void"===l.value)&&o.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s<n.length;s++){const i=n[s];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(o.params,l.params)){const e=[],n=s.matchStyles(o.value,o.params,e),i=s.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{PC(t,n),OC(t,i)})}return}const c=cC(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let d=s.matchTransition(o.value,l.value,t,l.params),p=!1;if(!d){if(!i)return;d=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:o,toState:l,player:r,isFallbackTransition:p}),p||(RS(t,"ng-animate-queued"),r.onStart(()=>{LS(t,"ng-animate-queued")})),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,".ng-trigger",!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,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&sC(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||IS,a=new ES("void"),o=new TS(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,toState:a,player:o,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;){if(n.statesByElement.get(e)){i=!0;break}}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==SS||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){RS(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=lC(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,aC(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 DS{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 AS(t,e,this);return e.parentNode?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 i=!1;for(let s=n;s>=0;s--){const n=this._namespaceList[s];if(this.driver.containsElement(n.hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i<t.length;i++){const s=n[t[i]].namespaceId;if(s){const t=this._fetchNamespace(s);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(OS(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!OS(e))return;const s=e.__ng_removed;if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),RS(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),LS(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(OS(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return OS(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!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 sC(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=SS,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!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++){RS(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++){const t=this.collectedLeaveElements[n];this.processLeaveNode(t)}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?sC(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 nS,i=[],s=new Map,r=[],a=new Map,o=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const d=this.bodyNode,p=Array.from(this.statesByElement.keys()),u=MS(p,this.collectedEnterElements),h=new Map;let m=0;u.forEach((t,e)=>{const n="ng-enter"+m++;h.set(e,n),t.forEach(t=>RS(t,n))});const f=[],g=new Set,b=new Set;for(let T=0;T<this.collectedLeaveElements.length;T++){const t=this.collectedLeaveElements[T],e=t.__ng_removed;e&&e.setForRemoval&&(f.push(t),g.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>g.add(t)):b.add(t))}const v=new Map,y=MS(p,Array.from(g));y.forEach((t,e)=>{const n="ng-leave"+m++;v.set(e,n),t.forEach(t=>RS(t,n))}),t.push(()=>{u.forEach((t,e)=>{const n=h.get(e);t.forEach(t=>LS(t,n))}),y.forEach((t,e)=>{const n=v.get(e);t.forEach(t=>LS(t,n))}),f.forEach(t=>{this.processLeaveNode(t)})});const _=[],w=[];for(let T=this._namespaceList.length-1;T>=0;T--){this._namespaceList[T].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(_.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!d||!this.driver.containsElement(d,s),p=v.get(s),u=h.get(s),m=this._buildInstruction(t,n,u,p,c);if(m.errors&&m.errors.length)return void w.push(m);if(c)return e.onStart(()=>PC(s,m.fromStyles)),e.onDestroy(()=>OC(s,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>PC(s,m.fromStyles)),e.onDestroy(()=>OC(s,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,m.timelines);const f={instruction:m,player:e,element:s};r.push(f),m.queriedElements.forEach(t=>cC(a,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=o.get(e);t||o.set(e,t=new Set),n.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=l.get(e);i||l.set(e,i=new Set),n.forEach(t=>i.add(t))})})}if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),_.forEach(t=>t.destroy()),this.reportError(t)}const x=new Map,C=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{cC(x,e,[]).push(t),t.destroy()})});const S=f.filter(t=>VS(t,o,l)),k=new Map;NS(k,this.driver,b,l,"*").forEach(t=>{VS(t,o,l)&&S.push(t)});const E=new Map;u.forEach((t,e)=>{NS(E,this.driver,new Set(t),o,"!")}),S.forEach(t=>{const e=k.get(t),n=E.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const I=[],A=[],D={};r.forEach(t=>{const{element:e,player:r,instruction:a}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>OC(e,a.toStyles)),r.disabled=!0,r.overrideTotalTime(a.totalTime),void i.push(r);let t=D;if(C.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=C.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>C.set(e,t))}const n=this._buildAnimation(r.namespaceId,a,x,s,E,k);if(r.setRealPlayer(n),t===D)I.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=sC(e)),i.push(r)}}else PC(e,a.fromStyles),r.onDestroy(()=>OC(e,a.toStyles)),A.push(r),c.has(e)&&i.push(r)}),A.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=sC(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let T=0;T<f.length;T++){const t=f[T],e=t.__ng_removed;if(LS(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(a.size){let e=a.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=a.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?FS(this,t,i):this.processLeaveNode(t)}return f.length=0,I.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),I}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.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,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>(!n||n==t.namespaceId)&&(!i||i==t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.triggerName,s=e.element,r=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:i;for(const o of e.timelines){const t=o.element,i=t!==s,l=cC(n,t,[]);this._getPreviousPlayers(t,i,r,a,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}PC(s,e.fromStyles)}_buildAnimation(t,e,n,i,s,r){const a=e.triggerName,o=e.element,l=[],c=new Set,d=new Set,p=e.timelines.map(e=>{const p=e.element;c.add(p);const u=p.__ng_removed;if(u&&u.removedBeforeQueried)return new eC(e.duration,e.delay);const h=p!==o,m=function(t){const e=[];return jS(t,e),e}((n.get(p)||CS).map(t=>t.getRealPlayer())).filter(t=>{const e=t;return!!e.element&&e.element===p}),f=s.get(p),g=r.get(p),b=rC(this.driver,this._normalizer,0,e.keyframes,f,g),v=this._buildPlayer(e,b,m);if(e.subTimeline&&i&&d.add(p),h){const e=new TS(t,a,p);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{cC(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>RS(t,"ng-animating"));const u=sC(p);return u.onDestroy(()=>{c.forEach(t=>LS(t,"ng-animating")),OC(o,e.toStyles)}),d.forEach(t=>{cC(i,t,[]).push(u)}),u}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new eC(t.duration,t.delay)}}class TS{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new eC,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=>aC(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){cC(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 OS(t){return t&&1===t.nodeType}function PS(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function NS(t,e,n,i,s){const r=[];n.forEach(t=>r.push(PS(t)));const a=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=kS,a.push(i))}),t.set(i,r)});let o=0;return n.forEach(t=>PS(t,r[o++])),a}function MS(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const a=t.parentNode;return e=n.has(a)?a:i.has(a)?1:r(a),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&n.get(e).push(t)}),n}function RS(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function LS(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function FS(t,e,n){sC(n).onDone(()=>t.processLeaveNode(e))}function jS(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof nC?jS(i.players,e):e.push(i)}}function VS(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class BS{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new DS(t,e,n),this._timelineEngine=new xS(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let a=this._triggerCache[r];if(!a){const t=[],e=KC(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);a=function(t,e){return new yS(t,e)}(i,e),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,i,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=dC(n),r=i;this._timelineEngine.command(t,e,s,r)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=dC(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function HS(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=US(e[0]),e.length>1&&(i=US(e[e.length-1]))):e&&(n=US(e)),n||i?new zS(t,n,i):null}class zS{constructor(t,e,n){this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;let i=zS.initialStylesByElement.get(t);i||zS.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&OC(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(OC(this._element,this._initialStyles),this._endStyles&&(OC(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(zS.initialStylesByElement.delete(this._element),this._startStyles&&(PC(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(PC(this._element,this._endStyles),this._endStyles=null),OC(this._element,this._initialStyles),this._state=3)}}function US(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const s=n[i];qS(s)&&(e=e||{},e[s]=t[s])}return e}function qS(t){return"display"===t||"position"===t}zS.initialStylesByElement=new WeakMap;class $S{constructor(t,e,n,i,s,r,a){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=s,this._fillMode=r,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=XS(t,"").trim();let i=0;n.length&&(i=function(t,e){let n=0;for(let i=0;i<t.length;i++){t.charAt(i)===e&&n++}return n}(n,",")+1,e=`${n}, ${e}`);ZS(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),KS(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){WS(this._element,this._name,"paused")}resume(){WS(this._element,this._name,"running")}setPosition(t){const e=YS(this._element,this._name);this._position=t*this._duration,ZS(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(),KS(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=XS(t,"").split(","),i=GS(n,e);if(i>=0){n.splice(i,1);ZS(t,"",n.join(","))}}(this._element,this._name))}}function WS(t,e,n){ZS(t,"PlayState",n,YS(t,e))}function YS(t,e){const n=XS(t,"");if(n.indexOf(",")>0){return GS(n.split(","),e)}return GS([n],e)}function GS(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function KS(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ZS(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function XS(t,e){return t.style["animation"+e]||""}class QS{constructor(t,e,n,i,s,r,a,o){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=a,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,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(){if(this._state>=1)return;this._state=1;this.element;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._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new $S(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]:UC(this.element,n))})}this.currentSnapshot=t}}class JS extends eC{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=wC(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 tk{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return bC(t)}matchesElement(t,e){return vC(t,e)}containsElement(t,e){return yC(t,e)}query(t,e,n){return _C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>wC(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=`${s}}\n`}),i+="}\n";const r=document.createElement("style");return r.textContent=i,r}animate(t,e,n,i,s,r=[],a){const o=r.filter(t=>t instanceof QS),l={};BC(n,i)&&o.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};if(t){(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})})}return e}(e=HC(t,e,l));if(0==n)return new JS(t,c);const d="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,d,e);document.querySelector("head").appendChild(p);const u=HS(t,e),h=new QS(t,e,d,n,i,s,c,u);return h.onDestroy(()=>{var t;(t=p).parentNode.removeChild(t)}),h}}class ek{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,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){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]:UC(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class nk{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ik().toString()),this._cssKeyframesDriver=new tk}validateStyleProperty(t){return bC(t)}matchesElement(t,e){return vC(t,e)}containsElement(t,e){return yC(t,e)}query(t,e,n){return _C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const o={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(o.easing=s);const l={},c=r.filter(t=>t instanceof ek);BC(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const d=HS(t,e=HC(t,e=e.map(t=>AC(t,!1)),l));return new ek(t,e,o,d)}}function ik(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}class sk extends qx{constructor(t,e){super(),this._nextAnimationId=0;const n={id:"0",encapsulation:s.ViewEncapsulation.None,styles:[],data:{animation:[]}};this._renderer=t.createRenderer(e.body,n)}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Yx(t):t;return ok(this._renderer,null,e,"register",[n]),new rk(e,this._renderer)}}sk.decorators=[{type:s.Injectable}],sk.ctorParameters=()=>[{type:s.RendererFactory2},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class rk extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ak(this._id,t,e||{},this._renderer)}}class ak{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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 ok(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")}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 ok(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}class lk{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 ck("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new dk(this,s,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()}}lk.decorators=[{type:s.Injectable}],lk.ctorParameters=()=>[{type:s.RendererFactory2},{type:BS},{type:s.NgZone}];class ck{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,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?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 dk extends ck{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?(n=void 0===n||!!n,this.disableAnimations(t,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)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf("."),n=t.substring(0,e),i=t.substr(e+1);return[n,i]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{const e=t._data||-1;this.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n)}}class pk extends BS{constructor(t,e,n){super(t.body,e,n)}}pk.decorators=[{type:s.Injectable}],pk.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:CC},{type:uS}];const uk=new s.InjectionToken("AnimationModuleType"),hk=[{provide:qx,useClass:sk},{provide:uS,useFactory:function(){return new hS}},{provide:BS,useClass:pk},{provide:s.RendererFactory2,useFactory:function(t,e,n){return new lk(t,e,n)},deps:[Wu,BS,s.NgZone]}],mk=[{provide:CC,useFactory:function(){return"function"==typeof ik()?new nk:new tk}},{provide:uk,useValue:"BrowserAnimations"},...hk],fk=[{provide:CC,useClass:xC},{provide:uk,useValue:"NoopAnimations"},...hk];class gk{}gk.decorators=[{type:s.NgModule,args:[{exports:[gh],providers:mk}]}];(class{}).decorators=[{type:s.NgModule,args:[{exports:[gh],providers:fk}]}];new s.Version("11.2.13");class bk{}bk.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",bk.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",bk.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",bk.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";class vk{}vk.COMPLEX="375ms",vk.ENTERING="225ms",vk.EXITING="195ms";const yk=new s.Version("11.2.13");const _k=new s.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});class wk{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(s.isDevMode)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&yk.full!==Ux.full&&console.warn("The Angular Material version ("+yk.full+") does not match the Angular CDK version ("+Ux.full+").\nPlease ensure the versions of these two packages exactly match.")}}function xk(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t)}}}function Ck(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),e&&this._elementRef.nativeElement.classList.add(`mat-${e}`),this._color=e)}}}function Sk(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ow(t)}}}function kk(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Pw(t):this.defaultTabIndex}}}function Ek(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new Gf.a}updateErrorState(){const t=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.errorStateMatcher||this._defaultErrorStateMatcher,i=this.ngControl?this.ngControl.control:null,s=n.isErrorState(i,e);s!==t&&(this.errorState=s,this.stateChanges.next())}}}function Ik(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new vg.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}wk.decorators=[{type:s.NgModule,args:[{imports:[zx],exports:[zx]}]}],wk.ctorParameters=()=>[{type:Fx},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[_k]}]},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];const Ak=new s.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(s.inject)(s.LOCALE_ID)}});class Dk{constructor(){this._localeChanges=new Gf.a,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Tk=new s.InjectionToken("mat-date-formats");let Ok;try{Ok="undefined"!=typeof Intl}catch(eJ){Ok=!1}const Pk={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Nk=Lk(31,t=>String(t+1)),Mk={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Rk=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Lk(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}class Fk extends Dk{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(Ok){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Lk(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Pk[t]}getDateNames(){if(Ok){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Lk(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return Nk}getDayOfWeekNames(t){if(Ok){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Lk(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return Mk[t]}getYearName(t){if(Ok){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(Ok){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Rk.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}Fk.decorators=[{type:s.Injectable}],Fk.ctorParameters=()=>[{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[Ak]}]},{type:Vw}];class jk{}jk.decorators=[{type:s.NgModule,args:[{imports:[Bw],providers:[{provide:Dk,useClass:Fk}]}]}];const Vk={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};class Bk{}Bk.decorators=[{type:s.NgModule,args:[{imports:[jk],providers:[{provide:Tk,useValue:Vk}]}]}];(class{isErrorState(t,e){return!!(t&&t.invalid&&(t.dirty||e&&e.submitted))}}).decorators=[{type:s.Injectable}];class Hk{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}Hk.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new Hk},token:Hk,providedIn:"root"}),Hk.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];class zk{}zk.decorators=[{type:s.Directive,args:[{selector:"[mat-line], [matLine]",host:{class:"mat-line"}}]}];(class{}).decorators=[{type:s.NgModule,args:[{imports:[wk],exports:[zk,wk],declarations:[zk]}]}];class Uk{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const qk={enterDuration:450,exitDuration:400},$k=Yw({passive:!0}),Wk=["mousedown","touchstart"],Yk=["mouseup","mouseleave","touchend","touchcancel"];class Gk{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Lw(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},qk),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),a=t-i.left,o=e-i.top,l=s.enterDuration,c=document.createElement("div");var d;c.classList.add("mat-ripple-element"),c.style.left=a-r+"px",c.style.top=o-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(c),d=c,window.getComputedStyle(d).getPropertyValue("opacity"),c.style.transform="scale(1)";const p=new Uk(this,c,n);return p.state=0,this._activeRipples.add(p),n.persistent||(this._mostRecentTransientRipple=p),this._runTimeoutOutsideZone(()=>{const t=p===this._mostRecentTransientRipple;p.state=1,n.persistent||t&&this._isPointerDown||p.fadeOut()},l),p}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},qk),t.config.animation);n.style.transitionDuration=`${i.exitDuration}ms`,n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){const e=Lw(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Wk))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Yk),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Tx(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!Ox(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{const e=1===t.state||t.config.terminateOnPointerUp&&0===t.state;!t.config.persistent&&e&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,$k)})})}_removeTriggerEvents(){this._triggerElement&&(Wk.forEach(t=>{this._triggerElement.removeEventListener(t,this,$k)}),this._pointerUpEventsRegistered&&Yk.forEach(t=>{this._triggerElement.removeEventListener(t,this,$k)}))}}const Kk=new s.InjectionToken("mat-ripple-global-options");class Zk{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Gk(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}Zk.decorators=[{type:s.Directive,args:[{selector:"[mat-ripple], [matRipple]",exportAs:"matRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],Zk.ctorParameters=()=>[{type:s.ElementRef},{type:s.NgZone},{type:Vw},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Kk]}]},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],Zk.propDecorators={color:[{type:s.Input,args:["matRippleColor"]}],unbounded:[{type:s.Input,args:["matRippleUnbounded"]}],centered:[{type:s.Input,args:["matRippleCentered"]}],radius:[{type:s.Input,args:["matRippleRadius"]}],animation:[{type:s.Input,args:["matRippleAnimation"]}],disabled:[{type:s.Input,args:["matRippleDisabled"]}],trigger:[{type:s.Input,args:["matRippleTrigger"]}]};class Xk{}Xk.decorators=[{type:s.NgModule,args:[{imports:[wk,Bw],exports:[Zk,wk],declarations:[Zk]}]}];class Qk{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}Qk.decorators=[{type:s.Component,args:[{encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,selector:"mat-pseudo-checkbox",template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"'},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n']}]}],Qk.ctorParameters=()=>[{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],Qk.propDecorators={state:[{type:s.Input}],disabled:[{type:s.Input}]};class Jk{}Jk.decorators=[{type:s.NgModule,args:[{imports:[wk],exports:[Qk],declarations:[Qk]}]}];const tE=new s.InjectionToken("MAT_OPTION_PARENT_COMPONENT");const eE=xk(class{});let nE=0;class iE extends eE{constructor(t){var e;super(),this._labelId="mat-optgroup-label-"+nE++,this._inert=null!==(e=null==t?void 0:t.inertGroups)&&void 0!==e&&e}}iE.decorators=[{type:s.Directive}],iE.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[tE]},{type:s.Optional}]}],iE.propDecorators={label:[{type:s.Input}]};const sE=new s.InjectionToken("MatOptgroup");class rE extends iE{}rE.decorators=[{type:s.Component,args:[{selector:"mat-optgroup",exportAs:"matOptgroup",template:'<span class="mat-optgroup-label" aria-hidden="true" [id]="_labelId">{{ label }} <ng-content></ng-content></span>\n<ng-content select="mat-option, ng-container"></ng-content>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,inputs:["disabled"],host:{class:"mat-optgroup","[attr.role]":'_inert ? null : "group"',"[attr.aria-disabled]":"_inert ? null : disabled.toString()","[attr.aria-labelledby]":"_inert ? null : _labelId","[class.mat-optgroup-disabled]":"disabled"},providers:[{provide:sE,useExisting:rE}],styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"]}]}];let aE=0;class oE{constructor(t,e=!1){this.source=t,this.isUserInput=e}}class lE{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+aE++,this.onSelectionChange=new s.EventEmitter,this._stateChanges=new Gf.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Ow(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||Tw(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new oE(this,t))}}lE.decorators=[{type:s.Directive}],lE.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:void 0},{type:iE}],lE.propDecorators={value:[{type:s.Input}],id:[{type:s.Input}],disabled:[{type:s.Input}],onSelectionChange:[{type:s.Output}]};class cE extends lE{constructor(t,e,n,i){super(t,e,n,i)}}function dE(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===s[r]&&r++;return r}return 0}function pE(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}cE.decorators=[{type:s.Component,args:[{selector:"mat-option",exportAs:"matOption",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"_getAriaSelected()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option mat-focus-indicator"},template:'<mat-pseudo-checkbox *ngIf="multiple" class="mat-option-pseudo-checkbox"\n    [state]="selected ? \'checked\' : \'unchecked\'" [disabled]="disabled"></mat-pseudo-checkbox>\n\n<span class="mat-option-text"><ng-content></ng-content></span>\n\n\x3c!-- See a11y notes inside optgroup.ts for context behind this element. --\x3e\n<span class="cdk-visually-hidden" *ngIf="group && group._inert">({{ group.label }})</span>\n\n<div class="mat-option-ripple" mat-ripple\n     [matRippleTrigger]="_getHostElement()"\n     [matRippleDisabled]="disabled || disableRipple">\n</div>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"]}]}],cE.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[tE]}]},{type:rE,decorators:[{type:s.Optional},{type:s.Inject,args:[sE]}]}];class uE{}uE.decorators=[{type:s.NgModule,args:[{imports:[Xk,Cu.CommonModule,wk,Jk],exports:[cE,rE],declarations:[cE,rE]}]}];const hE=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];const mE=Ck(xk(Sk(class{constructor(t){this._elementRef=t}})));class fE extends mE{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of hE)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}fE.decorators=[{type:s.Component,args:[{selector:"button[mat-button], button[mat-raised-button], button[mat-icon-button],\n             button[mat-fab], button[mat-mini-fab], button[mat-stroked-button],\n             button[mat-flat-button]",exportAs:"matButton",host:{"[attr.disabled]":"disabled || null","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"',"[class.mat-button-disabled]":"disabled",class:"mat-focus-indicator"},template:'<span class="mat-button-wrapper"><ng-content></ng-content></span>\n<span matRipple class="mat-button-ripple"\n      [class.mat-button-ripple-round]="isRoundButton || isIconButton"\n      [matRippleDisabled]="_isRippleDisabled()"\n      [matRippleCentered]="isIconButton"\n      [matRippleTrigger]="_getHostElement()"></span>\n<span class="mat-button-focus-overlay"></span>\n',inputs:["disabled","disableRipple","color"],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"]}]}],fE.ctorParameters=()=>[{type:s.ElementRef},{type:Mx},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],fE.propDecorators={ripple:[{type:s.ViewChild,args:[Zk]}]};class gE extends fE{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}gE.decorators=[{type:s.Component,args:[{selector:"a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab],\n             a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]",exportAs:"matButton, matAnchor",host:{"[attr.tabindex]":"disabled ? -1 : (tabIndex || 0)","[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","(click)":"_haltDisabledEvents($event)","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"',"[class.mat-button-disabled]":"disabled",class:"mat-focus-indicator"},inputs:["disabled","disableRipple","color"],template:'<span class="mat-button-wrapper"><ng-content></ng-content></span>\n<span matRipple class="mat-button-ripple"\n      [class.mat-button-ripple-round]="isRoundButton || isIconButton"\n      [matRippleDisabled]="_isRippleDisabled()"\n      [matRippleCentered]="isIconButton"\n      [matRippleTrigger]="_getHostElement()"></span>\n<span class="mat-button-focus-overlay"></span>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"]}]}],gE.ctorParameters=()=>[{type:Mx},{type:s.ElementRef},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],gE.propDecorators={tabIndex:[{type:s.Input}]};class bE{}bE.decorators=[{type:s.NgModule,args:[{imports:[Xk,wk],exports:[fE,gE,wk],declarations:[fE,gE]}]}];var vE=n("7+OI"),yE=n("Zy1z"),_E=n("UXun");class wE{}function xE(t){return t&&"function"==typeof t.connect}class CE extends wE{constructor(t){super(),this._data=t}connect(){return Object(vE.a)(this._data)?this._data:Object(Dw.a)(this._data)}disconnect(){}}class SE{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let a,o;if(null==t.previousIndex){const s=n(t,i,r);a=e.createEmbeddedView(s.templateRef,s.context,s.index),o=1}else null==r?(e.remove(i),o=3):(a=e.get(i),e.move(a,r),o=2);s&&s({context:null==a?void 0:a.context,operation:o,record:t})})}detach(){}}class kE{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,a)=>{let o,l;if(null==t.previousIndex){const s=()=>n(t,r,a);o=this._insertView(s,a,e,i(t)),l=o?1:0}else null==a?(this._detachAndCacheView(r,e),l=3):(o=this._moveView(r,a,e,i(t)),l=2);s&&s({context:null==o?void 0:o.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy();this._viewCache=[]}_insertView(t,e,n,i){const s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=e.detach(t);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_maybeCacheView(t,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{const n=e.indexOf(t);-1===n?t.destroy():e.remove(n)}}_insertViewFromCache(t,e){const n=this._viewCache.pop();return n&&e.insert(n,t),n||null}}class EE{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Gf.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){t.length>1&&this._multiple,0}}class IE{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}IE.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new IE},token:IE,providedIn:"root"}),IE.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];const AE=new s.InjectionToken("_ViewRepeater"),DE=new s.InjectionToken("VIRTUAL_SCROLL_STRATEGY");class TE{constructor(t,e,n){this._scrolledIndexChange=new Gf.a,this.scrolledIndexChange=this._scrolledIndexChange.pipe(Object(_g.a)()),this._viewport=null,this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=n}attach(t){this._viewport=t,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(t,e,n){this._itemSize=t,this._minBufferPx=e,this._maxBufferPx=n,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(t,e){this._viewport&&this._viewport.scrollToOffset(t*this._itemSize,e)}_updateTotalContentSize(){this._viewport&&this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const t=this._viewport.getRenderedRange(),e={start:t.start,end:t.end},n=this._viewport.getViewportSize(),i=this._viewport.getDataLength();let s=this._viewport.measureScrollOffset(),r=this._itemSize>0?s/this._itemSize:0;if(e.end>i){const t=Math.ceil(n/this._itemSize),a=Math.max(0,Math.min(r,i-t));r!=a&&(r=a,s=a*this._itemSize,e.start=Math.floor(r)),e.end=Math.max(0,Math.min(i,e.start+t))}const a=s-e.start*this._itemSize;if(a<this._minBufferPx&&0!=e.start){const t=Math.ceil((this._maxBufferPx-a)/this._itemSize);e.start=Math.max(0,e.start-t),e.end=Math.min(i,Math.ceil(r+(n+this._minBufferPx)/this._itemSize))}else{const t=e.end*this._itemSize-(s+n);if(t<this._minBufferPx&&e.end!=i){const n=Math.ceil((this._maxBufferPx-t)/this._itemSize);n>0&&(e.end=Math.min(i,e.end+n),e.start=Math.max(0,Math.floor(r-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(e),this._viewport.setRenderedContentOffset(this._itemSize*e.start),this._scrolledIndexChange.next(Math.floor(r))}}class OE{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new TE(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=Pw(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=Pw(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=Pw(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}OE.decorators=[{type:s.Directive,args:[{selector:"cdk-virtual-scroll-viewport[itemSize]",providers:[{provide:DE,useFactory:function(t){return t._scrollStrategy},deps:[Object(s.forwardRef)(()=>OE)]}]}]}],OE.propDecorators={itemSize:[{type:s.Input}],minBufferPx:[{type:s.Input}],maxBufferPx:[{type:s.Input}]};class PE{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new Gf.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new vg.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(H_.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(Dw.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(Cg.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=Lw(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(fg.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}PE.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new PE(Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Vw),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT,8))},token:PE,providedIn:"root"}),PE.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],PE.ctorParameters=()=>[{type:s.NgZone},{type:Vw},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cu.DOCUMENT]}]}];class NE{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new Gf.a,this._elementScrolled=new vg.a(t=>this.ngZone.runOutsideAngular(()=>Object(fg.a)(this.elementRef.nativeElement,"scroll").pipe(Object(xg.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Kw()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Kw()?t.left=t.right:1==Kw()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Gw()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Kw()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Kw()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}NE.decorators=[{type:s.Directive,args:[{selector:"[cdk-scrollable], [cdkScrollable]"}]}],NE.ctorParameters=()=>[{type:s.ElementRef},{type:PE},{type:s.NgZone},{type:Bx,decorators:[{type:s.Optional}]}];class ME{constructor(t,e,n){this._platform=t,this._change=new Gf.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(H_.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}ME.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new ME(Object(s["\u0275\u0275inject"])(Vw),Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT,8))},token:ME,providedIn:"root"}),ME.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ME.ctorParameters=()=>[{type:Vw},{type:s.NgZone},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cu.DOCUMENT]}]}];const RE="undefined"!=typeof requestAnimationFrame?U_.b:q_.b;class LE extends NE{constructor(t,e,n,i,s,r,a){super(t,r,n,s),this.elementRef=t,this._changeDetectorRef=e,this._scrollStrategy=i,this._detachedSubject=new Gf.a,this._renderedRangeSubject=new Gf.a,this._orientation="vertical",this.scrolledIndexChange=new vg.a(t=>this._scrollStrategy.scrolledIndexChange.subscribe(e=>Promise.resolve().then(()=>this.ngZone.run(()=>t.next(e))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=Aw.a.EMPTY,this._viewportChanges=a.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe(Object(yg.a)(null),Object(H_.a)(0,RE)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this._forOf,this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Object(xg.a)(this._detachedSubject)).subscribe(t=>{const e=t.length;e!==this._dataLength&&(this._dataLength=e,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){var e,n;e=this._renderedRange,n=t,(e.start!=n.start||e.end!=n.end)&&(this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,e="to-start"){const n=this.dir&&"rtl"==this.dir.value,i="horizontal"==this.orientation,s=i?"X":"Y";let r=`translate${s}(${Number((i&&n?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===e&&(r+=` translate${s}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=r&&(this._renderedContentTransform=r,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,e="auto"){const n={behavior:e};"horizontal"===this.orientation?n.start=t:n.top=t,this.scrollTo(n)}scrollToIndex(t,e="auto"){this._scrollStrategy.scrollToIndex(t,e)}measureScrollOffset(t){return t?super.measureScrollOffset(t):super.measureScrollOffset("horizontal"===this.orientation?"start":"top")}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const t=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?t.clientWidth:t.clientHeight}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const e of t)e()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}function FE(t,e,n){const i=n;if(!i.getBoundingClientRect)return 0;const s=i.getBoundingClientRect();return"horizontal"===t?"start"===e?s.left:s.right:"start"===e?s.top:s.bottom}LE.decorators=[{type:s.Component,args:[{selector:"cdk-virtual-scroll-viewport",template:'\x3c!--\n  Wrap the rendered content in an element that will be used to offset it based on the scroll\n  position.\n--\x3e\n<div #contentWrapper class="cdk-virtual-scroll-content-wrapper">\n  <ng-content></ng-content>\n</div>\n\x3c!--\n  Spacer used to force the scrolling container to the correct size for the *total* number of items\n  so that the scrollbar captures the size of the entire data set.\n--\x3e\n<div class="cdk-virtual-scroll-spacer"\n     [style.width]="_totalContentWidth" [style.height]="_totalContentHeight"></div>\n',host:{class:"cdk-virtual-scroll-viewport","[class.cdk-virtual-scroll-orientation-horizontal]":'orientation === "horizontal"',"[class.cdk-virtual-scroll-orientation-vertical]":'orientation !== "horizontal"'},encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[{provide:NE,useExisting:LE}],styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"]}]}],LE.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:s.NgZone},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[DE]}]},{type:Bx,decorators:[{type:s.Optional}]},{type:PE},{type:ME}],LE.propDecorators={orientation:[{type:s.Input}],scrolledIndexChange:[{type:s.Output}],_contentWrapper:[{type:s.ViewChild,args:["contentWrapper",{static:!0}]}]};class jE{constructor(t,e,n,i,s,r){this._viewContainerRef=t,this._template=e,this._differs=n,this._viewRepeater=i,this._viewport=s,this.viewChange=new Gf.a,this._dataSourceChanges=new Gf.a,this.dataStream=this._dataSourceChanges.pipe(Object(yg.a)(null),Object(yE.a)(),Object(wg.a)(([t,e])=>this._changeDataSource(t,e)),Object(_E.a)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Gf.a,this.dataStream.subscribe(t=>{this._data=t,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Object(xg.a)(this._destroyed)).subscribe(t=>{this._renderedRange=t,r.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,xE(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new CE(Object(vE.a)(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(e,n)=>t(e+(this._renderedRange?this._renderedRange.start:0),n):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=Pw(t)}measureRangeSize(t,e){if(t.start>=t.end)return 0;t.start<this._renderedRange.start||(t.end,this._renderedRange.end);const n=t.start-this._renderedRange.start,i=t.end-t.start;let s,r;for(let a=0;a<i;a++){const t=this._viewContainerRef.get(a+n);if(t&&t.rootNodes.length){s=r=t.rootNodes[0];break}}for(let a=i-1;a>-1;a--){const t=this._viewContainerRef.get(a+n);if(t&&t.rootNodes.length){r=t.rootNodes[t.rootNodes.length-1];break}}return s&&r?FE(e,"end",r)-FE(e,"start",s):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){this._renderedRange&&(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,e)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,e):e)),this._needsUpdate=!0)}_changeDataSource(t,e){return t&&t.disconnect(this),this._needsUpdate=!0,e?e.connect(this):Object(Dw.a)()}_updateContext(){const t=this._data.length;let e=this._viewContainerRef.length;for(;e--;){const n=this._viewContainerRef.get(e);n.context.index=this._renderedRange.start+e,n.context.count=t,this._updateComputedContextProperties(n.context),n.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(t,e,n)=>this._getEmbeddedViewArgs(t,n),t=>t.item),t.forEachIdentityChange(t=>{this._viewContainerRef.get(t.currentIndex).context.$implicit=t.item});const e=this._data.length;let n=this._viewContainerRef.length;for(;n--;){const t=this._viewContainerRef.get(n);t.context.index=this._renderedRange.start+n,t.context.count=e,this._updateComputedContextProperties(t.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,e){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:e}}}jE.decorators=[{type:s.Directive,args:[{selector:"[cdkVirtualFor][cdkVirtualForOf]",providers:[{provide:AE,useClass:kE}]}]}],jE.ctorParameters=()=>[{type:s.ViewContainerRef},{type:s.TemplateRef},{type:s.IterableDiffers},{type:kE,decorators:[{type:s.Inject,args:[AE]}]},{type:LE,decorators:[{type:s.SkipSelf}]},{type:s.NgZone}],jE.propDecorators={cdkVirtualForOf:[{type:s.Input}],cdkVirtualForTrackBy:[{type:s.Input}],cdkVirtualForTemplate:[{type:s.Input}],cdkVirtualForTemplateCacheSize:[{type:s.Input}]};class VE{}VE.decorators=[{type:s.NgModule,args:[{exports:[NE],declarations:[NE]}]}];class BE{}BE.decorators=[{type:s.NgModule,args:[{imports:[zx,Bw,VE],exports:[zx,VE,OE,jE,LE],declarations:[OE,jE,LE]}]}];class HE{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class zE extends HE{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class UE extends HE{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class qE extends HE{constructor(t){super(),this.element=t instanceof s.ElementRef?t.nativeElement:t}}class $E{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof zE?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof UE?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof qE?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class WE extends $E{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{this._document;const e=t.element;e.parentNode;const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),this._attachedPortal=t,n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),this._attachedPortal=t,n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class YE extends UE{constructor(t,e){super(t,e)}}YE.decorators=[{type:s.Directive,args:[{selector:"[cdkPortal]",exportAs:"cdkPortal"}]}],YE.ctorParameters=()=>[{type:s.TemplateRef},{type:s.ViewContainerRef}];class GE extends YE{}GE.decorators=[{type:s.Directive,args:[{selector:"[cdk-portal], [portal]",exportAs:"cdkPortal",providers:[{provide:YE,useExisting:GE}]}]}];class KE extends $E{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new s.EventEmitter,this.attachDomPortal=t=>{this._document;const e=t.element;e.parentNode;const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}KE.decorators=[{type:s.Directive,args:[{selector:"[cdkPortalOutlet]",exportAs:"cdkPortalOutlet",inputs:["portal: cdkPortalOutlet"]}]}],KE.ctorParameters=()=>[{type:s.ComponentFactoryResolver},{type:s.ViewContainerRef},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}],KE.propDecorators={attached:[{type:s.Output}]};class ZE extends KE{}ZE.decorators=[{type:s.Directive,args:[{selector:"[cdkPortalHost], [portalHost]",exportAs:"cdkPortalHost",inputs:["portal: cdkPortalHost"],providers:[{provide:KE,useExisting:ZE}]}]}];class XE{}XE.decorators=[{type:s.NgModule,args:[{exports:[YE,KE,GE,ZE],declarations:[YE,KE,GE,ZE]}]}];class QE{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}var JE=n("GJmQ");const tI=Gw();class eI{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Rw(-this._previousScrollPosition.left),t.style.top=Rw(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=this._document.body,n=t.style,i=e.style,s=n.scrollBehavior||"",r=i.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),tI&&(n.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),tI&&(n.scrollBehavior=s,i.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class nI{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class iI{enable(){}disable(){}attach(){}}function sI(t,e){return e.some(e=>{const n=t.bottom<e.top,i=t.top>e.bottom,s=t.right<e.left,r=t.left>e.right;return n||i||s||r})}function rI(t,e){return e.some(e=>{const n=t.top<e.top,i=t.bottom>e.bottom,s=t.left<e.left,r=t.right>e.right;return n||i||s||r})}class aI{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef,this._overlayRef=t}enable(){if(!this._scrollSubscription){const t=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(t).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();sI(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class oI{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new iI,this.close=t=>new nI(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new eI(this._viewportRuler,this._document),this.reposition=t=>new aI(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}oI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new oI(Object(s["\u0275\u0275inject"])(PE),Object(s["\u0275\u0275inject"])(ME),Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:oI,providedIn:"root"}),oI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],oI.ctorParameters=()=>[{type:PE},{type:ME},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class lI{constructor(t){if(this.scrollStrategy=new iI,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class cI{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class dI{}class pI{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}pI.ctorParameters=()=>[{type:cI},{type:dI,decorators:[{type:s.Optional}]}];class uI{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}uI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new uI(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:uI,providedIn:"root"}),uI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],uI.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class hI extends uI{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}hI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new hI(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:hI,providedIn:"root"}),hI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],hI.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class mI extends uI{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){if(super.add(t),!this._isAttached){const t=this._document.body;t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}mI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new mI(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Vw))},token:mI,providedIn:"root"}),mI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],mI.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Vw}];const fI=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);class gI{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){if(this._platform.isBrowser||fI){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),fI?t.setAttribute("platform","test"):this._platform.isBrowser||t.setAttribute("platform","server"),this._document.body.appendChild(t),this._containerElement=t}}gI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new gI(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Vw))},token:gI,providedIn:"root"}),gI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],gI.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Vw}];class bI{constructor(t,e,n,i,s,r,a,o,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=s,this._keyboardDispatcher=r,this._document=a,this._location=o,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new Gf.a,this._attachments=new Gf.a,this._detachments=new Gf.a,this._locationChanges=Aw.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new Gf.a,this._outsidePointerEvents=new Gf.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(Sg.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Rw(this._config.width),t.height=Rw(this._config.height),t.minWidth=Rw(this._config.minWidth),t.minHeight=Rw(this._config.minHeight),t.maxWidth=Rw(this._config.maxWidth),t.maxHeight=Rw(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Mw(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(xg.a)(Object(gg.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const vI=/([A-Za-z%]+)$/;class yI{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Gf.a,this._resizeSubscription=Aw.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._overlayRef&&this._overlayRef,this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let a=this._getOriginPoint(t,r),o=this._getOverlayPoint(a,e,r),l=this._getOverlayFit(o,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,a);this._canFitWithFlexibleDimensions(l,o,n)?i.push({position:r,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,r)}):(!s||s.overlayFit.visibleArea<l.visibleArea)&&(s={overlayFit:l,overlayPoint:o,originPoint:a,position:r,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_I(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){const s=xI(e);let{x:r,y:a}=t,o=this._getOffset(i,"x"),l=this._getOffset(i,"y");o&&(r+=o),l&&(a+=l);let c=0-r,d=r+s.width-n.width,p=0-a,u=a+s.height-n.height,h=this._subtractOverflows(s.width,c,d),m=this._subtractOverflows(s.height,p,u),f=h*m;return{visibleArea:f,isCompletelyWithinViewport:s.width*s.height===f,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:h==s.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=wI(this._overlayRef.getConfig().minHeight),a=wI(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportVertically||null!=r&&r<=i,l=t.fitsInViewportHorizontally||null!=a&&a<=s;return o&&l}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=xI(e),s=this._viewportRect,r=Math.max(t.x+i.width-s.width,0),a=Math.max(t.y+i.height-s.height,0),o=Math.max(s.top-n.top-t.y,0),l=Math.max(s.left-n.left-t.x,0);let c=0,d=0;return c=i.width<=s.width?l||-r:t.x<this._viewportMargin?s.left-n.left-t.x:0,d=i.height<=s.height?o||-a:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:c,y:d},{x:t.x+c,y:t.y+d}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new pI(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let s=0;s<e.length;s++)e[s].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let s,r,a;if("top"===e.overlayY)r=t.y,s=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)a=n.height-t.y+2*this._viewportMargin,s=n.height-a+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;s=2*e,r=t.y-e,s>i&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}const o="start"===e.overlayX&&!i||"end"===e.overlayX&&i;let l,c,d;if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)d=n.width-t.x+this._viewportMargin,l=t.x-this._viewportMargin;else if(o)c=t.x,l=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;l=2*e,c=t.x-e,l>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:r,left:c,bottom:a,right:d,width:l,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Rw(n.height),i.top=Rw(n.top),i.bottom=Rw(n.bottom),i.width=Rw(n.width),i.left=Rw(n.left),i.right=Rw(n.right),"center"===e.overlayX?i.alignItems="center":i.alignItems="end"===e.overlayX?"flex-end":"flex-start","center"===e.overlayY?i.justifyContent="center":i.justifyContent="bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Rw(t)),s&&(i.maxWidth=Rw(s))}this._lastBoundingBoxSize=n,_I(this._boundingBox.style,i)}_resetBoundingBoxStyles(){_I(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_I(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();_I(n,this._getExactOverlayY(e,t,i)),_I(n,this._getExactOverlayX(e,t,i))}else n.position="static";let a="",o=this._getOffset(e,"x"),l=this._getOffset(e,"y");o&&(a+=`translateX(${o}px) `),l&&(a+=`translateY(${l}px)`),n.transform=a.trim(),r.maxHeight&&(i?n.maxHeight=Rw(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Rw(r.maxWidth):s&&(n.maxWidth="")),_I(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;if(s.y-=r,"bottom"===t.overlayY){const t=this._document.documentElement.clientHeight;i.bottom=t-(s.y+this._overlayRect.height)+"px"}else i.top=Rw(s.y);return i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i){const t=this._document.documentElement.clientWidth;s.right=t-(r.x+this._overlayRect.width)+"px"}else s.left=Rw(r.x);return s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:rI(t,n),isOriginOutsideView:sI(t,n),isOverlayClipped:rI(e,n),isOverlayOutsideView:sI(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){0}_addPanelClasses(t){this._pane&&Mw(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.ElementRef)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function _I(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function wI(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(vI);return n&&"px"!==n?null:parseFloat(e)}return t||null}function xI(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}class CI{constructor(t,e,n,i,s,r,a){this._preferredPositions=[],this._positionStrategy=new yI(n,i,s,r,a).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new cI(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class SI{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:a}=n,o=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}class kI{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new SI}connectedTo(t,e,n){return new CI(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new yI(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}kI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new kI(Object(s["\u0275\u0275inject"])(ME),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Vw),Object(s["\u0275\u0275inject"])(gI))},token:kI,providedIn:"root"}),kI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],kI.ctorParameters=()=>[{type:ME},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Vw},{type:gI}];let EI=0;class II{constructor(t,e,n,i,s,r,a,o,l,c,d){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=a,this._document=o,this._directionality=l,this._location=c,this._outsideClickDispatcher=d}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new lI(t);return s.direction=s.direction||this._directionality.value,new bI(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+EI++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.ApplicationRef)),new WE(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}II.decorators=[{type:s.Injectable}],II.ctorParameters=()=>[{type:oI},{type:gI},{type:s.ComponentFactoryResolver},{type:kI},{type:hI},{type:s.Injector},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Bx},{type:Cu.Location},{type:mI}];const AI=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],DI=new s.InjectionToken("cdk-connected-overlay-scroll-strategy");class TI{constructor(t){this.elementRef=t}}TI.decorators=[{type:s.Directive,args:[{selector:"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",exportAs:"cdkOverlayOrigin"}]}],TI.ctorParameters=()=>[{type:s.ElementRef}];class OI{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Aw.a.EMPTY,this._attachSubscription=Aw.a.EMPTY,this._detachSubscription=Aw.a.EMPTY,this._positionSubscription=Aw.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new s.EventEmitter,this.positionChange=new s.EventEmitter,this.attach=new s.EventEmitter,this.detach=new s.EventEmitter,this.overlayKeydown=new s.EventEmitter,this.overlayOutsideClick=new s.EventEmitter,this._templatePortal=new UE(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Ow(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Ow(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Ow(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Ow(t)}get push(){return this._push}set push(t){this._push=Ow(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=AI);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||this.disableClose||Tw(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new lI({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Object(JE.a)(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}OI.decorators=[{type:s.Directive,args:[{selector:"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",exportAs:"cdkConnectedOverlay"}]}],OI.ctorParameters=()=>[{type:II},{type:s.TemplateRef},{type:s.ViewContainerRef},{type:void 0,decorators:[{type:s.Inject,args:[DI]}]},{type:Bx,decorators:[{type:s.Optional}]}],OI.propDecorators={origin:[{type:s.Input,args:["cdkConnectedOverlayOrigin"]}],positions:[{type:s.Input,args:["cdkConnectedOverlayPositions"]}],positionStrategy:[{type:s.Input,args:["cdkConnectedOverlayPositionStrategy"]}],offsetX:[{type:s.Input,args:["cdkConnectedOverlayOffsetX"]}],offsetY:[{type:s.Input,args:["cdkConnectedOverlayOffsetY"]}],width:[{type:s.Input,args:["cdkConnectedOverlayWidth"]}],height:[{type:s.Input,args:["cdkConnectedOverlayHeight"]}],minWidth:[{type:s.Input,args:["cdkConnectedOverlayMinWidth"]}],minHeight:[{type:s.Input,args:["cdkConnectedOverlayMinHeight"]}],backdropClass:[{type:s.Input,args:["cdkConnectedOverlayBackdropClass"]}],panelClass:[{type:s.Input,args:["cdkConnectedOverlayPanelClass"]}],viewportMargin:[{type:s.Input,args:["cdkConnectedOverlayViewportMargin"]}],scrollStrategy:[{type:s.Input,args:["cdkConnectedOverlayScrollStrategy"]}],open:[{type:s.Input,args:["cdkConnectedOverlayOpen"]}],disableClose:[{type:s.Input,args:["cdkConnectedOverlayDisableClose"]}],transformOriginSelector:[{type:s.Input,args:["cdkConnectedOverlayTransformOriginOn"]}],hasBackdrop:[{type:s.Input,args:["cdkConnectedOverlayHasBackdrop"]}],lockPosition:[{type:s.Input,args:["cdkConnectedOverlayLockPosition"]}],flexibleDimensions:[{type:s.Input,args:["cdkConnectedOverlayFlexibleDimensions"]}],growAfterOpen:[{type:s.Input,args:["cdkConnectedOverlayGrowAfterOpen"]}],push:[{type:s.Input,args:["cdkConnectedOverlayPush"]}],backdropClick:[{type:s.Output}],positionChange:[{type:s.Output}],attach:[{type:s.Output}],detach:[{type:s.Output}],overlayKeydown:[{type:s.Output}],overlayOutsideClick:[{type:s.Output}]};const PI={provide:DI,deps:[II],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class NI{}NI.decorators=[{type:s.NgModule,args:[{imports:[zx,XE,BE],exports:[OI,TI,BE],declarations:[OI,TI],providers:[II,PI]}]}];class MI extends gI{constructor(t,e){super(t,e)}ngOnDestroy(){super.ngOnDestroy(),this._fullScreenEventName&&this._fullScreenListener&&this._document.removeEventListener(this._fullScreenEventName,this._fullScreenListener)}_createContainer(){super._createContainer(),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(()=>this._adjustParentForFullscreenChange())}_adjustParentForFullscreenChange(){if(!this._containerElement)return;(this.getFullscreenElement()||this._document.body).appendChild(this._containerElement)}_addFullscreenChangeListener(t){const e=this._getEventName();e&&(this._fullScreenListener&&this._document.removeEventListener(e,this._fullScreenListener),this._document.addEventListener(e,t),this._fullScreenListener=t)}_getEventName(){if(!this._fullScreenEventName){const t=this._document;t.fullscreenEnabled?this._fullScreenEventName="fullscreenchange":t.webkitFullscreenEnabled?this._fullScreenEventName="webkitfullscreenchange":t.mozFullScreenEnabled?this._fullScreenEventName="mozfullscreenchange":t.msFullscreenEnabled&&(this._fullScreenEventName="MSFullscreenChange")}return this._fullScreenEventName}getFullscreenElement(){const t=this._document;return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||null}}MI.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new MI(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(Vw))},token:MI,providedIn:"root"}),MI.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],MI.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Vw}];let RI=0;const LI=new s.InjectionToken("MatError");class FI{constructor(){this.id="mat-error-"+RI++}}FI.decorators=[{type:s.Directive,args:[{selector:"mat-error",host:{class:"mat-error",role:"alert","[attr.id]":"id"},providers:[{provide:LI,useExisting:FI}]}]}],FI.propDecorators={id:[{type:s.Input}]};const jI={transitionMessages:$x("transitionMessages",[Kx("enter",Gx({opacity:1,transform:"translateY(0%)"})),Xx("void => enter",[Gx({opacity:0,transform:"translateY(-5px)"}),Wx("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};class VI{}VI.decorators=[{type:s.Directive}];let BI=0;const HI=new s.InjectionToken("MatHint");class zI{constructor(){this.align="start",this.id="mat-hint-"+BI++}}zI.decorators=[{type:s.Directive,args:[{selector:"mat-hint",host:{class:"mat-hint","[class.mat-form-field-hint-end]":'align === "end"',"[attr.id]":"id","[attr.align]":"null"},providers:[{provide:HI,useExisting:zI}]}]}],zI.propDecorators={align:[{type:s.Input}],id:[{type:s.Input}]};class UI{}UI.decorators=[{type:s.Directive,args:[{selector:"mat-label"}]}];class qI{}qI.decorators=[{type:s.Directive,args:[{selector:"mat-placeholder"}]}];const $I=new s.InjectionToken("MatPrefix");class WI{}WI.decorators=[{type:s.Directive,args:[{selector:"[matPrefix]",providers:[{provide:$I,useExisting:WI}]}]}];const YI=new s.InjectionToken("MatSuffix");class GI{}GI.decorators=[{type:s.Directive,args:[{selector:"[matSuffix]",providers:[{provide:YI,useExisting:GI}]}]}];let KI=0;const ZI=Ck(class{constructor(t){this._elementRef=t}},"primary"),XI=new s.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),QI=new s.InjectionToken("MatFormField");class JI extends ZI{constructor(t,e,n,i,s,r,a,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Gf.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+KI++,this._labelId="mat-form-field-label-"+KI++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Ow(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(Object(yg.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(xg.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(gg.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(yg.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(yg.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(fg.a)(this._label.nativeElement,"transitionend").pipe(Object(Sg.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){this._control.placeholder&&this._placeholderChild,0}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren,0}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){this._control,0}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),a=t.children,o=this._getStartEnd(a[0].getBoundingClientRect());let l=0;for(let t=0;t<a.length;t++)l+=a[t].offsetWidth;e=Math.abs(o-r)-5,n=l>0?.75*l+10:0}for(let a=0;a<s.length;a++)s[a].style.width=`${e}px`;for(let a=0;a<r.length;a++)r[a].style.width=`${n}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}JI.decorators=[{type:s.Component,args:[{selector:"mat-form-field",exportAs:"matFormField",template:'<div class="mat-form-field-wrapper">\n  <div class="mat-form-field-flex" #connectionContainer\n       (click)="_control.onContainerClick && _control.onContainerClick($event)">\n\n    \x3c!-- Outline used for outline appearance. --\x3e\n    <ng-container *ngIf="appearance == \'outline\'">\n      <div class="mat-form-field-outline">\n        <div class="mat-form-field-outline-start"></div>\n        <div class="mat-form-field-outline-gap"></div>\n        <div class="mat-form-field-outline-end"></div>\n      </div>\n      <div class="mat-form-field-outline mat-form-field-outline-thick">\n        <div class="mat-form-field-outline-start"></div>\n        <div class="mat-form-field-outline-gap"></div>\n        <div class="mat-form-field-outline-end"></div>\n      </div>\n    </ng-container>\n\n    <div class="mat-form-field-prefix" *ngIf="_prefixChildren.length">\n      <ng-content select="[matPrefix]"></ng-content>\n    </div>\n\n    <div class="mat-form-field-infix" #inputContainer>\n      <ng-content></ng-content>\n\n      <span class="mat-form-field-label-wrapper">\n        \x3c!-- We add aria-owns as a workaround for an issue in JAWS & NVDA where the label isn\'t\n             read if it comes before the control in the DOM. --\x3e\n        <label class="mat-form-field-label"\n               (cdkObserveContent)="updateOutlineGap()"\n               [cdkObserveContentDisabled]="appearance != \'outline\'"\n               [id]="_labelId"\n               [attr.for]="_control.id"\n               [attr.aria-owns]="_control.id"\n               [class.mat-empty]="_control.empty && !_shouldAlwaysFloat()"\n               [class.mat-form-field-empty]="_control.empty && !_shouldAlwaysFloat()"\n               [class.mat-accent]="color == \'accent\'"\n               [class.mat-warn]="color == \'warn\'"\n               #label\n               *ngIf="_hasFloatingLabel()"\n               [ngSwitch]="_hasLabel()">\n\n          \x3c!-- @breaking-change 8.0.0 remove in favor of mat-label element an placeholder attr. --\x3e\n          <ng-container *ngSwitchCase="false">\n            <ng-content select="mat-placeholder"></ng-content>\n            <span>{{_control.placeholder}}</span>\n          </ng-container>\n\n          <ng-content select="mat-label" *ngSwitchCase="true"></ng-content>\n\n          \x3c!-- @breaking-change 8.0.0 remove `mat-placeholder-required` class --\x3e\n          <span\n            class="mat-placeholder-required mat-form-field-required-marker"\n            aria-hidden="true"\n            *ngIf="!hideRequiredMarker && _control.required && !_control.disabled">&#32;*</span>\n        </label>\n      </span>\n    </div>\n\n    <div class="mat-form-field-suffix" *ngIf="_suffixChildren.length">\n      <ng-content select="[matSuffix]"></ng-content>\n    </div>\n  </div>\n\n  \x3c!-- Underline used for legacy, standard, and box appearances. --\x3e\n  <div class="mat-form-field-underline" #underline\n       *ngIf="appearance != \'outline\'">\n    <span class="mat-form-field-ripple"\n          [class.mat-accent]="color == \'accent\'"\n          [class.mat-warn]="color == \'warn\'"></span>\n  </div>\n\n  <div class="mat-form-field-subscript-wrapper"\n       [ngSwitch]="_getDisplayedMessages()">\n    <div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState">\n      <ng-content select="mat-error"></ng-content>\n    </div>\n\n    <div class="mat-form-field-hint-wrapper" *ngSwitchCase="\'hint\'"\n      [@transitionMessages]="_subscriptAnimationState">\n      \x3c!-- TODO(mmalerba): use an actual <mat-hint> once all selectors are switched to mat-* --\x3e\n      <div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div>\n      <ng-content select="mat-hint:not([align=\'end\'])"></ng-content>\n      <div class="mat-form-field-hint-spacer"></div>\n      <ng-content select="mat-hint[align=\'end\']"></ng-content>\n    </div>\n  </div>\n</div>\n',animations:[jI.transitionMessages],host:{class:"mat-form-field","[class.mat-form-field-appearance-standard]":'appearance == "standard"',"[class.mat-form-field-appearance-fill]":'appearance == "fill"',"[class.mat-form-field-appearance-outline]":'appearance == "outline"',"[class.mat-form-field-appearance-legacy]":'appearance == "legacy"',"[class.mat-form-field-invalid]":"_control.errorState","[class.mat-form-field-can-float]":"_canLabelFloat()","[class.mat-form-field-should-float]":"_shouldLabelFloat()","[class.mat-form-field-has-label]":"_hasFloatingLabel()","[class.mat-form-field-hide-placeholder]":"_hideControlPlaceholder()","[class.mat-form-field-disabled]":"_control.disabled","[class.mat-form-field-autofilled]":"_control.autofilled","[class.mat-focused]":"_control.focused","[class.ng-untouched]":'_shouldForward("untouched")',"[class.ng-touched]":'_shouldForward("touched")',"[class.ng-pristine]":'_shouldForward("pristine")',"[class.ng-dirty]":'_shouldForward("dirty")',"[class.ng-valid]":'_shouldForward("valid")',"[class.ng-invalid]":'_shouldForward("invalid")',"[class.ng-pending]":'_shouldForward("pending")',"[class._mat-animation-noopable]":"!_animationsEnabled"},inputs:["color"],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,providers:[{provide:QI,useExisting:JI}],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"]}]}],JI.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:void 0,decorators:[{type:s.Inject,args:[s.ElementRef]}]},{type:Bx,decorators:[{type:s.Optional}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[XI]}]},{type:Vw},{type:s.NgZone},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],JI.propDecorators={appearance:[{type:s.Input}],hideRequiredMarker:[{type:s.Input}],hintLabel:[{type:s.Input}],floatLabel:[{type:s.Input}],underlineRef:[{type:s.ViewChild,args:["underline"]}],_connectionContainerRef:[{type:s.ViewChild,args:["connectionContainer",{static:!0}]}],_inputContainerRef:[{type:s.ViewChild,args:["inputContainer"]}],_label:[{type:s.ViewChild,args:["label"]}],_controlNonStatic:[{type:s.ContentChild,args:[VI]}],_controlStatic:[{type:s.ContentChild,args:[VI,{static:!0}]}],_labelChildNonStatic:[{type:s.ContentChild,args:[UI]}],_labelChildStatic:[{type:s.ContentChild,args:[UI,{static:!0}]}],_placeholderChild:[{type:s.ContentChild,args:[qI]}],_errorChildren:[{type:s.ContentChildren,args:[LI,{descendants:!0}]}],_hintChildren:[{type:s.ContentChildren,args:[HI,{descendants:!0}]}],_prefixChildren:[{type:s.ContentChildren,args:[$I,{descendants:!0}]}],_suffixChildren:[{type:s.ContentChildren,args:[YI,{descendants:!0}]}]};class tA{}tA.decorators=[{type:s.NgModule,args:[{declarations:[FI,JI,zI,UI,qI,WI,GI],imports:[Cu.CommonModule,wk,tx],exports:[wk,FI,JI,zI,UI,qI,WI,GI]}]}];var eA=n("NXyV");const nA={transformPanelWrap:$x("transformPanelWrap",[Xx("* => void",Jx("@transformPanel",[Qx()],{optional:!0}))]),transformPanel:$x("transformPanel",[Kx("void",Gx({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Kx("showing",Gx({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Kx("showing-multiple",Gx({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Xx("void => *",Wx("120ms cubic-bezier(0, 0, 0.2, 1)")),Xx("* => void",Wx("100ms 25ms linear",Gx({opacity:0})))])};let iA=0;const sA=new s.InjectionToken("mat-select-scroll-strategy");const rA=new s.InjectionToken("MAT_SELECT_CONFIG"),aA={provide:sA,deps:[II],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class oA{constructor(t,e){this.source=t,this.value=e}}const lA=Sk(kk(xk(Ek(class{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}})))),cA=new s.InjectionToken("MatSelectTrigger");class dA{}dA.decorators=[{type:s.Directive,args:[{selector:"mat-select-trigger",providers:[{provide:cA,useExisting:dA}]}]}];class pA extends lA{constructor(t,e,n,i,r,a,o,l,c,d,p,u,h,m){var f,g,b;super(r,i,o,l,d),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=a,this._parentFormField=c,this.ngControl=d,this._liveAnnouncer=h,this._defaultOptions=m,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+iA++,this._triggerAriaLabelledBy=null,this._destroy=new Gf.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+iA++,this._panelDoneAnimatingStream=new Gf.a,this._overlayPanelClass=(null===(f=this._defaultOptions)||void 0===f?void 0:f.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(b=null===(g=this._defaultOptions)||void 0===g?void 0:g.disableOptionCentering)&&void 0!==b&&b,this.ariaLabel="",this.optionSelectionChanges=Object(eA.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(yg.a)(t),Object(wg.a)(()=>Object(gg.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(Sg.a)(1),Object(wg.a)(()=>this.optionSelectionChanges))}),this.openedChange=new s.EventEmitter,this._openedStream=this.openedChange.pipe(Object(Cg.a)(t=>t),Object($h.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(Cg.a)(t=>!t),Object($h.a)(()=>{})),this.selectionChange=new s.EventEmitter,this.valueChange=new s.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==m?void 0:m.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=m.typeaheadDebounceInterval),this._scrollStrategyFactory=u,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(p)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Ow(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._selectionModel,this._multiple=Ow(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Ow(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Pw(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new EE(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(_g.a)(),Object(xg.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(xg.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(yg.a)(null),Object(xg.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,s=this._keyManager;if(!s.isTyping()&&i&&!Tw(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||13!==n&&32!==n||!e.activeItem||Tw(t))if(!s&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(Sg.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{if(this._selectionModel.isSelected(e))return!1;try{return null!=e.value&&this._compareWith(e.value,t)}catch(ze){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new cx(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(xg.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(xg.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(gg.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(xg.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(gg.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(xg.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var t;if(this.ariaLabel)return null;const e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();let n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}_panelDoneAnimating(t){this.openedChange.emit(t)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}pA.decorators=[{type:s.Directive}],pA.ctorParameters=()=>[{type:ME},{type:s.ChangeDetectorRef},{type:s.NgZone},{type:Hk},{type:s.ElementRef},{type:Bx,decorators:[{type:s.Optional}]},{type:of,decorators:[{type:s.Optional}]},{type:yf,decorators:[{type:s.Optional}]},{type:JI,decorators:[{type:s.Optional},{type:s.Inject,args:[QI]}]},{type:gm,decorators:[{type:s.Self},{type:s.Optional}]},{type:String,decorators:[{type:s.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:s.Inject,args:[sA]}]},{type:Ax},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[rA]}]}],pA.propDecorators={trigger:[{type:s.ViewChild,args:["trigger"]}],panel:[{type:s.ViewChild,args:["panel"]}],overlayDir:[{type:s.ViewChild,args:[OI]}],panelClass:[{type:s.Input}],placeholder:[{type:s.Input}],required:[{type:s.Input}],multiple:[{type:s.Input}],disableOptionCentering:[{type:s.Input}],compareWith:[{type:s.Input}],value:[{type:s.Input}],ariaLabel:[{type:s.Input,args:["aria-label"]}],ariaLabelledby:[{type:s.Input,args:["aria-labelledby"]}],errorStateMatcher:[{type:s.Input}],typeaheadDebounceInterval:[{type:s.Input}],sortComparator:[{type:s.Input}],id:[{type:s.Input}],openedChange:[{type:s.Output}],_openedStream:[{type:s.Output,args:["opened"]}],_closedStream:[{type:s.Output,args:["closed"]}],selectionChange:[{type:s.Output}],valueChange:[{type:s.Output}]};class uA extends pA{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight(),s=i*t-e+i/2;return Math.min(Math.max(0,s),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(xg.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(Sg.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(t){const e=dE(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=pE((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new oA(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),a=t.right+s-e.width+(n?0:i);r>0?s+=r+8:a>0&&(s-=a+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let a;if(this.disableOptionCentering)return 0;if(0===this._scrollTop)a=t*i;else if(this._scrollTop===n){a=(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i)}else a=e-i/2;return Math.round(-1*a-s)}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;a>s?this._adjustPanelUp(a,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=dE(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}uA.decorators=[{type:s.Component,args:[{selector:"mat-select",exportAs:"matSelect",template:'\x3c!--\n Note that the select trigger element specifies `aria-owns` pointing to the listbox overlay.\n While aria-owns is not required for the ARIA 1.2 `role="combobox"` interaction pattern,\n it fixes an issue with VoiceOver when the select appears inside of an `aria-model="true"`\n element (e.g. a dialog). Without this `aria-owns`, the `aria-modal` on a dialog prevents\n VoiceOver from "seeing" the select\'s listbox overlay for aria-activedescendant.\n Using `aria-owns` re-parents the select overlay so that it works again.\n See https://github.com/angular/components/issues/20694\n--\x3e\n<div cdk-overlay-origin\n     [attr.aria-owns]="panelOpen ? id + \'-panel\' : null"\n     class="mat-select-trigger"\n     (click)="toggle()"\n     #origin="cdkOverlayOrigin"\n     #trigger>\n  <div class="mat-select-value" [ngSwitch]="empty" [attr.id]="_valueId">\n    <span class="mat-select-placeholder mat-select-min-line" *ngSwitchCase="true">{{placeholder}}</span>\n    <span class="mat-select-value-text" *ngSwitchCase="false" [ngSwitch]="!!customTrigger">\n      <span class="mat-select-min-line" *ngSwitchDefault>{{triggerValue}}</span>\n      <ng-content select="mat-select-trigger" *ngSwitchCase="true"></ng-content>\n    </span>\n  </div>\n\n  <div class="mat-select-arrow-wrapper"><div class="mat-select-arrow"></div></div>\n</div>\n\n<ng-template\n  cdk-connected-overlay\n  cdkConnectedOverlayLockPosition\n  cdkConnectedOverlayHasBackdrop\n  cdkConnectedOverlayBackdropClass="cdk-overlay-transparent-backdrop"\n  [cdkConnectedOverlayPanelClass]="_overlayPanelClass"\n  [cdkConnectedOverlayScrollStrategy]="_scrollStrategy"\n  [cdkConnectedOverlayOrigin]="origin"\n  [cdkConnectedOverlayOpen]="panelOpen"\n  [cdkConnectedOverlayPositions]="_positions"\n  [cdkConnectedOverlayMinWidth]="_triggerRect?.width!"\n  [cdkConnectedOverlayOffsetY]="_offsetY"\n  (backdropClick)="close()"\n  (attach)="_onAttached()"\n  (detach)="close()">\n  <div class="mat-select-panel-wrap" [@transformPanelWrap]>\n    <div\n      #panel\n      role="listbox"\n      tabindex="-1"\n      class="mat-select-panel {{ _getPanelTheme() }}"\n      [attr.id]="id + \'-panel\'"\n      [attr.aria-multiselectable]="multiple"\n      [attr.aria-label]="ariaLabel || null"\n      [attr.aria-labelledby]="_getPanelAriaLabelledby()"\n      [ngClass]="panelClass"\n      [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'"\n      (@transformPanel.done)="_panelDoneAnimatingStream.next($event.toState)"\n      [style.transformOrigin]="_transformOrigin"\n      [style.font-size.px]="_triggerFontSize"\n      (keydown)="_handleKeydown($event)">\n      <ng-content></ng-content>\n    </div>\n  </div>\n</ng-template>\n',inputs:["disabled","disableRipple","tabIndex"],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,host:{role:"combobox","aria-autocomplete":"none","aria-haspopup":"true",class:"mat-select","[attr.id]":"id","[attr.tabindex]":"tabIndex","[attr.aria-controls]":'panelOpen ? id + "-panel" : null',"[attr.aria-expanded]":"panelOpen","[attr.aria-label]":"ariaLabel || null","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":"errorState","[attr.aria-describedby]":"_ariaDescribedby || null","[attr.aria-activedescendant]":"_getAriaActiveDescendant()","[class.mat-select-disabled]":"disabled","[class.mat-select-invalid]":"errorState","[class.mat-select-required]":"required","[class.mat-select-empty]":"empty","[class.mat-select-multiple]":"multiple","(keydown)":"_handleKeydown($event)","(focus)":"_onFocus()","(blur)":"_onBlur()"},animations:[nA.transformPanelWrap,nA.transformPanel],providers:[{provide:VI,useExisting:uA},{provide:tE,useExisting:uA}],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n']}]}],uA.propDecorators={options:[{type:s.ContentChildren,args:[cE,{descendants:!0}]}],optionGroups:[{type:s.ContentChildren,args:[sE,{descendants:!0}]}],customTrigger:[{type:s.ContentChild,args:[cA]}]};class hA{}hA.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule,NI,uE,wk],exports:[VE,tA,uA,dA,uE,wk],declarations:[uA,dA],providers:[aA]}]}];var mA=n("GyhO"),fA=n("zP0r");(class{}).decorators=[{type:s.NgModule,args:[{}]}];const gA=new Set;let bA;class vA{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):yA}matchMedia(t){return this._platform.WEBKIT&&function(t){if(gA.has(t))return;try{bA||(bA=document.createElement("style"),bA.setAttribute("type","text/css"),document.head.appendChild(bA)),bA.sheet&&(bA.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),gA.add(t))}catch(TH){console.error(TH)}}(t),this._matchMedia(t)}}function yA(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}vA.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new vA(Object(s["\u0275\u0275inject"])(Vw))},token:vA,providedIn:"root"}),vA.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],vA.ctorParameters=()=>[{type:Vw}];class _A{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new Gf.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return wA(Mw(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=wA(Mw(t)).map(t=>this._registerQuery(t).observable);let n=Object(ug.b)(e);return n=Object(mA.a)(n.pipe(Object(Sg.a)(1)),n.pipe(Object(fA.a)(1),Object(z_.a)(0))),n.pipe(Object($h.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new vg.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(yg.a)(e),Object($h.a)(({matches:e})=>({query:t,matches:e})),Object(xg.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}function wA(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}_A.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new _A(Object(s["\u0275\u0275inject"])(vA),Object(s["\u0275\u0275inject"])(s.NgZone))},token:_A,providedIn:"root"}),_A.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],_A.ctorParameters=()=>[{type:vA},{type:s.NgZone}];const xA="(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",CA={tooltipState:$x("state",[Kx("initial, void, hidden",Gx({opacity:0,transform:"scale(0)"})),Kx("visible",Gx({transform:"scale(1)"})),Xx("* => visible",Wx("200ms cubic-bezier(0, 0, 0.2, 1)",Zx([Gx({opacity:0,transform:"scale(0)",offset:0}),Gx({opacity:.5,transform:"scale(0.99)",offset:.5}),Gx({opacity:1,transform:"scale(1)",offset:1})]))),Xx("* => hidden",Wx("100ms cubic-bezier(0, 0, 0.2, 1)",Gx({opacity:0})))])},SA=Yw({passive:!0});const kA=new s.InjectionToken("mat-tooltip-scroll-strategy");const EA={provide:kA,deps:[II],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},IA=new s.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});class AA{constructor(t,e,n,i,s,r,a,o,l,c,d,p){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=o,this._dir=c,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Gf.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Tw(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(xg.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,SA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new zE(DA,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(xg.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(xg.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(xg.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(Sg.a)(1),Object(xg.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,SA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){const e=(this._document||document).elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}AA.decorators=[{type:s.Directive,args:[{selector:"[matTooltip]",exportAs:"matTooltip",host:{class:"mat-tooltip-trigger"}}]}],AA.ctorParameters=()=>[{type:II},{type:s.ElementRef},{type:PE},{type:s.ViewContainerRef},{type:s.NgZone},{type:Vw},{type:rx},{type:Mx},{type:void 0,decorators:[{type:s.Inject,args:[kA]}]},{type:Bx,decorators:[{type:s.Optional}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[IA]}]},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}],AA.propDecorators={position:[{type:s.Input,args:["matTooltipPosition"]}],disabled:[{type:s.Input,args:["matTooltipDisabled"]}],showDelay:[{type:s.Input,args:["matTooltipShowDelay"]}],hideDelay:[{type:s.Input,args:["matTooltipHideDelay"]}],touchGestures:[{type:s.Input,args:["matTooltipTouchGestures"]}],message:[{type:s.Input,args:["matTooltip"]}],tooltipClass:[{type:s.Input,args:["matTooltipClass"]}]};class DA{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Gf.a,this._isHandset=this._breakpointObserver.observe(xA)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}DA.decorators=[{type:s.Component,args:[{selector:"mat-tooltip-component",template:'<div class="mat-tooltip"\n     [ngClass]="tooltipClass"\n     [class.mat-tooltip-handset]="(_isHandset | async)?.matches"\n     [@state]="_visibility"\n     (@state.start)="_animationStart()"\n     (@state.done)="_animationDone($event)">{{message}}</div>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,animations:[CA.tooltipState],host:{"[style.zoom]":'_visibility === "visible" ? 1 : null',"(body:click)":"this._handleBodyInteraction()","(body:auxclick)":"this._handleBodyInteraction()","aria-hidden":"true"},styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"]}]}],DA.ctorParameters=()=>[{type:s.ChangeDetectorRef},{type:_A}];class TA{}TA.decorators=[{type:s.NgModule,args:[{imports:[jx,Cu.CommonModule,NI,wk],exports:[AA,DA,wk,VE],declarations:[AA,DA],entryComponents:[DA],providers:[EA]}]}];class OA{constructor(){this.changes=new Gf.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return`0 of ${n}`;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}OA.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new OA},token:OA,providedIn:"root"}),OA.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];const PA={provide:OA,deps:[[new s.Optional,new s.SkipSelf,OA]],useFactory:function(t){return t||new OA}};const NA=new s.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS");const MA=xk(Ik(class{}));class RA extends MA{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.EventEmitter,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Pw(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Pw(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Pw(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Pw(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Ow(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Ow(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex*this.pageSize,n=this.pageIndex;this.pageIndex=Math.floor(e/t)||0,this.pageSize=t,this._emitPageEvent(n)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}RA.decorators=[{type:s.Directive}],RA.ctorParameters=()=>[{type:OA},{type:s.ChangeDetectorRef},{type:void 0}],RA.propDecorators={color:[{type:s.Input}],pageIndex:[{type:s.Input}],length:[{type:s.Input}],pageSize:[{type:s.Input}],pageSizeOptions:[{type:s.Input}],hidePageSize:[{type:s.Input}],showFirstLastButtons:[{type:s.Input}],page:[{type:s.Output}]};class LA extends RA{constructor(t,e,n){super(t,e,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}LA.decorators=[{type:s.Component,args:[{selector:"mat-paginator",exportAs:"matPaginator",template:'<div class="mat-paginator-outer-container">\n  <div class="mat-paginator-container">\n    <div class="mat-paginator-page-size" *ngIf="!hidePageSize">\n      <div class="mat-paginator-page-size-label">\n        {{_intl.itemsPerPageLabel}}\n      </div>\n\n      <mat-form-field\n        *ngIf="_displayedPageSizeOptions.length > 1"\n        [appearance]="_formFieldAppearance!"\n        [color]="color"\n        class="mat-paginator-page-size-select">\n        <mat-select\n          [value]="pageSize"\n          [disabled]="disabled"\n          [aria-label]="_intl.itemsPerPageLabel"\n          (selectionChange)="_changePageSize($event.value)">\n          <mat-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption">\n            {{pageSizeOption}}\n          </mat-option>\n        </mat-select>\n      </mat-form-field>\n\n      <div\n        class="mat-paginator-page-size-value"\n        *ngIf="_displayedPageSizeOptions.length <= 1">{{pageSize}}</div>\n    </div>\n\n    <div class="mat-paginator-range-actions">\n      <div class="mat-paginator-range-label">\n        {{_intl.getRangeLabel(pageIndex, pageSize, length)}}\n      </div>\n\n      <button mat-icon-button type="button"\n              class="mat-paginator-navigation-first"\n              (click)="firstPage()"\n              [attr.aria-label]="_intl.firstPageLabel"\n              [matTooltip]="_intl.firstPageLabel"\n              [matTooltipDisabled]="_previousButtonsDisabled()"\n              [matTooltipPosition]="\'above\'"\n              [disabled]="_previousButtonsDisabled()"\n              *ngIf="showFirstLastButtons">\n        <svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">\n          <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>\n        </svg>\n      </button>\n      <button mat-icon-button type="button"\n              class="mat-paginator-navigation-previous"\n              (click)="previousPage()"\n              [attr.aria-label]="_intl.previousPageLabel"\n              [matTooltip]="_intl.previousPageLabel"\n              [matTooltipDisabled]="_previousButtonsDisabled()"\n              [matTooltipPosition]="\'above\'"\n              [disabled]="_previousButtonsDisabled()">\n        <svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">\n          <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>\n        </svg>\n      </button>\n      <button mat-icon-button type="button"\n              class="mat-paginator-navigation-next"\n              (click)="nextPage()"\n              [attr.aria-label]="_intl.nextPageLabel"\n              [matTooltip]="_intl.nextPageLabel"\n              [matTooltipDisabled]="_nextButtonsDisabled()"\n              [matTooltipPosition]="\'above\'"\n              [disabled]="_nextButtonsDisabled()">\n        <svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">\n          <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>\n        </svg>\n      </button>\n      <button mat-icon-button type="button"\n              class="mat-paginator-navigation-last"\n              (click)="lastPage()"\n              [attr.aria-label]="_intl.lastPageLabel"\n              [matTooltip]="_intl.lastPageLabel"\n              [matTooltipDisabled]="_nextButtonsDisabled()"\n              [matTooltipPosition]="\'above\'"\n              [disabled]="_nextButtonsDisabled()"\n              *ngIf="showFirstLastButtons">\n        <svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">\n          <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>\n        </svg>\n      </button>\n    </div>\n  </div>\n</div>\n',inputs:["disabled"],host:{class:"mat-paginator",role:"group"},changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"]}]}],LA.ctorParameters=()=>[{type:OA},{type:s.ChangeDetectorRef},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[NA]}]}];class FA{}FA.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule,bE,hA,TA,wk],exports:[LA],declarations:[LA],providers:[PA]}]}];const jA=new s.InjectionToken("MAT_SORT_DEFAULT_OPTIONS");const VA=Ik(xk(class{}));class BA extends VA{constructor(t){super(),this._defaultOptions=t,this.sortables=new Map,this._stateChanges=new Gf.a,this.start="asc",this._direction="",this.sortChange=new s.EventEmitter}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Ow(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){var e,n,i;if(!t)return"";const s=null!==(n=null!==(e=null==t?void 0:t.disableClear)&&void 0!==e?e:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear);let r=function(t,e){let n=["asc","desc"];"desc"==t&&n.reverse();e||n.push("");return n}(t.start||this.start,s),a=r.indexOf(this.direction)+1;return a>=r.length&&(a=0),r[a]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}BA.decorators=[{type:s.Directive,args:[{selector:"[matSort]",exportAs:"matSort",host:{class:"mat-sort"},inputs:["disabled: matSortDisabled"]}]}],BA.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[jA]}]}],BA.propDecorators={active:[{type:s.Input,args:["matSortActive"]}],start:[{type:s.Input,args:["matSortStart"]}],direction:[{type:s.Input,args:["matSortDirection"]}],disableClear:[{type:s.Input,args:["matSortDisableClear"]}],sortChange:[{type:s.Output,args:["matSortChange"]}]};const HA=vk.ENTERING+" "+bk.STANDARD_CURVE,zA={indicator:$x("indicator",[Kx("active-asc, asc",Gx({transform:"translateY(0px)"})),Kx("active-desc, desc",Gx({transform:"translateY(10px)"})),Xx("active-asc <=> active-desc",Wx(HA))]),leftPointer:$x("leftPointer",[Kx("active-asc, asc",Gx({transform:"rotate(-45deg)"})),Kx("active-desc, desc",Gx({transform:"rotate(45deg)"})),Xx("active-asc <=> active-desc",Wx(HA))]),rightPointer:$x("rightPointer",[Kx("active-asc, asc",Gx({transform:"rotate(45deg)"})),Kx("active-desc, desc",Gx({transform:"rotate(-45deg)"})),Xx("active-asc <=> active-desc",Wx(HA))]),arrowOpacity:$x("arrowOpacity",[Kx("desc-to-active, asc-to-active, active",Gx({opacity:1})),Kx("desc-to-hint, asc-to-hint, hint",Gx({opacity:.54})),Kx("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Gx({opacity:0})),Xx("* => asc, * => desc, * => active, * => hint, * => void",Wx("0ms")),Xx("* <=> *",Wx(HA))]),arrowPosition:$x("arrowPosition",[Xx("* => desc-to-hint, * => desc-to-active",Wx(HA,Zx([Gx({transform:"translateY(-25%)"}),Gx({transform:"translateY(0)"})]))),Xx("* => hint-to-desc, * => active-to-desc",Wx(HA,Zx([Gx({transform:"translateY(0)"}),Gx({transform:"translateY(25%)"})]))),Xx("* => asc-to-hint, * => asc-to-active",Wx(HA,Zx([Gx({transform:"translateY(25%)"}),Gx({transform:"translateY(0)"})]))),Xx("* => hint-to-asc, * => active-to-asc",Wx(HA,Zx([Gx({transform:"translateY(0)"}),Gx({transform:"translateY(-25%)"})]))),Kx("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Gx({transform:"translateY(0)"})),Kx("hint-to-desc, active-to-desc, desc",Gx({transform:"translateY(-25%)"})),Kx("hint-to-asc, active-to-asc, asc",Gx({transform:"translateY(25%)"}))]),allowChildren:$x("allowChildren",[Xx("* <=> *",[Jx("@*",Qx(),{optional:!0})])])};class UA{constructor(){this.changes=new Gf.a,this.sortButtonLabel=t=>`Change sorting for ${t}`}}UA.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new UA},token:UA,providedIn:"root"}),UA.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}];const qA={provide:UA,deps:[[new s.Optional,new s.SkipSelf,UA]],useFactory:function(t){return t||new UA}};const $A=xk(class{});class WA extends $A{constructor(t,e,n,i,s,r){super(),this._intl=t,this._changeDetectorRef=e,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._handleStateChanges()}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Ow(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{const e=!!t;e!==this._showIndicatorHint&&(this._setIndicatorHintVisible(e),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._showIndicatorHint?this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"hint"}):this._setAnimationTransitionState({fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?`${t}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_handleStateChanges(){this._rerenderSubscription=Object(gg.a)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}WA.decorators=[{type:s.Component,args:[{selector:"[mat-sort-header]",exportAs:"matSortHeader",template:'\x3c!--\n  We set the `tabindex` on an element inside the table header, rather than the header itself,\n  because of a bug in NVDA where having a `tabindex` on a `th` breaks keyboard navigation in the\n  table (see https://github.com/nvaccess/nvda/issues/7718). This allows for the header to both\n  be focusable, and have screen readers read out its `aria-sort` state. We prefer this approach\n  over having a button with an `aria-label` inside the header, because the button\'s `aria-label`\n  will be read out as the user is navigating the table\'s cell (see #13012).\n\n  The approach is based off of: https://dequeuniversity.com/library/aria/tables/sf-sortable-grid\n--\x3e\n<div class="mat-sort-header-container mat-focus-indicator"\n     [class.mat-sort-header-sorted]="_isSorted()"\n     [class.mat-sort-header-position-before]="arrowPosition == \'before\'"\n     [attr.tabindex]="_isDisabled() ? null : 0"\n     role="button">\n\n  \x3c!--\n    TODO(crisbeto): this div isn\'t strictly necessary, but we have to keep it due to a large\n    number of screenshot diff failures. It should be removed eventually. Note that the difference\n    isn\'t visible with a shorter header, but once it breaks up into multiple lines, this element\n    causes it to be center-aligned, whereas removing it will keep the text to the left.\n  --\x3e\n  <div class="mat-sort-header-content">\n    <ng-content></ng-content>\n  </div>\n\n  \x3c!-- Disable animations while a current animation is running --\x3e\n  <div class="mat-sort-header-arrow"\n       *ngIf="_renderArrow()"\n       [@arrowOpacity]="_getArrowViewState()"\n       [@arrowPosition]="_getArrowViewState()"\n       [@allowChildren]="_getArrowDirectionState()"\n       (@arrowPosition.start)="_disableViewStateAnimation = true"\n       (@arrowPosition.done)="_disableViewStateAnimation = false">\n    <div class="mat-sort-header-stem"></div>\n    <div class="mat-sort-header-indicator" [@indicator]="_getArrowDirectionState()">\n      <div class="mat-sort-header-pointer-left" [@leftPointer]="_getArrowDirectionState()"></div>\n      <div class="mat-sort-header-pointer-right" [@rightPointer]="_getArrowDirectionState()"></div>\n      <div class="mat-sort-header-pointer-middle"></div>\n    </div>\n  </div>\n</div>\n',host:{class:"mat-sort-header","(click)":"_handleClick()","(keydown)":"_handleKeydown($event)","(mouseenter)":"_setIndicatorHintVisible(true)","(mouseleave)":"_setIndicatorHintVisible(false)","[attr.aria-sort]":"_getAriaSortAttribute()","[class.mat-sort-header-disabled]":"_isDisabled()"},encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,inputs:["disabled"],animations:[zA.indicator,zA.leftPointer,zA.rightPointer,zA.arrowOpacity,zA.arrowPosition,zA.allowChildren],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"]}]}],WA.ctorParameters=()=>[{type:UA},{type:s.ChangeDetectorRef},{type:BA,decorators:[{type:s.Optional}]},{type:void 0,decorators:[{type:s.Inject,args:["MAT_SORT_HEADER_COLUMN_DEF"]},{type:s.Optional}]},{type:Mx},{type:s.ElementRef}],WA.propDecorators={id:[{type:s.Input,args:["mat-sort-header"]}],arrowPosition:[{type:s.Input}],start:[{type:s.Input}],disableClear:[{type:s.Input}]};class YA{}function GA(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Ow(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}YA.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule,wk],exports:[BA,WA],declarations:[BA,WA],providers:[qA]}]}];const KA=new s.InjectionToken("CDK_TABLE"),ZA=new s.InjectionToken("text-column-options");class XA{constructor(t){this.template=t}}XA.decorators=[{type:s.Directive,args:[{selector:"[cdkCellDef]"}]}],XA.ctorParameters=()=>[{type:s.TemplateRef}];class QA{constructor(t){this.template=t}}QA.decorators=[{type:s.Directive,args:[{selector:"[cdkHeaderCellDef]"}]}],QA.ctorParameters=()=>[{type:s.TemplateRef}];class JA{constructor(t){this.template=t}}JA.decorators=[{type:s.Directive,args:[{selector:"[cdkFooterCellDef]"}]}],JA.ctorParameters=()=>[{type:s.TemplateRef}];const tD=GA(class{});class eD extends tD{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Ow(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}eD.decorators=[{type:s.Directive,args:[{selector:"[cdkColumnDef]",inputs:["sticky"],providers:[{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:eD}]}]}],eD.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[KA]},{type:s.Optional}]}],eD.propDecorators={name:[{type:s.Input,args:["cdkColumnDef"]}],stickyEnd:[{type:s.Input,args:["stickyEnd"]}],cell:[{type:s.ContentChild,args:[XA]}],headerCell:[{type:s.ContentChild,args:[QA]}],footerCell:[{type:s.ContentChild,args:[JA]}]};class nD{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}class iD extends nD{constructor(t,e){super(t,e)}}iD.decorators=[{type:s.Directive,args:[{selector:"cdk-header-cell, th[cdk-header-cell]",host:{class:"cdk-header-cell",role:"columnheader"}}]}],iD.ctorParameters=()=>[{type:eD},{type:s.ElementRef}];class sD extends nD{constructor(t,e){super(t,e)}}sD.decorators=[{type:s.Directive,args:[{selector:"cdk-footer-cell, td[cdk-footer-cell]",host:{class:"cdk-footer-cell",role:"gridcell"}}]}],sD.ctorParameters=()=>[{type:eD},{type:s.ElementRef}];class rD extends nD{constructor(t,e){super(t,e)}}rD.decorators=[{type:s.Directive,args:[{selector:"cdk-cell, td[cdk-cell]",host:{class:"cdk-cell",role:"gridcell"}}]}],rD.ctorParameters=()=>[{type:eD},{type:s.ElementRef}];class aD{constructor(){this.tasks=[],this.endTasks=[]}}const oD=new s.InjectionToken("_COALESCED_STYLE_SCHEDULER");class lD{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new Gf.a}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new aD,this._getScheduleObservable().pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new aD;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(qh.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(Sg.a)(1))}}lD.decorators=[{type:s.Injectable}],lD.ctorParameters=()=>[{type:s.NgZone}];const cD="<ng-container cdkCellOutlet></ng-container>";class dD{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof uD?t.headerCell.template:this instanceof mD?t.footerCell.template:t.cell.template}}dD.decorators=[{type:s.Directive}],dD.ctorParameters=()=>[{type:s.TemplateRef},{type:s.IterableDiffers}];const pD=GA(class extends dD{});class uD extends pD{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}uD.decorators=[{type:s.Directive,args:[{selector:"[cdkHeaderRowDef]",inputs:["columns: cdkHeaderRowDef","sticky: cdkHeaderRowDefSticky"]}]}],uD.ctorParameters=()=>[{type:s.TemplateRef},{type:s.IterableDiffers},{type:void 0,decorators:[{type:s.Inject,args:[KA]},{type:s.Optional}]}];const hD=GA(class extends dD{});class mD extends hD{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}mD.decorators=[{type:s.Directive,args:[{selector:"[cdkFooterRowDef]",inputs:["columns: cdkFooterRowDef","sticky: cdkFooterRowDefSticky"]}]}],mD.ctorParameters=()=>[{type:s.TemplateRef},{type:s.IterableDiffers},{type:void 0,decorators:[{type:s.Inject,args:[KA]},{type:s.Optional}]}];class fD extends dD{constructor(t,e,n){super(t,e),this._table=n}}fD.decorators=[{type:s.Directive,args:[{selector:"[cdkRowDef]",inputs:["columns: cdkRowDefColumns","when: cdkRowDefWhen"]}]}],fD.ctorParameters=()=>[{type:s.TemplateRef},{type:s.IterableDiffers},{type:void 0,decorators:[{type:s.Inject,args:[KA]},{type:s.Optional}]}];class gD{constructor(t){this._viewContainer=t,gD.mostRecentCellOutlet=this}ngOnDestroy(){gD.mostRecentCellOutlet===this&&(gD.mostRecentCellOutlet=null)}}gD.mostRecentCellOutlet=null,gD.decorators=[{type:s.Directive,args:[{selector:"[cdkCellOutlet]"}]}],gD.ctorParameters=()=>[{type:s.ViewContainerRef}];class bD{}bD.decorators=[{type:s.Component,args:[{selector:"cdk-header-row, tr[cdk-header-row]",template:cD,host:{class:"cdk-header-row",role:"row"},changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None}]}];class vD{}vD.decorators=[{type:s.Component,args:[{selector:"cdk-footer-row, tr[cdk-footer-row]",template:cD,host:{class:"cdk-footer-row",role:"row"},changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None}]}];class yD{}yD.decorators=[{type:s.Component,args:[{selector:"cdk-row, tr[cdk-row]",template:cD,host:{class:"cdk-row",role:"row"},changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None}]}];class _D{constructor(t){this.templateRef=t}}_D.decorators=[{type:s.Directive,args:[{selector:"ng-template[cdkNoDataRow]"}]}],_D.ctorParameters=()=>[{type:s.TemplateRef}];const wD=["top","bottom","left","right"];class xD{constructor(t,e,n,i,s=!0,r=!0,a){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._positionListener=a,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t<i.children.length;t++)n.push(i.children[t])}this._scheduleStyleChanges(()=>{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const s=t[0],r=s.children.length,a=this._getCellWidths(s,i),o=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,n),c=e.lastIndexOf(!0),d=n.indexOf(!0);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,s=i?"right":"left",p=i?"left":"right";for(const a of t)for(let t=0;t<r;t++){const i=a.children[t];e[t]&&this._addStickyStyle(i,s,o[t],t===c),n[t]&&this._addStickyStyle(i,p,l[t],t===d)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===c?[]:a.slice(0,c+1).map((t,n)=>e[n]?t:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===d?[]:a.slice(d).map((t,e)=>n[e+d]?t:null).reverse()}))})}stickRows(t,e,n){if(!this._isBrowser)return;const i="bottom"===n?t.slice().reverse():t,s="bottom"===n?e.slice().reverse():e,r=[],a=[],o=[];for(let c=0,d=0;c<i.length;c++){if(r[c]=d,!s[c])continue;const t=i[c];o[c]=this._isNativeHtmlTable?Array.from(t.children):[t];const e=t.getBoundingClientRect().height;d+=e,a[c]=e}const l=s.lastIndexOf(!0);this._scheduleStyleChanges(()=>{var t,e;for(let a=0;a<i.length;a++){if(!s[a])continue;const t=r[a],e=a===l;for(const i of o[a])this._addStickyStyle(i,n,t,e)}"top"===n?null===(t=this._positionListener)||void 0===t||t.stickyHeaderRowsUpdated({sizes:a,elements:o}):null===(e=this._positionListener)||void 0===e||e.stickyFooterRowsUpdated({sizes:a,elements:o})})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const n=t.querySelector("tfoot");this._scheduleStyleChanges(()=>{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="",t.classList.remove(this._borderCellCss[n]);wD.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n,i){t.classList.add(this._stickCellCss),i&&t.classList.add(this._borderCellCss[e]),t.style[e]=`${n}px`,t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of wD)t.style[i]&&(n+=e[i]);return n?`${n}`:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let s=0;s<i.length;s++){let t=i[s];n.push(t.getBoundingClientRect().width)}return this._cachedCellWidths=n,n}_getStickyStartColumnPositions(t,e){const n=[];let i=0;for(let s=0;s<t.length;s++)e[s]&&(n[s]=i,i+=t[s]);return n}_getStickyEndColumnPositions(t,e){const n=[];let i=0;for(let s=t.length;s>0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}const CD=new s.InjectionToken("CDK_SPL");class SD{constructor(t,e){this.viewContainer=t,this.elementRef=e}}SD.decorators=[{type:s.Directive,args:[{selector:"[rowOutlet]"}]}],SD.ctorParameters=()=>[{type:s.ViewContainerRef},{type:s.ElementRef}];class kD{constructor(t,e){this.viewContainer=t,this.elementRef=e}}kD.decorators=[{type:s.Directive,args:[{selector:"[headerRowOutlet]"}]}],kD.ctorParameters=()=>[{type:s.ViewContainerRef},{type:s.ElementRef}];class ED{constructor(t,e){this.viewContainer=t,this.elementRef=e}}ED.decorators=[{type:s.Directive,args:[{selector:"[footerRowOutlet]"}]}],ED.ctorParameters=()=>[{type:s.ViewContainerRef},{type:s.ElementRef}];class ID{constructor(t,e){this.viewContainer=t,this.elementRef=e}}ID.decorators=[{type:s.Directive,args:[{selector:"[noDataRowOutlet]"}]}],ID.ctorParameters=()=>[{type:s.ViewContainerRef},{type:s.ElementRef}];const AD='\n  <ng-content select="caption"></ng-content>\n  <ng-content select="colgroup, col"></ng-content>\n  <ng-container headerRowOutlet></ng-container>\n  <ng-container rowOutlet></ng-container>\n  <ng-container noDataRowOutlet></ng-container>\n  <ng-container footerRowOutlet></ng-container>\n';s.EmbeddedViewRef;class DD{constructor(t,e,n,i,s,r,a,o,l,c,d){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=a,this._viewRepeater=o,this._coalescedStyleScheduler=l,this._stickyPositioningListener=c,this._viewportRuler=d,this._onDestroy=new Gf.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new pg.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Ow(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Ow(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(xg.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),xE(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item,n=e.rowDef,s={$implicit:e.data};this._renderRow(this._rowOutlet,n,i,s)}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i<e.length;i++)this._renderRows[i].rowDef===t&&n.push(e[i]);this._addStickyColumnStyles(n,t)}),n.forEach((t,e)=>{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n<this._data.length;n++){let i=this._data[n];const s=this._getRenderRowsForData(i,n,e.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(let e=0;e<s.length;e++){let n=s[e];const i=this._cachedRenderRowsMap.get(n.data);i.has(n.rowDef)?i.get(n.rowDef).push(n):i.set(n.rowDef,[n]),t.push(n)}}return t}_getRenderRowsForData(t,e,n){return this._getRowDefs(t,e).map(i=>{const s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear();TD(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=TD(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=TD(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=TD(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);!this.multiTemplateDataRows&&t.length,this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],xE(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;xE(this.dataSource)?t=this.dataSource.connect(this):Object(vE.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(Dw.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(xg.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);return e}),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let n=0;n<t.viewContainer.length;n++){const i=t.viewContainer.get(n);e.push(i.rootNodes[0])}return e}_getRowDefs(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(n=>!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n.length,n}_getEmbeddedViewArgs(t,e){const n=t.rowDef,i={$implicit:t.data};return{templateRef:n.template,context:i,index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))gD.mostRecentCellOutlet&&gD.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e<n;e++){const i=t.get(e).context;i.count=n,i.first=0===e,i.last=e===n-1,i.even=e%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[e].dataIndex,i.renderIndex=e):i.index=this._renderRows[e].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,e=>{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){const t=this._dir?this._dir.value:"ltr";this._stickyStyler=new xD(this._isNativeHtmlTable,this.stickyCssClass,t,this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:Object(Dw.a)()).pipe(Object(xg.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}function TD(t,e){return t.concat(Array.from(e))}DD.decorators=[{type:s.Component,args:[{selector:"cdk-table, table[cdk-table]",exportAs:"cdkTable",template:AD,host:{class:"cdk-table","[class.cdk-table-fixed-layout]":"fixedLayout"},encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default,providers:[{provide:KA,useExisting:DD},{provide:AE,useClass:SE},{provide:oD,useClass:lD},{provide:CD,useValue:null}],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"]}]}],DD.ctorParameters=()=>[{type:s.IterableDiffers},{type:s.ChangeDetectorRef},{type:s.ElementRef},{type:String,decorators:[{type:s.Attribute,args:["role"]}]},{type:Bx,decorators:[{type:s.Optional}]},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:Vw},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[AE]}]},{type:lD,decorators:[{type:s.Optional},{type:s.Inject,args:[oD]}]},{type:void 0,decorators:[{type:s.Optional},{type:s.SkipSelf},{type:s.Inject,args:[CD]}]},{type:ME,decorators:[{type:s.Optional}]}],DD.propDecorators={trackBy:[{type:s.Input}],dataSource:[{type:s.Input}],multiTemplateDataRows:[{type:s.Input}],fixedLayout:[{type:s.Input}],_rowOutlet:[{type:s.ViewChild,args:[SD,{static:!0}]}],_headerRowOutlet:[{type:s.ViewChild,args:[kD,{static:!0}]}],_footerRowOutlet:[{type:s.ViewChild,args:[ED,{static:!0}]}],_noDataRowOutlet:[{type:s.ViewChild,args:[ID,{static:!0}]}],_contentColumnDefs:[{type:s.ContentChildren,args:[eD,{descendants:!0}]}],_contentRowDefs:[{type:s.ContentChildren,args:[fD,{descendants:!0}]}],_contentHeaderRowDefs:[{type:s.ContentChildren,args:[uD,{descendants:!0}]}],_contentFooterRowDefs:[{type:s.ContentChildren,args:[mD,{descendants:!0}]}],_noDataRow:[{type:s.ContentChild,args:[_D]}]};class OD{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}OD.decorators=[{type:s.Component,args:[{selector:"cdk-text-column",template:'\n    <ng-container cdkColumnDef>\n      <th cdk-header-cell *cdkHeaderCellDef [style.text-align]="justify">\n        {{headerText}}\n      </th>\n      <td cdk-cell *cdkCellDef="let data" [style.text-align]="justify">\n        {{dataAccessor(data, name)}}\n      </td>\n    </ng-container>\n  ',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default}]}],OD.ctorParameters=()=>[{type:DD,decorators:[{type:s.Optional}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[ZA]}]}],OD.propDecorators={name:[{type:s.Input}],headerText:[{type:s.Input}],dataAccessor:[{type:s.Input}],justify:[{type:s.Input}],columnDef:[{type:s.ViewChild,args:[eD,{static:!0}]}],cell:[{type:s.ViewChild,args:[XA,{static:!0}]}],headerCell:[{type:s.ViewChild,args:[QA,{static:!0}]}]};const PD=[DD,fD,XA,gD,QA,JA,eD,rD,yD,iD,sD,bD,uD,vD,mD,SD,kD,ED,OD,_D,ID];class ND{}ND.decorators=[{type:s.NgModule,args:[{exports:PD,declarations:PD,imports:[BE]}]}];class MD extends DD{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}MD.decorators=[{type:s.Component,args:[{selector:"mat-table, table[mat-table]",exportAs:"matTable",template:AD,host:{class:"mat-table","[class.mat-table-fixed-layout]":"fixedLayout"},providers:[{provide:AE,useClass:SE},{provide:DD,useExisting:MD},{provide:KA,useExisting:MD},{provide:oD,useClass:lD}],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default,styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n']}]}];class RD extends XA{}RD.decorators=[{type:s.Directive,args:[{selector:"[matCellDef]",providers:[{provide:XA,useExisting:RD}]}]}];class LD extends QA{}LD.decorators=[{type:s.Directive,args:[{selector:"[matHeaderCellDef]",providers:[{provide:QA,useExisting:LD}]}]}];class FD extends JA{}FD.decorators=[{type:s.Directive,args:[{selector:"[matFooterCellDef]",providers:[{provide:JA,useExisting:FD}]}]}];class jD extends eD{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}jD.decorators=[{type:s.Directive,args:[{selector:"[matColumnDef]",inputs:["sticky"],providers:[{provide:eD,useExisting:jD},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:jD}]}]}],jD.propDecorators={name:[{type:s.Input,args:["matColumnDef"]}]};class VD extends iD{}VD.decorators=[{type:s.Directive,args:[{selector:"mat-header-cell, th[mat-header-cell]",host:{class:"mat-header-cell",role:"columnheader"}}]}];class BD extends sD{}BD.decorators=[{type:s.Directive,args:[{selector:"mat-footer-cell, td[mat-footer-cell]",host:{class:"mat-footer-cell",role:"gridcell"}}]}];class HD extends rD{}HD.decorators=[{type:s.Directive,args:[{selector:"mat-cell, td[mat-cell]",host:{class:"mat-cell",role:"gridcell"}}]}];class zD extends uD{}zD.decorators=[{type:s.Directive,args:[{selector:"[matHeaderRowDef]",providers:[{provide:uD,useExisting:zD}],inputs:["columns: matHeaderRowDef","sticky: matHeaderRowDefSticky"]}]}];class UD extends mD{}UD.decorators=[{type:s.Directive,args:[{selector:"[matFooterRowDef]",providers:[{provide:mD,useExisting:UD}],inputs:["columns: matFooterRowDef","sticky: matFooterRowDefSticky"]}]}];class qD extends fD{}qD.decorators=[{type:s.Directive,args:[{selector:"[matRowDef]",providers:[{provide:fD,useExisting:qD}],inputs:["columns: matRowDefColumns","when: matRowDefWhen"]}]}];class $D extends bD{}$D.decorators=[{type:s.Component,args:[{selector:"mat-header-row, tr[mat-header-row]",template:cD,host:{class:"mat-header-row",role:"row"},changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None,exportAs:"matHeaderRow",providers:[{provide:bD,useExisting:$D}]}]}];class WD extends vD{}WD.decorators=[{type:s.Component,args:[{selector:"mat-footer-row, tr[mat-footer-row]",template:cD,host:{class:"mat-footer-row",role:"row"},changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None,exportAs:"matFooterRow",providers:[{provide:vD,useExisting:WD}]}]}];class YD extends yD{}YD.decorators=[{type:s.Component,args:[{selector:"mat-row, tr[mat-row]",template:cD,host:{class:"mat-row",role:"row"},changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None,exportAs:"matRow",providers:[{provide:yD,useExisting:YD}]}]}];class GD extends _D{}GD.decorators=[{type:s.Directive,args:[{selector:"ng-template[matNoDataRow]",providers:[{provide:_D,useExisting:GD}]}]}];class KD extends OD{}KD.decorators=[{type:s.Component,args:[{selector:"mat-text-column",template:'\n    <ng-container matColumnDef>\n      <th mat-header-cell *matHeaderCellDef [style.text-align]="justify">\n        {{headerText}}\n      </th>\n      <td mat-cell *matCellDef="let data" [style.text-align]="justify">\n        {{dataAccessor(data, name)}}\n      </td>\n    </ng-container>\n  ',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default}]}];const ZD=[MD,LD,zD,jD,RD,qD,FD,UD,VD,HD,BD,$D,YD,WD,GD,KD];class XD{}XD.decorators=[{type:s.NgModule,args:[{imports:[ND,wk],exports:[wk,ZD],declarations:ZD}]}];class QD extends wE{constructor(t=[]){super(),this._renderData=new pg.a([]),this._filter=new pg.a(""),this._internalPageChanges=new Gf.a,this._renderChangesSubscription=null,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Nw(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,n),r=this.sortingDataAccessor(e,n);const a=typeof s,o=typeof r;a!==o&&("number"===a&&(s+=""),"number"===o&&(r+=""));let l=0;return null!=s&&null!=r?s>r?l=1:s<r&&(l=-1):null!=s?l=1:null!=r&&(l=-1),l*("asc"==i?1:-1)}):t},this.filterPredicate=(t,e)=>{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new pg.a(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t),this._renderChangesSubscription||this._filterData(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){var t;const e=this._sort?Object(gg.a)(this._sort.sortChange,this._sort.initialized):Object(Dw.a)(null),n=this._paginator?Object(gg.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(Dw.a)(null),i=this._data,s=Object(ug.b)([i,this._filter]).pipe(Object($h.a)(([t])=>this._filterData(t))),r=Object(ug.b)([s,e]).pipe(Object($h.a)(([t])=>this._orderData(t))),a=Object(ug.b)([r,n]).pipe(Object($h.a)(([t])=>this._pageData(t)));null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=a.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}class JD extends QD{}const tT={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let eT=class{constructor(t){this.http=t,this.backendUrl=Xf}getAvgwaitreport(t){return this.http.post(this.backendUrl+"/reports/v1/secure/reports/averagewaittime",t,tT)}getAvgwaitreportbyregion(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/avgwaittimebyregion",t,tT)}getAdmittedreport(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/admittedreport",t,tT)}getremovedreport(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/removedreport",t,tT)}getWaitingreport(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/waitingreport",t,tT)}getCapmanreport(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/capacity",t,tT)}getInterimservice(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/interimservice",t,tT)}getscreeningreport(t){return this.http.post("https://hub.helplinema.org/api1/reports/v1/secure/reports/screeninglogreport",t,tT)}};eT.ctorParameters=()=>[{type:Yf.HttpClient}],eT=Hh([Object(s.Injectable)({providedIn:"root"})],eT);var nT={version:"0.18.5"},iT=1200,sT=1252,rT=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],aT={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},oT=function(t){-1!=rT.indexOf(t)&&(sT=aT[0]=t)};var lT=function(t){iT=t,oT(t)};function cT(){lT(1200),oT(1252)}function dT(t){for(var e=[],n=0;n<t.length>>1;++n)e[n]=String.fromCharCode(t.charCodeAt(2*n+1)+(t.charCodeAt(2*n)<<8));return e.join("")}var pT,uT=function(t){return String.fromCharCode(t)},hT=function(t){return String.fromCharCode(t)};var mT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function fT(t){for(var e="",n=0,i=0,s=0,r=0,a=0,o=0,l=0,c=0;c<t.length;)r=(n=t.charCodeAt(c++))>>2,a=(3&n)<<4|(i=t.charCodeAt(c++))>>4,o=(15&i)<<2|(s=t.charCodeAt(c++))>>6,l=63&s,isNaN(i)?o=l=64:isNaN(s)&&(l=64),e+=mT.charAt(r)+mT.charAt(a)+mT.charAt(o)+mT.charAt(l);return e}function gT(t){var e="",n=0,i=0,s=0,r=0,a=0,o=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<t.length;)n=mT.indexOf(t.charAt(l++))<<2|(r=mT.indexOf(t.charAt(l++)))>>4,e+=String.fromCharCode(n),i=(15&r)<<4|(a=mT.indexOf(t.charAt(l++)))>>2,64!==a&&(e+=String.fromCharCode(i)),s=(3&a)<<6|(o=mT.indexOf(t.charAt(l++))),64!==o&&(e+=String.fromCharCode(s));return e}var bT=function(){return"undefined"!=typeof Buffer&&"undefined"!=typeof process&&void 0!==process.versions&&!!process.versions.node}(),vT=function(){if("undefined"!=typeof Buffer){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch(TH){t=!0}return t?function(t,e){return e?new Buffer(t,e):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function yT(t){return bT?Buffer.alloc?Buffer.alloc(t):new Buffer(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function _T(t){return bT?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var wT=function(t){return bT?vT(t,"binary"):t.split("").map(function(t){return 255&t.charCodeAt(0)})};function xT(t){if("undefined"==typeof ArrayBuffer)return wT(t);for(var e=new ArrayBuffer(t.length),n=new Uint8Array(e),i=0;i!=t.length;++i)n[i]=255&t.charCodeAt(i);return e}function CT(t){if(Array.isArray(t))return t.map(function(t){return String.fromCharCode(t)}).join("");for(var e=[],n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}var ST=bT?function(t){return Buffer.concat(t.map(function(t){return Buffer.isBuffer(t)?t:vT(t)}))}:function(t){if("undefined"!=typeof Uint8Array){var e=0,n=0;for(e=0;e<t.length;++e)n+=t[e].length;var i=new Uint8Array(n),s=0;for(e=0,n=0;e<t.length;n+=s,++e)if(s=t[e].length,t[e]instanceof Uint8Array)i.set(t[e],n);else{if("string"==typeof t[e])throw"wtf";i.set(new Uint8Array(t[e]),n)}return i}return[].concat.apply([],t.map(function(t){return Array.isArray(t)?t:[].slice.call(t)}))};var kT=/\u0000/g,ET=/[\u0001-\u0006]/g;function IT(t){for(var e="",n=t.length-1;n>=0;)e+=t.charAt(n--);return e}function AT(t,e){var n=""+t;return n.length>=e?n:BO("0",e-n.length)+n}function DT(t,e){var n=""+t;return n.length>=e?n:BO(" ",e-n.length)+n}function TT(t,e){var n=""+t;return n.length>=e?n:n+BO(" ",e-n.length)}var OT=Math.pow(2,32);function PT(t,e){return t>OT||t<-OT?function(t,e){var n=""+Math.round(t);return n.length>=e?n:BO("0",e-n.length)+n}(t,e):function(t,e){var n=""+t;return n.length>=e?n:BO("0",e-n.length)+n}(Math.round(t),e)}function NT(t,e){return e=e||0,t.length>=7+e&&103==(32|t.charCodeAt(e))&&101==(32|t.charCodeAt(e+1))&&110==(32|t.charCodeAt(e+2))&&101==(32|t.charCodeAt(e+3))&&114==(32|t.charCodeAt(e+4))&&97==(32|t.charCodeAt(e+5))&&108==(32|t.charCodeAt(e+6))}var MT=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],RT=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];var LT={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},FT={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},jT={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function VT(t,e,n){for(var i=t<0?-1:1,s=t*i,r=0,a=1,o=0,l=1,c=0,d=0,p=Math.floor(s);c<e&&(o=(p=Math.floor(s))*a+r,d=p*c+l,!(s-p<5e-8));)s=1/(s-p),r=a,a=o,l=c,c=d;if(d>e&&(c>e?(d=l,o=r):(d=c,o=a)),!n)return[0,i*o,d];var u=Math.floor(i*o/d);return[u,i*o-u*d,d]}function BT(t,e,n){if(t>2958465||t<0)return null;var i=0|t,s=Math.floor(86400*(t-i)),r=0,a=[],o={D:i,T:s,u:86400*(t-i)-s,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),e&&e.date1904&&(i+=1462),o.u>.9999&&(o.u=0,86400==++s&&(o.T=s=0,++i,++o.D)),60===i)a=n?[1317,10,29]:[1900,2,29],r=3;else if(0===i)a=n?[1317,8,29]:[1900,1,0],r=6;else{i>60&&--i;var l=new Date(1900,0,1);l.setDate(l.getDate()+i-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],r=l.getDay(),i<60&&(r=(r+6)%7),n&&(r=function(t,e){e[0]-=581;var n=t.getDay();t<60&&(n=(n+6)%7);return n}(l,a))}return o.y=a[0],o.m=a[1],o.d=a[2],o.S=s%60,s=Math.floor(s/60),o.M=s%60,s=Math.floor(s/60),o.H=s,o.q=r,o}var HT=new Date(1899,11,31,0,0,0),zT=HT.getTime(),UT=new Date(1900,2,1,0,0,0);function qT(t,e){var n=t.getTime();return e?n-=1262304e5:t>=UT&&(n+=864e5),(n-(zT+6e4*(t.getTimezoneOffset()-HT.getTimezoneOffset())))/864e5}function $T(t){return-1==t.indexOf(".")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function WT(t){var e,n=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return e=n>=-4&&n<=-1?t.toPrecision(10+n):Math.abs(n)<=9?function(t){var e=t<0?12:11,n=$T(t.toFixed(12));return n.length<=e||(n=t.toPrecision(10)).length<=e?n:t.toExponential(5)}(t):10===n?t.toFixed(10).substr(0,12):function(t){var e=$T(t.toFixed(11));return e.length>(t<0?12:11)||"0"===e||"-0"===e?t.toPrecision(6):e}(t),$T(function(t){return-1==t.indexOf("E")?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(e.toUpperCase()))}function YT(t,e){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):WT(t);case"undefined":return"";case"object":if(null==t)return"";if(t instanceof Date)return mO(14,qT(t,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+t)}function GT(t,e,n,i){var s,r="",a=0,o=0,l=n.y,c=0;switch(t){case 98:l=n.y+543;case 121:switch(e.length){case 1:case 2:s=l%100,c=2;break;default:s=l%1e4,c=4}break;case 109:switch(e.length){case 1:case 2:s=n.m,c=e.length;break;case 3:return RT[n.m-1][1];case 5:return RT[n.m-1][0];default:return RT[n.m-1][2]}break;case 100:switch(e.length){case 1:case 2:s=n.d,c=e.length;break;case 3:return MT[n.q][0];default:return MT[n.q][1]}break;case 104:switch(e.length){case 1:case 2:s=1+(n.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:s=n.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:s=n.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if("s"!=e&&"ss"!=e&&".0"!=e&&".00"!=e&&".000"!=e)throw"bad second format: "+e;return 0!==n.u||"s"!=e&&"ss"!=e?(o=i>=2?3===i?1e3:100:1===i?10:1,(a=Math.round(o*(n.S+n.u)))>=60*o&&(a=0),"s"===e?0===a?"0":""+a/o:(r=AT(a,2+i),"ss"===e?r.substr(0,2):"."+r.substr(2,e.length-1))):AT(n.S,e.length);case 90:switch(e){case"[h]":case"[hh]":s=24*n.D+n.H;break;case"[m]":case"[mm]":s=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":s=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+e}c=3===e.length?1:2;break;case 101:s=l,c=1}return c>0?AT(s,c):""}function KT(t){if(t.length<=3)return t;for(var e=t.length%3,n=t.substr(0,e);e!=t.length;e+=3)n+=(n.length>0?",":"")+t.substr(e,3);return n}var ZT=/%/g;function XT(t,e){var n,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+XT(t,-e);var s=t.indexOf(".");-1===s&&(s=t.indexOf("E"));var r=Math.floor(Math.log(e)*Math.LOG10E)%s;if(r<0&&(r+=s),-1===(n=(e/Math.pow(10,r)).toPrecision(i+1+(s+r)%s)).indexOf("e")){var a=Math.floor(Math.log(e)*Math.LOG10E);for(-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+r):n+="E+"+(a-r);"0."===n.substr(0,2);)n=(n=n.charAt(0)+n.substr(2,s)+"."+n.substr(2+s)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(t,e,n,i){return e+n+i.substr(0,(s+r)%s)+"."+i.substr(r)+"E"})}else n=e.toExponential(i);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var QT=/# (\?+)( ?)\/( ?)(\d+)/;var JT=/^#*0*\.([0#]+)/,tO=/\).*[0#]/,eO=/\(###\) ###\\?-####/;function nO(t){for(var e,n="",i=0;i!=t.length;++i)switch(e=t.charCodeAt(i)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(e)}return n}function iO(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}function sO(t,e){var n=t-Math.floor(t),i=Math.pow(10,e);return e<(""+Math.round(n*i)).length?0:Math.round(n*i)}function rO(t,e,n){if(40===t.charCodeAt(0)&&!e.match(tO)){var i=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?rO("n",i,n):"("+rO("n",i,-n)+")"}if(44===e.charCodeAt(e.length-1))return function(t,e,n){for(var i=e.length-1;44===e.charCodeAt(i-1);)--i;return lO(t,e.substr(0,i),n/Math.pow(10,3*(e.length-i)))}(t,e,n);if(-1!==e.indexOf("%"))return function(t,e,n){var i=e.replace(ZT,""),s=e.length-i.length;return lO(t,i,n*Math.pow(10,2*s))+BO("%",s)}(t,e,n);if(-1!==e.indexOf("E"))return XT(e,n);if(36===e.charCodeAt(0))return"$"+rO(t,e.substr(" "==e.charAt(1)?2:1),n);var s,r,a,o,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+PT(l,e.length);if(e.match(/^[#?]+$/))return"0"===(s=PT(n,0))&&(s=""),s.length>e.length?s:nO(e.substr(0,e.length-s.length))+s;if(r=e.match(QT))return function(t,e,n){var i=parseInt(t[4],10),s=Math.round(e*i),r=Math.floor(s/i),a=s-r*i,o=i;return n+(0===r?"":""+r)+" "+(0===a?BO(" ",t[1].length+1+t[4].length):DT(a,t[1].length)+t[2]+"/"+t[3]+AT(o,t[4].length))}(r,l,c);if(e.match(/^#+0+$/))return c+PT(l,e.length-e.indexOf("0"));if(r=e.match(JT))return s=iO(n,r[1].length).replace(/^([^\.]+)$/,"$1."+nO(r[1])).replace(/\.$/,"."+nO(r[1])).replace(/\.(\d*)$/,function(t,e){return"."+e+BO("0",nO(r[1]).length-e.length)}),-1!==e.indexOf("0.")?s:s.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),r=e.match(/^(0*)\.(#*)$/))return c+iO(l,r[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=e.match(/^#{1,3},##0(\.?)$/))return c+KT(PT(l,0));if(r=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+rO(t,e,-n):KT(""+(Math.floor(n)+function(t,e){return e<(""+Math.round((t-Math.floor(t))*Math.pow(10,e))).length?1:0}(n,r[1].length)))+"."+AT(sO(n,r[1].length),r[1].length);if(r=e.match(/^#,#*,#0/))return rO(t,e.replace(/^#,#*,/,""),n);if(r=e.match(/^([0#]+)(\\?-([0#]+))+$/))return s=IT(rO(t,e.replace(/[\\-]/g,""),n)),a=0,IT(IT(e.replace(/\\/g,"")).replace(/[0#]/g,function(t){return a<s.length?s.charAt(a++):"0"===t?"0":""}));if(e.match(eO))return"("+(s=rO(t,"##########",n)).substr(0,3)+") "+s.substr(3,3)+"-"+s.substr(6);var d="";if(r=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(r[4].length,7),o=VT(l,Math.pow(10,a)-1,!1),s=""+c," "==(d=lO("n",r[1],o[1])).charAt(d.length-1)&&(d=d.substr(0,d.length-1)+"0"),s+=d+r[2]+"/"+r[3],(d=TT(o[2],a)).length<r[4].length&&(d=nO(r[4].substr(r[4].length-d.length))+d),s+=d;if(r=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(r[1].length,r[4].length),7),c+((o=VT(l,Math.pow(10,a)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?DT(o[1],a)+r[2]+"/"+r[3]+TT(o[2],a):BO(" ",2*a+1+r[2].length+r[3].length));if(r=e.match(/^[#0?]+$/))return s=PT(n,0),e.length<=s.length?s:nO(e.substr(0,e.length-s.length))+s;if(r=e.match(/^([#0?]+)\.([#0]+)$/)){s=""+n.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),a=s.indexOf(".");var p=e.indexOf(".")-a,u=e.length-s.length-p;return nO(e.substr(0,p)+s+e.substr(e.length-u))}if(r=e.match(/^00,000\.([#0]*0)$/))return a=sO(n,r[1].length),n<0?"-"+rO(t,e,-n):KT(function(t){return t<2147483647&&t>-2147483648?""+(t>=0?0|t:t-1|0):""+Math.floor(t)}(n)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(t){return"00,"+(t.length<3?AT(0,3-t.length):"")+t})+"."+AT(a,r[1].length);switch(e){case"###,##0.00":return rO(t,"#,##0.00",n);case"###,###":case"##,###":case"#,###":var h=KT(PT(l,0));return"0"!==h?c+h:"";case"###,###.00":return rO(t,"###,##0.00",n).replace(/^0\./,".");case"#,###.00":return rO(t,"#,##0.00",n).replace(/^0\./,".")}throw new Error("unsupported format |"+e+"|")}function aO(t,e){var n,i=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(0==e)return"0.0E+0";if(e<0)return"-"+aO(t,-e);var s=t.indexOf(".");-1===s&&(s=t.indexOf("E"));var r=Math.floor(Math.log(e)*Math.LOG10E)%s;if(r<0&&(r+=s),!(n=(e/Math.pow(10,r)).toPrecision(i+1+(s+r)%s)).match(/[Ee]/)){var a=Math.floor(Math.log(e)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+r):n+="E+"+(a-r),n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(t,e,n,i){return e+n+i.substr(0,(s+r)%s)+"."+i.substr(r)+"E"})}else n=e.toExponential(i);return t.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),t.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}function oO(t,e,n){if(40===t.charCodeAt(0)&&!e.match(tO)){var i=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?oO("n",i,n):"("+oO("n",i,-n)+")"}if(44===e.charCodeAt(e.length-1))return function(t,e,n){for(var i=e.length-1;44===e.charCodeAt(i-1);)--i;return lO(t,e.substr(0,i),n/Math.pow(10,3*(e.length-i)))}(t,e,n);if(-1!==e.indexOf("%"))return function(t,e,n){var i=e.replace(ZT,""),s=e.length-i.length;return lO(t,i,n*Math.pow(10,2*s))+BO("%",s)}(t,e,n);if(-1!==e.indexOf("E"))return aO(e,n);if(36===e.charCodeAt(0))return"$"+oO(t,e.substr(" "==e.charAt(1)?2:1),n);var s,r,a,o,l=Math.abs(n),c=n<0?"-":"";if(e.match(/^00+$/))return c+AT(l,e.length);if(e.match(/^[#?]+$/))return s=""+n,0===n&&(s=""),s.length>e.length?s:nO(e.substr(0,e.length-s.length))+s;if(r=e.match(QT))return function(t,e,n){return n+(0===e?"":""+e)+BO(" ",t[1].length+2+t[4].length)}(r,l,c);if(e.match(/^#+0+$/))return c+AT(l,e.length-e.indexOf("0"));if(r=e.match(JT))return s=(s=(""+n).replace(/^([^\.]+)$/,"$1."+nO(r[1])).replace(/\.$/,"."+nO(r[1]))).replace(/\.(\d*)$/,function(t,e){return"."+e+BO("0",nO(r[1]).length-e.length)}),-1!==e.indexOf("0.")?s:s.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),r=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,r[1].length?"0.":".");if(r=e.match(/^#{1,3},##0(\.?)$/))return c+KT(""+l);if(r=e.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+oO(t,e,-n):KT(""+n)+"."+BO("0",r[1].length);if(r=e.match(/^#,#*,#0/))return oO(t,e.replace(/^#,#*,/,""),n);if(r=e.match(/^([0#]+)(\\?-([0#]+))+$/))return s=IT(oO(t,e.replace(/[\\-]/g,""),n)),a=0,IT(IT(e.replace(/\\/g,"")).replace(/[0#]/g,function(t){return a<s.length?s.charAt(a++):"0"===t?"0":""}));if(e.match(eO))return"("+(s=oO(t,"##########",n)).substr(0,3)+") "+s.substr(3,3)+"-"+s.substr(6);var d="";if(r=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(r[4].length,7),o=VT(l,Math.pow(10,a)-1,!1),s=""+c," "==(d=lO("n",r[1],o[1])).charAt(d.length-1)&&(d=d.substr(0,d.length-1)+"0"),s+=d+r[2]+"/"+r[3],(d=TT(o[2],a)).length<r[4].length&&(d=nO(r[4].substr(r[4].length-d.length))+d),s+=d;if(r=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(r[1].length,r[4].length),7),c+((o=VT(l,Math.pow(10,a)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?DT(o[1],a)+r[2]+"/"+r[3]+TT(o[2],a):BO(" ",2*a+1+r[2].length+r[3].length));if(r=e.match(/^[#0?]+$/))return s=""+n,e.length<=s.length?s:nO(e.substr(0,e.length-s.length))+s;if(r=e.match(/^([#0]+)\.([#0]+)$/)){s=""+n.toFixed(Math.min(r[2].length,10)).replace(/([^0])0+$/,"$1"),a=s.indexOf(".");var p=e.indexOf(".")-a,u=e.length-s.length-p;return nO(e.substr(0,p)+s+e.substr(e.length-u))}if(r=e.match(/^00,000\.([#0]*0)$/))return n<0?"-"+oO(t,e,-n):KT(""+n).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(t){return"00,"+(t.length<3?AT(0,3-t.length):"")+t})+"."+AT(0,r[1].length);switch(e){case"###,###":case"##,###":case"#,###":var h=KT(""+l);return"0"!==h?c+h:"";default:if(e.match(/\.[0#?]*$/))return oO(t,e.slice(0,e.lastIndexOf(".")),n)+nO(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function lO(t,e,n){return(0|n)===n?oO(t,e,n):rO(t,e,n)}var cO=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function dO(t){for(var e=0,n="",i="";e<t.length;)switch(n=t.charAt(e)){case"G":NT(t,e)&&(e+=6),e++;break;case'"':for(;34!==t.charCodeAt(++e)&&e<t.length;);++e;break;case"\\":case"_":e+=2;break;case"@":++e;break;case"B":case"b":if("1"===t.charAt(e+1)||"2"===t.charAt(e+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4e0a":if("A/P"===t.substr(e,3).toUpperCase())return!0;if("AM/PM"===t.substr(e,5).toUpperCase())return!0;if("\u4e0a\u5348/\u4e0b\u5348"===t.substr(e,5).toUpperCase())return!0;++e;break;case"[":for(i=n;"]"!==t.charAt(e++)&&e<t.length;)i+=t.charAt(e);if(i.match(cO))return!0;break;case".":case"0":case"#":for(;e<t.length&&("0#?.,E+-%".indexOf(n=t.charAt(++e))>-1||"\\"==n&&"-"==t.charAt(e+1)&&"0#".indexOf(t.charAt(e+2))>-1););break;case"?":for(;t.charAt(++e)===n;);break;case"*":++e," "!=t.charAt(e)&&"*"!=t.charAt(e)||++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<t.length&&"0123456789".indexOf(t.charAt(++e))>-1;);break;case" ":default:++e}return!1}var pO=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function uO(t,e){if(null==e)return!1;var n=parseFloat(e[2]);switch(e[1]){case"=":if(t==n)return!0;break;case">":if(t>n)return!0;break;case"<":if(t<n)return!0;break;case"<>":if(t!=n)return!0;break;case">=":if(t>=n)return!0;break;case"<=":if(t<=n)return!0}return!1}function hO(t,e){var n=function(t){for(var e=[],n=!1,i=0,s=0;i<t.length;++i)switch(t.charCodeAt(i)){case 34:n=!n;break;case 95:case 42:case 92:++i;break;case 59:e[e.length]=t.substr(s,i-s),s=i+1}if(e[e.length]=t.substr(s),!0===n)throw new Error("Format |"+t+"| unterminated string ");return e}(t),i=n.length,s=n[i-1].indexOf("@");if(i<4&&s>-1&&--i,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!=typeof e)return[4,4===n.length||s>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=s>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=s>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=s>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"]}var r=e>0?n[0]:e<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[i,r];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(pO),o=n[1].match(pO);return uO(e,a)?[i,n[0]]:uO(e,o)?[i,n[1]]:[i,n[null!=a&&null!=o?2:1]]}return[i,r]}function mO(t,e,n){null==n&&(n={});var i="";switch(typeof t){case"string":i="m/d/yy"==t&&n.dateNF?n.dateNF:t;break;case"number":null==(i=14==t&&n.dateNF?n.dateNF:(null!=n.table?n.table:LT)[t])&&(i=n.table&&n.table[FT[t]]||LT[FT[t]]),null==i&&(i=jT[t]||"General")}if(NT(i,0))return YT(e,n);e instanceof Date&&(e=qT(e,n.date1904));var s=hO(i,e);if(NT(s[1]))return YT(e,n);if(!0===e)e="TRUE";else if(!1===e)e="FALSE";else if(""===e||null==e)return"";return function(t,e,n,i){for(var s,r,a,o=[],l="",c=0,d="",p="t",u="H";c<t.length;)switch(d=t.charAt(c)){case"G":if(!NT(t,c))throw new Error("unrecognized character "+d+" in "+t);o[o.length]={t:"G",v:"General"},c+=7;break;case'"':for(l="";34!==(a=t.charCodeAt(++c))&&c<t.length;)l+=String.fromCharCode(a);o[o.length]={t:"t",v:l},++c;break;case"\\":var h=t.charAt(++c),m="("===h||")"===h?h:"t";o[o.length]={t:m,v:h},++c;break;case"_":o[o.length]={t:"t",v:" "},c+=2;break;case"@":o[o.length]={t:"T",v:e},++c;break;case"B":case"b":if("1"===t.charAt(c+1)||"2"===t.charAt(c+1)){if(null==s&&null==(s=BT(e,n,"2"===t.charAt(c+1))))return"";o[o.length]={t:"X",v:t.substr(c,2)},p=d,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":d=d.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0)return"";if(null==s&&null==(s=BT(e,n)))return"";for(l=d;++c<t.length&&t.charAt(c).toLowerCase()===d;)l+=d;"m"===d&&"h"===p.toLowerCase()&&(d="M"),"h"===d&&(d=u),o[o.length]={t:d,v:l},p=d;break;case"A":case"a":case"\u4e0a":var f={t:d,v:d};if(null==s&&(s=BT(e,n)),"A/P"===t.substr(c,3).toUpperCase()?(null!=s&&(f.v=s.H>=12?"P":"A"),f.t="T",u="h",c+=3):"AM/PM"===t.substr(c,5).toUpperCase()?(null!=s&&(f.v=s.H>=12?"PM":"AM"),f.t="T",c+=5,u="h"):"\u4e0a\u5348/\u4e0b\u5348"===t.substr(c,5).toUpperCase()?(null!=s&&(f.v=s.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),f.t="T",c+=5,u="h"):(f.t="t",++c),null==s&&"T"===f.t)return"";o[o.length]=f,p=d;break;case"[":for(l=d;"]"!==t.charAt(c++)&&c<t.length;)l+=t.charAt(c);if("]"!==l.slice(-1))throw'unterminated "[" block: |'+l+"|";if(l.match(cO)){if(null==s&&null==(s=BT(e,n)))return"";o[o.length]={t:"Z",v:l.toLowerCase()},p=l.charAt(1)}else l.indexOf("$")>-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",dO(t)||(o[o.length]={t:"t",v:l}));break;case".":if(null!=s){for(l=d;++c<t.length&&"0"===(d=t.charAt(c));)l+=d;o[o.length]={t:"s",v:l};break}case"0":case"#":for(l=d;++c<t.length&&"0#?.,E+-%".indexOf(d=t.charAt(c))>-1;)l+=d;o[o.length]={t:"n",v:l};break;case"?":for(l=d;t.charAt(++c)===d;)l+=d;o[o.length]={t:d,v:l},p=d;break;case"*":++c," "!=t.charAt(c)&&"*"!=t.charAt(c)||++c;break;case"(":case")":o[o.length]={t:1===i?"t":d,v:d},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(l=d;c<t.length&&"0123456789".indexOf(t.charAt(++c))>-1;)l+=t.charAt(c);o[o.length]={t:"D",v:l};break;case" ":o[o.length]={t:d,v:d},++c;break;case"$":o[o.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(d))throw new Error("unrecognized character "+d+" in "+t);o[o.length]={t:"t",v:d},++c}var g,b=0,v=0;for(c=o.length-1,p="t";c>=0;--c)switch(o[c].t){case"h":case"H":o[c].t=u,p="h",b<1&&(b=1);break;case"s":(g=o[c].v.match(/\.0+$/))&&(v=Math.max(v,g[0].length-1)),b<3&&(b=3);case"d":case"y":case"M":case"e":p=o[c].t;break;case"m":"s"===p&&(o[c].t="M",b<2&&(b=2));break;case"X":break;case"Z":b<1&&o[c].v.match(/[Hh]/)&&(b=1),b<2&&o[c].v.match(/[Mm]/)&&(b=2),b<3&&o[c].v.match(/[Ss]/)&&(b=3)}switch(b){case 0:break;case 1:s.u>=.5&&(s.u=0,++s.S),s.S>=60&&(s.S=0,++s.M),s.M>=60&&(s.M=0,++s.H);break;case 2:s.u>=.5&&(s.u=0,++s.S),s.S>=60&&(s.S=0,++s.M)}var y,_="";for(c=0;c<o.length;++c)switch(o[c].t){case"t":case"T":case" ":case"D":break;case"X":o[c].v="",o[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[c].v=GT(o[c].t.charCodeAt(0),o[c].v,s,v),o[c].t="t";break;case"n":case"?":for(y=c+1;null!=o[y]&&("?"===(d=o[y].t)||"D"===d||(" "===d||"t"===d)&&null!=o[y+1]&&("?"===o[y+1].t||"t"===o[y+1].t&&"/"===o[y+1].v)||"("===o[c].t&&(" "===d||"n"===d||")"===d)||"t"===d&&("/"===o[y].v||" "===o[y].v&&null!=o[y+1]&&"?"==o[y+1].t));)o[c].v+=o[y].v,o[y]={v:"",t:";"},++y;_+=o[c].v,c=y-1;break;case"G":o[c].t="t",o[c].v=YT(e,n)}var w,x,C="";if(_.length>0){40==_.charCodeAt(0)?(w=e<0&&45===_.charCodeAt(0)?-e:e,x=lO("n",_,w)):(x=lO("n",_,w=e<0&&i>1?-e:e),w<0&&o[0]&&"t"==o[0].t&&(x=x.substr(1),o[0].v="-"+o[0].v)),y=x.length-1;var S=o.length;for(c=0;c<o.length;++c)if(null!=o[c]&&"t"!=o[c].t&&o[c].v.indexOf(".")>-1){S=c;break}var k=o.length;if(S===o.length&&-1===x.indexOf("E")){for(c=o.length-1;c>=0;--c)null!=o[c]&&-1!=="n?".indexOf(o[c].t)&&(y>=o[c].v.length-1?(y-=o[c].v.length,o[c].v=x.substr(y+1,o[c].v.length)):y<0?o[c].v="":(o[c].v=x.substr(0,y+1),y=-1),o[c].t="t",k=c);y>=0&&k<o.length&&(o[k].v=x.substr(0,y+1)+o[k].v)}else if(S!==o.length&&-1===x.indexOf("E")){for(y=x.indexOf(".")-1,c=S;c>=0;--c)if(null!=o[c]&&-1!=="n?".indexOf(o[c].t)){for(r=o[c].v.indexOf(".")>-1&&c===S?o[c].v.indexOf(".")-1:o[c].v.length-1,C=o[c].v.substr(r+1);r>=0;--r)y>=0&&("0"===o[c].v.charAt(r)||"#"===o[c].v.charAt(r))&&(C=x.charAt(y--)+C);o[c].v=C,o[c].t="t",k=c}for(y>=0&&k<o.length&&(o[k].v=x.substr(0,y+1)+o[k].v),y=x.indexOf(".")+1,c=S;c<o.length;++c)if(null!=o[c]&&(-1!=="n?(".indexOf(o[c].t)||c===S)){for(r=o[c].v.indexOf(".")>-1&&c===S?o[c].v.indexOf(".")+1:0,C=o[c].v.substr(0,r);r<o[c].v.length;++r)y<x.length&&(C+=x.charAt(y++));o[c].v=C,o[c].t="t",k=c}}}for(c=0;c<o.length;++c)null!=o[c]&&"n?".indexOf(o[c].t)>-1&&(w=i>1&&e<0&&c>0&&"-"===o[c-1].v?-e:e,o[c].v=lO(o[c].t,o[c].v,w),o[c].t="t");var E="";for(c=0;c!==o.length;++c)null!=o[c]&&(E+=o[c].v);return E}(s[1],e,n,s[0])}function fO(t,e){if("number"!=typeof e){e=+e||-1;for(var n=0;n<392;++n)if(null!=LT[n]){if(LT[n]==t){e=n;break}}else e<0&&(e=n);e<0&&(e=391)}return LT[e]=t,e}function gO(t){for(var e=0;392!=e;++e)void 0!==t[e]&&fO(t[e],e)}function bO(){var t;t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',LT=t}var vO=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;var yO=function(){var t={};t.version="1.2.0";var e=function(){for(var t=0,e=new Array(256),n=0;256!=n;++n)t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=1&(t=n)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1)?-306674912^t>>>1:t>>>1,e[n]=t;return"undefined"!=typeof Int32Array?new Int32Array(e):e}();var n=function(t){var e=0,n=0,i=0,s="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(i=0;256!=i;++i)s[i]=t[i];for(i=0;256!=i;++i)for(n=t[i],e=256+i;e<4096;e+=256)n=s[e]=n>>>8^t[255&n];var r=[];for(i=1;16!=i;++i)r[i-1]="undefined"!=typeof Int32Array?s.subarray(256*i,256*i+256):s.slice(256*i,256*i+256);return r}(e),i=n[0],s=n[1],r=n[2],a=n[3],o=n[4],l=n[5],c=n[6],d=n[7],p=n[8],u=n[9],h=n[10],m=n[11],f=n[12],g=n[13],b=n[14];return t.table=e,t.bstr=function(t,n){for(var i=-1^n,s=0,r=t.length;s<r;)i=i>>>8^e[255&(i^t.charCodeAt(s++))];return~i},t.buf=function(t,n){for(var v=-1^n,y=t.length-15,_=0;_<y;)v=b[t[_++]^255&v]^g[t[_++]^v>>8&255]^f[t[_++]^v>>16&255]^m[t[_++]^v>>>24]^h[t[_++]]^u[t[_++]]^p[t[_++]]^d[t[_++]]^c[t[_++]]^l[t[_++]]^o[t[_++]]^a[t[_++]]^r[t[_++]]^s[t[_++]]^i[t[_++]]^e[t[_++]];for(y+=15;_<y;)v=v>>>8^e[255&(v^t[_++])];return~v},t.str=function(t,n){for(var i=-1^n,s=0,r=t.length,a=0,o=0;s<r;)(a=t.charCodeAt(s++))<128?i=i>>>8^e[255&(i^a)]:a<2048?i=(i=i>>>8^e[255&(i^(192|a>>6&31))])>>>8^e[255&(i^(128|63&a))]:a>=55296&&a<57344?(a=64+(1023&a),o=1023&t.charCodeAt(s++),i=(i=(i=(i=i>>>8^e[255&(i^(240|a>>8&7))])>>>8^e[255&(i^(128|a>>2&63))])>>>8^e[255&(i^(128|o>>6&15|(3&a)<<4))])>>>8^e[255&(i^(128|63&o))]):i=(i=(i=i>>>8^e[255&(i^(224|a>>12&15))])>>>8^e[255&(i^(128|a>>6&63))])>>>8^e[255&(i^(128|63&a))];return~i},t}(),_O=function(){var t,e={};function n(t){if("/"==t.charAt(t.length-1))return-1===t.slice(0,-1).indexOf("/")?t:n(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(0,e+1)}function i(t){if("/"==t.charAt(t.length-1))return i(t.slice(0,-1));var e=t.lastIndexOf("/");return-1===e?t:t.slice(e+1)}function s(t,e){"string"==typeof e&&(e=new Date(e));var n=e.getHours();n=(n=n<<6|e.getMinutes())<<5|e.getSeconds()>>>1,t.write_shift(2,n);var i=e.getFullYear()-1980;i=(i=i<<4|e.getMonth()+1)<<5|e.getDate(),t.write_shift(2,i)}function r(t){hN(t,0);for(var e={},n=0;t.l<=t.length-4;){var i=t.read_shift(2),s=t.read_shift(2),r=t.l+s,a={};switch(i){case 21589:1&(n=t.read_shift(1))&&(a.mtime=t.read_shift(4)),s>5&&(2&n&&(a.atime=t.read_shift(4)),4&n&&(a.ctime=t.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime))}t.l=r,e[i]=a}return e}function a(){return t||(t={})}function o(t,e){if(80==t[0]&&75==t[1])return st(t,e);if(109==(32|t[0])&&105==(32|t[1]))return function(t,e){if("mime-version:"!=x(t.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var n=e&&e.root||"",i=(bT&&Buffer.isBuffer(t)?t.toString("binary"):x(t)).split("\r\n"),s=0,r="";for(s=0;s<i.length;++s)if(r=i[s],/^Content-Location:/i.test(r)&&(r=r.slice(r.indexOf("file")),n||(n=r.slice(0,r.lastIndexOf("/")+1)),r.slice(0,n.length)!=n))for(;n.length>0&&(n=(n=n.slice(0,n.length-1)).slice(0,n.lastIndexOf("/")+1),r.slice(0,n.length)!=n););var a=(i[1]||"").match(/boundary="(.*?)"/);if(!a)throw new Error("MAD cannot find boundary");var o="--"+(a[1]||""),l={FileIndex:[],FullPaths:[]};u(l);var c,d=0;for(s=0;s<i.length;++s){var p=i[s];p!==o&&p!==o+"--"||(d++&&dt(l,i.slice(c,s),n),c=s)}return l}(t,e);if(t.length<512)throw new Error("CFB file size "+t.length+" < 512");var n,i,s,r,a,o,h=512,m=[],f=t.slice(0,512);hN(f,0);var g=function(t){if(80==t[t.l]&&75==t[t.l+1])return[0,0];t.chk(v,"Header Signature: "),t.l+=16;var e=t.read_shift(2,"u");return[t.read_shift(2,"u"),e]}(f);switch(n=g[0]){case 3:h=512;break;case 4:h=4096;break;case 0:if(0==g[1])return st(t,e);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==h&&hN(f=t.slice(0,h),28);var y=t.slice(0,h);!function(t,e){var n=9;switch(t.l+=2,n=t.read_shift(2)){case 9:if(3!=e)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=e)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}t.chk("0600","Mini Sector Shift: "),t.chk("000000000000","Reserved: ")}(f,n);var _=f.read_shift(4,"i");if(3===n&&0!==_)throw new Error("# Directory Sectors: Expected 0 saw "+_);f.l+=4,r=f.read_shift(4,"i"),f.l+=4,f.chk("00100000","Mini Stream Cutoff Size: "),a=f.read_shift(4,"i"),i=f.read_shift(4,"i"),o=f.read_shift(4,"i"),s=f.read_shift(4,"i");for(var w=-1,C=0;C<109&&!((w=f.read_shift(4,"i"))<0);++C)m[C]=w;var S=function(t,e){for(var n=Math.ceil(t.length/e)-1,i=[],s=1;s<n;++s)i[s-1]=t.slice(s*e,(s+1)*e);return i[n-1]=t.slice(n*e),i}(t,h);c(o,s,S,h,m);var k=function(t,e,n,i){var s=t.length,r=[],a=[],o=[],l=[],c=i-1,d=0,p=0,u=0,h=0;for(d=0;d<s;++d)if(o=[],(u=d+e)>=s&&(u-=s),!a[u]){l=[];var m=[];for(p=u;p>=0;){m[p]=!0,a[p]=!0,o[o.length]=p,l.push(t[p]);var f=n[Math.floor(4*p/i)];if(i<4+(h=4*p&c))throw new Error("FAT boundary crossed: "+p+" 4 "+i);if(!t[f])break;if(m[p=oN(t[f],h)])break}r[u]={nodes:o,data:LP([l])}}return r}(S,r,m,h);k[r].name="!Directory",i>0&&a!==b&&(k[a].name="!MiniFAT"),k[m[0]].name="!FAT",k.fat_addrs=m,k.ssz=h;var E=[],I=[],A=[];!function(t,e,n,i,s,r,a,o){for(var c,u=0,h=i.length?2:0,m=e[t].data,f=0,g=0;f<m.length;f+=128){var v=m.slice(f,f+128);hN(v,64),g=v.read_shift(2),c=jP(v,0,g-h),i.push(c);var y={name:c,type:v.read_shift(1),color:v.read_shift(1),L:v.read_shift(4,"i"),R:v.read_shift(4,"i"),C:v.read_shift(4,"i"),clsid:v.read_shift(16),state:v.read_shift(4,"i"),start:0,size:0};0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(y.ct=p(v,v.l-8)),0!==v.read_shift(2)+v.read_shift(2)+v.read_shift(2)+v.read_shift(2)&&(y.mt=p(v,v.l-8)),y.start=v.read_shift(4,"i"),y.size=v.read_shift(4,"i"),y.size<0&&y.start<0&&(y.size=y.type=0,y.start=b,y.name=""),5===y.type?(u=y.start,s>0&&u!==b&&(e[u].name="!StreamData")):y.size>=4096?(y.storage="fat",void 0===e[y.start]&&(e[y.start]=d(n,y.start,e.fat_addrs,e.ssz)),e[y.start].name=y.name,y.content=e[y.start].data.slice(0,y.size)):(y.storage="minifat",y.size<0?y.size=0:u!==b&&y.start!==b&&e[u]&&(y.content=l(y,e[u].data,(e[o]||{}).data))),y.content&&hN(y.content,0),r[c]=y,a.push(y)}}(r,k,S,E,i,{},I,a),function(t,e,n){for(var i=0,s=0,r=0,a=0,o=0,l=n.length,c=[],d=[];i<l;++i)c[i]=d[i]=i,e[i]=n[i];for(;o<d.length;++o)s=t[i=d[o]].L,r=t[i].R,a=t[i].C,c[i]===i&&(-1!==s&&c[s]!==s&&(c[i]=c[s]),-1!==r&&c[r]!==r&&(c[i]=c[r])),-1!==a&&(c[a]=i),-1!==s&&i!=c[i]&&(c[s]=c[i],d.lastIndexOf(s)<o&&d.push(s)),-1!==r&&i!=c[i]&&(c[r]=c[i],d.lastIndexOf(r)<o&&d.push(r));for(i=1;i<l;++i)c[i]===i&&(-1!==r&&c[r]!==r?c[i]=c[r]:-1!==s&&c[s]!==s&&(c[i]=c[s]));for(i=1;i<l;++i)if(0!==t[i].type){if((o=i)!=c[o])do{o=c[o],e[i]=e[o]+"/"+e[i]}while(0!==o&&-1!==c[o]&&o!=c[o]);c[i]=-1}for(e[0]+="/",i=1;i<l;++i)2!==t[i].type&&(e[i]+="/")}(I,A,E),E.shift();var D={FileIndex:I,FullPaths:A};return e&&e.raw&&(D.raw={header:y,sectors:S}),D}function l(t,e,n){for(var i=t.start,s=t.size,r=[],a=i;n&&s>0&&a>=0;)r.push(e.slice(a*g,a*g+g)),s-=g,a=oN(n,4*a);return 0===r.length?fN(0):ST(r).slice(0,t.size)}function c(t,e,n,i,s){var r=b;if(t===b){if(0!==e)throw new Error("DIFAT chain shorter than expected")}else if(-1!==t){var a=n[t],o=(i>>>2)-1;if(!a)return;for(var l=0;l<o&&(r=oN(a,4*l))!==b;++l)s.push(r);c(oN(a,i-4),e-1,n,i,s)}}function d(t,e,n,i,s){var r=[],a=[];s||(s=[]);var o=i-1,l=0,c=0;for(l=e;l>=0;){s[l]=!0,r[r.length]=l,a.push(t[l]);var d=n[Math.floor(4*l/i)];if(i<4+(c=4*l&o))throw new Error("FAT boundary crossed: "+l+" 4 "+i);if(!t[d])break;l=oN(t[d],c)}return{nodes:r,data:LP([a])}}function p(t,e){return new Date(1e3*(aN(t,e+4)/1e7*Math.pow(2,32)+aN(t,e)/1e7-11644473600))}function u(t,e){var n=e||{},i=n.root||"Root Entry";if(t.FullPaths||(t.FullPaths=[]),t.FileIndex||(t.FileIndex=[]),t.FullPaths.length!==t.FileIndex.length)throw new Error("inconsistent CFB structure");0===t.FullPaths.length&&(t.FullPaths[0]=i+"/",t.FileIndex[0]={name:i,type:5}),n.CLSID&&(t.FileIndex[0].clsid=n.CLSID),function(t){var e="\x01Sh33tJ5";if(_O.find(t,"/"+e))return;var n=fN(4);n[0]=55,n[1]=n[3]=50,n[2]=54,t.FileIndex.push({name:e,type:2,content:n,size:4,L:69,R:69,C:69}),t.FullPaths.push(t.FullPaths[0]+e),h(t)}(t)}function h(t,e){u(t);for(var s=!1,r=!1,a=t.FullPaths.length-1;a>=0;--a){var o=t.FileIndex[a];switch(o.type){case 0:r?s=!0:(t.FileIndex.pop(),t.FullPaths.pop());break;case 1:case 2:case 5:r=!0,isNaN(o.R*o.L*o.C)&&(s=!0),o.R>-1&&o.L>-1&&o.R==o.L&&(s=!0);break;default:s=!0}}if(s||e){var l=new Date(1987,1,19),c=0,d=Object.create?Object.create(null):{},p=[];for(a=0;a<t.FullPaths.length;++a)d[t.FullPaths[a]]=!0,0!==t.FileIndex[a].type&&p.push([t.FullPaths[a],t.FileIndex[a]]);for(a=0;a<p.length;++a){var h=n(p[a][0]);(r=d[h])||(p.push([h,{name:i(h).replace("/",""),type:1,clsid:_,ct:l,mt:l,content:null}]),d[h]=!0)}for(p.sort(function(t,e){return function(t,e){for(var n=t.split("/"),i=e.split("/"),s=0,r=0,a=Math.min(n.length,i.length);s<a;++s){if(r=n[s].length-i[s].length)return r;if(n[s]!=i[s])return n[s]<i[s]?-1:1}return n.length-i.length}(t[0],e[0])}),t.FullPaths=[],t.FileIndex=[],a=0;a<p.length;++a)t.FullPaths[a]=p[a][0],t.FileIndex[a]=p[a][1];for(a=0;a<p.length;++a){var m=t.FileIndex[a],f=t.FullPaths[a];if(m.name=i(f).replace("/",""),m.L=m.R=m.C=-(m.color=1),m.size=m.content?m.content.length:0,m.start=0,m.clsid=m.clsid||_,0===a)m.C=p.length>1?1:-1,m.size=0,m.type=5;else if("/"==f.slice(-1)){for(c=a+1;c<p.length&&n(t.FullPaths[c])!=f;++c);for(m.C=c>=p.length?-1:c,c=a+1;c<p.length&&n(t.FullPaths[c])!=n(f);++c);m.R=c>=p.length?-1:c,m.type=1}else n(t.FullPaths[a+1]||"")==n(f)&&(m.R=a+1),m.type=2}}}function m(t,e){var n=e||{};if("mad"==n.fileType)return function(t,e){for(var n=e||{},i=n.boundary||"SheetJS",s=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(i="------="+i).slice(2)+'"',"","",""],r=t.FullPaths[0],a=r,o=t.FileIndex[0],l=1;l<t.FullPaths.length;++l)if(a=t.FullPaths[l].slice(r.length),(o=t.FileIndex[l]).size&&o.content&&"\x01Sh33tJ5"!=a){a=a.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(t){return"_x"+t.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(t){return"_u"+t.charCodeAt(0).toString(16)+"_"});for(var c=o.content,d=bT&&Buffer.isBuffer(c)?c.toString("binary"):x(c),p=0,u=Math.min(1024,d.length),h=0,m=0;m<=u;++m)(h=d.charCodeAt(m))>=32&&h<128&&++p;var f=p>=4*u/5;s.push(i),s.push("Content-Location: "+(n.root||"file:///C:/SheetJS/")+a),s.push("Content-Transfer-Encoding: "+(f?"quoted-printable":"base64")),s.push("Content-Type: "+ot(o,a)),s.push(""),s.push(f?ct(d):lt(d))}return s.push(i+"--\r\n"),s.join("\r\n")}(t,n);switch(h(t),n.fileType){case"zip":return function(t,e){var n=e||{},i=[],r=[],a=fN(1),o=n.compression?8:0,l=0;0;var c=0,d=0,p=0,u=0,h=t.FullPaths[0],m=h,f=t.FileIndex[0],g=[],b=0;for(c=1;c<t.FullPaths.length;++c)if(m=t.FullPaths[c].slice(h.length),(f=t.FileIndex[c]).size&&f.content&&"\x01Sh33tJ5"!=m){var v=p,y=fN(m.length);for(d=0;d<m.length;++d)y.write_shift(1,127&m.charCodeAt(d));y=y.slice(0,y.l),g[u]=yO.buf(f.content,0);var _=f.content;8==o&&(_=C(_)),(a=fN(30)).write_shift(4,67324752),a.write_shift(2,20),a.write_shift(2,l),a.write_shift(2,o),f.mt?s(a,f.mt):a.write_shift(4,0),a.write_shift(-4,8&l?0:g[u]),a.write_shift(4,8&l?0:_.length),a.write_shift(4,8&l?0:f.content.length),a.write_shift(2,y.length),a.write_shift(2,0),p+=a.length,i.push(a),p+=y.length,i.push(y),p+=_.length,i.push(_),8&l&&((a=fN(12)).write_shift(-4,g[u]),a.write_shift(4,_.length),a.write_shift(4,f.content.length),p+=a.l,i.push(a)),(a=fN(46)).write_shift(4,33639248),a.write_shift(2,0),a.write_shift(2,20),a.write_shift(2,l),a.write_shift(2,o),a.write_shift(4,0),a.write_shift(-4,g[u]),a.write_shift(4,_.length),a.write_shift(4,f.content.length),a.write_shift(2,y.length),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(4,0),a.write_shift(4,v),b+=a.l,r.push(a),b+=y.length,r.push(y),++u}return(a=fN(22)).write_shift(4,101010256),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,u),a.write_shift(2,u),a.write_shift(4,b),a.write_shift(4,p),a.write_shift(2,0),ST([ST(i),ST(r),a])}(t,n)}var i=function(t){for(var e=0,n=0,i=0;i<t.FileIndex.length;++i){var s=t.FileIndex[i];if(s.content){var r=s.content.length;r>0&&(r<4096?e+=r+63>>6:n+=r+511>>9)}}for(var a=t.FullPaths.length+3>>2,o=e+127>>7,l=(e+7>>3)+n+a+o,c=l+127>>7,d=c<=109?0:Math.ceil((c-109)/127);l+c+d+127>>7>c;)d=++c<=109?0:Math.ceil((c-109)/127);var p=[1,d,c,o,a,n,e,0];return t.FileIndex[0].size=e<<6,p[7]=(t.FileIndex[0].start=p[0]+p[1]+p[2]+p[3]+p[4]+p[5])+(p[6]+7>>3),p}(t),r=fN(i[7]<<9),a=0,o=0;for(a=0;a<8;++a)r.write_shift(1,y[a]);for(a=0;a<8;++a)r.write_shift(2,0);for(r.write_shift(2,62),r.write_shift(2,3),r.write_shift(2,65534),r.write_shift(2,9),r.write_shift(2,6),a=0;a<3;++a)r.write_shift(2,0);for(r.write_shift(4,0),r.write_shift(4,i[2]),r.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),r.write_shift(4,0),r.write_shift(4,4096),r.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:b),r.write_shift(4,i[3]),r.write_shift(-4,i[1]?i[0]-1:b),r.write_shift(4,i[1]),a=0;a<109;++a)r.write_shift(-4,a<i[2]?i[1]+a:-1);if(i[1])for(o=0;o<i[1];++o){for(;a<236+127*o;++a)r.write_shift(-4,a<i[2]?i[1]+a:-1);r.write_shift(-4,o===i[1]-1?b:o+1)}var l=function(t){for(o+=t;a<o-1;++a)r.write_shift(-4,a+1);t&&(++a,r.write_shift(-4,b))};for(o=a=0,o+=i[1];a<o;++a)r.write_shift(-4,w.DIFSECT);for(o+=i[2];a<o;++a)r.write_shift(-4,w.FATSECT);l(i[3]),l(i[4]);for(var c=0,d=0,p=t.FileIndex[0];c<t.FileIndex.length;++c)(p=t.FileIndex[c]).content&&((d=p.content.length)<4096||(p.start=o,l(d+511>>9)));for(l(i[6]+7>>3);511&r.l;)r.write_shift(-4,w.ENDOFCHAIN);for(o=a=0,c=0;c<t.FileIndex.length;++c)(p=t.FileIndex[c]).content&&(!(d=p.content.length)||d>=4096||(p.start=o,l(d+63>>6)));for(;511&r.l;)r.write_shift(-4,w.ENDOFCHAIN);for(a=0;a<i[4]<<2;++a){var u=t.FullPaths[a];if(u&&0!==u.length){p=t.FileIndex[a],0===a&&(p.start=p.size?p.start-1:b);var m=0===a&&n.root||p.name;if(d=2*(m.length+1),r.write_shift(64,m,"utf16le"),r.write_shift(2,d),r.write_shift(1,p.type),r.write_shift(1,p.color),r.write_shift(-4,p.L),r.write_shift(-4,p.R),r.write_shift(-4,p.C),p.clsid)r.write_shift(16,p.clsid,"hex");else for(c=0;c<4;++c)r.write_shift(4,0);r.write_shift(4,p.state||0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,p.start),r.write_shift(4,p.size),r.write_shift(4,0)}else{for(c=0;c<17;++c)r.write_shift(4,0);for(c=0;c<3;++c)r.write_shift(4,-1);for(c=0;c<12;++c)r.write_shift(4,0)}}for(a=1;a<t.FileIndex.length;++a)if((p=t.FileIndex[a]).size>=4096)if(r.l=p.start+1<<9,bT&&Buffer.isBuffer(p.content))p.content.copy(r,r.l,0,p.size),r.l+=p.size+511&-512;else{for(c=0;c<p.size;++c)r.write_shift(1,p.content[c]);for(;511&c;++c)r.write_shift(1,0)}for(a=1;a<t.FileIndex.length;++a)if((p=t.FileIndex[a]).size>0&&p.size<4096)if(bT&&Buffer.isBuffer(p.content))p.content.copy(r,r.l,0,p.size),r.l+=p.size+63&-64;else{for(c=0;c<p.size;++c)r.write_shift(1,p.content[c]);for(;63&c;++c)r.write_shift(1,0)}if(bT)r.l=r.length;else for(;r.l<r.length;)r.write_shift(1,0);return r}e.version="1.2.1";var f,g=64,b=-2,v="d0cf11e0a1b11ae1",y=[208,207,17,224,161,177,26,225],_="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:b,FREESECT:-1,HEADER_SIGNATURE:v,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:_,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=String.fromCharCode(t[n]);return e.join("")}function C(t){return f?f.deflateRawSync(t):K(t)}var S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],E=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];for(var I,A,D="undefined"!=typeof Uint8Array,T=D?new Uint8Array(256):[],O=0;O<256;++O)T[O]=(A=void 0,255&((A=139536&((I=O)<<1|I<<11)|558144&(I<<5|I<<15))>>16|A>>8|A));function P(t,e){var n=T[255&t];return e<=8?n>>>8-e:(n=n<<8|T[t>>8&255],e<=16?n>>>16-e:(n=n<<8|T[t>>16&255])>>>24-e)}function N(t,e){var n=7&e,i=e>>>3;return(t[i]|(n<=6?0:t[i+1]<<8))>>>n&3}function M(t,e){var n=7&e,i=e>>>3;return(t[i]|(n<=5?0:t[i+1]<<8))>>>n&7}function R(t,e){var n=7&e,i=e>>>3;return(t[i]|(n<=3?0:t[i+1]<<8))>>>n&31}function L(t,e){var n=7&e,i=e>>>3;return(t[i]|(n<=1?0:t[i+1]<<8))>>>n&127}function F(t,e,n){var i=7&e,s=e>>>3,r=(1<<n)-1,a=t[s]>>>i;return n<8-i?a&r:(a|=t[s+1]<<8-i,n<16-i?a&r:(a|=t[s+2]<<16-i,n<24-i?a&r:(a|=t[s+3]<<24-i)&r))}function j(t,e,n){var i=7&e,s=e>>>3;return i<=5?t[s]|=(7&n)<<i:(t[s]|=n<<i&255,t[s+1]=(7&n)>>8-i),e+3}function V(t,e,n){return n=(1&n)<<(7&e),t[e>>>3]|=n,e+1}function B(t,e,n){var i=e>>>3;return n<<=7&e,t[i]|=255&n,n>>>=8,t[i+1]=n,e+8}function H(t,e,n){var i=e>>>3;return n<<=7&e,t[i]|=255&n,n>>>=8,t[i+1]=255&n,t[i+2]=n>>>8,e+16}function z(t,e){var n=t.length,i=2*n>e?2*n:e+5,s=0;if(n>=e)return t;if(bT){var r=_T(i);if(t.copy)t.copy(r);else for(;s<t.length;++s)r[s]=t[s];return r}if(D){var a=new Uint8Array(i);if(a.set)a.set(t);else for(;s<n;++s)a[s]=t[s];return a}return t.length=i,t}function U(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function q(t,e,n){var i=1,s=0,r=0,a=0,o=0,l=t.length,c=D?new Uint16Array(32):U(32);for(r=0;r<32;++r)c[r]=0;for(r=l;r<n;++r)t[r]=0;l=t.length;var d=D?new Uint16Array(l):U(l);for(r=0;r<l;++r)c[s=t[r]]++,i<s&&(i=s),d[r]=0;for(c[0]=0,r=1;r<=i;++r)c[r+16]=o=o+c[r-1]<<1;for(r=0;r<l;++r)0!=(o=t[r])&&(d[r]=c[o+16]++);var p=0;for(r=0;r<l;++r)if(0!=(p=t[r]))for(o=P(d[r],i)>>i-p,a=(1<<i+4-p)-1;a>=0;--a)e[o|a<<p]=15&p|r<<4;return i}var $=D?new Uint16Array(512):U(512),W=D?new Uint16Array(32):U(32);if(!D){for(var Y=0;Y<512;++Y)$[Y]=0;for(Y=0;Y<32;++Y)W[Y]=0}!function(){for(var t=[],e=0;e<32;e++)t.push(5);q(t,W,32);var n=[];for(e=0;e<=143;e++)n.push(8);for(;e<=255;e++)n.push(9);for(;e<=279;e++)n.push(7);for(;e<=287;e++)n.push(8);q(n,$,288)}();var G=function(){for(var t=D?new Uint8Array(32768):[],e=0,n=0;e<E.length-1;++e)for(;n<E[e+1];++n)t[n]=e;for(;n<32768;++n)t[n]=29;var i=D?new Uint8Array(259):[];for(e=0,n=0;e<k.length-1;++e)for(;n<k[e+1];++n)i[n]=e;return function(e,n){return e.length<8?function(t,e){for(var n=0;n<t.length;){var i=Math.min(65535,t.length-n),s=n+i==t.length;for(e.write_shift(1,+s),e.write_shift(2,i),e.write_shift(2,65535&~i);i-- >0;)e[e.l++]=t[n++]}return e.l}(e,n):function(e,n){for(var s=0,r=0,a=D?new Uint16Array(32768):[];r<e.length;){var o=Math.min(65535,e.length-r);if(o<10){for(7&(s=j(n,s,+!(r+o!=e.length)))&&(s+=8-(7&s)),n.l=s/8|0,n.write_shift(2,o),n.write_shift(2,65535&~o);o-- >0;)n[n.l++]=e[r++];s=8*n.l}else{s=j(n,s,+!(r+o!=e.length)+2);for(var l=0;o-- >0;){var c=e[r],d=-1,p=0;if((d=a[l=32767&(l<<5^c)])&&((d|=-32768&r)>r&&(d-=32768),d<r))for(;e[d+p]==e[r+p]&&p<250;)++p;if(p>2){(c=i[p])<=22?s=B(n,s,T[c+1]>>1)-1:(B(n,s,3),B(n,s+=5,T[c-23]>>5),s+=3);var u=c<8?0:c-4>>2;u>0&&(H(n,s,p-k[c]),s+=u),c=t[r-d],s=B(n,s,T[c]>>3),s-=3;var h=c<4?0:c-2>>1;h>0&&(H(n,s,r-d-E[c]),s+=h);for(var m=0;m<p;++m)a[l]=32767&r,l=32767&(l<<5^e[r]),++r;o-=p-1}else c<=143?c+=48:s=V(n,s,1),s=B(n,s,T[c]),a[l]=32767&r,++r}s=B(n,s,0)-1}}return n.l=(s+7)/8|0,n.l}(e,n)}}();function K(t){var e=fN(50+Math.floor(1.1*t.length)),n=G(t,e);return e.slice(0,n)}var Z=D?new Uint16Array(32768):U(32768),X=D?new Uint16Array(32768):U(32768),Q=D?new Uint16Array(128):U(128),J=1,tt=1;function et(t,e){var n=R(t,e)+257,i=R(t,e+=5)+1,s=function(t,e){var n=7&e,i=e>>>3;return(t[i]|(n<=4?0:t[i+1]<<8))>>>n&15}(t,e+=5)+4;e+=4;for(var r=0,a=D?new Uint8Array(19):U(19),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],l=1,c=D?new Uint8Array(8):U(8),d=D?new Uint8Array(8):U(8),p=a.length,u=0;u<s;++u)a[S[u]]=r=M(t,e),l<r&&(l=r),c[r]++,e+=3;var h=0;for(c[0]=0,u=1;u<=l;++u)d[u]=h=h+c[u-1]<<1;for(u=0;u<p;++u)0!=(h=a[u])&&(o[u]=d[h]++);var m=0;for(u=0;u<p;++u)if(0!=(m=a[u])){h=T[o[u]]>>8-m;for(var f=(1<<7-m)-1;f>=0;--f)Q[h|f<<m]=7&m|u<<3}var g=[];for(l=1;g.length<n+i;)switch(e+=7&(h=Q[L(t,e)]),h>>>=3){case 16:for(r=3+N(t,e),e+=2,h=g[g.length-1];r-- >0;)g.push(h);break;case 17:for(r=3+M(t,e),e+=3;r-- >0;)g.push(0);break;case 18:for(r=11+L(t,e),e+=7;r-- >0;)g.push(0);break;default:g.push(h),l<h&&(l=h)}var b=g.slice(0,n),v=g.slice(n);for(u=n;u<286;++u)b[u]=0;for(u=i;u<30;++u)v[u]=0;return J=q(b,Z,286),tt=q(v,X,30),e}function nt(t,e){var n=function(t,e){if(3==t[0]&&!(3&t[1]))return[yT(e),2];for(var n=0,i=0,s=_T(e||1<<18),r=0,a=s.length>>>0,o=0,l=0;0==(1&i);)if(i=M(t,n),n+=3,i>>>1!=0)for(i>>1==1?(o=9,l=5):(n=et(t,n),o=J,l=tt);;){!e&&a<r+32767&&(a=(s=z(s,r+32767)).length);var c=F(t,n,o),d=i>>>1==1?$[c]:Z[c];if(n+=15&d,0==((d>>>=4)>>>8&255))s[r++]=d;else{if(256==d)break;var p=(d-=257)<8?0:d-4>>2;p>5&&(p=0);var u=r+k[d];p>0&&(u+=F(t,n,p),n+=p),c=F(t,n,l),n+=15&(d=i>>>1==1?W[c]:X[c]);var h=(d>>>=4)<4?0:d-2>>1,m=E[d];for(h>0&&(m+=F(t,n,h),n+=h),!e&&a<u&&(a=(s=z(s,u+100)).length);r<u;)s[r]=s[r-m],++r}}else{7&n&&(n+=8-(7&n));var f=t[n>>>3]|t[1+(n>>>3)]<<8;if(n+=32,f>0)for(!e&&a<r+f&&(a=(s=z(s,r+f)).length);f-- >0;)s[r++]=t[n>>>3],n+=8}return e?[s,n+7>>>3]:[s.slice(0,r),n+7>>>3]}(t.slice(t.l||0),e);return t.l+=n[1],n[0]}function it(t,e){if(!t)throw new Error(e);"undefined"!=typeof console&&console.error(e)}function st(t,e){var n=t;hN(n,0);var i={FileIndex:[],FullPaths:[]};u(i,{root:e.root});for(var s=n.length-4;(80!=n[s]||75!=n[s+1]||5!=n[s+2]||6!=n[s+3])&&s>=0;)--s;n.l=s+4,n.l+=4;var a=n.read_shift(2);n.l+=6;var o=n.read_shift(4);for(n.l=o,s=0;s<a;++s){n.l+=20;var l=n.read_shift(4),c=n.read_shift(4),d=n.read_shift(2),p=n.read_shift(2),h=n.read_shift(2);n.l+=8;var m=n.read_shift(4),f=r(n.slice(n.l+d,n.l+d+p));n.l+=d+p+h;var g=n.l;n.l=m+4,rt(n,l,c,i,f),n.l=g}return i}function rt(t,e,n,i,s){t.l+=2;var a=t.read_shift(2),o=t.read_shift(2),l=function(t){var e=65535&t.read_shift(2),n=65535&t.read_shift(2),i=new Date,s=31&n,r=15&(n>>>=5);n>>>=4,i.setMilliseconds(0),i.setFullYear(n+1980),i.setMonth(r-1),i.setDate(s);var a=31&e,o=63&(e>>>=5);return e>>>=6,i.setHours(e),i.setMinutes(o),i.setSeconds(a<<1),i}(t);if(8257&a)throw new Error("Unsupported ZIP encryption");t.read_shift(4);for(var c=t.read_shift(4),d=t.read_shift(4),p=t.read_shift(2),u=t.read_shift(2),h="",m=0;m<p;++m)h+=String.fromCharCode(t[t.l++]);if(u){var g=r(t.slice(t.l,t.l+u));(g[21589]||{}).mt&&(l=g[21589].mt),((s||{})[21589]||{}).mt&&(l=s[21589].mt)}t.l+=u;var b=t.slice(t.l,t.l+c);switch(o){case 8:b=function(t,e){if(!f)return nt(t,e);var n=new(0,f.InflateRaw),i=n._processChunk(t.slice(t.l),n._finishFlushFlag);return t.l+=n.bytesRead,i}(t,d);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+o)}var v=!1;8&a&&(134695760==t.read_shift(4)&&(t.read_shift(4),v=!0),c=t.read_shift(4),d=t.read_shift(4)),c!=e&&it(v,"Bad compressed size: "+e+" != "+c),d!=n&&it(v,"Bad uncompressed size: "+n+" != "+d),pt(i,h,b,{unsafe:!0,mt:l})}var at={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ot(t,e){if(t.ctype)return t.ctype;var n=t.name||"",i=n.match(/\.([^\.]+)$/);return i&&at[i[1]]||e&&(i=(n=e).match(/[\.\\]([^\.\\])+$/))&&at[i[1]]?at[i[1]]:"application/octet-stream"}function lt(t){for(var e=fT(t),n=[],i=0;i<e.length;i+=76)n.push(e.slice(i,i+76));return n.join("\r\n")+"\r\n"}function ct(t){var e=t.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"="+(1==e.length?"0"+e:e)});"\n"==(e=e.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(e="=0D"+e.slice(1));for(var n=[],i=(e=e.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),s=0;s<i.length;++s){var r=i[s];if(0!=r.length)for(var a=0;a<r.length;){var o=76,l=r.slice(a,a+o);"="==l.charAt(o-1)?o--:"="==l.charAt(o-2)?o-=2:"="==l.charAt(o-3)&&(o-=3),l=r.slice(a,a+o),(a+=o)<r.length&&(l+="="),n.push(l)}else n.push("")}return n.join("\r\n")}function dt(t,e,n){for(var i,s="",r="",a="",o=0;o<10;++o){var l=e[o];if(!l||l.match(/^\s*$/))break;var c=l.match(/^(.*?):\s*([^\s].*)$/);if(c)switch(c[1].toLowerCase()){case"content-location":s=c[2].trim();break;case"content-type":a=c[2].trim();break;case"content-transfer-encoding":r=c[2].trim()}}switch(++o,r.toLowerCase()){case"base64":i=wT(gT(e.slice(o).join("")));break;case"quoted-printable":i=function(t){for(var e=[],n=0;n<t.length;++n){for(var i=t[n];n<=t.length&&"="==i.charAt(i.length-1);)i=i.slice(0,i.length-1)+t[++n];e.push(i)}for(var s=0;s<e.length;++s)e[s]=e[s].replace(/[=][0-9A-Fa-f]{2}/g,function(t){return String.fromCharCode(parseInt(t.slice(1),16))});return wT(e.join("\r\n"))}(e.slice(o));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+r)}var d=pt(t,s.slice(n.length),i,{unsafe:!0});a&&(d.ctype=a)}function pt(t,e,n,s){var r=s&&s.unsafe;r||u(t);var a=!r&&_O.find(t,e);if(!a){var o=t.FullPaths[0];e.slice(0,o.length)==o?o=e:("/"!=o.slice(-1)&&(o+="/"),o=(o+e).replace("//","/")),a={name:i(e),type:2},t.FileIndex.push(a),t.FullPaths.push(o),r||_O.utils.cfb_gc(t)}return a.content=n,a.size=n?n.length:0,s&&(s.CLSID&&(a.clsid=s.CLSID),s.mt&&(a.mt=s.mt),s.ct&&(a.ct=s.ct)),a}return e.find=function(t,e){var n=t.FullPaths.map(function(t){return t.toUpperCase()}),i=n.map(function(t){var e=t.split("/");return e[e.length-("/"==t.slice(-1)?2:1)]}),s=!1;47===e.charCodeAt(0)?(s=!0,e=n[0].slice(0,-1)+e):s=-1!==e.indexOf("/");var r=e.toUpperCase(),a=!0===s?n.indexOf(r):i.indexOf(r);if(-1!==a)return t.FileIndex[a];var o=!r.match(ET);for(r=r.replace(kT,""),o&&(r=r.replace(ET,"!")),a=0;a<n.length;++a){if((o?n[a].replace(ET,"!"):n[a]).replace(kT,"")==r)return t.FileIndex[a];if((o?i[a].replace(ET,"!"):i[a]).replace(kT,"")==r)return t.FileIndex[a]}return null},e.read=function(e,n){var i=n&&n.type;switch(i||bT&&Buffer.isBuffer(e)&&(i="buffer"),i||"base64"){case"file":return function(e,n){return a(),o(t.readFileSync(e),n)}(e,n);case"base64":return o(wT(gT(e)),n);case"binary":return o(wT(e),n)}return o(e,n)},e.parse=o,e.write=function(e,n){var i=m(e,n);switch(n&&n.type||"buffer"){case"file":return a(),t.writeFileSync(n.filename,i),i;case"binary":return"string"==typeof i?i:x(i);case"base64":return fT("string"==typeof i?i:x(i));case"buffer":if(bT)return Buffer.isBuffer(i)?i:vT(i);case"array":return"string"==typeof i?wT(i):i}return i},e.writeFile=function(e,n,i){a();var s=m(e,i);t.writeFileSync(n,s)},e.utils={cfb_new:function(t){var e={};return u(e,t),e},cfb_add:pt,cfb_del:function(t,e){u(t);var n=_O.find(t,e);if(n)for(var i=0;i<t.FileIndex.length;++i)if(t.FileIndex[i]==n)return t.FileIndex.splice(i,1),t.FullPaths.splice(i,1),!0;return!1},cfb_mov:function(t,e,n){u(t);var s=_O.find(t,e);if(s)for(var r=0;r<t.FileIndex.length;++r)if(t.FileIndex[r]==s)return t.FileIndex[r].name=i(n),t.FullPaths[r]=n,!0;return!1},cfb_gc:function(t){h(t,!0)},ReadShift:cN,CheckField:uN,prep_blob:hN,bconcat:ST,use_zlib:function(t){try{var e=new(0,t.InflateRaw);if(e._processChunk(new Uint8Array([3,0]),e._finishFlushFlag),!e.bytesRead)throw new Error("zlib does not expose bytesRead");f=t}catch(TH){console.error("cannot use native zlib: "+(TH.message||TH))}},_deflateRaw:K,_inflateRaw:nt,consts:w},e}();let wO;function xO(t){return"string"==typeof t?xT(t):Array.isArray(t)?function(t){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(t)}(t):t}function CO(t,e,n){if(void 0!==wO&&wO.writeFileSync)return n?wO.writeFileSync(t,e,n):wO.writeFileSync(t,e);if("undefined"!=typeof Deno){if(n&&"string"==typeof e)switch(n){case"utf8":e=new TextEncoder(n).encode(e);break;case"binary":e=xT(e);break;default:throw new Error("Unsupported encoding "+n)}return Deno.writeFileSync(t,e)}var i="utf8"==n?oP(e):e;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(i,t);if("undefined"!=typeof Blob){var s=new Blob([xO(i)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(s,t);if("undefined"!=typeof saveAs)return saveAs(s,t);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var r=URL.createObjectURL(s);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(r)},6e4),chrome.downloads.download({url:r,filename:t,saveAs:!0});var a=document.createElement("a");if(null!=a.download)return a.download=t,a.href=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout(function(){URL.revokeObjectURL(r)},6e4),r}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var o=File(t);return o.open("w"),o.encoding="binary",Array.isArray(e)&&(e=CT(e)),o.write(e),o.close(),e}catch(TH){if(!TH.message||!TH.message.match(/onstruct/))throw TH}throw new Error("cannot save file "+t)}function SO(t){for(var e=Object.keys(t),n=[],i=0;i<e.length;++i)Object.prototype.hasOwnProperty.call(t,e[i])&&n.push(e[i]);return n}function kO(t,e){for(var n=[],i=SO(t),s=0;s!==i.length;++s)null==n[t[i[s]][e]]&&(n[t[i[s]][e]]=i[s]);return n}function EO(t){for(var e=[],n=SO(t),i=0;i!==n.length;++i)e[t[n[i]]]=n[i];return e}function IO(t){for(var e=[],n=SO(t),i=0;i!==n.length;++i)e[t[n[i]]]=parseInt(n[i],10);return e}var AO=new Date(1899,11,30,0,0,0);function DO(t,e){var n=t.getTime();return e&&(n-=1263168e5),(n-(AO.getTime()+6e4*(t.getTimezoneOffset()-AO.getTimezoneOffset())))/864e5}var TO=new Date,OO=AO.getTime()+6e4*(TO.getTimezoneOffset()-AO.getTimezoneOffset()),PO=TO.getTimezoneOffset();function NO(t){var e=new Date;return e.setTime(24*t*60*60*1e3+OO),e.getTimezoneOffset()!==PO&&e.setTime(e.getTime()+6e4*(e.getTimezoneOffset()-PO)),e}var MO=new Date("2017-02-19T19:06:09.000Z"),RO=isNaN(MO.getFullYear())?new Date("2/19/17"):MO,LO=2017==RO.getFullYear();function FO(t,e){var n=new Date(t);if(LO)return e>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):e<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(t instanceof Date)return t;if(1917==RO.getFullYear()&&!isNaN(n.getFullYear())){var i=n.getFullYear();return t.indexOf(""+i)>-1||n.setFullYear(n.getFullYear()+100),n}var s=t.match(/\d+/g)||["2017","2","19","0","0","0"],r=new Date(+s[0],+s[1]-1,+s[2],+s[3]||0,+s[4]||0,+s[5]||0);return t.indexOf("Z")>-1&&(r=new Date(r.getTime()-60*r.getTimezoneOffset()*1e3)),r}function jO(t,e){if(bT&&Buffer.isBuffer(t)){if(e){if(255==t[0]&&254==t[1])return oP(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return oP(dT(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(e){if(255==t[0]&&254==t[1])return oP(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return oP(new TextDecoder("utf-16be").decode(t.slice(2)))}var n={"\u20ac":"\x80","\u201a":"\x82","\u0192":"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02c6":"\x88","\u2030":"\x89","\u0160":"\x8a","\u2039":"\x8b","\u0152":"\x8c","\u017d":"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99","\u0161":"\x9a","\u203a":"\x9b","\u0153":"\x9c","\u017e":"\x9e","\u0178":"\x9f"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,function(t){return n[t]||t})}catch(TH){}for(var i=[],s=0;s!=t.length;++s)i.push(String.fromCharCode(t[s]));return i.join("")}function VO(t){if("undefined"!=typeof JSON&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if("object"!=typeof t||null==t)return t;if(t instanceof Date)return new Date(t.getTime());var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=VO(t[n]));return e}function BO(t,e){for(var n="";n.length<e;)n+=t;return n}function HO(t){var e=Number(t);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(t))return e;var n=1,i=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return n*=100,""});return isNaN(e=Number(i))?(i=i.replace(/[(](.*)[)]/,function(t,e){return n=-n,e}),isNaN(e=Number(i))?e:e/n):e/n}var zO=["january","february","march","april","may","june","july","august","september","october","november","december"];function UO(t){var e=new Date(t),n=new Date(NaN),i=e.getYear(),s=e.getMonth(),r=e.getDate();if(isNaN(r))return n;var a=t.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==zO.indexOf(a))return n}else if(a.match(/[a-z]/))return n;return i<0||i>8099?n:(s>0||r>1)&&101!=i?e:t.match(/[^-0-9:,\/\\]/)?n:e}function qO(t,e,n){if(t.FullPaths){var i;if("string"==typeof n)return i=bT?vT(n):function(t){for(var e=[],n=0,i=t.length+250,s=yT(t.length+255),r=0;r<t.length;++r){var a=t.charCodeAt(r);if(a<128)s[n++]=a;else if(a<2048)s[n++]=192|a>>6&31,s[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var o=1023&t.charCodeAt(++r);s[n++]=240|a>>8&7,s[n++]=128|a>>2&63,s[n++]=128|o>>6&15|(3&a)<<4,s[n++]=128|63&o}else s[n++]=224|a>>12&15,s[n++]=128|a>>6&63,s[n++]=128|63&a;n>i&&(e.push(s.slice(0,n)),n=0,s=yT(65535),i=65530)}return e.push(s.slice(0,n)),ST(e)}(n),_O.utils.cfb_add(t,e,i);_O.utils.cfb_add(t,e,n)}else t.file(e,n)}function $O(){return _O.utils.cfb_new()}var WO='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';var YO={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},GO=EO(YO),KO=/[&<>'"]/g,ZO=/[\u0000-\u0008\u000b-\u001f]/g;function XO(t){return(t+"").replace(KO,function(t){return GO[t]}).replace(ZO,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function QO(t){return XO(t).replace(/ /g,"_x0020_")}var JO=/[\u0000-\u001f]/g;function tP(t){return(t+"").replace(KO,function(t){return GO[t]}).replace(/\n/g,"<br/>").replace(JO,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function eP(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function nP(t){for(var e="",n=0,i=0,s=0,r=0,a=0,o=0;n<t.length;)(i=t.charCodeAt(n++))<128?e+=String.fromCharCode(i):(s=t.charCodeAt(n++),i>191&&i<224?(a=(31&i)<<6,a|=63&s,e+=String.fromCharCode(a)):(r=t.charCodeAt(n++),i<240?e+=String.fromCharCode((15&i)<<12|(63&s)<<6|63&r):(o=((7&i)<<18|(63&s)<<12|(63&r)<<6|63&(a=t.charCodeAt(n++)))-65536,e+=String.fromCharCode(55296+(o>>>10&1023)),e+=String.fromCharCode(56320+(1023&o)))));return e}function iP(t){var e,n,i,s=yT(2*t.length),r=1,a=0,o=0;for(n=0;n<t.length;n+=r)r=1,(i=t.charCodeAt(n))<128?e=i:i<224?(e=64*(31&i)+(63&t.charCodeAt(n+1)),r=2):i<240?(e=4096*(15&i)+64*(63&t.charCodeAt(n+1))+(63&t.charCodeAt(n+2)),r=3):(r=4,e=262144*(7&i)+4096*(63&t.charCodeAt(n+1))+64*(63&t.charCodeAt(n+2))+(63&t.charCodeAt(n+3)),o=55296+((e-=65536)>>>10&1023),e=56320+(1023&e)),0!==o&&(s[a++]=255&o,s[a++]=o>>>8,o=0),s[a++]=e%256,s[a++]=e>>>8;return s.slice(0,a).toString("ucs2")}function sP(t){return vT(t,"binary").toString("utf8")}var rP="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",aP=bT&&(sP(rP)==nP(rP)&&sP||iP(rP)==nP(rP)&&iP)||nP,oP=bT?function(t){return vT(t,"utf8").toString("binary")}:function(t){for(var e=[],n=0,i=0,s=0;n<t.length;)switch(i=t.charCodeAt(n++),!0){case i<128:e.push(String.fromCharCode(i));break;case i<2048:e.push(String.fromCharCode(192+(i>>6))),e.push(String.fromCharCode(128+(63&i)));break;case i>=55296&&i<57344:i-=55296,s=t.charCodeAt(n++)-56320+(i<<10),e.push(String.fromCharCode(240+(s>>18&7))),e.push(String.fromCharCode(144+(s>>12&63))),e.push(String.fromCharCode(128+(s>>6&63))),e.push(String.fromCharCode(128+(63&s)));break;default:e.push(String.fromCharCode(224+(i>>12))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(63&i)))}return e.join("")},lP=function(){var t=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(e){for(var n=e.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),i=0;i<t.length;++i)n=n.replace(t[i][0],t[i][1]);return n}}();var cP=/(^\s|\s$|\n)/;function dP(t,e){return"<"+t+(e.match(cP)?' xml:space="preserve"':"")+">"+e+"</"+t+">"}function pP(t){return SO(t).map(function(e){return" "+e+'="'+t[e]+'"'}).join("")}function uP(t,e,n){return"<"+t+(null!=n?pP(n):"")+(null!=e?(e.match(cP)?' xml:space="preserve"':"")+">"+e+"</"+t:"/")+">"}function hP(t,e){try{return t.toISOString().replace(/\.\d*/,"")}catch(TH){if(e)throw TH}return""}var mP="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",fP="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",gP="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",bP="http://schemas.openxmlformats.org/package/2006/content-types",vP="http://schemas.openxmlformats.org/package/2006/relationships",yP="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",_P="http://purl.org/dc/elements/1.1/",wP="http://purl.org/dc/terms/",xP="http://purl.org/dc/dcmitype/",CP="http://schemas.openxmlformats.org/officeDocument/2006/relationships",SP="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",kP="http://www.w3.org/2001/XMLSchema-instance",EP="http://www.w3.org/2001/XMLSchema",IP=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],AP="urn:schemas-microsoft-com:office:office",DP="urn:schemas-microsoft-com:office:excel",TP="urn:schemas-microsoft-com:office:spreadsheet",OP="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",PP="http://macVmlSchemaUri",NP="urn:schemas-microsoft-com:vml",MP="http://www.w3.org/TR/REC-html40";var RP=function(t){for(var e=[],n=0;n<t[0].length;++n)if(t[0][n])for(var i=0,s=t[0][n].length;i<s;i+=10240)e.push.apply(e,t[0][n].slice(i,i+10240));return e},LP=bT?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(t){return Buffer.isBuffer(t)?t:vT(t)})):RP(t)}:RP,FP=function(t,e,n){for(var i=[],s=e;s<n;s+=2)i.push(String.fromCharCode(sN(t,s)));return i.join("").replace(kT,"")},jP=bT?function(t,e,n){return Buffer.isBuffer(t)?t.toString("utf16le",e,n).replace(kT,""):FP(t,e,n)}:FP,VP=function(t,e,n){for(var i=[],s=e;s<e+n;++s)i.push(("0"+t[s].toString(16)).slice(-2));return i.join("")},BP=bT?function(t,e,n){return Buffer.isBuffer(t)?t.toString("hex",e,e+n):VP(t,e,n)}:VP,HP=function(t,e,n){for(var i=[],s=e;s<n;s++)i.push(String.fromCharCode(iN(t,s)));return i.join("")},zP=bT?function(t,e,n){return Buffer.isBuffer(t)?t.toString("utf8",e,n):HP(t,e,n)}:HP,UP=function(t,e){var n=aN(t,e);return n>0?zP(t,e+4,e+4+n-1):""},qP=UP,$P=function(t,e){var n=aN(t,e);return n>0?zP(t,e+4,e+4+n-1):""},WP=$P,YP=function(t,e){var n=2*aN(t,e);return n>0?zP(t,e+4,e+4+n-1):""},GP=YP,KP=function(t,e){var n=aN(t,e);return n>0?jP(t,e+4,e+4+n):""},ZP=KP,XP=function(t,e){var n=aN(t,e);return n>0?zP(t,e+4,e+4+n):""},QP=XP,JP=function(t,e){return function(t,e){for(var n=1-2*(t[e+7]>>>7),i=((127&t[e+7])<<4)+(t[e+6]>>>4&15),s=15&t[e+6],r=5;r>=0;--r)s=256*s+t[e+r];return 2047==i?0==s?n*(1/0):NaN:(0==i?i=-1022:(i-=1023,s+=Math.pow(2,52)),n*Math.pow(2,i-52)*s)}(t,e)},tN=JP,eN=function(t){return Array.isArray(t)||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array};function nN(){jP=function(t,e,n){return pT.utils.decode(1200,t.slice(e,n)).replace(kT,"")},zP=function(t,e,n){return pT.utils.decode(65001,t.slice(e,n))},qP=function(t,e){var n=aN(t,e);return n>0?pT.utils.decode(sT,t.slice(e+4,e+4+n-1)):""},WP=function(t,e){var n=aN(t,e);return n>0?pT.utils.decode(iT,t.slice(e+4,e+4+n-1)):""},GP=function(t,e){var n=2*aN(t,e);return n>0?pT.utils.decode(1200,t.slice(e+4,e+4+n-1)):""},ZP=function(t,e){var n=aN(t,e);return n>0?pT.utils.decode(1200,t.slice(e+4,e+4+n)):""},QP=function(t,e){var n=aN(t,e);return n>0?pT.utils.decode(65001,t.slice(e+4,e+4+n)):""}}bT&&(qP=function(t,e){if(!Buffer.isBuffer(t))return UP(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},WP=function(t,e){if(!Buffer.isBuffer(t))return $P(t,e);var n=t.readUInt32LE(e);return n>0?t.toString("utf8",e+4,e+4+n-1):""},GP=function(t,e){if(!Buffer.isBuffer(t))return YP(t,e);var n=2*t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n-1)},ZP=function(t,e){if(!Buffer.isBuffer(t))return KP(t,e);var n=t.readUInt32LE(e);return t.toString("utf16le",e+4,e+4+n)},QP=function(t,e){if(!Buffer.isBuffer(t))return XP(t,e);var n=t.readUInt32LE(e);return t.toString("utf8",e+4,e+4+n)},tN=function(t,e){return Buffer.isBuffer(t)?t.readDoubleLE(e):JP(t,e)},eN=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||"undefined"!=typeof Uint8Array&&t instanceof Uint8Array}),void 0!==pT&&nN();var iN=function(t,e){return t[e]},sN=function(t,e){return 256*t[e+1]+t[e]},rN=function(t,e){var n=256*t[e+1]+t[e];return n<32768?n:-1*(65535-n+1)},aN=function(t,e){return t[e+3]*(1<<24)+(t[e+2]<<16)+(t[e+1]<<8)+t[e]},oN=function(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]},lN=function(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]};function cN(t,e){var n,i,s,r,a,o,l="",c=[];switch(e){case"dbcs":if(o=this.l,bT&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*t).toString("utf16le");else for(a=0;a<t;++a)l+=String.fromCharCode(sN(this,o)),o+=2;t*=2;break;case"utf8":l=zP(this,this.l,this.l+t);break;case"utf16le":t*=2,l=jP(this,this.l,this.l+t);break;case"wstr":if(void 0===pT)return cN.call(this,t,"dbcs");l=pT.utils.decode(iT,this.slice(this.l,this.l+2*t)),t*=2;break;case"lpstr-ansi":l=qP(this,this.l),t=4+aN(this,this.l);break;case"lpstr-cp":l=WP(this,this.l),t=4+aN(this,this.l);break;case"lpwstr":l=GP(this,this.l),t=4+2*aN(this,this.l);break;case"lpp4":t=4+aN(this,this.l),l=ZP(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+aN(this,this.l),l=QP(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,l="";0!==(s=iN(this,this.l+t++));)c.push(uT(s));l=c.join("");break;case"_wstr":for(t=0,l="";0!==(s=sN(this,this.l+t));)c.push(uT(s)),t+=2;t+=2,l=c.join("");break;case"dbcs-cont":for(l="",o=this.l,a=0;a<t;++a){if(this.lens&&-1!==this.lens.indexOf(o))return s=iN(this,o),this.l=o+1,r=cN.call(this,t-a,s?"dbcs-cont":"sbcs-cont"),c.join("")+r;c.push(uT(sN(this,o))),o+=2}l=c.join(""),t*=2;break;case"cpstr":if(void 0!==pT){l=pT.utils.decode(iT,this.slice(this.l,this.l+t));break}case"sbcs-cont":for(l="",o=this.l,a=0;a!=t;++a){if(this.lens&&-1!==this.lens.indexOf(o))return s=iN(this,o),this.l=o+1,r=cN.call(this,t-a,s?"dbcs-cont":"sbcs-cont"),c.join("")+r;c.push(uT(iN(this,o))),o+=1}l=c.join("");break;default:switch(t){case 1:return n=iN(this,this.l),this.l++,n;case 2:return n=("i"===e?rN:sN)(this,this.l),this.l+=2,n;case 4:case-4:return"i"===e||0==(128&this[this.l+3])?(n=(t>0?oN:lN)(this,this.l),this.l+=4,n):(i=aN(this,this.l),this.l+=4,i);case 8:case-8:if("f"===e)return i=8==t?tN(this,this.l):tN([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:l=BP(this,this.l,t)}}return this.l+=t,l}var dN=function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255};function pN(t,e,n){var i=0,s=0;if("dbcs"===n){for(s=0;s!=e.length;++s)dN(this,e.charCodeAt(s),this.l+2*s);i=2*e.length}else if("sbcs"===n){if(void 0!==pT&&874==sT)for(s=0;s!=e.length;++s){var r=pT.utils.encode(sT,e.charAt(s));this[this.l+s]=r[0]}else for(e=e.replace(/[^\x00-\x7F]/g,"_"),s=0;s!=e.length;++s)this[this.l+s]=255&e.charCodeAt(s);i=e.length}else{if("hex"===n){for(;s<t;++s)this[this.l++]=parseInt(e.slice(2*s,2*s+2),16)||0;return this}if("utf16le"===n){var a=Math.min(this.l+t,this.length);for(s=0;s<Math.min(e.length,t);++s){var o=e.charCodeAt(s);this[this.l++]=255&o,this[this.l++]=o>>8}for(;this.l<a;)this[this.l++]=0;return this}switch(t){case 1:i=1,this[this.l]=255&e;break;case 2:i=2,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e;break;case 3:i=3,this[this.l]=255&e,e>>>=8,this[this.l+1]=255&e,e>>>=8,this[this.l+2]=255&e;break;case 4:i=4,function(t,e,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24&255}(this,e,this.l);break;case 8:if(i=8,"f"===n){!function(t,e,n){var i=(e<0||1/e==-1/0?1:0)<<7,s=0,r=0,a=i?-e:e;isFinite(a)?0==a?s=r=0:(s=Math.floor(Math.log(a)/Math.LN2),r=a*Math.pow(2,52-s),s<=-1023&&(!isFinite(r)||r<Math.pow(2,52))?s=-1022:(r-=Math.pow(2,52),s+=1023)):(s=2047,r=isNaN(e)?26985:0);for(var o=0;o<=5;++o,r/=256)t[n+o]=255&r;t[n+6]=(15&s)<<4|15&r,t[n+7]=s>>4|i}(this,e,this.l);break}case 16:break;case-4:i=4,function(t,e,n){t[n]=255&e,t[n+1]=e>>8&255,t[n+2]=e>>16&255,t[n+3]=e>>24&255}(this,e,this.l)}}return this.l+=i,this}function uN(t,e){var n=BP(this,this.l,t.length>>1);if(n!==t)throw new Error(e+"Expected "+t+" saw "+n);this.l+=t.length>>1}function hN(t,e){t.l=e,t.read_shift=cN,t.chk=uN,t.write_shift=pN}function mN(t,e){t.l+=e}function fN(t){var e=yT(t);return hN(e,0),e}function gN(){var t=[],e=bT?256:2048,n=function(t){var e=fN(t);return hN(e,0),e},i=n(e),s=function(){i&&(i.length>i.l&&((i=i.slice(0,i.l)).l=i.length),i.length>0&&t.push(i),i=null)},r=function(t){return i&&t<i.length-i.l?i:(s(),i=n(Math.max(t+1,e)))};return{next:r,push:function(t){s(),null==(i=t).l&&(i.l=i.length),r(e)},end:function(){return s(),ST(t)},_bufs:t}}function bN(t,e,n,i){var s,r=+e;if(!isNaN(r)){i||(i=EF[r].p||(n||[]).length||0),s=1+(r>=128?1:0)+1,i>=128&&++s,i>=16384&&++s,i>=2097152&&++s;var a=t.next(s);r<=127?a.write_shift(1,r):(a.write_shift(1,128+(127&r)),a.write_shift(1,r>>7));for(var o=0;4!=o;++o){if(!(i>=128)){a.write_shift(1,i);break}a.write_shift(1,128+(127&i)),i>>=7}i>0&&eN(n)&&t.push(n)}}function vN(t,e,n){var i=VO(t);if(e.s?(i.cRel&&(i.c+=e.s.c),i.rRel&&(i.r+=e.s.r)):(i.cRel&&(i.c+=e.c),i.rRel&&(i.r+=e.r)),!n||n.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function yN(t,e,n){var i=VO(t);return i.s=vN(i.s,e.s,n),i.e=vN(i.e,e.s,n),i}function _N(t,e){if(t.cRel&&t.c<0)for(t=VO(t);t.c<0;)t.c+=e>8?16384:256;if(t.rRel&&t.r<0)for(t=VO(t);t.r<0;)t.r+=e>8?1048576:e>5?65536:16384;var n=IN(t);return t.cRel||null==t.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),t.rRel||null==t.rRel||(n=function(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function wN(t,e){return 0!=t.s.r||t.s.rRel||t.e.r!=(e.biff>=12?1048575:e.biff>=8?65536:16384)||t.e.rRel?0!=t.s.c||t.s.cRel||t.e.c!=(e.biff>=12?16383:255)||t.e.cRel?_N(t.s,e.biff)+":"+_N(t.e,e.biff):(t.s.rRel?"":"$")+CN(t.s.r)+":"+(t.e.rRel?"":"$")+CN(t.e.r):(t.s.cRel?"":"$")+kN(t.s.c)+":"+(t.e.cRel?"":"$")+kN(t.e.c)}function xN(t){return parseInt(t.replace(/\$(\d+)$/,"$1"),10)-1}function CN(t){return""+(t+1)}function SN(t){for(var e=t.replace(/^\$([A-Z])/,"$1"),n=0,i=0;i!==e.length;++i)n=26*n+e.charCodeAt(i)-64;return n-1}function kN(t){if(t<0)throw new Error("invalid column "+t);var e="";for(++t;t;t=Math.floor((t-1)/26))e=String.fromCharCode((t-1)%26+65)+e;return e}function EN(t){for(var e=0,n=0,i=0;i<t.length;++i){var s=t.charCodeAt(i);s>=48&&s<=57?e=10*e+(s-48):s>=65&&s<=90&&(n=26*n+(s-64))}return{c:n-1,r:e-1}}function IN(t){for(var e=t.c+1,n="";e;e=(e-1)/26|0)n=String.fromCharCode((e-1)%26+65)+n;return n+(t.r+1)}function AN(t){var e=t.indexOf(":");return-1==e?{s:EN(t),e:EN(t)}:{s:EN(t.slice(0,e)),e:EN(t.slice(e+1))}}function DN(t,e){return void 0===e||"number"==typeof e?DN(t.s,t.e):("string"!=typeof t&&(t=IN(t)),"string"!=typeof e&&(e=IN(e)),t==e?t:t+":"+e)}function TN(t){var e={s:{c:0,r:0},e:{c:0,r:0}},n=0,i=0,s=0,r=t.length;for(n=0;i<r&&!((s=t.charCodeAt(i)-64)<1||s>26);++i)n=26*n+s;for(e.s.c=--n,n=0;i<r&&!((s=t.charCodeAt(i)-48)<0||s>9);++i)n=10*n+s;if(e.s.r=--n,i===r||10!=s)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++i,n=0;i!=r&&!((s=t.charCodeAt(i)-64)<1||s>26);++i)n=26*n+s;for(e.e.c=--n,n=0;i!=r&&!((s=t.charCodeAt(i)-48)<0||s>9);++i)n=10*n+s;return e.e.r=--n,e}function ON(t,e){var n="d"==t.t&&e instanceof Date;if(null!=t.z)try{return t.w=mO(t.z,n?DO(e):e)}catch(TH){}try{return t.w=mO((t.XF||{}).numFmtId||(n?14:0),n?DO(e):e)}catch(TH){return""+e}}function PN(t,e,n){return null==t||null==t.t||"z"==t.t?"":void 0!==t.w?t.w:("d"==t.t&&!t.z&&n&&n.dateNF&&(t.z=n.dateNF),"e"==t.t?uM[t.v]||t.v:ON(t,null==e?t.v:e))}function NN(t,e){var n=e&&e.sheet?e.sheet:"Sheet1",i={};return i[n]=t,{SheetNames:[n],Sheets:i}}function MN(t,e,n){var i=n||{},s=t?Array.isArray(t):i.dense;var r=t||(s?[]:{}),a=0,o=0;if(r&&null!=i.origin){if("number"==typeof i.origin)a=i.origin;else{var l="string"==typeof i.origin?EN(i.origin):i.origin;a=l.r,o=l.c}r["!ref"]||(r["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(r["!ref"]){var d=TN(r["!ref"]);c.s.c=d.s.c,c.s.r=d.s.r,c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),-1==a&&(c.e.r=a=d.e.r+1)}for(var p=0;p!=e.length;++p)if(e[p]){if(!Array.isArray(e[p]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=e[p].length;++u)if(void 0!==e[p][u]){var h={v:e[p][u]},m=a+p,f=o+u;if(c.s.r>m&&(c.s.r=m),c.s.c>f&&(c.s.c=f),c.e.r<m&&(c.e.r=m),c.e.c<f&&(c.e.c=f),!e[p][u]||"object"!=typeof e[p][u]||Array.isArray(e[p][u])||e[p][u]instanceof Date)if(Array.isArray(h.v)&&(h.f=e[p][u][1],h.v=h.v[0]),null===h.v)if(h.f)h.t="n";else if(i.nullError)h.t="e",h.v=0;else{if(!i.sheetStubs)continue;h.t="z"}else"number"==typeof h.v?h.t="n":"boolean"==typeof h.v?h.t="b":h.v instanceof Date?(h.z=i.dateNF||LT[14],i.cellDates?(h.t="d",h.w=mO(h.z,DO(h.v))):(h.t="n",h.v=DO(h.v),h.w=mO(h.z,h.v))):h.t="s";else h=e[p][u];if(s)r[m]||(r[m]=[]),r[m][f]&&r[m][f].z&&(h.z=r[m][f].z),r[m][f]=h;else{var g=IN({c:f,r:m});r[g]&&r[g].z&&(h.z=r[g].z),r[g]=h}}}return c.s.c<1e7&&(r["!ref"]=DN(c)),r}function RN(t,e){return MN(null,t,e)}function LN(t,e){return e||(e=fN(4)),e.write_shift(4,t),e}function FN(t){var e=t.read_shift(4);return 0===e?"":t.read_shift(e,"dbcs")}function jN(t,e){var n=!1;return null==e&&(n=!0,e=fN(4+2*t.length)),e.write_shift(4,t.length),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}function VN(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function BN(t,e){var n=t.l,i=t.read_shift(1),s=FN(t),r=[],a={t:s,h:s};if(0!=(1&i)){for(var o=t.read_shift(4),l=0;l!=o;++l)r.push(VN(t));a.r=r}else a.r=[{ich:0,ifnt:0}];return t.l=n+e,a}var HN=BN;function zN(t,e){var n=!1;return null==e&&(n=!0,e=fN(23+4*t.t.length)),e.write_shift(1,1),jN(t.t,e),e.write_shift(4,1),function(t,e){e||(e=fN(4)),e.write_shift(2,t.ich||0),e.write_shift(2,t.ifnt||0)}({ich:0,ifnt:0},e),n?e.slice(0,e.l):e}function UN(t){var e=t.read_shift(4),n=t.read_shift(2);return n+=t.read_shift(1)<<16,t.l++,{c:e,iStyleRef:n}}function qN(t,e){return null==e&&(e=fN(8)),e.write_shift(-4,t.c),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}function $N(t){var e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:e}}function WN(t,e){return null==e&&(e=fN(4)),e.write_shift(3,t.iStyleRef||t.s),e.write_shift(1,0),e}var YN=FN,GN=jN;function KN(t){var e=t.read_shift(4);return 0===e||4294967295===e?"":t.read_shift(e,"dbcs")}function ZN(t,e){var n=!1;return null==e&&(n=!0,e=fN(127)),e.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&e.write_shift(0,t,"dbcs"),n?e.slice(0,e.l):e}var XN=FN,QN=KN,JN=ZN;function tM(t){var e=t.slice(t.l,t.l+4),n=1&e[0],i=2&e[0];t.l+=4;var s=0===i?tN([0,0,0,0,252&e[0],e[1],e[2],e[3]],0):oN(e,0)>>2;return n?s/100:s}function eM(t,e){null==e&&(e=fN(4));var n=0,i=0,s=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?i=1:s==(0|s)&&s>=-(1<<29)&&s<1<<29&&(i=1,n=1),!i)throw new Error("unsupported RkNumber "+t);e.write_shift(-4,((n?s:t)<<2)+(n+2))}function nM(t){var e={s:{},e:{}};return e.s.r=t.read_shift(4),e.e.r=t.read_shift(4),e.s.c=t.read_shift(4),e.e.c=t.read_shift(4),e}var iM=nM,sM=function(t,e){return e||(e=fN(16)),e.write_shift(4,t.s.r),e.write_shift(4,t.e.r),e.write_shift(4,t.s.c),e.write_shift(4,t.e.c),e};function rM(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function aM(t,e){return(e||fN(8)).write_shift(8,t,"f")}function oM(t,e){if(e||(e=fN(8)),!t||t.auto)return e.write_shift(4,0),e.write_shift(4,0),e;null!=t.index?(e.write_shift(1,2),e.write_shift(1,t.index)):null!=t.theme?(e.write_shift(1,6),e.write_shift(1,t.theme)):(e.write_shift(1,5),e.write_shift(1,0));var n=t.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),e.write_shift(2,n),t.rgb&&null==t.theme){var i=t.rgb||"FFFFFF";"number"==typeof i&&(i=("000000"+i.toString(16)).slice(-6)),e.write_shift(1,parseInt(i.slice(0,2),16)),e.write_shift(1,parseInt(i.slice(2,4),16)),e.write_shift(1,parseInt(i.slice(4,6),16)),e.write_shift(1,255)}else e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);return e}var lM={1:{n:"CodePage",t:2},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},cM={1:{n:"CodePage",t:2},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function dM(t){return t.map(function(t){return[t>>16&255,t>>8&255,255&t]})}var pM=VO(dM([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),uM={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},hM={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},mM={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function fM(t,e){var n,i=function(t){for(var e=[],n=SO(t),i=0;i!==n.length;++i)null==e[t[n[i]]]&&(e[t[n[i]]]=[]),e[t[n[i]]].push(n[i]);return e}(hM),s=[];s[s.length]=WO,s[s.length]=uP("Types",null,{xmlns:bP,"xmlns:xsd":EP,"xmlns:xsi":kP}),s=s.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(t){return uP("Default",null,{Extension:t[0],ContentType:t[1]})}));var r=function(i){t[i]&&t[i].length>0&&(n=t[i][0],s[s.length]=uP("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:mM[i][e.bookType]||mM[i].xlsx}))},a=function(n){(t[n]||[]).forEach(function(t){s[s.length]=uP("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:mM[n][e.bookType]||mM[n].xlsx})})},o=function(e){(t[e]||[]).forEach(function(t){s[s.length]=uP("Override",null,{PartName:("/"==t[0]?"":"/")+t,ContentType:i[e][0]})})};return r("workbooks"),a("sheets"),a("charts"),o("themes"),["strs","styles"].forEach(r),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),a("metadata"),o("people"),s.length>2&&(s[s.length]="</Types>",s[1]=s[1].replace("/>",">")),s.join("")}var gM={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function bM(t){var e=t.lastIndexOf("/");return t.slice(0,e+1)+"_rels/"+t.slice(e+1)+".rels"}function vM(t){var e=[WO,uP("Relationships",null,{xmlns:vP})];return SO(t["!id"]).forEach(function(n){e[e.length]=uP("Relationship",null,t["!id"][n])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function yM(t,e,n,i,s,r){if(s||(s={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),e<0)for(e=t["!idx"];t["!id"]["rId"+e];++e);if(t["!idx"]=e+1,s.Id="rId"+e,s.Type=i,s.Target=n,r?s.TargetMode=r:[gM.HLINK,gM.XPATH,gM.XMISS].indexOf(s.Type)>-1&&(s.TargetMode="External"),t["!id"][s.Id])throw new Error("Cannot rewrite rId "+e);return t["!id"][s.Id]=s,t[("/"+s.Target).replace("//","/")]=s,e}function _M(t,e,n){return['  <rdf:Description rdf:about="'+t+'">\n','    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(n||"odf")+"#"+e+'"/>\n',"  </rdf:Description>\n"].join("")}function wM(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+nT.version+"</meta:generator></office:meta></office:document-meta>"}var xM=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function CM(t,e,n,i,s){null==s[t]&&null!=e&&""!==e&&(s[t]=e,e=XO(e),i[i.length]=n?uP(t,e,n):dP(t,e))}function SM(t,e){var n=e||{},i=[WO,uP("cp:coreProperties",null,{"xmlns:cp":mP,"xmlns:dc":_P,"xmlns:dcterms":wP,"xmlns:dcmitype":xP,"xmlns:xsi":kP})],s={};if(!t&&!n.Props)return i.join("");t&&(null!=t.CreatedDate&&CM("dcterms:created","string"==typeof t.CreatedDate?t.CreatedDate:hP(t.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},i,s),null!=t.ModifiedDate&&CM("dcterms:modified","string"==typeof t.ModifiedDate?t.ModifiedDate:hP(t.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},i,s));for(var r=0;r!=xM.length;++r){var a=xM[r],o=n.Props&&null!=n.Props[a[1]]?n.Props[a[1]]:t?t[a[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=String(o)),null!=o&&CM(a[0],o,null,i,s)}return i.length>2&&(i[i.length]="</cp:coreProperties>",i[1]=i[1].replace("/>",">")),i.join("")}var kM=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],EM=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function IM(t){var e=[],n=uP;return t||(t={}),t.Application="SheetJS",e[e.length]=WO,e[e.length]=uP("Properties",null,{xmlns:gP,"xmlns:vt":SP}),kM.forEach(function(i){if(void 0!==t[i[1]]){var s;switch(i[2]){case"string":s=XO(String(t[i[1]]));break;case"bool":s=t[i[1]]?"true":"false"}void 0!==s&&(e[e.length]=n(i[0],s))}}),e[e.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=n("TitlesOfParts",n("vt:vector",t.SheetNames.map(function(t){return"<vt:lpstr>"+XO(t)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}function AM(t){var e=[WO,uP("Properties",null,{xmlns:fP,"xmlns:vt":SP})];if(!t)return e.join("");var n=1;return SO(t).forEach(function(i){++n,e[e.length]=uP("property",function(t,e){switch(typeof t){case"string":var n=uP("vt:lpwstr",XO(t));return e&&(n=n.replace(/&quot;/g,"_x0022_")),n;case"number":return uP((0|t)==t?"vt:i4":"vt:r8",XO(String(t)));case"boolean":return uP("vt:bool",t?"true":"false")}if(t instanceof Date)return uP("vt:filetime",hP(t));throw new Error("Unable to serialize "+t)}(t[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:XO(i)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var DM={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function TM(t,e){var n=fN(4),i=fN(4);switch(n.write_shift(4,80==t?31:t),t){case 3:i.write_shift(-4,e);break;case 5:(i=fN(8)).write_shift(8,e,"f");break;case 11:i.write_shift(4,e?1:0);break;case 64:i=function(t){var e=("string"==typeof t?new Date(Date.parse(t)):t).getTime()/1e3+11644473600,n=e%Math.pow(2,32),i=(e-n)/Math.pow(2,32);i*=1e7;var s=(n*=1e7)/Math.pow(2,32)|0;s>0&&(n%=Math.pow(2,32),i+=s);var r=fN(8);return r.write_shift(4,n),r.write_shift(4,i),r}(e);break;case 31:case 80:for((i=fN(4+2*(e.length+1)+(e.length%2?0:2))).write_shift(4,e.length+1),i.write_shift(0,e,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+e)}return ST([n,i])}var OM=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function PM(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function NM(t,e,n){var i=fN(8),s=[],r=[],a=8,o=0,l=fN(8),c=fN(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),r.push(l),s.push(c),a+=8+l.length,!e){(c=fN(8)).write_shift(4,0),s.unshift(c);var d=[fN(4)];for(d[0].write_shift(4,t.length),o=0;o<t.length;++o){var p=t[o][0];for((l=fN(8+2*(p.length+1)+(p.length%2?0:2))).write_shift(4,o+2),l.write_shift(4,p.length+1),l.write_shift(0,p,"dbcs");l.l!=l.length;)l.write_shift(1,0);d.push(l)}l=ST(d),r.unshift(l),a+=8+l.length}for(o=0;o<t.length;++o)if((!e||e[t[o][0]])&&!(OM.indexOf(t[o][0])>-1||EM.indexOf(t[o][0])>-1)&&null!=t[o][1]){var u=t[o][1],h=0;if(e){var m=n[h=+e[t[o][0]]];if("version"==m.p&&"string"==typeof u){var f=u.split(".");u=(+f[0]<<16)+(+f[1]||0)}l=TM(m.t,u)}else{var g=PM(u);-1==g&&(g=31,u=String(u)),l=TM(g,u)}r.push(l),(c=fN(8)).write_shift(4,e?h:2+o),s.push(c),a+=8+l.length}var b=8*(r.length+1);for(o=0;o<r.length;++o)s[o].write_shift(4,b),b+=r[o].length;return i.write_shift(4,a),i.write_shift(4,r.length),ST([i].concat(s).concat(r))}function MM(t,e,n,i,s,r){var a=fN(s?68:48),o=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,_O.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,s?2:1),a.write_shift(16,e,"hex"),a.write_shift(4,s?68:48);var l=NM(t,n,i);if(o.push(l),s){var c=NM(s,null,null);a.write_shift(16,r,"hex"),a.write_shift(4,68+l.length),o.push(c)}return ST(o)}function RM(t,e){return 1===t.read_shift(e)}function LM(t,e){return e||(e=fN(2)),e.write_shift(2,+!!t),e}function FM(t){return t.read_shift(2,"u")}function jM(t,e){return e||(e=fN(2)),e.write_shift(2,t),e}function VM(t,e,n){return n||(n=fN(2)),n.write_shift(1,"e"==e?+t:+!!t),n.write_shift(1,"e"==e?1:0),n}function BM(t,e,n){var i=t.read_shift(n&&n.biff>=12?2:1),s="sbcs-cont",r=iT;(n&&n.biff>=8&&(iT=1200),n&&8!=n.biff)?12==n.biff&&(s="wstr"):t.read_shift(1)&&(s="dbcs-cont");n.biff>=2&&n.biff<=5&&(s="cpstr");var a=i?t.read_shift(i,s):"";return iT=r,a}function HM(t){var e=t.t||"",n=fN(3);n.write_shift(2,e.length),n.write_shift(1,1);var i=fN(2*e.length);return i.write_shift(2*e.length,e,"utf16le"),ST([n,i])}function zM(t,e,n){if(n){if(n.biff>=2&&n.biff<=5)return t.read_shift(e,"cpstr");if(n.biff>=12)return t.read_shift(e,"dbcs-cont")}return 0===t.read_shift(1)?t.read_shift(e,"sbcs-cont"):t.read_shift(e,"dbcs-cont")}function UM(t,e,n){var i=t.read_shift(n&&2==n.biff?1:2);return 0===i?(t.l++,""):zM(t,i,n)}function qM(t,e,n){if(n.biff>5)return UM(t,0,n);var i=t.read_shift(1);return 0===i?(t.l++,""):t.read_shift(i,n.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function $M(t,e,n){return n||(n=fN(3+2*t.length)),n.write_shift(2,t.length),n.write_shift(1,1),n.write_shift(31,t,"utf16le"),n}function WM(t,e){e||(e=fN(6+2*t.length)),e.write_shift(4,1+t.length);for(var n=0;n<t.length;++n)e.write_shift(2,t.charCodeAt(n));return e.write_shift(2,0),e}function YM(t){var e=fN(512),n=0,i=t.Target;"file://"==i.slice(0,7)&&(i=i.slice(7));var s=i.indexOf("#"),r=s>-1?31:23;switch(i.charAt(0)){case"#":r=28;break;case".":r&=-3}e.write_shift(4,2),e.write_shift(4,r);var a=[8,6815827,6619237,4849780,83];for(n=0;n<a.length;++n)e.write_shift(4,a[n]);if(28==r)WM(i=i.slice(1),e);else if(2&r){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<a.length;++n)e.write_shift(1,parseInt(a[n],16));var o=s>-1?i.slice(0,s):i;for(e.write_shift(4,2*(o.length+1)),n=0;n<o.length;++n)e.write_shift(2,o.charCodeAt(n));e.write_shift(2,0),8&r&&WM(s>-1?i.slice(s+1):"",e)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n<a.length;++n)e.write_shift(1,parseInt(a[n],16));for(var l=0;"../"==i.slice(3*l,3*l+3)||"..\\"==i.slice(3*l,3*l+3);)++l;for(e.write_shift(2,l),e.write_shift(4,i.length-3*l+1),n=0;n<i.length-3*l;++n)e.write_shift(1,255&i.charCodeAt(n+3*l));for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),n=0;n<6;++n)e.write_shift(4,0)}return e.slice(0,e.l)}function GM(t,e,n,i){return i||(i=fN(6)),i.write_shift(2,t),i.write_shift(2,e),i.write_shift(2,n||0),i}function KM(t,e,n){var i=n.biff>8?4:2;return[t.read_shift(i),t.read_shift(i,"i"),t.read_shift(i,"i")]}function ZM(t){var e=t.read_shift(2),n=t.read_shift(2);return{s:{c:t.read_shift(2),r:e},e:{c:t.read_shift(2),r:n}}}function XM(t,e){return e||(e=fN(8)),e.write_shift(2,t.s.r),e.write_shift(2,t.e.r),e.write_shift(2,t.s.c),e.write_shift(2,t.e.c),e}function QM(t,e,n){var i=1536,s=16;switch(n.bookType){case"biff8":break;case"biff5":i=1280,s=8;break;case"biff4":i=4,s=6;break;case"biff3":i=3,s=6;break;case"biff2":i=2,s=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var r=fN(s);return r.write_shift(2,i),r.write_shift(2,e),s>4&&r.write_shift(2,29282),s>6&&r.write_shift(2,1997),s>8&&(r.write_shift(2,49161),r.write_shift(2,1),r.write_shift(2,1798),r.write_shift(2,0)),r}function JM(t,e){var n=!e||e.biff>=8?2:1,i=fN(8+n*t.name.length);i.write_shift(4,t.pos),i.write_shift(1,t.hs||0),i.write_shift(1,t.dt),i.write_shift(1,t.name.length),e.biff>=8&&i.write_shift(1,1),i.write_shift(n*t.name.length,t.name,e.biff<8?"sbcs":"utf16le");var s=i.slice(0,i.l);return s.l=i.l,s}function tR(t,e,n,i){var s=n&&5==n.biff;i||(i=fN(s?3+e.length:5+2*e.length)),i.write_shift(2,t),i.write_shift(s?1:2,e.length),s||i.write_shift(1,1),i.write_shift((s?1:2)*e.length,e,s?"sbcs":"utf16le");var r=i.length>i.l?i.slice(0,i.l):i;return null==r.l&&(r.l=r.length),r}function eR(t,e,n,i){var s=n&&5==n.biff;i||(i=fN(s?16:20)),i.write_shift(2,0),t.style?(i.write_shift(2,t.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,t.numFmtId||0),i.write_shift(2,e<<4));var r=0;return t.numFmtId>0&&s&&(r|=1024),i.write_shift(4,r),i.write_shift(4,0),s||i.write_shift(4,0),i.write_shift(2,0),i}function nR(t,e,n){if(n.biff<8)return function(t,e,n){3==t[t.l+1]&&t[t.l]++;var i=BM(t,0,n);return 3==i.charCodeAt(0)?i.slice(1):i}(t,0,n);for(var i=[],s=t.l+e,r=t.read_shift(n.biff>8?4:2);0!=r--;)i.push(KM(t,n.biff,n));if(t.l!=s)throw new Error("Bad ExternSheet: "+t.l+" != "+s);return i}function iR(t){var e=fN(24),n=EN(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),s=0;s<16;++s)e.write_shift(1,parseInt(i[s],16));return ST([e,YM(t[1])])}function sR(t){var e=t[1].Tooltip,n=fN(10+2*(e.length+1));n.write_shift(2,2048);var i=EN(t[0]);n.write_shift(2,i.r),n.write_shift(2,i.r),n.write_shift(2,i.c),n.write_shift(2,i.c);for(var s=0;s<e.length;++s)n.write_shift(2,e.charCodeAt(s));return n.write_shift(2,0),n}function rR(t,e,n){if(!n.cellStyles)return mN(t,e);var i=n&&n.biff>=12?4:2,s=t.read_shift(i),r=t.read_shift(i),a=t.read_shift(i),o=t.read_shift(i),l=t.read_shift(2);2==i&&(t.l+=2);var c={s,e:r,w:a,ixfe:o,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}var aR=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=EO({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(e,n){var i=n||{};i.dateNF||(i.dateNF="yyyymmdd");var s=RN(function(e,n){var i=[],s=yT(1);switch(n.type){case"base64":s=wT(gT(e));break;case"binary":s=wT(e);break;case"buffer":case"array":s=e}hN(s,0);var r=s.read_shift(1),a=!!(136&r),o=!1,l=!1;switch(r){case 2:case 3:break;case 48:case 49:o=!0,a=!0;break;case 131:case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+r.toString(16))}var c=0,d=521;2==r&&(c=s.read_shift(2)),s.l+=3,2!=r&&(c=s.read_shift(4)),c>1048576&&(c=1e6),2!=r&&(d=s.read_shift(2));var p=s.read_shift(2),u=n.codepage||1252;2!=r&&(s.l+=16,s.read_shift(1),0!==s[s.l]&&(u=t[s[s.l]]),s.l+=1,s.l+=2),l&&(s.l+=36);for(var h=[],m={},f=Math.min(s.length,2==r?521:d-10-(o?264:0)),g=l?32:11;s.l<f&&13!=s[s.l];)switch((m={}).name=pT.utils.decode(u,s.slice(s.l,s.l+g)).replace(/[\u0000\r\n].*$/g,""),s.l+=g,m.type=String.fromCharCode(s.read_shift(1)),2==r||l||(m.offset=s.read_shift(4)),m.len=s.read_shift(1),2==r&&(m.offset=s.read_shift(2)),m.dec=s.read_shift(1),m.name.length&&h.push(m),2!=r&&(s.l+=l?13:14),m.type){case"B":o&&8==m.len||!n.WTF||console.log("Skipping "+m.name+":"+m.type);break;case"G":case"P":n.WTF&&console.log("Skipping "+m.name+":"+m.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+m.type)}if(13!==s[s.l]&&(s.l=d-1),13!==s.read_shift(1))throw new Error("DBF Terminator not found "+s.l+" "+s[s.l]);s.l=d;var b=0,v=0;for(i[0]=[],v=0;v!=h.length;++v)i[0][v]=h[v].name;for(;c-- >0;)if(42!==s[s.l])for(++s.l,i[++b]=[],v=0,v=0;v!=h.length;++v){var y=s.slice(s.l,s.l+h[v].len);s.l+=h[v].len,hN(y,0);var _=pT.utils.decode(u,y);switch(h[v].type){case"C":_.trim().length&&(i[b][v]=_.replace(/\s+$/,""));break;case"D":8===_.length?i[b][v]=new Date(+_.slice(0,4),+_.slice(4,6)-1,+_.slice(6,8)):i[b][v]=_;break;case"F":i[b][v]=parseFloat(_.trim());break;case"+":case"I":i[b][v]=l?2147483648^y.read_shift(-4,"i"):y.read_shift(4,"i");break;case"L":switch(_.trim().toUpperCase()){case"Y":case"T":i[b][v]=!0;break;case"N":case"F":i[b][v]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+_+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+r.toString(16));i[b][v]="##MEMO##"+(l?parseInt(_.trim(),10):y.read_shift(4));break;case"N":(_=_.replace(/\u0000/g,"").trim())&&"."!=_&&(i[b][v]=+_||0);break;case"@":i[b][v]=new Date(y.read_shift(-8,"f")-621356832e5);break;case"T":i[b][v]=new Date(864e5*(y.read_shift(4)-2440588)+y.read_shift(4));break;case"Y":i[b][v]=y.read_shift(4,"i")/1e4+y.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":i[b][v]=-y.read_shift(-8,"f");break;case"B":if(o&&8==h[v].len){i[b][v]=y.read_shift(8,"f");break}case"G":case"P":y.l+=h[v].len;break;case"0":if("_NullFlags"===h[v].name)break;default:throw new Error("DBF Unsupported data type "+h[v].type)}}else s.l+=p;if(2!=r&&s.l<s.length&&26!=s[s.l++])throw new Error("DBF EOF Marker missing "+(s.l-1)+" of "+s.length+" "+s[s.l-1].toString(16));return n&&n.sheetRows&&(i=i.slice(0,n.sheetRows)),n.DBF=h,i}(e,i),i);return s["!cols"]=i.DBF.map(function(t){return{wch:t.len,DBF:t}}),delete i.DBF,s}var i={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(t,e){try{return NN(n(t,e),e)}catch(TH){if(e&&e.WTF)throw TH}return{SheetNames:[],Sheets:{}}},to_sheet:n,from_sheet:function(t,n){var s=n||{};if(+s.codepage>=0&&lT(+s.codepage),"string"==s.type)throw new Error("Cannot write DBF to JS string");var r=gN(),a=Cj(t,{header:1,raw:!0,cellDates:!0}),o=a[0],l=a.slice(1),c=t["!cols"]||[],d=0,p=0,u=0,h=1;for(d=0;d<o.length;++d)if(((c[d]||{}).DBF||{}).name)o[d]=c[d].DBF.name,++u;else if(null!=o[d]){if(++u,"number"==typeof o[d]&&(o[d]=o[d].toString(10)),"string"!=typeof o[d])throw new Error("DBF Invalid column name "+o[d]+" |"+typeof o[d]+"|");if(o.indexOf(o[d])!==d)for(p=0;p<1024;++p)if(-1==o.indexOf(o[d]+"_"+p)){o[d]+="_"+p;break}}var m=TN(t["!ref"]),f=[],g=[],b=[];for(d=0;d<=m.e.c-m.s.c;++d){var v="",y="",_=0,w=[];for(p=0;p<l.length;++p)null!=l[p][d]&&w.push(l[p][d]);if(0!=w.length&&null!=o[d]){for(p=0;p<w.length;++p){switch(typeof w[p]){case"number":y="B";break;case"string":y="C";break;case"boolean":y="L";break;case"object":y=w[p]instanceof Date?"D":"C";break;default:y="C"}_=Math.max(_,String(w[p]).length),v=v&&v!=y?"C":y}_>250&&(_=250),"C"==(y=((c[d]||{}).DBF||{}).type)&&c[d].DBF.len>_&&(_=c[d].DBF.len),"B"==v&&"N"==y&&(v="N",b[d]=c[d].DBF.dec,_=c[d].DBF.len),g[d]="C"==v||"N"==y?_:i[v]||0,h+=g[d],f[d]=v}else f[d]="?"}var x=r.next(32);for(x.write_shift(4,318902576),x.write_shift(4,l.length),x.write_shift(2,296+32*u),x.write_shift(2,h),d=0;d<4;++d)x.write_shift(4,0);for(x.write_shift(4,0|(+e[sT]||3)<<8),d=0,p=0;d<o.length;++d)if(null!=o[d]){var C=r.next(32),S=(o[d].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);C.write_shift(1,S,"sbcs"),C.write_shift(1,"?"==f[d]?"C":f[d],"sbcs"),C.write_shift(4,p),C.write_shift(1,g[d]||i[f[d]]||0),C.write_shift(1,b[d]||0),C.write_shift(1,2),C.write_shift(4,0),C.write_shift(1,0),C.write_shift(4,0),C.write_shift(4,0),p+=g[d]||i[f[d]]||0}var k=r.next(264);for(k.write_shift(4,13),d=0;d<65;++d)k.write_shift(4,0);for(d=0;d<l.length;++d){var E=r.next(h);for(E.write_shift(1,0),p=0;p<o.length;++p)if(null!=o[p])switch(f[p]){case"L":E.write_shift(1,null==l[d][p]?63:l[d][p]?84:70);break;case"B":E.write_shift(8,l[d][p]||0,"f");break;case"N":var I="0";for("number"==typeof l[d][p]&&(I=l[d][p].toFixed(b[p]||0)),u=0;u<g[p]-I.length;++u)E.write_shift(1,32);E.write_shift(1,I,"sbcs");break;case"D":l[d][p]?(E.write_shift(4,("0000"+l[d][p].getFullYear()).slice(-4),"sbcs"),E.write_shift(2,("00"+(l[d][p].getMonth()+1)).slice(-2),"sbcs"),E.write_shift(2,("00"+l[d][p].getDate()).slice(-2),"sbcs")):E.write_shift(8,"00000000","sbcs");break;case"C":var A=String(null!=l[d][p]?l[d][p]:"").slice(0,g[p]);for(E.write_shift(1,A,"sbcs"),u=0;u<g[p]-A.length;++u)E.write_shift(1,32)}}return r.next(1).write_shift(1,26),r.end()}}}(),oR=function(){var t={AA:"\xc0",BA:"\xc1",CA:"\xc2",DA:195,HA:"\xc4",JA:197,AE:"\xc8",BE:"\xc9",CE:"\xca",HE:"\xcb",AI:"\xcc",BI:"\xcd",CI:"\xce",HI:"\xcf",AO:"\xd2",BO:"\xd3",CO:"\xd4",DO:213,HO:"\xd6",AU:"\xd9",BU:"\xda",CU:"\xdb",HU:"\xdc",Aa:"\xe0",Ba:"\xe1",Ca:"\xe2",Da:227,Ha:"\xe4",Ja:229,Ae:"\xe8",Be:"\xe9",Ce:"\xea",He:"\xeb",Ai:"\xec",Bi:"\xed",Ci:"\xee",Hi:"\xef",Ao:"\xf2",Bo:"\xf3",Co:"\xf4",Do:245,Ho:"\xf6",Au:"\xf9",Bu:"\xfa",Cu:"\xfb",Hu:"\xfc",KC:"\xc7",Kc:"\xe7",q:"\xe6",z:"\u0153",a:"\xc6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1bN("+SO(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(e,n){var i=t[n];return"number"==typeof i?hT(i):i},i=function(t,e,n){var i=e.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==i?t:hT(i)};function s(t,s){var r,a=t.split(/[\n\r]+/),o=-1,l=-1,c=0,d=0,p=[],u=[],h=null,m={},f=[],g=[],b=[],v=0;for(+s.codepage>=0&&lT(+s.codepage);c!==a.length;++c){v=0;var y,_=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(e,n),w=_.replace(/;;/g,"\0").split(";").map(function(t){return t.replace(/\u0000/g,";")}),x=w[0];if(_.length>0)switch(x){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==w[1].charAt(0)&&u.push(_.slice(3).replace(/;;/g,";"));break;case"C":var C=!1,S=!1,k=!1,E=!1,I=-1,A=-1;for(d=1;d<w.length;++d)switch(w[d].charAt(0)){case"A":break;case"X":l=parseInt(w[d].slice(1))-1,S=!0;break;case"Y":for(o=parseInt(w[d].slice(1))-1,S||(l=0),r=p.length;r<=o;++r)p[r]=[];break;case"K":'"'===(y=w[d].slice(1)).charAt(0)?y=y.slice(1,y.length-1):"TRUE"===y?y=!0:"FALSE"===y?y=!1:isNaN(HO(y))?isNaN(UO(y).getDate())||(y=FO(y)):(y=HO(y),null!==h&&dO(h)&&(y=NO(y))),void 0!==pT&&"string"==typeof y&&"string"!=(s||{}).type&&(s||{}).codepage&&(y=pT.utils.decode(s.codepage,y)),C=!0;break;case"E":E=!0;var D=XR(w[d].slice(1),{r:o,c:l});p[o][l]=[p[o][l],D];break;case"S":k=!0,p[o][l]=[p[o][l],"S5S"];break;case"G":break;case"R":I=parseInt(w[d].slice(1))-1;break;case"C":A=parseInt(w[d].slice(1))-1;break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+_)}if(C&&(p[o][l]&&2==p[o][l].length?p[o][l][0]=y:p[o][l]=y,h=null),k){if(E)throw new Error("SYLK shared formula cannot have own formula");var T=I>-1&&p[I][A];if(!T||!T[1])throw new Error("SYLK shared formula cannot find base");p[o][l][1]=tL(T[1],{r:o-I,c:l-A})}break;case"F":var O=0;for(d=1;d<w.length;++d)switch(w[d].charAt(0)){case"X":l=parseInt(w[d].slice(1))-1,++O;break;case"Y":for(o=parseInt(w[d].slice(1))-1,r=p.length;r<=o;++r)p[r]=[];break;case"M":v=parseInt(w[d].slice(1))/20;break;case"F":case"G":break;case"P":h=u[parseInt(w[d].slice(1))];break;case"S":case"D":case"N":break;case"W":for(b=w[d].slice(1).split(" "),r=parseInt(b[0],10);r<=parseInt(b[1],10);++r)v=parseInt(b[2],10),g[r-1]=0===v?{hidden:!0}:{wch:v},SR(g[r-1]);break;case"C":g[l=parseInt(w[d].slice(1))-1]||(g[l]={});break;case"R":f[o=parseInt(w[d].slice(1))-1]||(f[o]={}),v>0?(f[o].hpt=v,f[o].hpx=ER(v)):0===v&&(f[o].hidden=!0);break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+_)}O<1&&(h=null);break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+_)}}return f.length>0&&(m["!rows"]=f),g.length>0&&(m["!cols"]=g),s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),[p,m]}function r(t,e){var n=function(t,e){switch(e.type){case"base64":return s(gT(t),e);case"binary":return s(t,e);case"buffer":return s(bT&&Buffer.isBuffer(t)?t.toString("binary"):CT(t),e);case"array":return s(jO(t),e)}throw new Error("Unrecognized type "+e.type)}(t,e),i=n[0],r=n[1],a=RN(i,e);return SO(r).forEach(function(t){a[t]=r[t]}),a}function a(t,e,n,i){var s="C;Y"+(n+1)+";X"+(i+1)+";K";switch(t.t){case"n":s+=t.v||0,t.f&&!t.F&&(s+=";E"+JR(t.f,{r:n,c:i}));break;case"b":s+=t.v?"TRUE":"FALSE";break;case"e":s+=t.w||t.v;break;case"d":s+='"'+(t.w||t.v)+'"';break;case"s":s+='"'+t.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return s}return t["|"]=254,{to_workbook:function(t,e){return NN(r(t,e),e)},to_sheet:r,from_sheet:function(t,e){var n,i,s=["ID;PWXL;N;E"],r=[],o=TN(t["!ref"]),l=Array.isArray(t),c="\r\n";s.push("P;PGeneral"),s.push("F;P0;DG0G8;M255"),t["!cols"]&&(i=s,t["!cols"].forEach(function(t,e){var n="F;W"+(e+1)+" "+(e+1)+" ";t.hidden?n+="0":("number"!=typeof t.width||t.wpx||(t.wpx=wR(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=xR(t.wpx)),"number"==typeof t.wch&&(n+=Math.round(t.wch)))," "!=n.charAt(n.length-1)&&i.push(n)})),t["!rows"]&&function(t,e){e.forEach(function(e,n){var i="F;";e.hidden?i+="M0;":e.hpt?i+="M"+20*e.hpt+";":e.hpx&&(i+="M"+20*kR(e.hpx)+";"),i.length>2&&t.push(i+"R"+(n+1))})}(s,t["!rows"]),s.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var d=o.s.r;d<=o.e.r;++d)for(var p=o.s.c;p<=o.e.c;++p){var u=IN({r:d,c:p});(n=l?(t[d]||[])[p]:t[u])&&(null!=n.v||n.f&&!n.F)&&r.push(a(n,0,d,p))}return s.join(c)+c+r.join(c)+c+"E"+c}}}(),lR=function(){function t(t,e){for(var n=t.split("\n"),i=-1,s=-1,r=0,a=[];r!==n.length;++r)if("BOT"!==n[r].trim()){if(!(i<0)){for(var o=n[r].trim().split(","),l=o[0],c=o[1],d=n[++r]||"";1&(d.match(/["]/g)||[]).length&&r<n.length-1;)d+="\n"+n[++r];switch(d=d.trim(),+l){case-1:if("BOT"===d){a[++i]=[],s=0;continue}if("EOD"!==d)throw new Error("Unrecognized DIF special command "+d);break;case 0:"TRUE"===d?a[i][s]=!0:"FALSE"===d?a[i][s]=!1:isNaN(HO(c))?isNaN(UO(c).getDate())?a[i][s]=c:a[i][s]=FO(c):a[i][s]=HO(c),++s;break;case 1:(d=(d=d.slice(1,d.length-1)).replace(/""/g,'"'))&&d.match(/^=".*"$/)&&(d=d.slice(2,-1)),a[i][s++]=""!==d?d:null}if("EOD"===d)break}}else a[++i]=[],s=0;return e&&e.sheetRows&&(a=a.slice(0,e.sheetRows)),a}function e(e,n){return RN(function(e,n){switch(n.type){case"base64":return t(gT(e),n);case"binary":return t(e,n);case"buffer":return t(bT&&Buffer.isBuffer(e)?e.toString("binary"):CT(e),n);case"array":return t(jO(e),n)}throw new Error("Unrecognized type "+n.type)}(e,n),n)}return{to_workbook:function(t,n){return NN(e(t,n),n)},to_sheet:e,from_sheet:function(){var t=function(t,e,n,i,s){t.push(e),t.push(n+","+i),t.push('"'+s.replace(/"/g,'""')+'"')},e=function(t,e,n,i){t.push(e+","+n),t.push(1==e?'"'+i.replace(/"/g,'""')+'"':i)};return function(n){var i,s=[],r=TN(n["!ref"]),a=Array.isArray(n);t(s,"TABLE",0,1,"sheetjs"),t(s,"VECTORS",0,r.e.r-r.s.r+1,""),t(s,"TUPLES",0,r.e.c-r.s.c+1,""),t(s,"DATA",0,0,"");for(var o=r.s.r;o<=r.e.r;++o){e(s,-1,0,"BOT");for(var l=r.s.c;l<=r.e.c;++l){var c=IN({r:o,c:l});if(i=a?(n[o]||[])[l]:n[c])switch(i.t){case"n":var d=i.w;d||null==i.v||(d=i.v),null==d?i.f&&!i.F?e(s,1,0,"="+i.f):e(s,1,0,""):e(s,0,d,"V");break;case"b":e(s,0,i.v?1:0,i.v?"TRUE":"FALSE");break;case"s":e(s,1,0,isNaN(i.v)?i.v:'="'+i.v+'"');break;case"d":i.w||(i.w=mO(i.z||LT[14],DO(FO(i.v)))),e(s,0,i.w,"V");break;default:e(s,1,0,"")}else e(s,1,0,"")}}e(s,-1,0,"EOD");return s.join("\r\n")}}()}}(),cR=function(){function t(t){return t.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function e(t,e){return RN(function(t,e){for(var n=t.split("\n"),i=-1,s=-1,r=0,a=[];r!==n.length;++r){var o=n[r].trim().split(":");if("cell"===o[0]){var l=EN(o[1]);if(a.length<=l.r)for(i=a.length;i<=l.r;++i)a[i]||(a[i]=[]);switch(i=l.r,s=l.c,o[2]){case"t":a[i][s]=o[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":a[i][s]=+o[3];break;case"vtf":var c=o[o.length-1];case"vtc":switch(o[3]){case"nl":a[i][s]=!!+o[4];break;default:a[i][s]=+o[4]}"vtf"==o[2]&&(a[i][s]=[a[i][s],c])}}}return e&&e.sheetRows&&(a=a.slice(0,e.sheetRows)),a}(t,e),e)}var n=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),i=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),r="--SocialCalcSpreadsheetControlSave--";function a(e){if(!e||!e["!ref"])return"";for(var n,i=[],s=[],r="",a=AN(e["!ref"]),o=Array.isArray(e),l=a.s.r;l<=a.e.r;++l)for(var c=a.s.c;c<=a.e.c;++c)if(r=IN({r:l,c}),(n=o?(e[l]||[])[c]:e[r])&&null!=n.v&&"z"!==n.t){switch(s=["cell",r,"t"],n.t){case"s":case"str":s.push(t(n.v));break;case"n":n.f?(s[2]="vtf",s[3]="n",s[4]=n.v,s[5]=t(n.f)):(s[2]="v",s[3]=n.v);break;case"b":s[2]="vt"+(n.f?"f":"c"),s[3]="nl",s[4]=n.v?"1":"0",s[5]=t(n.f||(n.v?"TRUE":"FALSE"));break;case"d":var d=DO(FO(n.v));s[2]="vtc",s[3]="nd",s[4]=""+d,s[5]=n.w||mO(n.z||LT[14],d);break;case"e":continue}i.push(s.join(":"))}return i.push("sheet:c:"+(a.e.c-a.s.c+1)+":r:"+(a.e.r-a.s.r+1)+":tvf:1"),i.push("valueformat:1:text-wiki"),i.join("\n")}return{to_workbook:function(t,n){return NN(e(t,n),n)},to_sheet:e,from_sheet:function(t){return[n,i,s,i,a(t),r].join("\n")}}}(),dR=function(){function t(t,e,n,i,s){s.raw?e[n][i]=t:""===t||("TRUE"===t?e[n][i]=!0:"FALSE"===t?e[n][i]=!1:isNaN(HO(t))?isNaN(UO(t).getDate())?e[n][i]=t:e[n][i]=FO(t):e[n][i]=HO(t))}var e={44:",",9:"\t",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(t){for(var i={},s=!1,r=0,a=0;r<t.length;++r)34==(a=t.charCodeAt(r))?s=!s:!s&&a in e&&(i[a]=(i[a]||0)+1);for(r in a=[],i)Object.prototype.hasOwnProperty.call(i,r)&&a.push([i[r],r]);if(!a.length)for(r in i=n)Object.prototype.hasOwnProperty.call(i,r)&&a.push([i[r],r]);return a.sort(function(t,e){return t[0]-e[0]||n[t[1]]-n[e[1]]}),e[a.pop()[1]]||44}function s(t,e){var n=e||{},s="";var r=n.dense?[]:{},a={s:{c:0,r:0},e:{c:0,r:0}};"sep="==t.slice(0,4)?13==t.charCodeAt(5)&&10==t.charCodeAt(6)?(s=t.charAt(4),t=t.slice(7)):13==t.charCodeAt(5)||10==t.charCodeAt(5)?(s=t.charAt(4),t=t.slice(6)):s=i(t.slice(0,1024)):s=n&&n.FS?n.FS:i(t.slice(0,1024));var o=0,l=0,c=0,d=0,p=0,u=s.charCodeAt(0),h=!1,m=0,f=t.charCodeAt(0);t=t.replace(/\r\n/gm,"\n");var g,b,v=null!=n.dateNF?(g=n.dateNF,b=(b="number"==typeof g?LT[g]:g).replace(vO,"(\\d+)"),new RegExp("^"+b+"$")):null;function y(){var e=t.slice(d,p),i={};if('"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.slice(1,-1).replace(/""/g,'"')),0===e.length)i.t="z";else if(n.raw)i.t="s",i.v=e;else if(0===e.trim().length)i.t="s",i.v=e;else if(61==e.charCodeAt(0))34==e.charCodeAt(1)&&34==e.charCodeAt(e.length-1)?(i.t="s",i.v=e.slice(2,-1).replace(/""/g,'"')):1!=e.length?(i.t="n",i.f=e.slice(1)):(i.t="s",i.v=e);else if("TRUE"==e)i.t="b",i.v=!0;else if("FALSE"==e)i.t="b",i.v=!1;else if(isNaN(c=HO(e)))if(!isNaN(UO(e).getDate())||v&&e.match(v)){i.z=n.dateNF||LT[14];var s=0;v&&e.match(v)&&(e=function(t,e,n){var i=-1,s=-1,r=-1,a=-1,o=-1,l=-1;(e.match(vO)||[]).forEach(function(t,e){var c=parseInt(n[e+1],10);switch(t.toLowerCase().charAt(0)){case"y":i=c;break;case"d":r=c;break;case"h":a=c;break;case"s":l=c;break;case"m":a>=0?o=c:s=c}}),l>=0&&-1==o&&s>=0&&(o=s,s=-1);var c=(""+(i>=0?i:(new Date).getFullYear())).slice(-4)+"-"+("00"+(s>=1?s:1)).slice(-2)+"-"+("00"+(r>=1?r:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var d=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==a&&-1==o&&-1==l?c:-1==i&&-1==s&&-1==r?d:c+"T"+d}(0,n.dateNF,e.match(v)||[]),s=1),n.cellDates?(i.t="d",i.v=FO(e,s)):(i.t="n",i.v=DO(FO(e,s))),!1!==n.cellText&&(i.w=mO(i.z,i.v instanceof Date?DO(i.v):i.v)),n.cellNF||delete i.z}else i.t="s",i.v=e;else i.t="n",!1!==n.cellText&&(i.w=e),i.v=c;if("z"==i.t||(n.dense?(r[o]||(r[o]=[]),r[o][l]=i):r[IN({c:l,r:o})]=i),d=p+1,f=t.charCodeAt(d),a.e.c<l&&(a.e.c=l),a.e.r<o&&(a.e.r=o),m==u)++l;else if(l=0,++o,n.sheetRows&&n.sheetRows<=o)return!0}t:for(;p<t.length;++p)switch(m=t.charCodeAt(p)){case 34:34===f&&(h=!h);break;case u:case 10:case 13:if(!h&&y())break t}return p-d>0&&y(),r["!ref"]=DN(a),r}function r(e,n){return n&&n.PRN?n.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?s(e,n):RN(function(e,n){var i=n||{},s=[];if(!e||0===e.length)return s;for(var r=e.split(/[\r\n]/),a=r.length-1;a>=0&&0===r[a].length;)--a;for(var o=10,l=0,c=0;c<=a;++c)-1==(l=r[c].indexOf(" "))?l=r[c].length:l++,o=Math.max(o,l);for(c=0;c<=a;++c){s[c]=[];var d=0;for(t(r[c].slice(0,o).trim(),s,c,d,i),d=1;d<=(r[c].length-o)/10+1;++d)t(r[c].slice(o+10*(d-1),o+10*d).trim(),s,c,d,i)}return i.sheetRows&&(s=s.slice(0,i.sheetRows)),s}(e,n),n):s(e,n)}function a(t,e){var n="",i="string"==e.type?[0,0,0,0]:mj(t,e);switch(e.type){case"base64":n=gT(t);break;case"binary":n=t;break;case"buffer":n=65001==e.codepage?t.toString("utf8"):e.codepage&&void 0!==pT?pT.utils.decode(e.codepage,t):bT&&Buffer.isBuffer(t)?t.toString("binary"):CT(t);break;case"array":n=jO(t);break;case"string":n=t;break;default:throw new Error("Unrecognized type "+e.type)}return 239==i[0]&&187==i[1]&&191==i[2]?n=aP(n.slice(3)):"string"!=e.type&&"buffer"!=e.type&&65001==e.codepage?n=aP(n):"binary"==e.type&&void 0!==pT&&e.codepage&&(n=pT.utils.decode(e.codepage,pT.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?cR.to_sheet("string"==e.type?n:aP(n),e):r(n,e)}return{to_workbook:function(t,e){return NN(a(t,e),e)},to_sheet:a,from_sheet:function(t){for(var e,n=[],i=TN(t["!ref"]),s=Array.isArray(t),r=i.s.r;r<=i.e.r;++r){for(var a=[],o=i.s.c;o<=i.e.c;++o){var l=IN({r,c:o});if((e=s?(t[r]||[])[o]:t[l])&&null!=e.v){for(var c=(e.w||(PN(e),e.w)||"").slice(0,10);c.length<10;)c+=" ";a.push(c+(0===o?" ":""))}else a.push("          ")}n.push(a.join(""))}return n.join("\n")}}}();var pR=function(){function t(t,e,n){if(t){hN(t,t.l||0);for(var i=n.Enum||b;t.l<t.length;){var s=t.read_shift(2),r=i[s]||i[65535],a=t.read_shift(2),o=t.l+a,l=r.f&&r.f(t,a,n);if(t.l=o,e(l,r,s))return}}}function e(e,n){if(!e)return e;var i=n||{};var s=i.dense?[]:{},r="Sheet1",a="",o=0,l={},c=[],d=[],p={s:{r:0,c:0},e:{r:0,c:0}},u=i.sheetRows||0;if(0==e[2]&&(8==e[3]||9==e[3])&&e.length>=16&&5==e[14]&&108===e[15])throw new Error("Unsupported Works 3 for Mac file");if(2==e[2])i.Enum=b,t(e,function(t,e,n){switch(n){case 0:i.vers=t,t>=4096&&(i.qpro=!0);break;case 6:p=t;break;case 204:t&&(a=t);break;case 222:a=t;break;case 15:case 51:i.qpro||(t[1].v=t[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&t[2])&&(15&t[2])>1&&(15&t[2])<15&&(t[1].z=i.dateNF||LT[14],i.cellDates&&(t[1].t="d",t[1].v=NO(t[1].v))),i.qpro&&t[3]>o&&(s["!ref"]=DN(p),l[r]=s,c.push(r),s=i.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},o=t[3],r=a||"Sheet"+(o+1),a="");var d=i.dense?(s[t[0].r]||[])[t[0].c]:s[IN(t[0])];if(d){d.t=t[1].t,d.v=t[1].v,null!=t[1].z&&(d.z=t[1].z),null!=t[1].f&&(d.f=t[1].f);break}i.dense?(s[t[0].r]||(s[t[0].r]=[]),s[t[0].r][t[0].c]=t[1]):s[IN(t[0])]=t[1]}},i);else{if(26!=e[2]&&14!=e[2])throw new Error("Unrecognized LOTUS BOF "+e[2]);i.Enum=v,14==e[2]&&(i.qpro=!0,e.l=0),t(e,function(t,e,n){switch(n){case 204:r=t;break;case 22:t[1].v=t[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(t[3]>o&&(s["!ref"]=DN(p),l[r]=s,c.push(r),s=i.dense?[]:{},p={s:{r:0,c:0},e:{r:0,c:0}},o=t[3],r="Sheet"+(o+1)),u>0&&t[0].r>=u)break;i.dense?(s[t[0].r]||(s[t[0].r]=[]),s[t[0].r][t[0].c]=t[1]):s[IN(t[0])]=t[1],p.e.c<t[0].c&&(p.e.c=t[0].c),p.e.r<t[0].r&&(p.e.r=t[0].r);break;case 27:t[14e3]&&(d[t[14e3][0]]=t[14e3][1]);break;case 1537:d[t[0]]=t[1],t[0]==o&&(r=t[1])}},i)}if(s["!ref"]=DN(p),l[a||r]=s,c.push(a||r),!d.length)return{SheetNames:c,Sheets:l};for(var h={},m=[],f=0;f<d.length;++f)l[c[f]]?(m.push(d[f]||c[f]),h[d[f]]=l[d[f]]||l[c[f]]):(m.push(d[f]),h[d[f]]={"!ref":"A1"});return{SheetNames:m,Sheets:h}}function n(t,e,n){var i=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(i[0].c=t.read_shift(1),i[3]=t.read_shift(1),i[0].r=t.read_shift(2),t.l+=2):(i[2]=t.read_shift(1),i[0].c=t.read_shift(2),i[0].r=t.read_shift(2)),i}function i(t,e,i){var s=t.l+e,r=n(t,0,i);if(r[1].t="s",20768==i.vers){t.l++;var a=t.read_shift(1);return r[1].v=t.read_shift(a,"utf8"),r}return i.qpro&&t.l++,r[1].v=t.read_shift(s-t.l,"cstr"),r}function s(t,e,n){var i=fN(7+n.length);i.write_shift(1,255),i.write_shift(2,e),i.write_shift(2,t),i.write_shift(1,39);for(var s=0;s<i.length;++s){var r=n.charCodeAt(s);i.write_shift(1,r>=128?95:r)}return i.write_shift(1,0),i}function r(t,e,n){var i=fN(7);return i.write_shift(1,255),i.write_shift(2,e),i.write_shift(2,t),i.write_shift(2,n,"i"),i}function a(t,e,n){var i=fN(13);return i.write_shift(1,255),i.write_shift(2,e),i.write_shift(2,t),i.write_shift(8,n,"f"),i}function o(t,e,n){var i=32768&e;return e=(i?t:0)+((e&=-32769)>=8192?e-16384:e),(i?"":"$")+(n?kN(e):CN(e))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},c=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function d(t){var e=[{c:0,r:0},{t:"n",v:0},0];return e[0].r=t.read_shift(2),e[3]=t[t.l++],e[0].c=t[t.l++],e}function p(t,e,n,i){var s=fN(6+i.length);s.write_shift(2,t),s.write_shift(1,n),s.write_shift(1,e),s.write_shift(1,39);for(var r=0;r<i.length;++r){var a=i.charCodeAt(r);s.write_shift(1,a>=128?95:a)}return s.write_shift(1,0),s}function u(t,e){var n=d(t),i=t.read_shift(4),s=t.read_shift(4),r=t.read_shift(2);if(65535==r)return 0===i&&3221225472===s?(n[1].t="e",n[1].v=15):0===i&&3489660928===s?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&r;return r=(32767&r)-16446,n[1].v=(1-2*a)*(s*Math.pow(2,r+32)+i*Math.pow(2,r)),n}function h(t,e,n,i){var s=fN(14);if(s.write_shift(2,t),s.write_shift(1,n),s.write_shift(1,e),0==i)return s.write_shift(4,0),s.write_shift(4,0),s.write_shift(2,65535),s;var r,a=0,o=0,l=0;return i<0&&(a=1,i=-i),o=0|Math.log2(i),0==(2147483648&(l=(i/=Math.pow(2,o-31))>>>0))&&(++o,l=(i/=2)>>>0),i-=l,l|=2147483648,l>>>=0,r=(i*=Math.pow(2,32))>>>0,s.write_shift(4,r),s.write_shift(4,l),o+=16383+(a?32768:0),s.write_shift(2,o),s}function m(t,e){var n=d(t),i=t.read_shift(8,"f");return n[1].v=i,n}function f(t,e){return 0==t[t.l+e-1]?t.read_shift(e,"cstr"):""}function g(t,e){var n=fN(5+t.length);n.write_shift(2,14e3),n.write_shift(2,e);for(var i=0;i<t.length;++i){var s=t.charCodeAt(i);n[n.l++]=s>127?95:s}return n[n.l++]=0,n}var b={0:{n:"BOF",f:FM},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(t,e,n){var i={s:{c:0,r:0},e:{c:0,r:0}};return 8==e&&n.qpro?(i.s.c=t.read_shift(1),t.l++,i.s.r=t.read_shift(2),i.e.c=t.read_shift(1),t.l++,i.e.r=t.read_shift(2),i):(i.s.c=t.read_shift(2),i.s.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),i.e.c=t.read_shift(2),i.e.r=t.read_shift(2),12==e&&n.qpro&&(t.l+=2),65535==i.s.c&&(i.s.c=i.e.c=i.s.r=i.e.r=0),i)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(t,e,i){var s=n(t,0,i);return s[1].v=t.read_shift(2,"i"),s}},14:{n:"NUMBER",f:function(t,e,i){var s=n(t,0,i);return s[1].v=t.read_shift(8,"f"),s}},15:{n:"LABEL",f:i},16:{n:"FORMULA",f:function(t,e,i){var s=t.l+e,r=n(t,0,i);if(r[1].v=t.read_shift(8,"f"),i.qpro)t.l=s;else{var a=t.read_shift(2);!function(t,e){hN(t,0);var n=[],i=0,s="",r="",a="",d="";for(;t.l<t.length;){var p=t[t.l++];switch(p){case 0:n.push(t.read_shift(8,"f"));break;case 1:r=o(e[0].c,t.read_shift(2),!0),s=o(e[0].r,t.read_shift(2),!1),n.push(r+s);break;case 2:var u=o(e[0].c,t.read_shift(2),!0),h=o(e[0].r,t.read_shift(2),!1);r=o(e[0].c,t.read_shift(2),!0),s=o(e[0].r,t.read_shift(2),!1),n.push(u+h+":"+r+s);break;case 3:if(t.l<t.length)return void console.error("WK1 premature formula end");break;case 4:n.push("("+n.pop()+")");break;case 5:n.push(t.read_shift(2));break;case 6:for(var m="";p=t[t.l++];)m+=String.fromCharCode(p);n.push('"'+m.replace(/"/g,'""')+'"');break;case 8:n.push("-"+n.pop());break;case 23:n.push("+"+n.pop());break;case 22:n.push("NOT("+n.pop()+")");break;case 20:case 21:d=n.pop(),a=n.pop(),n.push(["AND","OR"][p-20]+"("+a+","+d+")");break;default:if(p<32&&c[p])d=n.pop(),a=n.pop(),n.push(a+c[p]+d);else{if(!l[p])return p<=7?console.error("WK1 invalid opcode "+p.toString(16)):p<=24?console.error("WK1 unsupported op "+p.toString(16)):p<=30?console.error("WK1 invalid opcode "+p.toString(16)):p<=115?console.error("WK1 unsupported function opcode "+p.toString(16)):console.error("WK1 unrecognized opcode "+p.toString(16));if(69==(i=l[p][1])&&(i=t[t.l++]),i>n.length)return void console.error("WK1 bad formula parse 0x"+p.toString(16)+":|"+n.join("|")+"|");var f=n.slice(-i);n.length-=i,n.push(l[p][0]+"("+f.join(",")+")")}}}1==n.length?e[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(t.slice(t.l,t.l+a),r),t.l+=a}return r}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:i},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f},222:{n:"SHEETNAMELP",f:function(t,e){var n=t[t.l++];n>e-1&&(n=e-1);for(var i="";i.length<n;)i+=String.fromCharCode(t[t.l++]);return i}},65535:{n:""}},v={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(t,e){var n=d(t);return n[1].t="s",n[1].v=t.read_shift(e-4,"cstr"),n}},23:{n:"NUMBER17",f:u},24:{n:"NUMBER18",f:function(t,e){var n=d(t);n[1].v=t.read_shift(2);var i=n[1].v>>1;if(1&n[1].v)switch(7&i){case 0:i=5e3*(i>>3);break;case 1:i=500*(i>>3);break;case 2:i=(i>>3)/20;break;case 3:i=(i>>3)/200;break;case 4:i=(i>>3)/2e3;break;case 5:i=(i>>3)/2e4;break;case 6:i=(i>>3)/16;break;case 7:i=(i>>3)/64}return n[1].v=i,n}},25:{n:"FORMULA19",f:function(t,e){var n=u(t);return t.l+=e-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(t,e){for(var n={},i=t.l+e;t.l<i;){var s=t.read_shift(2);if(14e3==s){for(n[s]=[0,""],n[s][0]=t.read_shift(2);t[t.l];)n[s][1]+=String.fromCharCode(t[t.l]),t.l++;t.l++}}return n}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(t,e){var n=d(t),i=t.read_shift(4);return n[1].v=i>>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:m},40:{n:"FORMULA28",f:function(t,e){var n=m(t);return t.l+=e-10,n}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(t,e,n){if(n.qpro&&!(e<21)){var i=t.read_shift(1);return t.l+=17,t.l+=1,t.l+=2,[i,t.read_shift(e-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(t,e){var n=e||{};if(+n.codepage>=0&&lT(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var i,o,l=gN(),c=TN(t["!ref"]),d=Array.isArray(t),p=[];IF(l,0,(i=1030,(o=fN(2)).write_shift(2,i),o)),IF(l,6,function(t){var e=fN(8);return e.write_shift(2,t.s.c),e.write_shift(2,t.s.r),e.write_shift(2,t.e.c),e.write_shift(2,t.e.r),e}(c));for(var u=Math.min(c.e.r,8191),h=c.s.r;h<=u;++h)for(var m=CN(h),f=c.s.c;f<=c.e.c;++f){h===c.s.r&&(p[f]=kN(f));var g=p[f]+m,b=d?(t[h]||[])[f]:t[g];if(b&&"z"!=b.t)if("n"==b.t)(0|b.v)==b.v&&b.v>=-32768&&b.v<=32767?IF(l,13,r(h,f,b.v)):IF(l,14,a(h,f,b.v));else IF(l,15,s(h,f,PN(b).slice(0,239)))}return IF(l,1),l.end()},book_to_wk3:function(t,e){var n=e||{};if(+n.codepage>=0&&lT(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var i=gN();IF(i,0,function(t){var e=fN(26);e.write_shift(2,4096),e.write_shift(2,4),e.write_shift(4,0);for(var n=0,i=0,s=0,r=0;r<t.SheetNames.length;++r){var a=t.SheetNames[r],o=t.Sheets[a];if(o&&o["!ref"]){++s;var l=AN(o["!ref"]);n<l.e.r&&(n=l.e.r),i<l.e.c&&(i=l.e.c)}}n>8191&&(n=8191);return e.write_shift(2,n),e.write_shift(1,s),e.write_shift(1,i),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,1),e.write_shift(1,2),e.write_shift(4,0),e.write_shift(4,0),e}(t));for(var s=0,r=0;s<t.SheetNames.length;++s)(t.Sheets[t.SheetNames[s]]||{})["!ref"]&&IF(i,27,g(t.SheetNames[s],r++));var a=0;for(s=0;s<t.SheetNames.length;++s){var o=t.Sheets[t.SheetNames[s]];if(o&&o["!ref"]){for(var l=TN(o["!ref"]),c=Array.isArray(o),d=[],u=Math.min(l.e.r,8191),m=l.s.r;m<=u;++m)for(var f=CN(m),b=l.s.c;b<=l.e.c;++b){m===l.s.r&&(d[b]=kN(b));var v=d[b]+f,y=c?(o[m]||[])[b]:o[v];if(y&&"z"!=y.t)if("n"==y.t)IF(i,23,h(m,b,a,y.v));else IF(i,22,p(m,b,a,PN(y).slice(0,239)))}++a}}return IF(i,1),i.end()},to_workbook:function(t,n){switch(n.type){case"base64":return e(wT(gT(t)),n);case"binary":return e(wT(t),n);case"buffer":case"array":return e(t,n)}throw"Unsupported type "+n.type}}}();var uR=/^\s|\s$|[\t\n\r]/;function hR(t,e){if(!e.bookSST)return"";var n=[WO];n[n.length]=uP("sst",null,{xmlns:IP[0],count:t.Count,uniqueCount:t.Unique});for(var i=0;i!=t.length;++i)if(null!=t[i]){var s=t[i],r="<si>";s.r?r+=s.r:(r+="<t",s.t||(s.t=""),s.t.match(uR)&&(r+=' xml:space="preserve"'),r+=">"+XO(s.t)+"</t>"),r+="</si>",n[n.length]=r}return n.length>2&&(n[n.length]="</sst>",n[1]=n[1].replace("/>",">")),n.join("")}var mR=function(t,e){var n=!1;return null==e&&(n=!0,e=fN(15+4*t.t.length)),e.write_shift(1,0),jN(t.t,e),n?e.slice(0,e.l):e};function fR(t){var e=gN();bN(e,159,function(t,e){return e||(e=fN(8)),e.write_shift(4,t.Count),e.write_shift(4,t.Unique),e}(t));for(var n=0;n<t.length;++n)bN(e,19,mR(t[n]));return bN(e,160),e.end()}function gR(t){if(void 0!==pT)return pT.utils.encode(sT,t);for(var e=[],n=t.split(""),i=0;i<n.length;++i)e[i]=n[i].charCodeAt(0);return e}function bR(t){var e,n,i=0,s=gR(t),r=s.length+1;for((e=yT(r))[0]=s.length,n=1;n!=r;++n)e[n]=s[n-1];for(n=r-1;n>=0;--n)i=((0==(16384&i)?0:1)|i<<1&32767)^e[n];return 52811^i}var vR=function(){function t(t,n){switch(n.type){case"base64":return e(gT(t),n);case"binary":return e(t,n);case"buffer":return e(bT&&Buffer.isBuffer(t)?t.toString("binary"):CT(t),n);case"array":return e(jO(t),n)}throw new Error("Unrecognized type "+n.type)}function e(t,e){var n=(e||{}).dense?[]:{},i=t.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach(function(t,e){Array.isArray(n)&&(n[e]=[]);for(var i,r=/\\\w+\b/g,a=0,o=-1;i=r.exec(t);){switch(i[0]){case"\\cell":var l=t.slice(a,r.lastIndex-i[0].length);if(" "==l[0]&&(l=l.slice(1)),++o,l.length){var c={v:l,t:"s"};Array.isArray(n)?n[e][o]=c:n[IN({r:e,c:o})]=c}}a=r.lastIndex}o>s.e.c&&(s.e.c=o)}),n["!ref"]=DN(s),n}return{to_workbook:function(e,n){return NN(t(e,n),n)},to_sheet:t,from_sheet:function(t){for(var e,n=["{\\rtf1\\ansi"],i=TN(t["!ref"]),s=Array.isArray(t),r=i.s.r;r<=i.e.r;++r){n.push("\\trowd\\trautofit1");for(var a=i.s.c;a<=i.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=i.s.c;a<=i.e.c;++a){var o=IN({r,c:a});(e=s?(t[r]||[])[a]:t[o])&&(null!=e.v||e.f&&!e.F)&&(n.push(" "+(e.w||(PN(e),e.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function yR(t){for(var e=0,n=1;3!=e;++e)n=256*n+(t[e]>255?255:t[e]<0?0:t[e]);return n.toString(16).toUpperCase().slice(1)}var _R=6;function wR(t){return Math.floor((t+Math.round(128/_R)/256)*_R)}function xR(t){return Math.floor((t-5)/_R*100+.5)/100}function CR(t){return Math.round((t*_R+5)/_R*256)/256}function SR(t){t.width?(t.wpx=wR(t.width),t.wch=xR(t.wpx),t.MDW=_R):t.wpx?(t.wch=xR(t.wpx),t.width=CR(t.wch),t.MDW=_R):"number"==typeof t.wch&&(t.width=CR(t.wch),t.wpx=wR(t.width),t.MDW=_R),t.customWidth&&delete t.customWidth}function kR(t){return 96*t/96}function ER(t){return 96*t/96}function IR(t,e){var n,i=[WO,uP("styleSheet",null,{xmlns:IP[0],"xmlns:vt":SP})];return t.SSF&&null!=(n=function(t){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)null!=t[i]&&(e[e.length]=uP("numFmt",null,{numFmtId:i,formatCode:XO(t[i])}))}),1===e.length?"":(e[e.length]="</numFmts>",e[0]=uP("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}(t.SSF))&&(i[i.length]=n),i[i.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',i[i.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',i[i.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',i[i.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=function(t){var e=[];return e[e.length]=uP("cellXfs",null),t.forEach(function(t){e[e.length]=uP("xf",null,t)}),e[e.length]="</cellXfs>",2===e.length?"":(e[0]=uP("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}(e.cellXfs))&&(i[i.length]=n),i[i.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',i[i.length]='<dxfs count="0"/>',i[i.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',i.length>2&&(i[i.length]="</styleSheet>",i[1]=i[1].replace("/>",">")),i.join("")}function AR(t,e,n){n||(n=fN(6+4*e.length)),n.write_shift(2,t),jN(e,n);var i=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),i}function DR(t,e){e||(e=fN(153)),e.write_shift(2,20*t.sz),function(t,e){e||(e=fN(2));var n=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);e.write_shift(1,n),e.write_shift(1,0)}(t,e),e.write_shift(2,t.bold?700:400);var n=0;"superscript"==t.vertAlign?n=1:"subscript"==t.vertAlign&&(n=2),e.write_shift(2,n),e.write_shift(1,t.underline||0),e.write_shift(1,t.family||0),e.write_shift(1,t.charset||0),e.write_shift(1,0),oM(t.color,e);var i=0;return"major"==t.scheme&&(i=1),"minor"==t.scheme&&(i=2),e.write_shift(1,i),jN(t.name,e),e.length>e.l?e.slice(0,e.l):e}var TR,OR=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],PR=mN;function NR(t,e){e||(e=fN(84)),TR||(TR=EO(OR));var n=TR[t.patternType];null==n&&(n=40),e.write_shift(4,n);var i=0;if(40!=n)for(oM({auto:1},e),oM({auto:1},e);i<12;++i)e.write_shift(4,0);else{for(;i<4;++i)e.write_shift(4,0);for(;i<12;++i)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function MR(t,e,n){n||(n=fN(16)),n.write_shift(2,e||0),n.write_shift(2,t.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function RR(t,e){return e||(e=fN(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var LR=mN;function FR(t){var e;bN(t,613,LN(1)),bN(t,46,(e||(e=fN(51)),e.write_shift(1,0),RR(0,e),RR(0,e),RR(0,e),RR(0,e),RR(0,e),e.length>e.l?e.slice(0,e.l):e)),bN(t,614)}function jR(t){var e,n;bN(t,619,LN(1)),bN(t,48,(e={xfId:0,builtinId:0,name:"Normal"},n||(n=fN(52)),n.write_shift(4,e.xfId),n.write_shift(2,1),n.write_shift(1,+e.builtinId),n.write_shift(1,0),ZN(e.name||"",n),n.length>n.l?n.slice(0,n.l):n)),bN(t,620)}function VR(t){bN(t,508,function(t,e,n){var i=fN(2052);return i.write_shift(4,t),ZN(e,i),ZN(n,i),i.length>i.l?i.slice(0,i.l):i}(0,"TableStyleMedium9","PivotStyleMedium4")),bN(t,509)}function BR(t,e){var n=gN();return bN(n,278),function(t,e){if(e){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var i=t[0];i<=t[1];++i)null!=e[i]&&++n}),0!=n&&(bN(t,615,LN(n)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)null!=e[i]&&bN(t,44,AR(i,e[i]))}),bN(t,616))}}(n,t.SSF),function(t){bN(t,611,LN(1)),bN(t,43,DR({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),bN(t,612)}(n),function(t){bN(t,603,LN(2)),bN(t,45,NR({patternType:"none"})),bN(t,45,NR({patternType:"gray125"})),bN(t,604)}(n),FR(n),function(t){bN(t,626,LN(1)),bN(t,47,MR({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),bN(t,627)}(n),function(t,e){bN(t,617,LN(e.length)),e.forEach(function(e){bN(t,47,MR(e,0))}),bN(t,618)}(n,e.cellXfs),jR(n),function(t){bN(t,505,LN(0)),bN(t,506)}(n),VR(n),bN(n,279),n.end()}function HR(t,e){if(e&&e.themeXLSX)return e.themeXLSX;if(t&&"string"==typeof t.raw)return t.raw;var n=[WO];return n[n.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',n[n.length]="<a:themeElements>",n[n.length]='<a:clrScheme name="Office">',n[n.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',n[n.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',n[n.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',n[n.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',n[n.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',n[n.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',n[n.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',n[n.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',n[n.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',n[n.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',n[n.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',n[n.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',n[n.length]="</a:clrScheme>",n[n.length]='<a:fontScheme name="Office">',n[n.length]="<a:majorFont>",n[n.length]='<a:latin typeface="Cambria"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',n[n.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',n[n.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',n[n.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',n[n.length]='<a:font script="Arab" typeface="Times New Roman"/>',n[n.length]='<a:font script="Hebr" typeface="Times New Roman"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="MoolBoran"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Times New Roman"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:majorFont>",n[n.length]="<a:minorFont>",n[n.length]='<a:latin typeface="Calibri"/>',n[n.length]='<a:ea typeface=""/>',n[n.length]='<a:cs typeface=""/>',n[n.length]='<a:font script="Jpan" typeface="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/>',n[n.length]='<a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/>',n[n.length]='<a:font script="Hans" typeface="\u5b8b\u4f53"/>',n[n.length]='<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/>',n[n.length]='<a:font script="Arab" typeface="Arial"/>',n[n.length]='<a:font script="Hebr" typeface="Arial"/>',n[n.length]='<a:font script="Thai" typeface="Tahoma"/>',n[n.length]='<a:font script="Ethi" typeface="Nyala"/>',n[n.length]='<a:font script="Beng" typeface="Vrinda"/>',n[n.length]='<a:font script="Gujr" typeface="Shruti"/>',n[n.length]='<a:font script="Khmr" typeface="DaunPenh"/>',n[n.length]='<a:font script="Knda" typeface="Tunga"/>',n[n.length]='<a:font script="Guru" typeface="Raavi"/>',n[n.length]='<a:font script="Cans" typeface="Euphemia"/>',n[n.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',n[n.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',n[n.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',n[n.length]='<a:font script="Thaa" typeface="MV Boli"/>',n[n.length]='<a:font script="Deva" typeface="Mangal"/>',n[n.length]='<a:font script="Telu" typeface="Gautami"/>',n[n.length]='<a:font script="Taml" typeface="Latha"/>',n[n.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',n[n.length]='<a:font script="Orya" typeface="Kalinga"/>',n[n.length]='<a:font script="Mlym" typeface="Kartika"/>',n[n.length]='<a:font script="Laoo" typeface="DokChampa"/>',n[n.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',n[n.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',n[n.length]='<a:font script="Viet" typeface="Arial"/>',n[n.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',n[n.length]='<a:font script="Geor" typeface="Sylfaen"/>',n[n.length]="</a:minorFont>",n[n.length]="</a:fontScheme>",n[n.length]='<a:fmtScheme name="Office">',n[n.length]="<a:fillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="1"/>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:lin ang="16200000" scaled="0"/>',n[n.length]="</a:gradFill>",n[n.length]="</a:fillStyleLst>",n[n.length]="<a:lnStyleLst>",n[n.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',n[n.length]="</a:lnStyleLst>",n[n.length]="<a:effectStyleLst>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]="</a:effectStyle>",n[n.length]="<a:effectStyle>",n[n.length]="<a:effectLst>",n[n.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',n[n.length]="</a:effectLst>",n[n.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',n[n.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',n[n.length]="</a:effectStyle>",n[n.length]="</a:effectStyleLst>",n[n.length]="<a:bgFillStyleLst>",n[n.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]='<a:gradFill rotWithShape="1">',n[n.length]="<a:gsLst>",n[n.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',n[n.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',n[n.length]="</a:gsLst>",n[n.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',n[n.length]="</a:gradFill>",n[n.length]="</a:bgFillStyleLst>",n[n.length]="</a:fmtScheme>",n[n.length]="</a:themeElements>",n[n.length]="<a:objectDefaults>",n[n.length]="<a:spDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',n[n.length]="</a:spDef>",n[n.length]="<a:lnDef>",n[n.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',n[n.length]="</a:lnDef>",n[n.length]="</a:objectDefaults>",n[n.length]="<a:extraClrSchemeLst/>",n[n.length]="</a:theme>",n.join("")}function zR(){var t,e,n=gN();return bN(n,332),bN(n,334,LN(1)),bN(n,335,((e=fN(12+2*(t={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,t.flags),e.write_shift(4,t.version),jN(t.name,e),e.slice(0,e.l))),bN(n,336),bN(n,339,function(t,e){var n=fN(8+2*e.length);return n.write_shift(4,t),jN(e,n),n.slice(0,n.l)}(1,"XLDAPR")),bN(n,52),bN(n,35,LN(514)),bN(n,4096,LN(0)),bN(n,4097,jM(1)),bN(n,36),bN(n,53),bN(n,340),bN(n,337,function(t,e){var n=fN(8);return n.write_shift(4,t),n.write_shift(4,e?1:0),n}(1,!0)),bN(n,51,function(t){var e=fN(4+8*t.length);e.write_shift(4,t.length);for(var n=0;n<t.length;++n)e.write_shift(4,t[n][0]),e.write_shift(4,t[n][1]);return e}([[1,0]])),bN(n,338),bN(n,333),n.end()}function UR(){var t=[WO];return t.push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n  <metadataTypes count="1">\n    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n  </metadataTypes>\n  <futureMetadata name="XLDAPR" count="1">\n    <bk>\n      <extLst>\n        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n        </ext>\n      </extLst>\n    </bk>\n  </futureMetadata>\n  <cellMetadata count="1">\n    <bk>\n      <rc t="1" v="0"/>\n    </bk>\n  </cellMetadata>\n</metadata>'),t.join("")}var qR=1024;function $R(t,e){for(var n=[21600,21600],i=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),s=[uP("xml",null,{"xmlns:v":NP,"xmlns:o":AP,"xmlns:x":DP,"xmlns:mv":PP}).replace(/\/>/,">"),uP("o:shapelayout",uP("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),uP("v:shapetype",[uP("v:stroke",null,{joinstyle:"miter"}),uP("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:i})];qR<1e3*t;)qR+=1e3;return e.forEach(function(t){var e=EN(t[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var i="gradient"==n.type?uP("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,r=uP("v:fill",i,n);++qR,s=s.concat(["<v:shape"+pP({id:"_x0000_s"+qR,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(t[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",r,uP("v:shadow",null,{on:"t",obscured:"t"}),uP("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",dP("x:Anchor",[e.c+1,0,e.r+1,0,e.c+3,20,e.r+5,20].join(",")),dP("x:AutoFill","False"),dP("x:Row",String(e.r)),dP("x:Column",String(e.c)),t[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),s.push("</xml>"),s.join("")}function WR(t){var e=[WO,uP("comments",null,{xmlns:IP[0]})],n=[];return e.push("<authors>"),t.forEach(function(t){t[1].forEach(function(t){var i=XO(t.a);-1==n.indexOf(i)&&(n.push(i),e.push("<author>"+i+"</author>")),t.T&&t.ID&&-1==n.indexOf("tc="+t.ID)&&(n.push("tc="+t.ID),e.push("<author>tc="+t.ID+"</author>"))})}),0==n.length&&(n.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),t.forEach(function(t){var i=0,s=[];if(t[1][0]&&t[1][0].T&&t[1][0].ID?i=n.indexOf("tc="+t[1][0].ID):t[1].forEach(function(t){t.a&&(i=n.indexOf(XO(t.a))),s.push(t.t||"")}),e.push('<comment ref="'+t[0]+'" authorId="'+i+'"><text>'),s.length<=1)e.push(dP("t",XO(s[0]||"")));else{for(var r="Comment:\n    "+s[0]+"\n",a=1;a<s.length;++a)r+="Reply:\n    "+s[a]+"\n";e.push(dP("t",XO(r)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function YR(t,e,n){var i=[WO,uP("ThreadedComments",null,{xmlns:yP}).replace(/[\/]>/,">")];return t.forEach(function(t){var s="";(t[1]||[]).forEach(function(r,a){if(r.T){r.a&&-1==e.indexOf(r.a)&&e.push(r.a);var o={ref:t[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==a?s=o.id:o.parentId=s,r.ID=o.id,r.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(r.a)).slice(-12)+"}"),i.push(uP("threadedComment",dP("text",r.t||""),o))}else delete r.ID})}),i.push("</ThreadedComments>"),i.join("")}var GR=FN;function KR(t){var e=gN(),n=[];return bN(e,628),bN(e,630),t.forEach(function(t){t[1].forEach(function(t){n.indexOf(t.a)>-1||(n.push(t.a.slice(0,54)),bN(e,632,function(t){return jN(t.slice(0,54))}(t.a)))})}),bN(e,631),bN(e,633),t.forEach(function(t){t[1].forEach(function(i){i.iauthor=n.indexOf(i.a);var s={s:EN(t[0]),e:EN(t[0])};bN(e,635,function(t,e){return null==e&&(e=fN(36)),e.write_shift(4,t[1].iauthor),sM(t[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}([s,i])),i.t&&i.t.length>0&&bN(e,637,zN(i)),bN(e,636),delete i.iauthor})}),bN(e,634),bN(e,629),e.end()}var ZR=["xlsb","xlsm","xlam","biff8","xla"];var XR=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function n(t,n,i,s){var r=!1,a=!1;0==i.length?a=!0:"["==i.charAt(0)&&(a=!0,i=i.slice(1,-1)),0==s.length?r=!0:"["==s.charAt(0)&&(r=!0,s=s.slice(1,-1));var o=i.length>0?0|parseInt(i,10):0,l=s.length>0?0|parseInt(s,10):0;return r?l+=e.c:--l,a?o+=e.r:--o,n+(r?"":"$")+kN(l)+(a?"":"$")+CN(o)}return function(i,s){return e=s,i.replace(t,n)}}(),QR=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,JR=function(){return function(t,e){return t.replace(QR,function(t,n,i,s,r,a){var o=SN(s)-(i?0:e.c),l=xN(a)-(r?0:e.r);return n+"R"+(0==l?"":r?l+1:"["+l+"]")+"C"+(0==o?"":i?o+1:"["+o+"]")})}}();function tL(t,e){return t.replace(QR,function(t,n,i,s,r,a){return n+("$"==i?i+s:kN(SN(s)+e.c))+("$"==r?r+a:CN(xN(a)+e.r))})}function eL(t){t.l+=1}function nL(t,e){var n=t.read_shift(1==e?1:2);return[16383&n,n>>14&1,n>>15&1]}function iL(t,e,n){var i=2;if(n){if(n.biff>=2&&n.biff<=5)return sL(t);12==n.biff&&(i=4)}var s=t.read_shift(i),r=t.read_shift(i),a=nL(t,2),o=nL(t,2);return{s:{r:s,c:a[0],cRel:a[1],rRel:a[2]},e:{r,c:o[0],cRel:o[1],rRel:o[2]}}}function sL(t){var e=nL(t,2),n=nL(t,2),i=t.read_shift(1),s=t.read_shift(1);return{s:{r:e[0],c:i,cRel:e[1],rRel:e[2]},e:{r:n[0],c:s,cRel:n[1],rRel:n[2]}}}function rL(t,e,n){if(n&&n.biff>=2&&n.biff<=5)return function(t){var e=nL(t,2),n=t.read_shift(1);return{r:e[0],c:n,cRel:e[1],rRel:e[2]}}(t);var i=t.read_shift(n&&12==n.biff?4:2),s=nL(t,2);return{r:i,c:s[0],cRel:s[1],rRel:s[2]}}function aL(t){var e=t.read_shift(2),n=t.read_shift(2);return{r:e,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function oL(t){var e=1&t[t.l+1];return t.l+=4,[e,1]}function lL(t){return[t.read_shift(1),t.read_shift(1)]}function cL(t,e){var n=[t.read_shift(1)];if(12==e)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=RM(t,1)?"TRUE":"FALSE",12!=e&&(t.l+=7);break;case 37:case 16:n[1]=uM[t[t.l]],t.l+=12==e?4:8;break;case 0:t.l+=8;break;case 1:n[1]=rM(t);break;case 2:n[1]=qM(t,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function dL(t,e,n){for(var i=t.read_shift(12==n.biff?4:2),s=[],r=0;r!=i;++r)s.push((12==n.biff?iM:ZM)(t,8));return s}function pL(t,e,n){var i=0,s=0;12==n.biff?(i=t.read_shift(4),s=t.read_shift(4)):(s=1+t.read_shift(1),i=1+t.read_shift(2)),n.biff>=2&&n.biff<8&&(--i,0==--s&&(s=256));for(var r=0,a=[];r!=i&&(a[r]=[]);++r)for(var o=0;o!=s;++o)a[r][o]=cL(t,n.biff);return a}function uL(t,e,n){return t.l+=2,[aL(t)]}function hL(t){return t.l+=6,[]}function mL(t){return t.l+=2,[FM(t),1&t.read_shift(2)]}var fL=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var gL={1:{n:"PtgExp",f:function(t,e,n){return t.l++,n&&12==n.biff?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:mN},3:{n:"PtgAdd",f:eL},4:{n:"PtgSub",f:eL},5:{n:"PtgMul",f:eL},6:{n:"PtgDiv",f:eL},7:{n:"PtgPower",f:eL},8:{n:"PtgConcat",f:eL},9:{n:"PtgLt",f:eL},10:{n:"PtgLe",f:eL},11:{n:"PtgEq",f:eL},12:{n:"PtgGe",f:eL},13:{n:"PtgGt",f:eL},14:{n:"PtgNe",f:eL},15:{n:"PtgIsect",f:eL},16:{n:"PtgUnion",f:eL},17:{n:"PtgRange",f:eL},18:{n:"PtgUplus",f:eL},19:{n:"PtgUminus",f:eL},20:{n:"PtgPercent",f:eL},21:{n:"PtgParen",f:eL},22:{n:"PtgMissArg",f:eL},23:{n:"PtgStr",f:function(t,e,n){return t.l++,BM(t,0,n)}},26:{n:"PtgSheet",f:function(t,e,n){return t.l+=5,t.l+=2,t.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(t,e,n){return t.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(t){return t.l++,uM[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t){return t.l++,0!==t.read_shift(1)}},30:{n:"PtgInt",f:function(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t){return t.l++,rM(t)}},32:{n:"PtgArray",f:function(t,e,n){var i=(96&t[t.l++])>>5;return t.l+=2==n.biff?6:12==n.biff?14:7,[i]}},33:{n:"PtgFunc",f:function(t,e,n){var i=(96&t[t.l])>>5;t.l+=1;var s=t.read_shift(n&&n.biff<=3?1:2);return[RL[s],ML[s],i]}},34:{n:"PtgFuncVar",f:function(t,e,n){var i=t[t.l++],s=t.read_shift(1),r=n&&n.biff<=3?[88==i?-1:0,t.read_shift(1)]:function(t){return[t[t.l+1]>>7,32767&t.read_shift(2)]}(t);return[s,(0===r[0]?ML:NL)[r[1]]]}},35:{n:"PtgName",f:function(t,e,n){var i=t.read_shift(1)>>>5&3,s=!n||n.biff>=8?4:2,r=t.read_shift(s);switch(n.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[i,0,r]}},36:{n:"PtgRef",f:function(t,e,n){var i=(96&t[t.l])>>5;return t.l+=1,[i,rL(t,0,n)]}},37:{n:"PtgArea",f:function(t,e,n){return[(96&t[t.l++])>>5,iL(t,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(t,e,n){var i=t.read_shift(1)>>>5&3;return t.l+=n&&2==n.biff?3:4,[i,t.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:mN},40:{n:"PtgMemNoMem",f:mN},41:{n:"PtgMemFunc",f:function(t,e,n){return[t.read_shift(1)>>>5&3,t.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(t,e,n){var i=t.read_shift(1)>>>5&3;return t.l+=4,n.biff<8&&t.l--,12==n.biff&&(t.l+=2),[i]}},43:{n:"PtgAreaErr",f:function(t,e,n){var i=(96&t[t.l++])>>5;return t.l+=n&&n.biff>8?12:n.biff<8?6:8,[i]}},44:{n:"PtgRefN",f:function(t,e,n){var i=(96&t[t.l])>>5;return t.l+=1,[i,function(t,e,n){var i=n&&n.biff?n.biff:8;if(i>=2&&i<=5)return function(t){var e=t.read_shift(2),n=t.read_shift(1),i=(32768&e)>>15,s=(16384&e)>>14;return e&=16383,1==i&&e>=8192&&(e-=16384),1==s&&n>=128&&(n-=256),{r:e,c:n,cRel:s,rRel:i}}(t);var s=t.read_shift(i>=12?4:2),r=t.read_shift(2),a=(16384&r)>>14,o=(32768&r)>>15;if(r&=16383,1==o)for(;s>524287;)s-=1048576;if(1==a)for(;r>8191;)r-=16384;return{r:s,c:r,cRel:a,rRel:o}}(t,0,n)]}},45:{n:"PtgAreaN",f:function(t,e,n){return[(96&t[t.l++])>>5,function(t,e,n){if(n.biff<8)return sL(t);var i=t.read_shift(12==n.biff?4:2),s=t.read_shift(12==n.biff?4:2),r=nL(t,2),a=nL(t,2);return{s:{r:i,c:r[0],cRel:r[1],rRel:r[2]},e:{r:s,c:a[0],cRel:a[1],rRel:a[2]}}}(t,0,n)]}},46:{n:"PtgMemAreaN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function(t,e,n){return 5==n.biff?function(t){var e=t.read_shift(1)>>>5&3,n=t.read_shift(2,"i");t.l+=8;var i=t.read_shift(2);return t.l+=12,[e,n,i]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,e,n){var i=(96&t[t.l])>>5;t.l+=1;var s=t.read_shift(2);return n&&5==n.biff&&(t.l+=12),[i,s,rL(t,0,n)]}},59:{n:"PtgArea3d",f:function(t,e,n){var i=(96&t[t.l++])>>5,s=t.read_shift(2,"i");if(n)switch(n.biff){case 5:t.l+=12,6;break;case 12:12}return[i,s,iL(t,0,n)]}},60:{n:"PtgRefErr3d",f:function(t,e,n){var i=(96&t[t.l++])>>5,s=t.read_shift(2),r=4;if(n)switch(n.biff){case 5:r=15;break;case 12:r=6}return t.l+=r,[i,s]}},61:{n:"PtgAreaErr3d",f:function(t,e,n){var i=(96&t[t.l++])>>5,s=t.read_shift(2),r=8;if(n)switch(n.biff){case 5:t.l+=12,r=6;break;case 12:r=12}return t.l+=r,[i,s]}},255:{}},bL={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},vL={1:{n:"PtgElfLel",f:mL},2:{n:"PtgElfRw",f:uL},3:{n:"PtgElfCol",f:uL},6:{n:"PtgElfRwV",f:uL},7:{n:"PtgElfColV",f:uL},10:{n:"PtgElfRadical",f:uL},11:{n:"PtgElfRadicalS",f:hL},13:{n:"PtgElfColS",f:hL},15:{n:"PtgElfColSV",f:hL},16:{n:"PtgElfRadicalLel",f:mL},25:{n:"PtgList",f:function(t){t.l+=2;var e=t.read_shift(2),n=t.read_shift(2),i=t.read_shift(4),s=t.read_shift(2),r=t.read_shift(2);return{ixti:e,coltype:3&n,rt:fL[n>>2&31],idx:i,c:s,C:r}}},29:{n:"PtgSxName",f:function(t){return t.l+=2,[t.read_shift(4)]}},255:{}},yL={0:{n:"PtgAttrNoop",f:function(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(t,e,n){var i=255&t[t.l+1]?1:0;return t.l+=n&&2==n.biff?3:4,[i]}},2:{n:"PtgAttrIf",f:function(t,e,n){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(t,e,n){t.l+=2;for(var i=t.read_shift(n&&2==n.biff?1:2),s=[],r=0;r<=i;++r)s.push(t.read_shift(n&&2==n.biff?1:2));return s}},8:{n:"PtgAttrGoto",f:function(t,e,n){var i=255&t[t.l+1]?1:0;return t.l+=2,[i,t.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(t,e,n){t.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:oL},33:{n:"PtgAttrBaxcel",f:oL},64:{n:"PtgAttrSpace",f:function(t){return t.read_shift(2),lL(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t){return t.read_shift(2),lL(t)}},128:{n:"PtgAttrIfError",f:function(t){var e=255&t[t.l+1]?1:0;return t.l+=2,[e,t.read_shift(2)]}},255:{}};function _L(t,e,n,i){if(i.biff<8)return mN(t,e);for(var s=t.l+e,r=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=pL(t,0,i),r.push(n[a][1]);break;case"PtgMemArea":n[a][2]=dL(t,n[a][1],i),r.push(n[a][2]);break;case"PtgExp":i&&12==i.biff&&(n[a][1][1]=t.read_shift(4),r.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0]}return 0!==(e=s-t.l)&&r.push(mN(t,e)),r}function wL(t,e,n){for(var i,s,r=t.l+e,a=[];r!=t.l;)e=r-t.l,s=t[t.l],i=gL[s]||gL[bL[s]],24!==s&&25!==s||(i=(24===s?vL:yL)[t[t.l+1]]),i&&i.f?a.push([i.n,i.f(t,e,n)]):mN(t,e);return a}function xL(t){for(var e=[],n=0;n<t.length;++n){for(var i=t[n],s=[],r=0;r<i.length;++r){var a=i[r];if(a)switch(a[0]){case 2:s.push('"'+a[1].replace(/"/g,'""')+'"');break;default:s.push(a[1])}else s.push("")}e.push(s.join(","))}return e.join(";")}var CL={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function SL(t,e,n){if(!t)return"SH33TJSERR0";if(n.biff>8&&(!t.XTI||!t.XTI[e]))return t.SheetNames[e];if(!t.XTI)return"SH33TJSERR6";var i=t.XTI[e];if(n.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),0==e?"":t.XTI[e-1];if(!i)return"SH33TJSERR1";var s="";if(n.biff>8)switch(t[i[0]][0]){case 357:return s=-1==i[1]?"#REF":t.SheetNames[i[1]],i[1]==i[2]?s:s+":"+t.SheetNames[i[2]];case 358:return null!=n.SID?t.SheetNames[n.SID]:"SH33TJSSAME"+t[i[0]][0];case 355:default:return"SH33TJSSRC"+t[i[0]][0]}switch(t[i[0]][0][0]){case 1025:return s=-1==i[1]?"#REF":t.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?s:s+":"+t.SheetNames[i[2]];case 14849:return t[i[0]].slice(1).map(function(t){return t.Name}).join(";;");default:return t[i[0]][0][3]?(s=-1==i[1]?"#REF":t[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?s:s+":"+t[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function kL(t,e,n){var i=SL(t,e,n);return"#REF"==i?i:function(t,e){if(!(t||e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}(i,n)}function EL(t,e,n,i,s){var r,a,o,l,c=s&&s.biff||8,d={s:{c:0,r:0},e:{c:0,r:0}},p=[],u=0,h=0,m="";if(!t[0]||!t[0][0])return"";for(var f=-1,g="",b=0,v=t[0].length;b<v;++b){var y=t[0][b];switch(y[0]){case"PtgUminus":p.push("-"+p.pop());break;case"PtgUplus":p.push("+"+p.pop());break;case"PtgPercent":p.push(p.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(r=p.pop(),a=p.pop(),f>=0){switch(t[0][f][1][0]){case 0:g=BO(" ",t[0][f][1][1]);break;case 1:g=BO("\r",t[0][f][1][1]);break;default:if(g="",s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][f][1][0])}a+=g,f=-1}p.push(a+CL[y[0]]+r);break;case"PtgIsect":r=p.pop(),a=p.pop(),p.push(a+" "+r);break;case"PtgUnion":r=p.pop(),a=p.pop(),p.push(a+","+r);break;case"PtgRange":r=p.pop(),a=p.pop(),p.push(a+":"+r);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":o=vN(y[1][1],d,s),p.push(_N(o,c));break;case"PtgRefN":o=n?vN(y[1][1],n,s):y[1][1],p.push(_N(o,c));break;case"PtgRef3d":u=y[1][1],o=vN(y[1][2],d,s);m=kL(i,u,s);p.push(m+"!"+_N(o,c));break;case"PtgFunc":case"PtgFuncVar":var _=y[1][0],w=y[1][1];_||(_=0);var x=0==(_&=127)?[]:p.slice(-_);p.length-=_,"User"===w&&(w=x.shift()),p.push(w+"("+x.join(",")+")");break;case"PtgBool":p.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":p.push(y[1]);break;case"PtgNum":p.push(String(y[1]));break;case"PtgStr":p.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":p.push(y[1]);break;case"PtgAreaN":l=yN(y[1][1],n?{s:n}:d,s),p.push(wN(l,s));break;case"PtgArea":l=yN(y[1][1],d,s),p.push(wN(l,s));break;case"PtgArea3d":u=y[1][1],l=y[1][2],m=kL(i,u,s),p.push(m+"!"+wN(l,s));break;case"PtgAttrSum":p.push("SUM("+p.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=y[1][2];var C=(i.names||[])[h-1]||(i[0]||[])[h],S=C?C.Name:"SH33TJSNAME"+String(h);S&&"_xlfn."==S.slice(0,6)&&!s.xlfn&&(S=S.slice(6)),p.push(S);break;case"PtgNameX":var k,E=y[1][1];if(h=y[1][2],!(s.biff<=5)){var I="";if(14849==((i[E]||[])[0]||[])[0]||(1025==((i[E]||[])[0]||[])[0]?i[E][h]&&i[E][h].itab>0&&(I=i.SheetNames[i[E][h].itab-1]+"!"):I=i.SheetNames[h-1]+"!"),i[E]&&i[E][h])I+=i[E][h].Name;else if(i[0]&&i[0][h])I+=i[0][h].Name;else{var A=(SL(i,E,s)||"").split(";;");A[h-1]?I=A[h-1]:I+="SH33TJSERRX"}p.push(I);break}E<0&&(E=-E),i[E]&&(k=i[E][h]),k||(k={Name:"SH33TJSERRY"}),p.push(k.Name);break;case"PtgParen":var D="(",T=")";if(f>=0){switch(g="",t[0][f][1][0]){case 2:D=BO(" ",t[0][f][1][1])+D;break;case 3:D=BO("\r",t[0][f][1][1])+D;break;case 4:T=BO(" ",t[0][f][1][1])+T;break;case 5:T=BO("\r",t[0][f][1][1])+T;break;default:if(s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][f][1][0])}f=-1}p.push(D+p.pop()+T);break;case"PtgRefErr":case"PtgRefErr3d":p.push("#REF!");break;case"PtgExp":o={c:y[1][1],r:y[1][0]};var O={c:n.c,r:n.r};if(i.sharedf[IN(o)]){var P=i.sharedf[IN(o)];p.push(EL(P,d,O,i,s))}else{var N=!1;for(r=0;r!=i.arrayf.length;++r)if(a=i.arrayf[r],!(o.c<a[0].s.c||o.c>a[0].e.c||o.r<a[0].s.r||o.r>a[0].e.r)){p.push(EL(a[1],d,O,i,s)),N=!0;break}N||p.push(y[1])}break;case"PtgArray":p.push("{"+xL(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":f=b;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":p.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":p.push("#REF!");break;case"PtgList":p.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":default:throw new Error("Unrecognized Formula Token: "+String(y))}if(3!=s.biff&&f>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][b][0])){var M=!0;switch((y=t[0][f])[1][0]){case 4:M=!1;case 0:g=BO(" ",y[1][1]);break;case 5:M=!1;case 1:g=BO("\r",y[1][1]);break;default:if(g="",s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}p.push((M?g:"")+p.pop()+(M?"":g)),f=-1}}if(p.length>1&&s.WTF)throw new Error("bad formula stack");return p[0]}function IL(t,e,n,i,s){var r=GM(e,n,s),a=function(t){if(null==t){var e=fN(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}return aM("number"==typeof t?t:0)}(t.v),o=fN(6);o.write_shift(2,33),o.write_shift(4,0);for(var l=fN(t.bf.length),c=0;c<t.bf.length;++c)l[c]=t.bf[c];return ST([r,a,o,l])}function AL(t,e,n){var i=t.read_shift(4),s=wL(t,i,n),r=t.read_shift(4);return[s,r>0?_L(t,r,s,n):null]}var DL=AL,TL=AL,OL=AL,PL=AL,NL={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},ML={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},RL={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};var LL="undefined"!=typeof Map;function FL(t,e,n){var i=0,s=t.length;if(n){if(LL?n.has(e):Object.prototype.hasOwnProperty.call(n,e))for(var r=LL?n.get(e):n[e];i<r.length;++i)if(t[r[i]].t===e)return t.Count++,r[i]}else for(;i<s;++i)if(t[i].t===e)return t.Count++,i;return t[s]={t:e},t.Count++,t.Unique++,n&&(LL?(n.has(e)||n.set(e,[]),n.get(e).push(s)):(Object.prototype.hasOwnProperty.call(n,e)||(n[e]=[]),n[e].push(s))),s}function jL(t,e){var n={min:t+1,max:t+1},i=-1;return e.MDW&&(_R=e.MDW),null!=e.width?n.customWidth=1:null!=e.wpx?i=xR(e.wpx):null!=e.wch&&(i=e.wch),i>-1?(n.width=CR(i),n.customWidth=1):null!=e.width&&(n.width=e.width),e.hidden&&(n.hidden=!0),null!=e.level&&(n.outlineLevel=n.level=e.level),n}function VL(t,e){if(t){var n=[.7,.7,.75,.75,.3,.3];"xlml"==e&&(n=[1,1,1,1,.5,.5]),null==t.left&&(t.left=n[0]),null==t.right&&(t.right=n[1]),null==t.top&&(t.top=n[2]),null==t.bottom&&(t.bottom=n[3]),null==t.header&&(t.header=n[4]),null==t.footer&&(t.footer=n[5])}}function BL(t,e,n){var i=n.revssf[null!=e.z?e.z:"General"],s=60,r=t.length;if(null==i&&n.ssf)for(;s<392;++s)if(null==n.ssf[s]){fO(e.z,s),n.ssf[s]=e.z,n.revssf[e.z]=i=s;break}for(s=0;s!=r;++s)if(t[s].numFmtId===i)return s;return t[r]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},r}function HL(t,e,n){if(t&&t["!ref"]){var i=TN(t["!ref"]);if(i.e.c<i.s.c||i.e.r<i.s.r)throw new Error("Bad range ("+n+"): "+t["!ref"])}}var zL=["objects","scenarios","selectLockedCells","selectUnlockedCells"],UL=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function qL(t,e,n,i){if(t.c&&n["!comments"].push([e,t.c]),void 0===t.v&&"string"!=typeof t.f||"z"===t.t&&!t.f)return"";var s="",r=t.t,a=t.v;if("z"!==t.t)switch(t.t){case"b":s=t.v?"1":"0";break;case"n":s=""+t.v;break;case"e":s=uM[t.v];break;case"d":i&&i.cellDates?s=FO(t.v,-1).toISOString():((t=VO(t)).t="n",s=""+(t.v=DO(FO(t.v)))),void 0===t.z&&(t.z=LT[14]);break;default:s=t.v}var o=dP("v",XO(s)),l={r:e},c=BL(i.cellXfs,t,i);switch(0!==c&&(l.s=c),t.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(null==t.v){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){o=dP("v",""+FL(i.Strings,t.v,i.revStrings)),l.t="s";break}l.t="str"}if(t.t!=r&&(t.t=r,t.v=a),"string"==typeof t.f&&t.f){var d=t.F&&t.F.slice(0,e.length)==e?{t:"array",ref:t.F}:null;o=uP("f",XO(t.f),d)+(null!=t.v?o:"")}return t.l&&n["!links"].push([e,t.l]),t.D&&(l.cm=1),uP("c",o,l)}function $L(t,e,n,i){var s,r=[WO,uP("worksheet",null,{xmlns:IP[0],"xmlns:r":CP})],a=n.SheetNames[t],o="",l=n.Sheets[a];null==l&&(l={});var c=l["!ref"]||"A1",d=TN(c);if(d.e.c>16383||d.e.r>1048575){if(e.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575),c=DN(d)}i||(i={}),l["!comments"]=[];var p=[];!function(t,e,n,i,s){var r=!1,a={},o=null;if("xlsx"!==i.bookType&&e.vbaraw){var l=e.SheetNames[n];try{e.Workbook&&(l=e.Workbook.Sheets[n].CodeName||l)}catch(TH){}r=!0,a.codeName=oP(XO(l))}if(t&&t["!outline"]){var c={summaryBelow:1,summaryRight:1};t["!outline"].above&&(c.summaryBelow=0),t["!outline"].left&&(c.summaryRight=0),o=(o||"")+uP("outlinePr",null,c)}(r||o)&&(s[s.length]=uP("sheetPr",o,a))}(l,n,t,e,r),r[r.length]=uP("dimension",null,{ref:c}),r[r.length]=function(t,e,n,i){var s={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(s.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),uP("sheetViews",uP("sheetView",null,s),{})}(0,0,0,n),e.sheetFormat&&(r[r.length]=uP("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(r[r.length]=function(t,e){for(var n,i=["<cols>"],s=0;s!=e.length;++s)(n=e[s])&&(i[i.length]=uP("col",null,jL(s,n)));return i[i.length]="</cols>",i.join("")}(0,l["!cols"])),r[s=r.length]="<sheetData/>",l["!links"]=[],null!=l["!ref"]&&(o=function(t,e,n,i){var s,r,a=[],o=[],l=TN(t["!ref"]),c="",d="",p=[],u=0,h=0,m=t["!rows"],f=Array.isArray(t),g={r:d},b=-1;for(h=l.s.c;h<=l.e.c;++h)p[h]=kN(h);for(u=l.s.r;u<=l.e.r;++u){for(o=[],d=CN(u),h=l.s.c;h<=l.e.c;++h){s=p[h]+d;var v=f?(t[u]||[])[h]:t[s];void 0!==v&&null!=(c=qL(v,s,t,e))&&o.push(c)}(o.length>0||m&&m[u])&&(g={r:d},m&&m[u]&&((r=m[u]).hidden&&(g.hidden=1),b=-1,r.hpx?b=kR(r.hpx):r.hpt&&(b=r.hpt),b>-1&&(g.ht=b,g.customHeight=1),r.level&&(g.outlineLevel=r.level)),a[a.length]=uP("row",o.join(""),g))}if(m)for(;u<m.length;++u)m&&m[u]&&(g={r:u+1},(r=m[u]).hidden&&(g.hidden=1),b=-1,r.hpx?b=kR(r.hpx):r.hpt&&(b=r.hpt),b>-1&&(g.ht=b,g.customHeight=1),r.level&&(g.outlineLevel=r.level),a[a.length]=uP("row","",g));return a.join("")}(l,e,0,0)).length>0&&(r[r.length]=o),r.length>s+1&&(r[r.length]="</sheetData>",r[s]=r[s].replace("/>",">")),l["!protect"]&&(r[r.length]=function(t){var e={sheet:1};return zL.forEach(function(n){null!=t[n]&&t[n]&&(e[n]="1")}),UL.forEach(function(n){null==t[n]||t[n]||(e[n]="0")}),t.password&&(e.password=bR(t.password).toString(16).toUpperCase()),uP("sheetProtection",null,e)}(l["!protect"])),null!=l["!autofilter"]&&(r[r.length]=function(t,e,n,i){var s="string"==typeof t.ref?t.ref:DN(t.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var r=n.Workbook.Names,a=AN(s);a.s.r==a.e.r&&(a.e.r=AN(e["!ref"]).e.r,s=DN(a));for(var o=0;o<r.length;++o){var l=r[o];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==i){l.Ref="'"+n.SheetNames[i]+"'!"+s;break}}return o==r.length&&r.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+n.SheetNames[i]+"'!"+s}),uP("autoFilter",null,{ref:s})}(l["!autofilter"],l,n,t)),null!=l["!merges"]&&l["!merges"].length>0&&(r[r.length]=function(t){if(0===t.length)return"";for(var e='<mergeCells count="'+t.length+'">',n=0;n!=t.length;++n)e+='<mergeCell ref="'+DN(t[n])+'"/>';return e+"</mergeCells>"}(l["!merges"]));var u,h,m=-1,f=-1;return l["!links"].length>0&&(r[r.length]="<hyperlinks>",l["!links"].forEach(function(t){t[1].Target&&(u={ref:t[0]},"#"!=t[1].Target.charAt(0)&&(f=yM(i,-1,XO(t[1].Target).replace(/#.*$/,""),gM.HLINK),u["r:id"]="rId"+f),(m=t[1].Target.indexOf("#"))>-1&&(u.location=XO(t[1].Target.slice(m+1))),t[1].Tooltip&&(u.tooltip=XO(t[1].Tooltip)),r[r.length]=uP("hyperlink",null,u))}),r[r.length]="</hyperlinks>"),delete l["!links"],null!=l["!margins"]&&(r[r.length]=(VL(h=l["!margins"]),uP("pageMargins",null,h))),e&&!e.ignoreEC&&null!=e.ignoreEC||(r[r.length]=dP("ignoredErrors",uP("ignoredError",null,{numberStoredAsText:1,sqref:c}))),p.length>0&&(f=yM(i,-1,"../drawings/drawing"+(t+1)+".xml",gM.DRAW),r[r.length]=uP("drawing",null,{"r:id":"rId"+f}),l["!drawing"]=p),l["!comments"].length>0&&(f=yM(i,-1,"../drawings/vmlDrawing"+(t+1)+".vml",gM.VML),r[r.length]=uP("legacyDrawing",null,{"r:id":"rId"+f}),l["!legacy"]=f),r.length>1&&(r[r.length]="</worksheet>",r[1]=r[1].replace("/>",">")),r.join("")}function WL(t,e,n,i){var s=function(t,e,n){var i=fN(145),s=(n["!rows"]||[])[t]||{};i.write_shift(4,t),i.write_shift(4,0);var r=320;s.hpx?r=20*kR(s.hpx):s.hpt&&(r=20*s.hpt),i.write_shift(2,r),i.write_shift(1,0);var a=0;s.level&&(a|=s.level),s.hidden&&(a|=16),(s.hpx||s.hpt)&&(a|=32),i.write_shift(1,a),i.write_shift(1,0);var o=0,l=i.l;i.l+=4;for(var c={r:t,c:0},d=0;d<16;++d)if(!(e.s.c>d+1<<10||e.e.c<d<<10)){for(var p=-1,u=-1,h=d<<10;h<d+1<<10;++h)c.c=h,(Array.isArray(n)?(n[c.r]||[])[c.c]:n[IN(c)])&&(p<0&&(p=h),u=h);p<0||(++o,i.write_shift(4,p),i.write_shift(4,u))}var m=i.l;return i.l=l,i.write_shift(4,o),i.l=m,i.length>i.l?i.slice(0,i.l):i}(i,n,e);(s.length>17||(e["!rows"]||[])[i])&&bN(t,0,s)}var YL=iM,GL=sM;function KL(t){return[$N(t),rM(t),"n"]}var ZL=iM,XL=sM;var QL=["left","right","top","bottom","header","footer"];function JL(t,e,n,i,s,r,a){if(void 0===e.v)return!1;var o="";switch(e.t){case"b":o=e.v?"1":"0";break;case"d":(e=VO(e)).z=e.z||LT[14],e.v=DO(FO(e.v)),e.t="n";break;case"n":case"e":o=""+e.v;break;default:o=e.v}var l={r:n,c:i};switch(l.s=BL(s.cellXfs,e,s),e.l&&r["!links"].push([IN(l),e.l]),e.c&&r["!comments"].push([IN(l),e.c]),e.t){case"s":case"str":return s.bookSST?(o=FL(s.Strings,e.v,s.revStrings),l.t="s",l.v=o,a?bN(t,18,function(t,e,n){return null==n&&(n=fN(8)),WN(e,n),n.write_shift(4,e.v),n}(0,l)):bN(t,7,function(t,e,n){return null==n&&(n=fN(12)),qN(e,n),n.write_shift(4,e.v),n}(0,l))):(l.t="str",a?bN(t,17,function(t,e,n){return null==n&&(n=fN(8+4*t.v.length)),WN(e,n),jN(t.v,n),n.length>n.l?n.slice(0,n.l):n}(e,l)):bN(t,6,function(t,e,n){return null==n&&(n=fN(12+4*t.v.length)),qN(e,n),jN(t.v,n),n.length>n.l?n.slice(0,n.l):n}(e,l))),!0;case"n":return e.v==(0|e.v)&&e.v>-1e3&&e.v<1e3?a?bN(t,13,function(t,e,n){return null==n&&(n=fN(8)),WN(e,n),eM(t.v,n),n}(e,l)):bN(t,2,function(t,e,n){return null==n&&(n=fN(12)),qN(e,n),eM(t.v,n),n}(e,l)):a?bN(t,16,function(t,e,n){return null==n&&(n=fN(12)),WN(e,n),aM(t.v,n),n}(e,l)):bN(t,5,function(t,e,n){return null==n&&(n=fN(16)),qN(e,n),aM(t.v,n),n}(e,l)),!0;case"b":return l.t="b",a?bN(t,15,function(t,e,n){return null==n&&(n=fN(5)),WN(e,n),n.write_shift(1,t.v?1:0),n}(e,l)):bN(t,4,function(t,e,n){return null==n&&(n=fN(9)),qN(e,n),n.write_shift(1,t.v?1:0),n}(e,l)),!0;case"e":return l.t="e",a?bN(t,14,function(t,e,n){return null==n&&(n=fN(8)),WN(e,n),n.write_shift(1,t.v),n.write_shift(2,0),n.write_shift(1,0),n}(e,l)):bN(t,3,function(t,e,n){return null==n&&(n=fN(9)),qN(e,n),n.write_shift(1,t.v),n}(e,l)),!0}return a?bN(t,12,function(t,e,n){return null==n&&(n=fN(4)),WN(e,n)}(0,l)):bN(t,1,function(t,e,n){return null==n&&(n=fN(8)),qN(e,n)}(0,l)),!0}function tF(t,e){var n,i;e&&e["!merges"]&&(bN(t,177,(n=e["!merges"].length,null==i&&(i=fN(4)),i.write_shift(4,n),i)),e["!merges"].forEach(function(e){bN(t,176,XL(e))}),bN(t,178))}function eF(t,e){e&&e["!cols"]&&(bN(t,390),e["!cols"].forEach(function(e,n){e&&bN(t,60,function(t,e,n){null==n&&(n=fN(18));var i=jL(t,e);n.write_shift(-4,t),n.write_shift(-4,t),n.write_shift(4,256*(i.width||10)),n.write_shift(4,0);var s=0;return e.hidden&&(s|=1),"number"==typeof i.width&&(s|=2),e.level&&(s|=e.level<<8),n.write_shift(2,s),n}(n,e))}),bN(t,391))}function nF(t,e){var n,i;e&&e["!ref"]&&(bN(t,648),bN(t,649,(n=TN(e["!ref"]),(i=fN(24)).write_shift(4,4),i.write_shift(4,1),sM(n,i),i)),bN(t,650))}function iF(t,e,n){e["!links"].forEach(function(e){if(e[1].Target){var i=yM(n,-1,e[1].Target.replace(/#.*$/,""),gM.HLINK);bN(t,494,function(t,e){var n=fN(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));sM({s:EN(t[0]),e:EN(t[0])},n),JN("rId"+e,n);var i=t[1].Target.indexOf("#");return jN((-1==i?"":t[1].Target.slice(i+1))||"",n),jN(t[1].Tooltip||"",n),jN("",n),n.slice(0,n.l)}(e,i))}}),delete e["!links"]}function sF(t,e,n){bN(t,133),bN(t,137,function(t,e,n){null==n&&(n=fN(30));var i=924;return(((e||{}).Views||[])[0]||{}).RTL&&(i|=32),n.write_shift(2,i),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),bN(t,138),bN(t,134)}function rF(t,e){var n,i;e["!protect"]&&bN(t,535,(n=e["!protect"],null==i&&(i=fN(66)),i.write_shift(2,n.password?bR(n.password):0),i.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?i.write_shift(4,null==n[t[0]]||n[t[0]]?0:1):i.write_shift(4,null!=n[t[0]]&&n[t[0]]?0:1)}),i))}function aF(t,e,n,i){var s=gN(),r=n.SheetNames[t],a=n.Sheets[r]||{},o=r;try{n&&n.Workbook&&(o=n.Workbook.Sheets[t].CodeName||o)}catch(TH){}var l,c,d=TN(a["!ref"]||"A1");if(d.e.c>16383||d.e.r>1048575){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],bN(s,129),(n.vbaraw||a["!outline"])&&bN(s,147,function(t,e,n){null==n&&(n=fN(84+4*t.length));var i=192;e&&(e.above&&(i&=-65),e.left&&(i&=-129)),n.write_shift(1,i);for(var s=1;s<3;++s)n.write_shift(1,0);return oM({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),GN(t,n),n.slice(0,n.l)}(o,a["!outline"])),bN(s,148,GL(d)),sF(s,0,n.Workbook),eF(s,a),function(t,e,n,i){var s,r=TN(e["!ref"]||"A1"),a="",o=[];bN(t,145);var l=Array.isArray(e),c=r.e.r;e["!rows"]&&(c=Math.max(r.e.r,e["!rows"].length-1));for(var d=r.s.r;d<=c;++d){a=CN(d),WL(t,e,r,d);var p=!1;if(d<=r.e.r)for(var u=r.s.c;u<=r.e.c;++u){d===r.s.r&&(o[u]=kN(u)),s=o[u]+a;var h=l?(e[d]||[])[u]:e[s];p=!!h&&JL(t,h,d,u,i,e,p)}}bN(t,146)}(s,a,0,e),rF(s,a),function(t,e,n,i){if(e["!autofilter"]){var s=e["!autofilter"],r="string"==typeof s.ref?s.ref:DN(s.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var a=n.Workbook.Names,o=AN(r);o.s.r==o.e.r&&(o.e.r=AN(e["!ref"]).e.r,r=DN(o));for(var l=0;l<a.length;++l){var c=a[l];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==i){c.Ref="'"+n.SheetNames[i]+"'!"+r;break}}l==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+n.SheetNames[i]+"'!"+r}),bN(t,161,sM(TN(r))),bN(t,162)}}(s,a,n,t),tF(s,a),iF(s,a,i),a["!margins"]&&bN(s,476,(l=a["!margins"],null==c&&(c=fN(48)),VL(l),QL.forEach(function(t){aM(l[t],c)}),c)),e&&!e.ignoreEC&&null!=e.ignoreEC||nF(s,a),function(t,e,n,i){if(e["!comments"].length>0){var s=yM(i,-1,"../drawings/vmlDrawing"+(n+1)+".vml",gM.VML);bN(t,551,JN("rId"+s)),e["!legacy"]=s}}(s,a,t,i),bN(s,130),s.end()}var oF=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];var lF="][*?/\\".split("");function cF(t,e){if(t.length>31){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return lF.forEach(function(i){if(-1!=t.indexOf(i)){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}}),n}function dF(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var e,n,i,s=t.Workbook&&t.Workbook.Sheets||[];e=t.SheetNames,n=s,i=!!t.vbaraw,e.forEach(function(t,s){cF(t);for(var r=0;r<s;++r)if(t==e[r])throw new Error("Duplicate Sheet Name: "+t);if(i){var a=n&&n[s]&&n[s].CodeName||t;if(95==a.charCodeAt(0)&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}});for(var r=0;r<t.SheetNames.length;++r)HL(t.Sheets[t.SheetNames[r]],t.SheetNames[r],r)}function pF(t){var e=[WO];e[e.length]=uP("workbook",null,{xmlns:IP[0],"xmlns:r":CP});var n=t.Workbook&&(t.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(oF.forEach(function(e){null!=t.Workbook.WBProps[e[0]]&&t.Workbook.WBProps[e[0]]!=e[1]&&(i[e[0]]=t.Workbook.WBProps[e[0]])}),t.Workbook.WBProps.CodeName&&(i.codeName=t.Workbook.WBProps.CodeName,delete i.CodeName)),e[e.length]=uP("workbookPr",null,i);var s=t.Workbook&&t.Workbook.Sheets||[],r=0;if(s&&s[0]&&s[0].Hidden){for(e[e.length]="<bookViews>",r=0;r!=t.SheetNames.length&&s[r]&&s[r].Hidden;++r);r==t.SheetNames.length&&(r=0),e[e.length]='<workbookView firstSheet="'+r+'" activeTab="'+r+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",r=0;r!=t.SheetNames.length;++r){var a={name:XO(t.SheetNames[r].slice(0,31))};if(a.sheetId=""+(r+1),a["r:id"]="rId"+(r+1),s[r])switch(s[r].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden"}e[e.length]=uP("sheet",null,a)}return e[e.length]="</sheets>",n&&(e[e.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(t){var n={name:t.Name};t.Comment&&(n.comment=t.Comment),null!=t.Sheet&&(n.localSheetId=""+t.Sheet),t.Hidden&&(n.hidden="1"),t.Ref&&(e[e.length]=uP("definedName",XO(t.Ref),n))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function uF(t,e){if(e.Workbook&&e.Workbook.Sheets){for(var n,i,s=e.Workbook.Sheets,r=0,a=-1,o=-1;r<s.length;++r)!s[r]||!s[r].Hidden&&-1==a?a=r:1==s[r].Hidden&&-1==o&&(o=r);if(!(o>a))bN(t,135),bN(t,158,(n=a,i||(i=fN(29)),i.write_shift(-4,0),i.write_shift(-4,460),i.write_shift(4,28800),i.write_shift(4,17600),i.write_shift(4,500),i.write_shift(4,n),i.write_shift(4,n),i.write_shift(1,120),i.length>i.l?i.slice(0,i.l):i)),bN(t,136)}}function hF(t,e){var n=gN();return bN(n,131),bN(n,128,function(t,e){e||(e=fN(127));for(var n=0;4!=n;++n)e.write_shift(4,0);return jN("SheetJS",e),jN(nT.version,e),jN(nT.version,e),jN("7262",e),e.length>e.l?e.slice(0,e.l):e}()),bN(n,153,function(t,e){e||(e=fN(72));var n=0;return t&&t.filterPrivacy&&(n|=8),e.write_shift(4,n),e.write_shift(4,0),GN(t&&t.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}(t.Workbook&&t.Workbook.WBProps||null)),uF(n,t),function(t,e){bN(t,143);for(var n=0;n!=e.SheetNames.length;++n){bN(t,156,(i={Hidden:e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[n]&&e.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:e.SheetNames[n]},(s=void 0)||(s=fN(127)),s.write_shift(4,i.Hidden),s.write_shift(4,i.iTabID),JN(i.strRelID,s),jN(i.name.slice(0,31),s),s.length>s.l?s.slice(0,s.l):s))}var i,s;bN(t,144)}(n,t),bN(n,132),n.end()}function mF(t,e,n,i,s){return(".bin"===e.slice(-4)?aF:$L)(t,n,i,s)}function fF(t,e,n){return(".bin"===e.slice(-4)?KR:WR)(t,n)}function gF(t,e){var n=[];return t.Props&&n.push(function(t,e){var n=[];return SO(DM).map(function(t){for(var e=0;e<xM.length;++e)if(xM[e][1]==t)return xM[e];for(e=0;e<kM.length;++e)if(kM[e][1]==t)return kM[e];throw t}).forEach(function(i){if(null!=t[i[1]]){var s=e&&e.Props&&null!=e.Props[i[1]]?e.Props[i[1]]:t[i[1]];switch(i[2]){case"date":s=new Date(s).toISOString().replace(/\.\d*Z/,"Z")}"number"==typeof s?s=String(s):!0===s||!1===s?s=s?"1":"0":s instanceof Date&&(s=new Date(s).toISOString().replace(/\.\d*Z/,"")),n.push(dP(DM[i[1]]||i[1],s))}}),uP("DocumentProperties",n.join(""),{xmlns:AP})}(t.Props,e)),t.Custprops&&n.push(function(t,e){var n=["Worksheets","SheetNames"],i="CustomDocumentProperties",s=[];return t&&SO(t).forEach(function(e){if(Object.prototype.hasOwnProperty.call(t,e)){for(var i=0;i<xM.length;++i)if(e==xM[i][1])return;for(i=0;i<kM.length;++i)if(e==kM[i][1])return;for(i=0;i<n.length;++i)if(e==n[i])return;var r=t[e],a="string";"number"==typeof r?(a="float",r=String(r)):!0===r||!1===r?(a="boolean",r=r?"1":"0"):r=String(r),s.push(uP(QO(e),r,{"dt:dt":a}))}}),e&&SO(e).forEach(function(n){if(Object.prototype.hasOwnProperty.call(e,n)&&(!t||!Object.prototype.hasOwnProperty.call(t,n))){var i=e[n],r="string";"number"==typeof i?(r="float",i=String(i)):!0===i||!1===i?(r="boolean",i=i?"1":"0"):i instanceof Date?(r="dateTime.tz",i=i.toISOString()):i=String(i),s.push(uP(QO(n),i,{"dt:dt":r}))}}),"<"+i+' xmlns="'+AP+'">'+s.join("")+"</"+i+">"}(t.Props,t.Custprops)),n.join("")}function bF(t){return uP("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+JR(t.Ref,{r:0,c:0})})}function vF(t,e,n,i,s,r,a){if(!t||null==t.v&&null==t.f)return"";var o={};if(t.f&&(o["ss:Formula"]="="+XO(JR(t.f,a))),t.F&&t.F.slice(0,e.length)==e){var l=EN(t.F.slice(e.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==a.r?"":"["+(l.r-a.r)+"]")+"C"+(l.c==a.c?"":"["+(l.c-a.c)+"]")}if(t.l&&t.l.Target&&(o["ss:HRef"]=XO(t.l.Target),t.l.Tooltip&&(o["x:HRefScreenTip"]=XO(t.l.Tooltip))),n["!merges"])for(var c=n["!merges"],d=0;d!=c.length;++d)c[d].s.c==a.c&&c[d].s.r==a.r&&(c[d].e.c>c[d].s.c&&(o["ss:MergeAcross"]=c[d].e.c-c[d].s.c),c[d].e.r>c[d].s.r&&(o["ss:MergeDown"]=c[d].e.r-c[d].s.r));var p="",u="";switch(t.t){case"z":if(!i.sheetStubs)return"";break;case"n":p="Number",u=String(t.v);break;case"b":p="Boolean",u=t.v?"1":"0";break;case"e":p="Error",u=uM[t.v];break;case"d":p="DateTime",u=new Date(t.v).toISOString(),null==t.z&&(t.z=t.z||LT[14]);break;case"s":p="String",u=((t.v||"")+"").replace(KO,function(t){return GO[t]}).replace(JO,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}var h=BL(i.cellXfs,t,i);o["ss:StyleID"]="s"+(21+h),o["ss:Index"]=a.c+1;var m=null!=t.v?u:"",f="z"==t.t?"":'<Data ss:Type="'+p+'">'+m+"</Data>";return(t.c||[]).length>0&&(f+=t.c.map(function(t){var e=uP("ss:Data",(t.t||"").replace(/(\r\n|[\r\n])/g,"&#10;"),{xmlns:"http://www.w3.org/TR/REC-html40"});return uP("Comment",e,{"ss:Author":t.a})}).join("")),uP("Cell",f,o)}function yF(t,e){var n='<Row ss:Index="'+(t+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=ER(e.hpt)),e.hpx&&(n+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(n+=' ss:Hidden="1"')),n+">"}function _F(t,e,n){var i=[],s=n.SheetNames[t],r=n.Sheets[s],a=r?function(t,e,n,i){if(!t)return"";if(!((i||{}).Workbook||{}).Names)return"";for(var s=i.Workbook.Names,r=[],a=0;a<s.length;++a){var o=s[a];o.Sheet==n&&(o.Name.match(/^_xlfn\./)||r.push(bF(o)))}return r.join("")}(r,0,t,n):"";return a.length>0&&i.push("<Names>"+a+"</Names>"),(a=r?function(t,e,n,i){if(!t["!ref"])return"";var s=TN(t["!ref"]),r=t["!merges"]||[],a=0,o=[];t["!cols"]&&t["!cols"].forEach(function(t,e){SR(t);var n=!!t.width,i=jL(e,t),s={"ss:Index":e+1};n&&(s["ss:Width"]=wR(i.width)),t.hidden&&(s["ss:Hidden"]="1"),o.push(uP("Column",null,s))});for(var l=Array.isArray(t),c=s.s.r;c<=s.e.r;++c){for(var d=[yF(c,(t["!rows"]||[])[c])],p=s.s.c;p<=s.e.c;++p){var u=!1;for(a=0;a!=r.length;++a)if(!(r[a].s.c>p||r[a].s.r>c||r[a].e.c<p||r[a].e.r<c)){r[a].s.c==p&&r[a].s.r==c||(u=!0);break}if(!u){var h={r:c,c:p},m=IN(h),f=l?(t[c]||[])[p]:t[m];d.push(vF(f,m,t,e,0,0,h))}}d.push("</Row>"),d.length>2&&o.push(d.join(""))}return o.join("")}(r,e):"").length>0&&i.push("<Table>"+a+"</Table>"),i.push(function(t,e,n,i){if(!t)return"";var s=[];if(t["!margins"]&&(s.push("<PageSetup>"),t["!margins"].header&&s.push(uP("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&s.push(uP("Footer",null,{"x:Margin":t["!margins"].footer})),s.push(uP("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),s.push("</PageSetup>")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[n])if(i.Workbook.Sheets[n].Hidden)s.push(uP("Visible",1==i.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var r=0;r<n&&(!i.Workbook.Sheets[r]||i.Workbook.Sheets[r].Hidden);++r);r==n&&s.push("<Selected/>")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&s.push("<DisplayRightToLeft/>"),t["!protect"]&&(s.push(dP("ProtectContents","True")),t["!protect"].objects&&s.push(dP("ProtectObjects","True")),t["!protect"].scenarios&&s.push(dP("ProtectScenarios","True")),null==t["!protect"].selectLockedCells||t["!protect"].selectLockedCells?null==t["!protect"].selectUnlockedCells||t["!protect"].selectUnlockedCells||s.push(dP("EnableSelection","UnlockedCells")):s.push(dP("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(e){t["!protect"][e[0]]&&s.push("<"+e[1]+"/>")})),0==s.length?"":uP("WorksheetOptions",s.join(""),{xmlns:DP})}(r,0,t,n)),i.join("")}function wF(t,e){e||(e={}),t.SSF||(t.SSF=VO(LT)),t.SSF&&(bO(),gO(t.SSF),e.revssf=IO(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF,e.cellXfs=[],BL(e.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(gF(t,e)),n.push(""),n.push(""),n.push("");for(var i=0;i<t.SheetNames.length;++i)n.push(uP("Worksheet",_F(i,e,t),{"ss:Name":XO(t.SheetNames[i])}));return n[2]=function(t,e){var n=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(t,e){var i=[];i.push(uP("NumberFormat",null,{"ss:Format":XO(LT[t.numFmtId])}));var s={"ss:ID":"s"+(21+e)};n.push(uP("Style",i.join(""),s))}),uP("Styles",n.join(""))}(0,e),n[3]=function(t){if(!((t||{}).Workbook||{}).Names)return"";for(var e=t.Workbook.Names,n=[],i=0;i<e.length;++i){var s=e[i];null==s.Sheet&&(s.Name.match(/^_xlfn\./)||n.push(bF(s)))}return uP("Names",n.join(""))}(t),WO+uP("Workbook",n.join(""),{xmlns:TP,"xmlns:o":AP,"xmlns:x":DP,"xmlns:ss":TP,"xmlns:dt":OP,"xmlns:html":MP})}var xF="e0859ff2f94f6810ab9108002b27b3d9",CF="02d5cdd59c2e1b10939708002b2cf9ae",SF="05d5cdd59c2e1b10939708002b2cf9ae";function kF(t,e){var n=e||{},i=_O.utils.cfb_new({root:"R"}),s="/Workbook";switch(n.bookType||"xls"){case"xls":n.bookType="biff8";case"xla":n.bookType||(n.bookType="xla");case"biff8":s="/Workbook",n.biff=8;break;case"biff5":s="/Book",n.biff=5;break;default:throw new Error("invalid type "+n.bookType+" for XLS CFB")}return _O.utils.cfb_add(i,s,LF(t,n)),8==n.biff&&(t.Props||t.Custprops)&&function(t,e){var n,i=[],s=[],r=[],a=0,o=kO(lM,"n"),l=kO(cM,"n");if(t.Props)for(n=SO(t.Props),a=0;a<n.length;++a)(Object.prototype.hasOwnProperty.call(o,n[a])?i:Object.prototype.hasOwnProperty.call(l,n[a])?s:r).push([n[a],t.Props[n[a]]]);if(t.Custprops)for(n=SO(t.Custprops),a=0;a<n.length;++a)Object.prototype.hasOwnProperty.call(t.Props||{},n[a])||(Object.prototype.hasOwnProperty.call(o,n[a])?i:Object.prototype.hasOwnProperty.call(l,n[a])?s:r).push([n[a],t.Custprops[n[a]]]);var c=[];for(a=0;a<r.length;++a)OM.indexOf(r[a][0])>-1||EM.indexOf(r[a][0])>-1||null!=r[a][1]&&c.push(r[a]);s.length&&_O.utils.cfb_add(e,"/\x05SummaryInformation",MM(s,xF,l,cM)),(i.length||c.length)&&_O.utils.cfb_add(e,"/\x05DocumentSummaryInformation",MM(i,CF,o,lM,c.length?c:null,SF))}(t,i),8==n.biff&&t.vbaraw&&function(t,e){e.FullPaths.forEach(function(n,i){if(0!=i){var s=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==s.slice(-1)&&_O.utils.cfb_add(t,s,e.FileIndex[i].content)}})}(i,_O.read(t.vbaraw,{type:"string"==typeof t.vbaraw?"binary":"buffer"})),i}var EF={0:{f:function(t,e){var n={},i=t.l+e;n.r=t.read_shift(4),t.l+=4;var s=t.read_shift(2);t.l+=1;var r=t.read_shift(1);return t.l=i,7&r&&(n.level=7&r),16&r&&(n.hidden=!0),32&r&&(n.hpt=s/20),n}},1:{f:function(t){return[UN(t)]}},2:{f:function(t){return[UN(t),tM(t),"n"]}},3:{f:function(t){return[UN(t),t.read_shift(1),"e"]}},4:{f:function(t){return[UN(t),t.read_shift(1),"b"]}},5:{f:function(t){return[UN(t),rM(t),"n"]}},6:{f:function(t){return[UN(t),FN(t),"str"]}},7:{f:function(t){return[UN(t),t.read_shift(4),"s"]}},8:{f:function(t,e,n){var i=t.l+e,s=UN(t);s.r=n["!row"];var r=[s,FN(t),"str"];if(n.cellFormula){t.l+=2;var a=TL(t,i-t.l,n);r[3]=EL(a,0,s,n.supbooks,n)}else t.l=i;return r}},9:{f:function(t,e,n){var i=t.l+e,s=UN(t);s.r=n["!row"];var r=[s,rM(t),"n"];if(n.cellFormula){t.l+=2;var a=TL(t,i-t.l,n);r[3]=EL(a,0,s,n.supbooks,n)}else t.l=i;return r}},10:{f:function(t,e,n){var i=t.l+e,s=UN(t);s.r=n["!row"];var r=[s,t.read_shift(1),"b"];if(n.cellFormula){t.l+=2;var a=TL(t,i-t.l,n);r[3]=EL(a,0,s,n.supbooks,n)}else t.l=i;return r}},11:{f:function(t,e,n){var i=t.l+e,s=UN(t);s.r=n["!row"];var r=[s,t.read_shift(1),"e"];if(n.cellFormula){t.l+=2;var a=TL(t,i-t.l,n);r[3]=EL(a,0,s,n.supbooks,n)}else t.l=i;return r}},12:{f:function(t){return[$N(t)]}},13:{f:function(t){return[$N(t),tM(t),"n"]}},14:{f:function(t){return[$N(t),t.read_shift(1),"e"]}},15:{f:function(t){return[$N(t),t.read_shift(1),"b"]}},16:{f:KL},17:{f:function(t){return[$N(t),FN(t),"str"]}},18:{f:function(t){return[$N(t),t.read_shift(4),"s"]}},19:{f:BN},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(t,e,n){var i=t.l+e;t.l+=4,t.l+=1;var s=t.read_shift(4),r=XN(t),a=OL(t,0,n),o=KN(t);t.l=i;var l={Name:r,Ptg:a};return s<268435455&&(l.Sheet=s),o&&(l.Comment=o),l}},40:{},42:{},43:{f:function(t,e,n){var i={};i.sz=t.read_shift(2)/20;var s=function(t){var e=t.read_shift(1);return t.l++,{fBold:1&e,fItalic:2&e,fUnderline:4&e,fStrikeout:8&e,fOutline:16&e,fShadow:32&e,fCondense:64&e,fExtend:128&e}}(t);switch(s.fItalic&&(i.italic=1),s.fCondense&&(i.condense=1),s.fExtend&&(i.extend=1),s.fShadow&&(i.shadow=1),s.fOutline&&(i.outline=1),s.fStrikeout&&(i.strike=1),700===t.read_shift(2)&&(i.bold=1),t.read_shift(2)){case 1:i.vertAlign="superscript";break;case 2:i.vertAlign="subscript"}var r=t.read_shift(1);0!=r&&(i.underline=r);var a=t.read_shift(1);a>0&&(i.family=a);var o=t.read_shift(1);switch(o>0&&(i.charset=o),t.l++,i.color=function(t){var e={},n=t.read_shift(1)>>>1,i=t.read_shift(1),s=t.read_shift(2,"i"),r=t.read_shift(1),a=t.read_shift(1),o=t.read_shift(1);switch(t.l++,n){case 0:e.auto=1;break;case 1:e.index=i;var l=pM[i];l&&(e.rgb=yR(l));break;case 2:e.rgb=yR([r,a,o]);break;case 3:e.theme=i}return 0!=s&&(e.tint=s>0?s/32767:s/32768),e}(t),t.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor"}return i.name=FN(t),i}},44:{f:function(t,e){return[t.read_shift(2),FN(t)]}},45:{f:PR},46:{f:LR},47:{f:function(t,e){var n=t.l+e,i=t.read_shift(2),s=t.read_shift(2);return t.l=n,{ixfe:i,numFmtId:s}}},48:{},49:{f:function(t){return t.read_shift(4,"i")}},50:{},51:{f:function(t){for(var e=[],n=t.read_shift(4);n-- >0;)e.push([t.read_shift(4),t.read_shift(4)]);return e}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:rR},62:{f:function(t){return[UN(t),BN(t),"is"]}},63:{f:function(t){var e={};e.i=t.read_shift(4);var n={};n.r=t.read_shift(4),n.c=t.read_shift(4),e.r=IN(n);var i=t.read_shift(1);return 2&i&&(e.l="1"),8&i&&(e.a="1"),e}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:mN,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(t){var e=t.read_shift(2);return t.l+=28,{RTL:32&e}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(t,e){var n={},i=t[t.l];return++t.l,n.above=!(64&i),n.left=!(128&i),t.l+=18,n.name=YN(t,e-19),n}},148:{f:YL,p:16},151:{f:function(){}},152:{},153:{f:function(t,e){var n={},i=t.read_shift(4);n.defaultThemeVersion=t.read_shift(4);var s=e>8?FN(t):"";return s.length>0&&(n.CodeName=s),n.autoCompressPictures=!!(65536&i),n.backupFile=!!(64&i),n.checkCompatibility=!!(4096&i),n.date1904=!!(1&i),n.filterPrivacy=!!(8&i),n.hidePivotFieldList=!!(1024&i),n.promptedSolutions=!!(16&i),n.publishItems=!!(2048&i),n.refreshAllConnections=!!(262144&i),n.saveExternalLinkValues=!!(128&i),n.showBorderUnselectedTables=!!(4&i),n.showInkAnnotation=!!(32&i),n.showObjects=["all","placeholders","none"][i>>13&3],n.showPivotChartFilter=!!(32768&i),n.updateLinks=["userSet","never","always"][i>>8&3],n}},154:{},155:{},156:{f:function(t,e){var n={};return n.Hidden=t.read_shift(4),n.iTabID=t.read_shift(4),n.strRelID=QN(t,e-8),n.name=FN(t),n}},157:{},158:{},159:{T:1,f:function(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:iM},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:ZL},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(t,e){return{flags:t.read_shift(4),version:t.read_shift(4),name:FN(t)}}},336:{T:-1},337:{f:function(t){return t.l+=4,0!=t.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:QN},357:{},358:{},359:{},360:{T:1},361:{},362:{f:nR},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(t,e,n){var i=t.l+e,s=nM(t),r=t.read_shift(1),a=[s];if(a[2]=r,n.cellFormula){var o=DL(t,i-t.l,n);a[1]=o}else t.l=i;return a}},427:{f:function(t,e,n){var i=t.l+e,s=[iM(t,16)];if(n.cellFormula){var r=PL(t,i-t.l,n);s[1]=r,t.l=i}else t.l=i;return s}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(t){var e={};return QL.forEach(function(n){e[n]=rM(t)}),e}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(t,e){var n=t.l+e,i=iM(t,16),s=KN(t),r=FN(t),a=FN(t),o=FN(t);t.l=n;var l={rfx:i,relId:s,loc:r,display:o};return a&&(l.Tooltip=a),l}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:QN},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:GR},633:{T:1},634:{T:-1},635:{T:1,f:function(t){var e={};e.iauthor=t.read_shift(4);var n=iM(t,16);return e.rfx=n.s,e.ref=IN(n.s),t.l+=16,e}},636:{T:-1},637:{f:HN},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(t,e){return t.l+=10,{name:FN(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function IF(t,e,n,i){var s=e;if(!isNaN(s)){var r=i||(n||[]).length||0,a=t.next(4);a.write_shift(2,s),a.write_shift(2,r),r>0&&eN(n)&&t.push(n)}}function AF(t,e,n){return t||(t=fN(7)),t.write_shift(2,e),t.write_shift(2,n),t.write_shift(2,0),t.write_shift(1,0),t}function DF(t,e,n,i){if(null!=e.v)switch(e.t){case"d":case"n":var s="d"==e.t?DO(FO(e.v)):e.v;return void(s==(0|s)&&s>=0&&s<65536?IF(t,2,(r=n,a=i,o=s,l=fN(9),AF(l,r,a),l.write_shift(2,o),l)):IF(t,3,function(t,e,n){var i=fN(15);return AF(i,t,e),i.write_shift(8,n,"f"),i}(n,i,s)));case"b":case"e":return void IF(t,5,function(t,e,n,i){var s=fN(9);return AF(s,t,e),VM(n,i||"b",s),s}(n,i,e.v,e.t));case"s":case"str":return void IF(t,4,function(t,e,n){var i=fN(8+2*n.length);return AF(i,t,e),i.write_shift(1,n.length),i.write_shift(n.length,n,"sbcs"),i.l<i.length?i.slice(0,i.l):i}(n,i,(e.v||"").slice(0,255)))}var r,a,o,l;IF(t,1,AF(null,n,i))}function TF(t,e){var n=e||{};for(var i=gN(),s=0,r=0;r<t.SheetNames.length;++r)t.SheetNames[r]==n.sheet&&(s=r);if(0==s&&n.sheet&&t.SheetNames[0]!=n.sheet)throw new Error("Sheet not found: "+n.sheet);return IF(i,4==n.biff?1033:3==n.biff?521:9,QM(0,16,n)),function(t,e,n,i){var s,r=Array.isArray(e),a=TN(e["!ref"]||"A1"),o="",l=[];if(a.e.c>255||a.e.r>16383){if(i.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=DN(a)}for(var c=a.s.r;c<=a.e.r;++c){o=CN(c);for(var d=a.s.c;d<=a.e.c;++d){c===a.s.r&&(l[d]=kN(d)),s=l[d]+o;var p=r?(e[c]||[])[d]:e[s];p&&DF(t,p,c,d)}}}(i,t.Sheets[t.SheetNames[s]],0,n),IF(i,10),i.end()}function OF(t,e,n){IF(t,49,function(t,e){var n=t.name||"Arial",i=e&&5==e.biff,s=fN(i?15+n.length:16+2*n.length);return s.write_shift(2,20*(t.sz||12)),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,n.length),i||s.write_shift(1,1),s.write_shift((i?1:2)*n.length,n,i?"sbcs":"utf16le"),s}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function PF(t,e){if(e){var n=0;e.forEach(function(e,i){++n<=256&&e&&IF(t,125,function(t,e){var n=fN(12);n.write_shift(2,e),n.write_shift(2,e),n.write_shift(2,256*t.width),n.write_shift(2,0);var i=0;return t.hidden&&(i|=1),n.write_shift(1,i),i=t.level||0,n.write_shift(1,i),n.write_shift(2,0),n}(jL(i,e),i))})}}function NF(t,e,n,i,s){var r=16+BL(s.cellXfs,e,s);if(null!=e.v||e.bf)if(e.bf)IF(t,6,IL(e,n,i,0,r));else switch(e.t){case"d":case"n":IF(t,515,function(t,e,n,i){var s=fN(14);return GM(t,e,i,s),aM(n,s),s}(n,i,"d"==e.t?DO(FO(e.v)):e.v,r));break;case"b":case"e":IF(t,517,function(t,e,n,i,s,r){var a=fN(8);return GM(t,e,i,a),VM(n,r,a),a}(n,i,e.v,r,0,e.t));break;case"s":case"str":if(s.bookSST)IF(t,253,function(t,e,n,i){var s=fN(10);return GM(t,e,i,s),s.write_shift(4,n),s}(n,i,FL(s.Strings,e.v,s.revStrings),r));else IF(t,516,function(t,e,n,i,s){var r=!s||8==s.biff,a=fN(+r+8+(1+r)*n.length);return GM(t,e,i,a),a.write_shift(2,n.length),r&&a.write_shift(1,1),a.write_shift((1+r)*n.length,n,r?"utf16le":"sbcs"),a}(n,i,(e.v||"").slice(0,255),r,s));break;default:IF(t,513,GM(n,i,r))}else IF(t,513,GM(n,i,r))}function MF(t,e,n){var i,s,r,a=gN(),o=n.SheetNames[t],l=n.Sheets[o]||{},c=(n||{}).Workbook||{},d=(c.Sheets||[])[t]||{},p=Array.isArray(l),u=8==e.biff,h="",m=[],f=TN(l["!ref"]||"A1"),g=u?65536:16384;if(f.e.c>255||f.e.r>=g){if(e.WTF)throw new Error("Range "+(l["!ref"]||"A1")+" exceeds format limit A1:IV16384");f.e.c=Math.min(f.e.c,255),f.e.r=Math.min(f.e.c,g-1)}IF(a,2057,QM(0,16,e)),IF(a,13,jM(1)),IF(a,12,jM(100)),IF(a,15,LM(!0)),IF(a,17,LM(!1)),IF(a,16,aM(.001)),IF(a,95,LM(!0)),IF(a,42,LM(!1)),IF(a,43,LM(!1)),IF(a,130,jM(1)),IF(a,128,(s=[0,0],(r=fN(8)).write_shift(4,0),r.write_shift(2,s[0]?s[0]+1:0),r.write_shift(2,s[1]?s[1]+1:0),r)),IF(a,131,LM(!1)),IF(a,132,LM(!1)),u&&PF(a,l["!cols"]),IF(a,512,function(t,e){var n=8!=e.biff&&e.biff?2:4,i=fN(2*n+6);return i.write_shift(n,t.s.r),i.write_shift(n,t.e.r+1),i.write_shift(2,t.s.c),i.write_shift(2,t.e.c+1),i.write_shift(2,0),i}(f,e)),u&&(l["!links"]=[]);for(var b=f.s.r;b<=f.e.r;++b){h=CN(b);for(var v=f.s.c;v<=f.e.c;++v){b===f.s.r&&(m[v]=kN(v)),i=m[v]+h;var y=p?(l[b]||[])[v]:l[i];y&&(NF(a,y,b,v,e),u&&y.l&&l["!links"].push([i,y.l]))}}var _=d.CodeName||d.name||o;return u&&IF(a,574,function(t){var e=fN(18),n=1718;return t&&t.RTL&&(n|=64),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}((c.Views||[])[0])),u&&(l["!merges"]||[]).length&&IF(a,229,function(t){var e=fN(2+8*t.length);e.write_shift(2,t.length);for(var n=0;n<t.length;++n)XM(t[n],e);return e}(l["!merges"])),u&&function(t,e){for(var n=0;n<e["!links"].length;++n){var i=e["!links"][n];IF(t,440,iR(i)),i[1].Tooltip&&IF(t,2048,sR(i))}delete e["!links"]}(a,l),IF(a,442,$M(_)),u&&function(t,e){var n=fN(19);n.write_shift(4,2151),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,1),n.write_shift(4,0),IF(t,2151,n),(n=fN(39)).write_shift(4,2152),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,3),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(2,1),n.write_shift(4,4),n.write_shift(2,0),XM(TN(e["!ref"]||"A1"),n),n.write_shift(4,4),IF(t,2152,n)}(a,l),IF(a,10),a.end()}function RF(t,e,n){var i,s=gN(),r=(t||{}).Workbook||{},a=r.Sheets||[],o=r.WBProps||{},l=8==n.biff,c=5==n.biff;(IF(s,2057,QM(0,5,n)),"xla"==n.bookType&&IF(s,135),IF(s,225,l?jM(1200):null),IF(s,193,function(t,e){e||(e=fN(t));for(var n=0;n<t;++n)e.write_shift(1,0);return e}(2)),c&&IF(s,191),c&&IF(s,192),IF(s,226),IF(s,92,function(t,e){var n=!e||8==e.biff,i=fN(n?112:54);for(i.write_shift(8==e.biff?2:1,7),n&&i.write_shift(1,0),i.write_shift(4,859007059),i.write_shift(4,5458548|(n?0:536870912));i.l<i.length;)i.write_shift(1,n?0:32);return i}(0,n)),IF(s,66,jM(l?1200:1252)),l&&IF(s,353,jM(0)),l&&IF(s,448),IF(s,317,function(t){for(var e=fN(2*t),n=0;n<t;++n)e.write_shift(2,n+1);return e}(t.SheetNames.length)),l&&t.vbaraw&&IF(s,211),l&&t.vbaraw)&&IF(s,442,$M(o.CodeName||"ThisWorkbook"));IF(s,156,jM(17)),IF(s,25,LM(!1)),IF(s,18,LM(!1)),IF(s,19,jM(0)),l&&IF(s,431,LM(!1)),l&&IF(s,444,jM(0)),IF(s,61,((i=fN(18)).write_shift(2,0),i.write_shift(2,0),i.write_shift(2,29280),i.write_shift(2,17600),i.write_shift(2,56),i.write_shift(2,0),i.write_shift(2,0),i.write_shift(2,1),i.write_shift(2,500),i)),IF(s,64,LM(!1)),IF(s,141,jM(0)),IF(s,34,LM("true"==function(t){return t.Workbook&&t.Workbook.WBProps&&eP(t.Workbook.WBProps.date1904)?"true":"false"}(t))),IF(s,14,LM(!0)),l&&IF(s,439,LM(!1)),IF(s,218,jM(0)),OF(s,0,n),function(t,e,n){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var s=i[0];s<=i[1];++s)null!=e[s]&&IF(t,1054,tR(s,e[s],n))})}(s,t.SSF,n),function(t,e){for(var n=0;n<16;++n)IF(t,224,eR({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(n){IF(t,224,eR(n,0,e))})}(s,n),l&&IF(s,352,LM(!1));var d=s.end(),p=gN();l&&IF(p,140,function(t){return t||(t=fN(4)),t.write_shift(2,1),t.write_shift(2,1),t}()),l&&n.Strings&&function(t,e,n,i){var s=i||(n||[]).length||0;if(s<=8224)return IF(t,e,n,s);var r=e;if(!isNaN(r)){for(var a=n.parts||[],o=0,l=0,c=0;c+(a[o]||8224)<=8224;)c+=a[o]||8224,o++;var d=t.next(4);for(d.write_shift(2,r),d.write_shift(2,c),t.push(n.slice(l,l+c)),l+=c;l<s;){for((d=t.next(4)).write_shift(2,60),c=0;c+(a[o]||8224)<=8224;)c+=a[o]||8224,o++;d.write_shift(2,c),t.push(n.slice(l,l+c)),l+=c}}}(p,252,function(t,e){var n=fN(8);n.write_shift(4,t.Count),n.write_shift(4,t.Unique);for(var i=[],s=0;s<t.length;++s)i[s]=HM(t[s]);var r=ST([n].concat(i));return r.parts=[n.length].concat(i.map(function(t){return t.length})),r}(n.Strings)),IF(p,10);var u=p.end(),h=gN(),m=0,f=0;for(f=0;f<t.SheetNames.length;++f)m+=(l?12:11)+(l?2:1)*t.SheetNames[f].length;var g=d.length+m+u.length;for(f=0;f<t.SheetNames.length;++f){IF(h,133,JM({pos:g,hs:(a[f]||{}).Hidden||0,dt:0,name:t.SheetNames[f]},n)),g+=e[f].length}var b=h.end();if(m!=b.length)throw new Error("BS8 "+m+" != "+b.length);var v=[];return d.length&&v.push(d),b.length&&v.push(b),u.length&&v.push(u),ST(v)}function LF(t,e){for(var n=0;n<=t.SheetNames.length;++n){var i=t.Sheets[t.SheetNames[n]];if(i&&i["!ref"])AN(i["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+t.SheetNames[n]+"' extends beyond column IV (255).  Data may be lost.")}var s=e||{};switch(s.biff||2){case 8:case 5:return function(t,e){var n=e||{},i=[];t&&!t.SSF&&(t.SSF=VO(LT)),t&&t.SSF&&(bO(),gO(t.SSF),n.revssf=IO(t.SSF),n.revssf[t.SSF[65535]]=0,n.ssf=t.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,pj(n),n.cellXfs=[],BL(n.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var s=0;s<t.SheetNames.length;++s)i[i.length]=MF(s,n,t);return i.unshift(RF(t,i,n)),ST(i)}(t,e);case 4:case 3:case 2:return TF(t,e)}throw new Error("invalid type "+s.bookType+" for BIFF")}function FF(t,e,n,i){for(var s=t["!merges"]||[],r=[],a=e.s.c;a<=e.e.c;++a){for(var o=0,l=0,c=0;c<s.length;++c)if(!(s[c].s.r>n||s[c].s.c>a||s[c].e.r<n||s[c].e.c<a)){if(s[c].s.r<n||s[c].s.c<a){o=-1;break}o=s[c].e.r-s[c].s.r+1,l=s[c].e.c-s[c].s.c+1;break}if(!(o<0)){var d=IN({r:n,c:a}),p=i.dense?(t[n]||[])[a]:t[d],u=p&&null!=p.v&&(p.h||tP(p.w||(PN(p),p.w)||""))||"",h={};o>1&&(h.rowspan=o),l>1&&(h.colspan=l),i.editable?u='<span contenteditable="true">'+u+"</span>":p&&(h["data-t"]=p&&p.t||"z",null!=p.v&&(h["data-v"]=p.v),null!=p.z&&(h["data-z"]=p.z),p.l&&"#"!=(p.l.Target||"#").charAt(0)&&(u='<a href="'+p.l.Target+'">'+u+"</a>")),h.id=(i.id||"sjs")+"-"+d,r.push(uP("td",u,h))}}return"<tr>"+r.join("")+"</tr>"}var jF='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';function VF(t,e,n){return[].join("")+"<table"+(n&&n.id?' id="'+n.id+'"':"")+">"}function BF(t,e){var n=e||{},i=null!=n.header?n.header:jF,s=null!=n.footer?n.footer:"</body></html>",r=[i],a=AN(t["!ref"]);n.dense=Array.isArray(t),r.push(VF(0,0,n));for(var o=a.s.r;o<=a.e.r;++o)r.push(FF(t,a,o,n));return r.push("</table>"+s),r.join("")}function HF(t,e,n){var i=n||{};var s=0,r=0;if(null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var a="string"==typeof i.origin?EN(i.origin):i.origin;s=a.r,r=a.c}var o=e.getElementsByTagName("tr"),l=Math.min(i.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:s,c:r}};if(t["!ref"]){var d=AN(t["!ref"]);c.s.r=Math.min(c.s.r,d.s.r),c.s.c=Math.min(c.s.c,d.s.c),c.e.r=Math.max(c.e.r,d.e.r),c.e.c=Math.max(c.e.c,d.e.c),-1==s&&(c.e.r=s=d.e.r+1)}var p=[],u=0,h=t["!rows"]||(t["!rows"]=[]),m=0,f=0,g=0,b=0,v=0,y=0;for(t["!cols"]||(t["!cols"]=[]);m<o.length&&f<l;++m){var _=o[m];if(UF(_)){if(i.display)continue;h[f]={hidden:!0}}var w=_.children;for(g=b=0;g<w.length;++g){var x=w[g];if(!i.display||!UF(x)){var C=x.hasAttribute("data-v")?x.getAttribute("data-v"):x.hasAttribute("v")?x.getAttribute("v"):lP(x.innerHTML),S=x.getAttribute("data-z")||x.getAttribute("z");for(u=0;u<p.length;++u){var k=p[u];k.s.c==b+r&&k.s.r<f+s&&f+s<=k.e.r&&(b=k.e.c+1-r,u=-1)}y=+x.getAttribute("colspan")||1,((v=+x.getAttribute("rowspan")||1)>1||y>1)&&p.push({s:{r:f+s,c:b+r},e:{r:f+s+(v||1)-1,c:b+r+(y||1)-1}});var E={t:"s",v:C},I=x.getAttribute("data-t")||x.getAttribute("t")||"";null!=C&&(0==C.length?E.t=I||"z":i.raw||0==C.trim().length||"s"==I||("TRUE"===C?E={t:"b",v:!0}:"FALSE"===C?E={t:"b",v:!1}:isNaN(HO(C))?isNaN(UO(C).getDate())||(E={t:"d",v:FO(C)},i.cellDates||(E={t:"n",v:DO(E.v)}),E.z=i.dateNF||LT[14]):E={t:"n",v:HO(C)})),void 0===E.z&&null!=S&&(E.z=S);var A="",D=x.getElementsByTagName("A");if(D&&D.length)for(var T=0;T<D.length&&(!D[T].hasAttribute("href")||"#"==(A=D[T].getAttribute("href")).charAt(0));++T);A&&"#"!=A.charAt(0)&&(E.l={Target:A}),i.dense?(t[f+s]||(t[f+s]=[]),t[f+s][b+r]=E):t[IN({c:b+r,r:f+s})]=E,c.e.c<b+r&&(c.e.c=b+r),b+=y}}++f}return p.length&&(t["!merges"]=(t["!merges"]||[]).concat(p)),c.e.r=Math.max(c.e.r,f-1+s),t["!ref"]=DN(c),f>=l&&(t["!fullref"]=DN((c.e.r=o.length-m+f-1+s,c))),t}function zF(t,e){return HF((e||{}).dense?[]:{},t,e)}function UF(t){var e="",n=function(t){return t.ownerDocument.defaultView&&"function"==typeof t.ownerDocument.defaultView.getComputedStyle?t.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(t);return n&&(e=n(t).getPropertyValue("display")),e||(e=t.style&&t.style.display),"none"===e}var qF=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+pP({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return WO+e}}(),$F=function(){var t="          <table:table-cell />\n",e=function(e,n,i){var s=[];s.push('      <table:table table:name="'+XO(n.SheetNames[i])+'" table:style-name="ta1">\n');var r=0,a=0,o=AN(e["!ref"]||"A1"),l=e["!merges"]||[],c=0,d=Array.isArray(e);if(e["!cols"])for(a=0;a<=o.e.c;++a)s.push("        <table:table-column"+(e["!cols"][a]?' table:style-name="co'+e["!cols"][a].ods+'"':"")+"></table:table-column>\n");var p="",u=e["!rows"]||[];for(r=0;r<o.s.r;++r)p=u[r]?' table:style-name="ro'+u[r].ods+'"':"",s.push("        <table:table-row"+p+"></table:table-row>\n");for(;r<=o.e.r;++r){for(p=u[r]?' table:style-name="ro'+u[r].ods+'"':"",s.push("        <table:table-row"+p+">\n"),a=0;a<o.s.c;++a)s.push(t);for(;a<=o.e.c;++a){var h=!1,m={},f="";for(c=0;c!=l.length;++c)if(!(l[c].s.c>a||l[c].s.r>r||l[c].e.c<a||l[c].e.r<r)){l[c].s.c==a&&l[c].s.r==r||(h=!0),m["table:number-columns-spanned"]=l[c].e.c-l[c].s.c+1,m["table:number-rows-spanned"]=l[c].e.r-l[c].s.r+1;break}if(h)s.push("          <table:covered-table-cell/>\n");else{var g=IN({r,c:a}),b=d?(e[r]||[])[a]:e[g];if(b&&b.f&&(m["table:formula"]=XO(("of:="+b.f.replace(QR,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),b.F&&b.F.slice(0,g.length)==g)){var v=AN(b.F);m["table:number-matrix-columns-spanned"]=v.e.c-v.s.c+1,m["table:number-matrix-rows-spanned"]=v.e.r-v.s.r+1}if(b){switch(b.t){case"b":f=b.v?"TRUE":"FALSE",m["office:value-type"]="boolean",m["office:boolean-value"]=b.v?"true":"false";break;case"n":f=b.w||String(b.v||0),m["office:value-type"]="float",m["office:value"]=b.v||0;break;case"s":case"str":f=null==b.v?"":b.v,m["office:value-type"]="string";break;case"d":f=b.w||FO(b.v).toISOString(),m["office:value-type"]="date",m["office:date-value"]=FO(b.v).toISOString(),m["table:style-name"]="ce1";break;default:s.push(t);continue}var y=XO(f).replace(/  +/g,function(t){return'<text:s text:c="'+t.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(b.l&&b.l.Target){var _=b.l.Target;"#"==(_="#"==_.charAt(0)?"#"+_.slice(1).replace(/\./,"!"):_).charAt(0)||_.match(/^\w+:/)||(_="../"+_),y=uP("text:a",y,{"xlink:href":_.replace(/&/g,"&amp;")})}s.push("          "+uP("table:table-cell",uP("text:p",y,{}),m)+"\n")}else s.push(t)}}s.push("        </table:table-row>\n")}return s.push("      </table:table>\n"),s.join("")};return function(t,n){var i=[WO],s=pP({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),r=pP({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(i.push("<office:document"+s+r+">\n"),i.push(wM().replace(/office:document-meta/g,"office:meta"))):i.push("<office:document-content"+s+">\n"),function(t,e){t.push(" <office:automatic-styles>\n"),t.push('  <number:date-style style:name="N37" number:automatic-order="true">\n'),t.push('   <number:month number:style="long"/>\n'),t.push("   <number:text>/</number:text>\n"),t.push('   <number:day number:style="long"/>\n'),t.push("   <number:text>/</number:text>\n"),t.push("   <number:year/>\n"),t.push("  </number:date-style>\n");var n=0;e.SheetNames.map(function(t){return e.Sheets[t]}).forEach(function(e){if(e&&e["!cols"])for(var i=0;i<e["!cols"].length;++i)if(e["!cols"][i]){var s=e["!cols"][i];if(null==s.width&&null==s.wpx&&null==s.wch)continue;SR(s),s.ods=n;var r=e["!cols"][i].wpx+"px";t.push('  <style:style style:name="co'+n+'" style:family="table-column">\n'),t.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+r+'"/>\n'),t.push("  </style:style>\n"),++n}});var i=0;e.SheetNames.map(function(t){return e.Sheets[t]}).forEach(function(e){if(e&&e["!rows"])for(var n=0;n<e["!rows"].length;++n)if(e["!rows"][n]){e["!rows"][n].ods=i;var s=e["!rows"][n].hpx+"px";t.push('  <style:style style:name="ro'+i+'" style:family="table-row">\n'),t.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+s+'"/>\n'),t.push("  </style:style>\n"),++i}}),t.push('  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),t.push('   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),t.push("  </style:style>\n"),t.push('  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),t.push(" </office:automatic-styles>\n")}(i,t),i.push("  <office:body>\n"),i.push("    <office:spreadsheet>\n");for(var a=0;a!=t.SheetNames.length;++a)i.push(e(t.Sheets[t.SheetNames[a]],t,a));return i.push("    </office:spreadsheet>\n"),i.push("  </office:body>\n"),"fods"==n.bookType?i.push("</office:document>"):i.push("</office:document-content>"),i.join("")}}();function WF(t,e){if("fods"==e.bookType)return $F(t,e);var n=$O(),i="",s=[],r=[];return qO(n,i="mimetype","application/vnd.oasis.opendocument.spreadsheet"),qO(n,i="content.xml",$F(t,e)),s.push([i,"text/xml"]),r.push([i,"ContentFile"]),qO(n,i="styles.xml",qF(t,e)),s.push([i,"text/xml"]),r.push([i,"StylesFile"]),qO(n,i="meta.xml",WO+wM()),s.push([i,"text/xml"]),r.push([i,"MetadataFile"]),qO(n,i="manifest.rdf",function(t){var e,n,i=[WO];i.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var s=0;s!=t.length;++s)i.push(_M(t[s][0],t[s][1])),i.push((e="",n=t[s][0],['  <rdf:Description rdf:about="'+e+'">\n','    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+n+'"/>\n',"  </rdf:Description>\n"].join("")));return i.push(_M("","Document","pkg")),i.push("</rdf:RDF>"),i.join("")}(r)),s.push([i,"application/rdf+xml"]),qO(n,i="META-INF/manifest.xml",function(t){var e=[WO];e.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),e.push('  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var n=0;n<t.length;++n)e.push('  <manifest:file-entry manifest:full-path="'+t[n][0]+'" manifest:media-type="'+t[n][1]+'"/>\n');return e.push("</manifest:manifest>"),e.join("")}(s)),n}function YF(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function GF(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):wT(oP(t))}function KF(t){var e=t.reduce(function(t,e){return t+e.length},0),n=new Uint8Array(e),i=0;return t.forEach(function(t){n.set(t,i),i+=t.length}),n}function ZF(t,e){var n=e?e[0]:0,i=127&t[n];t:if(t[n++]>=128){if(i|=(127&t[n])<<7,t[n++]<128)break t;if(i|=(127&t[n])<<14,t[n++]<128)break t;if(i|=(127&t[n])<<21,t[n++]<128)break t;if(i+=(127&t[n])*Math.pow(2,28),++n,t[n++]<128)break t;if(i+=(127&t[n])*Math.pow(2,35),++n,t[n++]<128)break t;if(i+=(127&t[n])*Math.pow(2,42),++n,t[n++]<128)break t}return e&&(e[0]=n),i}function XF(t){var e=new Uint8Array(7);e[0]=127&t;var n=1;t:if(t>127){if(e[n-1]|=128,e[n]=t>>7&127,++n,t<=16383)break t;if(e[n-1]|=128,e[n]=t>>14&127,++n,t<=2097151)break t;if(e[n-1]|=128,e[n]=t>>21&127,++n,t<=268435455)break t;if(e[n-1]|=128,e[n]=t/256>>>21&127,++n,t<=34359738367)break t;if(e[n-1]|=128,e[n]=t/65536>>>21&127,++n,t<=4398046511103)break t;e[n-1]|=128,e[n]=t/16777216>>>21&127,++n}return e.slice(0,n)}function QF(t){var e=0,n=127&t[e];t:if(t[e++]>=128){if(n|=(127&t[e])<<7,t[e++]<128)break t;if(n|=(127&t[e])<<14,t[e++]<128)break t;if(n|=(127&t[e])<<21,t[e++]<128)break t;n|=(127&t[e])<<28}return n}function JF(t){for(var e=[],n=[0];n[0]<t.length;){var i,s=n[0],r=ZF(t,n),a=7&r,o=0;if(0==(r=Math.floor(r/8)))break;switch(a){case 0:for(var l=n[0];t[n[0]++]>=128;);i=t.slice(l,n[0]);break;case 5:o=4,i=t.slice(n[0],n[0]+o),n[0]+=o;break;case 1:o=8,i=t.slice(n[0],n[0]+o),n[0]+=o;break;case 2:o=ZF(t,n),i=t.slice(n[0],n[0]+o),n[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(r," at offset ").concat(s))}var c={data:i,type:a};null==e[r]?e[r]=[c]:e[r].push(c)}return e}function tj(t){var e=[];return t.forEach(function(t,n){t.forEach(function(t){t.data&&(e.push(XF(8*n+t.type)),2==t.type&&e.push(XF(t.data.length)),e.push(t.data))})}),KF(e)}function ej(t){for(var e,n=[],i=[0];i[0]<t.length;){var s=ZF(t,i),r=JF(t.slice(i[0],i[0]+s));i[0]+=s;var a={id:QF(r[1][0].data),messages:[]};r[2].forEach(function(e){var n=JF(e.data),s=QF(n[3][0].data);a.messages.push({meta:n,data:t.slice(i[0],i[0]+s)}),i[0]+=s}),(null==(e=r[3])?void 0:e[0])&&(a.merge=QF(r[3][0].data)>>>0>0),n.push(a)}return n}function nj(t){var e=[];return t.forEach(function(t){var n=[];n[1]=[{data:XF(t.id),type:0}],n[2]=[],null!=t.merge&&(n[3]=[{data:XF(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(t){i.push(t.data),t.meta[3]=[{type:0,data:XF(t.data.length)}],n[2].push({data:tj(t.meta),type:2})});var s=tj(n);e.push(XF(s.length)),e.push(s),i.forEach(function(t){return e.push(t)})}),KF(e)}function ij(t,e){if(0!=t)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var n=[0],i=ZF(e,n),s=[];n[0]<e.length;){var r=3&e[n[0]];if(0!=r){var a=0,o=0;if(1==r?(o=4+(e[n[0]]>>2&7),a=(224&e[n[0]++])<<3,a|=e[n[0]++]):(o=1+(e[n[0]++]>>2),2==r?(a=e[n[0]]|e[n[0]+1]<<8,n[0]+=2):(a=(e[n[0]]|e[n[0]+1]<<8|e[n[0]+2]<<16|e[n[0]+3]<<24)>>>0,n[0]+=4)),s=[KF(s)],0==a)throw new Error("Invalid offset 0");if(a>s[0].length)throw new Error("Invalid offset beyond length");if(o>=a)for(s.push(s[0].slice(-a)),o-=a;o>=s[s.length-1].length;)s.push(s[s.length-1]),o-=s[s.length-1].length;s.push(s[0].slice(-a,-a+o))}else{var l=e[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=e[n[0]],c>1&&(l|=e[n[0]+1]<<8),c>2&&(l|=e[n[0]+2]<<16),c>3&&(l|=e[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}s.push(e.slice(n[0],n[0]+l)),n[0]+=l}}var d=KF(s);if(d.length!=i)throw new Error("Unexpected length: ".concat(d.length," != ").concat(i));return d}function sj(t){for(var e=[],n=0;n<t.length;){var i=t[n++],s=t[n]|t[n+1]<<8|t[n+2]<<16;n+=3,e.push(ij(i,t.slice(n,n+s))),n+=s}if(n!==t.length)throw new Error("data is not a valid framed stream!");return KF(e)}function rj(t){for(var e=[],n=0;n<t.length;){var i=Math.min(t.length-n,268435455),s=new Uint8Array(4);e.push(s);var r=XF(i),a=r.length;e.push(r),i<=60?(a++,e.push(new Uint8Array([i-1<<2]))):i<=256?(a+=2,e.push(new Uint8Array([240,i-1&255]))):i<=65536?(a+=3,e.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(a+=4,e.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(a+=5,e.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),e.push(t.slice(n,n+i)),a+=i,s[0]=0,s[1]=255&a,s[2]=a>>8&255,s[3]=a>>16&255,n+=i}return KF(e)}function aj(t,e){var n=new Uint8Array(32),i=YF(n),s=12,r=0;switch(n[0]=5,t.t){case"n":n[1]=2,function(t,e,n){var i=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,s=n/Math.pow(10,i-6176);t[e+15]|=i>>7,t[e+14]|=(127&i)<<1;for(var r=0;s>=1;++r,s/=256)t[e+r]=255&s;t[e+15]|=n>=0?0:128}(n,s,t.v),r|=1,s+=16;break;case"b":n[1]=6,i.setFloat64(s,t.v?1:0,!0),r|=2,s+=8;break;case"s":if(-1==e.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));n[1]=3,i.setUint32(s,e.indexOf(t.v),!0),r|=8,s+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(8,r,!0),n.slice(0,s)}function oj(t,e){var n=new Uint8Array(32),i=YF(n),s=12,r=0;switch(n[0]=3,t.t){case"n":n[2]=2,i.setFloat64(s,t.v,!0),r|=32,s+=8;break;case"b":n[2]=6,i.setFloat64(s,t.v?1:0,!0),r|=32,s+=8;break;case"s":if(-1==e.indexOf(t.v))throw new Error("Value ".concat(t.v," missing from SST!"));n[2]=3,i.setUint32(s,e.indexOf(t.v),!0),r|=16,s+=4;break;default:throw"unsupported cell type "+t.t}return i.setUint32(4,r,!0),n.slice(0,s)}function lj(t){return ZF(JF(t)[1][0].data)}function cj(t,e,n){var i,s,r,a;if(!(null==(i=t[6])?void 0:i[0])||!(null==(s=t[7])?void 0:s[0]))throw"Mutation only works on post-BNC storages!";if((null==(a=null==(r=t[8])?void 0:r[0])?void 0:a.data)&&QF(t[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var o=0,l=YF(t[7][0].data),c=0,d=[],p=YF(t[4][0].data),u=0,h=[],m=0;m<e.length;++m)if(null!=e[m]){var f,g;switch(l.setUint16(2*m,c,!0),p.setUint16(2*m,u,!0),typeof e[m]){case"string":f=aj({t:"s",v:e[m]},n),g=oj({t:"s",v:e[m]},n);break;case"number":f=aj({t:"n",v:e[m]},n),g=oj({t:"n",v:e[m]},n);break;case"boolean":f=aj({t:"b",v:e[m]},n),g=oj({t:"b",v:e[m]},n);break;default:throw new Error("Unsupported value "+e[m])}d.push(f),c+=f.length,h.push(g),u+=g.length,++o}else l.setUint16(2*m,65535,!0),p.setUint16(2*m,65535);for(t[2][0].data=XF(o);m<t[7][0].data.length/2;++m)l.setUint16(2*m,65535,!0),p.setUint16(2*m,65535,!0);return t[6][0].data=KF(d),t[3][0].data=KF(h),o}function dj(t){return function(e){for(var n=0;n!=t.length;++n){var i=t[n];void 0===e[i[0]]&&(e[i[0]]=i[1]),"n"===i[2]&&(e[i[0]]=Number(e[i[0]]))}}}function pj(t){dj([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function uj(t,e){return"ods"==e.bookType?WF(t,e):"numbers"==e.bookType?function(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var n=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=AN(n["!ref"]);i.s.r=i.s.c=0;var s=!1;i.e.c>9&&(s=!0,i.e.c=9),i.e.r>49&&(s=!0,i.e.r=49),s&&console.error("The Numbers writer is currently limited to ".concat(DN(i)));var r=Cj(n,{range:i,header:1}),a=["~Sh33tJ5~"];r.forEach(function(t){return t.forEach(function(t){"string"==typeof t&&a.push(t)})});var o={},l=[],c=_O.read(e.numbers,{type:"base64"});c.FileIndex.map(function(t,e){return[t,c.FullPaths[e]]}).forEach(function(t){var e=t[0],n=t[1];2==e.type&&e.name.match(/\.iwa/)&&ej(sj(e.content)).forEach(function(t){l.push(t.id),o[t.id]={deps:[],location:n,type:QF(t.messages[0].meta[1][0].data)}})}),l.sort(function(t,e){return t-e});var d=l.filter(function(t){return t>1}).map(function(t){return[t,XF(t)]});c.FileIndex.map(function(t,e){return[t,c.FullPaths[e]]}).forEach(function(t){var e=t[0];t[1],e.name.match(/\.iwa/)&&ej(sj(e.content)).forEach(function(t){t.messages.forEach(function(e){d.forEach(function(e){t.messages.some(function(t){return 11006!=QF(t.meta[1][0].data)&&function(t,e){t:for(var n=0;n<=t.length-e.length;++n){for(var i=0;i<e.length;++i)if(t[n+i]!=e[i])continue t;return!0}return!1}(t.data,e[1])})&&o[e[0]].deps.push(t.id)})})})});for(var p,u=_O.find(c,o[1].location),h=ej(sj(u.content)),m=0;m<h.length;++m){var f=h[m];1==f.id&&(p=f)}var g=lj(JF(p.messages[0].data)[1][0].data);for(h=ej(sj((u=_O.find(c,o[g].location)).content)),m=0;m<h.length;++m)(f=h[m]).id==g&&(p=f);for(g=lj(JF(p.messages[0].data)[2][0].data),h=ej(sj((u=_O.find(c,o[g].location)).content)),m=0;m<h.length;++m)(f=h[m]).id==g&&(p=f);for(g=lj(JF(p.messages[0].data)[2][0].data),h=ej(sj((u=_O.find(c,o[g].location)).content)),m=0;m<h.length;++m)(f=h[m]).id==g&&(p=f);var b=JF(p.messages[0].data);b[6][0].data=XF(i.e.r+1),b[7][0].data=XF(i.e.c+1);for(var v=lj(b[46][0].data),y=_O.find(c,o[v].location),_=ej(sj(y.content)),w=0;w<_.length&&_[w].id!=v;++w);if(_[w].id!=v)throw"Bad ColumnRowUIDMapArchive";var x=JF(_[w].messages[0].data);x[1]=[],x[2]=[],x[3]=[];for(var C=0;C<=i.e.c;++C){var S=[];S[1]=S[2]=[{type:0,data:XF(C+420690)}],x[1].push({type:2,data:tj(S)}),x[2].push({type:0,data:XF(C)}),x[3].push({type:0,data:XF(C)})}x[4]=[],x[5]=[],x[6]=[];for(var k=0;k<=i.e.r;++k)(S=[])[1]=S[2]=[{type:0,data:XF(k+726270)}],x[4].push({type:2,data:tj(S)}),x[5].push({type:0,data:XF(k)}),x[6].push({type:0,data:XF(k)});_[w].messages[0].data=tj(x),y.content=rj(nj(_)),y.size=y.content.length,delete b[46];var E=JF(b[4][0].data);E[7][0].data=XF(i.e.r+1);var I=lj(JF(E[1][0].data)[2][0].data);if((_=ej(sj((y=_O.find(c,o[I].location)).content)))[0].id!=I)throw"Bad HeaderStorageBucket";var A=JF(_[0].messages[0].data);for(k=0;k<r.length;++k){var D=JF(A[2][0].data);D[1][0].data=XF(k),D[4][0].data=XF(r[k].length),A[2][k]={type:A[2][0].type,data:tj(D)}}_[0].messages[0].data=tj(A),y.content=rj(nj(_)),y.size=y.content.length;var T=lj(E[2][0].data);if((_=ej(sj((y=_O.find(c,o[T].location)).content)))[0].id!=T)throw"Bad HeaderStorageBucket";for(A=JF(_[0].messages[0].data),C=0;C<=i.e.c;++C)(D=JF(A[2][0].data))[1][0].data=XF(C),D[4][0].data=XF(i.e.r+1),A[2][C]={type:A[2][0].type,data:tj(D)};_[0].messages[0].data=tj(A),y.content=rj(nj(_)),y.size=y.content.length;var O=lj(E[4][0].data);!function(){for(var t,e=_O.find(c,o[O].location),n=ej(sj(e.content)),i=0;i<n.length;++i){var s=n[i];s.id==O&&(t=s)}var r=JF(t.messages[0].data);r[3]=[];var l=[];a.forEach(function(t,e){l[1]=[{type:0,data:XF(e)}],l[2]=[{type:0,data:XF(1)}],l[3]=[{type:2,data:GF(t)}],r[3].push({type:2,data:tj(l)})}),t.messages[0].data=tj(r);var d=rj(nj(n));e.content=d,e.size=e.content.length}();var P=JF(E[3][0].data),N=P[1][0];delete P[2];var M=JF(N.data),R=lj(M[2][0].data);!function(){for(var t,e=_O.find(c,o[R].location),n=ej(sj(e.content)),s=0;s<n.length;++s){var l=n[s];l.id==R&&(t=l)}var d=JF(t.messages[0].data);delete d[6],delete P[7];var p=new Uint8Array(d[5][0].data);d[5]=[];for(var u=0,h=0;h<=i.e.r;++h){var m=JF(p);u+=cj(m,r[h],a),m[1][0].data=XF(h),d[5].push({data:tj(m),type:2})}d[1]=[{type:0,data:XF(i.e.c+1)}],d[2]=[{type:0,data:XF(i.e.r+1)}],d[3]=[{type:0,data:XF(u)}],d[4]=[{type:0,data:XF(i.e.r+1)}],t.messages[0].data=tj(d);var f=rj(nj(n));e.content=f,e.size=e.content.length}(),N.data=tj(M),E[3][0].data=tj(P),b[4][0].data=tj(E),p.messages[0].data=tj(b);var L=rj(nj(h));return u.content=L,u.size=u.content.length,c}(t,e):"xlsb"==e.bookType?function(t,e){qR=1024,t&&!t.SSF&&(t.SSF=VO(LT));t&&t.SSF&&(bO(),gO(t.SSF),e.revssf=IO(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF);e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,LL?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n="xlsb"==e.bookType?"bin":"xml",i=ZR.indexOf(e.bookType)>-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};pj(e=e||{});var r=$O(),a="",o=0;e.cellXfs=[],BL(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});if(qO(r,a="docProps/core.xml",SM(t.Props,e)),s.coreprops.push(a),yM(e.rels,2,a,gM.CORE_PROPS),a="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var l=[],c=0;c<t.SheetNames.length;++c)2!=(t.Workbook.Sheets[c]||{}).Hidden&&l.push(t.SheetNames[c]);t.Props.SheetNames=l}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,qO(r,a,IM(t.Props)),s.extprops.push(a),yM(e.rels,3,a,gM.EXT_PROPS),t.Custprops!==t.Props&&SO(t.Custprops||{}).length>0&&(qO(r,a="docProps/custom.xml",AM(t.Custprops)),s.custprops.push(a),yM(e.rels,4,a,gM.CUST_PROPS));for(o=1;o<=t.SheetNames.length;++o){var d={"!id":{}},p=t.Sheets[t.SheetNames[o-1]];switch((p||{})["!type"]||"sheet"){case"chart":default:qO(r,a="xl/worksheets/sheet"+o+"."+n,mF(o-1,a,e,t,d)),s.sheets.push(a),yM(e.wbrels,-1,"worksheets/sheet"+o+"."+n,gM.WS[0])}if(p){var u=p["!comments"],h=!1,m="";u&&u.length>0&&(qO(r,m="xl/comments"+o+"."+n,fF(u,m,e)),s.comments.push(m),yM(d,-1,"../comments"+o+"."+n,gM.CMNT),h=!0),p["!legacy"]&&h&&qO(r,"xl/drawings/vmlDrawing"+o+".vml",$R(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&qO(r,bM(a),vM(d))}null!=e.Strings&&e.Strings.length>0&&(qO(r,a="xl/sharedStrings."+n,function(t,e,n){return(".bin"===e.slice(-4)?fR:hR)(t,n)}(e.Strings,a,e)),s.strs.push(a),yM(e.wbrels,-1,"sharedStrings."+n,gM.SST));qO(r,a="xl/workbook."+n,function(t,e,n){return(".bin"===e.slice(-4)?hF:pF)(t,n)}(t,a,e)),s.workbooks.push(a),yM(e.rels,1,a,gM.WB),qO(r,a="xl/theme/theme1.xml",HR(t.Themes,e)),s.themes.push(a),yM(e.wbrels,-1,"theme/theme1.xml",gM.THEME),qO(r,a="xl/styles."+n,function(t,e,n){return(".bin"===e.slice(-4)?BR:IR)(t,n)}(t,a,e)),s.styles.push(a),yM(e.wbrels,-1,"styles."+n,gM.STY),t.vbaraw&&i&&(qO(r,a="xl/vbaProject.bin",t.vbaraw),s.vba.push(a),yM(e.wbrels,-1,"vbaProject.bin",gM.VBA));return qO(r,a="xl/metadata."+n,function(t){return(".bin"===t.slice(-4)?zR:UR)()}(a)),s.metadata.push(a),yM(e.wbrels,-1,"metadata."+n,gM.XLMETA),qO(r,"[Content_Types].xml",fM(s,e)),qO(r,"_rels/.rels",vM(e.rels)),qO(r,"xl/_rels/workbook."+n+".rels",vM(e.wbrels)),delete e.revssf,delete e.ssf,r}(t,e):hj(t,e)}function hj(t,e){qR=1024,t&&!t.SSF&&(t.SSF=VO(LT)),t&&t.SSF&&(bO(),gO(t.SSF),e.revssf=IO(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,LL?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var n=ZR.indexOf(e.bookType)>-1,i={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};pj(e=e||{});var s=$O(),r="",a=0;if(e.cellXfs=[],BL(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),qO(s,r="docProps/core.xml",SM(t.Props,e)),i.coreprops.push(r),yM(e.rels,2,r,gM.CORE_PROPS),r="docProps/app.xml",t.Props&&t.Props.SheetNames);else if(t.Workbook&&t.Workbook.Sheets){for(var o=[],l=0;l<t.SheetNames.length;++l)2!=(t.Workbook.Sheets[l]||{}).Hidden&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}else t.Props.SheetNames=t.SheetNames;t.Props.Worksheets=t.Props.SheetNames.length,qO(s,r,IM(t.Props)),i.extprops.push(r),yM(e.rels,3,r,gM.EXT_PROPS),t.Custprops!==t.Props&&SO(t.Custprops||{}).length>0&&(qO(s,r="docProps/custom.xml",AM(t.Custprops)),i.custprops.push(r),yM(e.rels,4,r,gM.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,a=1;a<=t.SheetNames.length;++a){var d={"!id":{}},p=t.Sheets[t.SheetNames[a-1]];switch((p||{})["!type"]||"sheet"){case"chart":default:qO(s,r="xl/worksheets/sheet"+a+".xml",$L(a-1,e,t,d)),i.sheets.push(r),yM(e.wbrels,-1,"worksheets/sheet"+a+".xml",gM.WS[0])}if(p){var u=p["!comments"],h=!1,m="";if(u&&u.length>0){var f=!1;u.forEach(function(t){t[1].forEach(function(t){1==t.T&&(f=!0)})}),f&&(qO(s,m="xl/threadedComments/threadedComment"+a+".xml",YR(u,c,e)),i.threadedcomments.push(m),yM(d,-1,"../threadedComments/threadedComment"+a+".xml",gM.TCMNT)),qO(s,m="xl/comments"+a+".xml",WR(u)),i.comments.push(m),yM(d,-1,"../comments"+a+".xml",gM.CMNT),h=!0}p["!legacy"]&&h&&qO(s,"xl/drawings/vmlDrawing"+a+".vml",$R(a,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&qO(s,bM(r),vM(d))}return null!=e.Strings&&e.Strings.length>0&&(qO(s,r="xl/sharedStrings.xml",hR(e.Strings,e)),i.strs.push(r),yM(e.wbrels,-1,"sharedStrings.xml",gM.SST)),qO(s,r="xl/workbook.xml",pF(t)),i.workbooks.push(r),yM(e.rels,1,r,gM.WB),qO(s,r="xl/theme/theme1.xml",HR(t.Themes,e)),i.themes.push(r),yM(e.wbrels,-1,"theme/theme1.xml",gM.THEME),qO(s,r="xl/styles.xml",IR(t,e)),i.styles.push(r),yM(e.wbrels,-1,"styles.xml",gM.STY),t.vbaraw&&n&&(qO(s,r="xl/vbaProject.bin",t.vbaraw),i.vba.push(r),yM(e.wbrels,-1,"vbaProject.bin",gM.VBA)),qO(s,r="xl/metadata.xml",UR()),i.metadata.push(r),yM(e.wbrels,-1,"metadata.xml",gM.XLMETA),c.length>1&&(qO(s,r="xl/persons/person.xml",function(t){var e=[WO,uP("personList",null,{xmlns:yP,"xmlns:x":IP[0]}).replace(/[\/]>/,">")];return t.forEach(function(t,n){e.push(uP("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),e.push("</personList>"),e.join("")}(c)),i.people.push(r),yM(e.wbrels,-1,"persons/person.xml",gM.PEOPLE)),qO(s,"[Content_Types].xml",fM(i,e)),qO(s,"_rels/.rels",vM(e.rels)),qO(s,"xl/_rels/workbook.xml.rels",vM(e.wbrels)),delete e.revssf,delete e.ssf,s}function mj(t,e){var n="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":n=gT(t.slice(0,12));break;case"binary":n=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function fj(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return CO(e.file,_O.write(t,{type:bT?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return _O.write(t,e)}function gj(t,e){var n={},i=bT?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(e.compression&&(n.compression="DEFLATE"),e.password)n.type=i;else switch(e.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":n.type=i;break;default:throw new Error("Unrecognized type "+e.type)}var s=t.FullPaths?_O.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!e.compression}):t.generate(n);if("undefined"!=typeof Deno&&"string"==typeof s){if("binary"==e.type||"base64"==e.type)return s;s=new Uint8Array(xT(s))}return e.password&&"undefined"!=typeof encrypt_agile?fj(encrypt_agile(s,e.password),e):"file"===e.type?CO(e.file,s):"string"==e.type?aP(s):s}function bj(t,e,n){n||(n="");var i=n+t;switch(e.type){case"base64":return fT(oP(i));case"binary":return oP(i);case"string":return t;case"file":return CO(e.file,i,"utf8");case"buffer":return bT?vT(i,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(i):bj(i,{type:"binary"}).split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function vj(t,e){switch(e.type){case"string":case"base64":case"binary":for(var n="",i=0;i<t.length;++i)n+=String.fromCharCode(t[i]);return"base64"==e.type?fT(n):"string"==e.type?aP(n):n;case"file":return CO(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function yj(t,e){cT(),dF(t);var n=VO(e||{});if(n.cellStyles&&(n.cellNF=!0,n.sheetStubs=!0),"array"==n.type){n.type="binary";var i=yj(t,n);return n.type="array",xT(i)}var s=0;if(n.sheet&&(s="number"==typeof n.sheet?n.sheet:t.SheetNames.indexOf(n.sheet),!t.SheetNames[s]))throw new Error("Sheet not found: "+n.sheet+" : "+typeof n.sheet);switch(n.bookType||"xlsb"){case"xml":case"xlml":return bj(wF(t,n),n);case"slk":case"sylk":return bj(oR.from_sheet(t.Sheets[t.SheetNames[s]],n),n);case"htm":case"html":return bj(BF(t.Sheets[t.SheetNames[s]],n),n);case"txt":return function(t,e){switch(e.type){case"base64":return fT(t);case"binary":case"string":return t;case"file":return CO(e.file,t,"binary");case"buffer":return bT?vT(t,"binary"):t.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}(Ij(t.Sheets[t.SheetNames[s]],n),n);case"csv":return bj(Ej(t.Sheets[t.SheetNames[s]],n),n,"\ufeff");case"dif":return bj(lR.from_sheet(t.Sheets[t.SheetNames[s]],n),n);case"dbf":return vj(aR.from_sheet(t.Sheets[t.SheetNames[s]],n),n);case"prn":return bj(dR.from_sheet(t.Sheets[t.SheetNames[s]],n),n);case"rtf":return bj(vR.from_sheet(t.Sheets[t.SheetNames[s]],n),n);case"eth":return bj(cR.from_sheet(t.Sheets[t.SheetNames[s]],n),n);case"fods":return bj(WF(t,n),n);case"wk1":return vj(pR.sheet_to_wk1(t.Sheets[t.SheetNames[s]],n),n);case"wk3":return vj(pR.book_to_wk3(t,n),n);case"biff2":n.biff||(n.biff=2);case"biff3":n.biff||(n.biff=3);case"biff4":return n.biff||(n.biff=4),vj(LF(t,n),n);case"biff5":n.biff||(n.biff=5);case"biff8":case"xla":case"xls":return n.biff||(n.biff=8),function(t,e){var n=e||{};return fj(kF(t,n),n)}(t,n);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(t,e){var n=VO(e||{});return gj(uj(t,n),n)}(t,n);default:throw new Error("Unrecognized bookType |"+n.bookType+"|")}}function _j(t){if(!t.bookType){var e=t.file.slice(t.file.lastIndexOf(".")).toLowerCase();e.match(/^\.[a-z]+$/)&&(t.bookType=e.slice(1)),t.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[t.bookType]||t.bookType}}function wj(t,e,n){var i=n||{};return i.type="file",i.file=e,_j(i),yj(t,i)}function xj(t,e,n,i,s,r,a,o){var l=CN(n),c=o.defval,d=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),p=!0,u=1===s?[]:{};if(1!==s)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:n,enumerable:!1})}catch(TH){u.__rowNum__=n}else u.__rowNum__=n;if(!a||t[n])for(var h=e.s.c;h<=e.e.c;++h){var m=a?t[n][h]:t[i[h]+l];if(void 0!==m&&void 0!==m.t){var f=m.v;switch(m.t){case"z":if(null==f)break;continue;case"e":f=0==f?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(null!=r[h]){if(null==f)if("e"==m.t&&null===f)u[r[h]]=null;else if(void 0!==c)u[r[h]]=c;else{if(!d||null!==f)continue;u[r[h]]=null}else u[r[h]]=d&&("n"!==m.t||"n"===m.t&&!1!==o.rawNumbers)?f:PN(m,f,o);null!=f&&(p=!1)}}else{if(void 0===c)continue;null!=r[h]&&(u[r[h]]=c)}}return{row:u,isempty:p}}function Cj(t,e){if(null==t||null==t["!ref"])return[];var n={t:"n",v:0},i=0,s=1,r=[],a=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},d=null!=c.range?c.range:t["!ref"];switch(1===c.header?i=1:"A"===c.header?i=2:Array.isArray(c.header)?i=3:null==c.header&&(i=0),typeof d){case"string":l=TN(d);break;case"number":(l=TN(t["!ref"])).s.r=d;break;default:l=d}i>0&&(s=0);var p=CN(l.s.r),u=[],h=[],m=0,f=0,g=Array.isArray(t),b=l.s.r,v=0,y={};g&&!t[b]&&(t[b]=[]);var _=c.skipHidden&&t["!cols"]||[],w=c.skipHidden&&t["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(_[v]||{}).hidden)switch(u[v]=kN(v),n=g?t[b][v]:t[u[v]+p],i){case 1:r[v]=v-l.s.c;break;case 2:r[v]=u[v];break;case 3:r[v]=c.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),o=a=PN(n,null,c),f=y[a]||0){do{o=a+"_"+f++}while(y[o]);y[a]=f,y[o]=1}else y[a]=1;r[v]=o}for(b=l.s.r+s;b<=l.e.r;++b)if(!(w[b]||{}).hidden){var x=xj(t,l,b,u,i,r,g,c);(!1===x.isempty||(1===i?!1!==c.blankrows:c.blankrows))&&(h[m++]=x.row)}return h.length=m,h}var Sj=/"/g;function kj(t,e,n,i,s,r,a,o){for(var l=!0,c=[],d="",p=CN(n),u=e.s.c;u<=e.e.c;++u)if(i[u]){var h=o.dense?(t[n]||[])[u]:t[i[u]+p];if(null==h)d="";else if(null!=h.v){l=!1,d=""+(o.rawNumbers&&"n"==h.t?h.v:PN(h,null,o));for(var m=0,f=0;m!==d.length;++m)if((f=d.charCodeAt(m))===s||f===r||34===f||o.forceQuotes){d='"'+d.replace(Sj,'""')+'"';break}"ID"==d&&(d='"ID"')}else null==h.f||h.F?d="":(l=!1,(d="="+h.f).indexOf(",")>=0&&(d='"'+d.replace(Sj,'""')+'"'));c.push(d)}return!1===o.blankrows&&l?null:c.join(a)}function Ej(t,e){var n=[],i=null==e?{}:e;if(null==t||null==t["!ref"])return"";var s=TN(t["!ref"]),r=void 0!==i.FS?i.FS:",",a=r.charCodeAt(0),o=void 0!==i.RS?i.RS:"\n",l=o.charCodeAt(0),c=new RegExp(("|"==r?"\\|":r)+"+$"),d="",p=[];i.dense=Array.isArray(t);for(var u=i.skipHidden&&t["!cols"]||[],h=i.skipHidden&&t["!rows"]||[],m=s.s.c;m<=s.e.c;++m)(u[m]||{}).hidden||(p[m]=kN(m));for(var f=0,g=s.s.r;g<=s.e.r;++g)(h[g]||{}).hidden||null!=(d=kj(t,s,g,p,a,l,r,i))&&(i.strip&&(d=d.replace(c,"")),(d||!1!==i.blankrows)&&n.push((f++?o:"")+d));return delete i.dense,n.join("")}function Ij(t,e){e||(e={}),e.FS="\t",e.RS="\n";var n=Ej(t,e);if(void 0===pT||"string"==e.type)return n;var i=pT.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+i}function Aj(t,e,n){var i,s=n||{},r=+!s.skipHeader,a=t||{},o=0,l=0;if(a&&null!=s.origin)if("number"==typeof s.origin)o=s.origin;else{var c="string"==typeof s.origin?EN(s.origin):s.origin;o=c.r,l=c.c}var d={s:{c:0,r:0},e:{c:l,r:o+e.length-1+r}};if(a["!ref"]){var p=TN(a["!ref"]);d.e.c=Math.max(d.e.c,p.e.c),d.e.r=Math.max(d.e.r,p.e.r),-1==o&&(o=p.e.r+1,d.e.r=o+e.length-1+r)}else-1==o&&(o=0,d.e.r=e.length-1+r);var u=s.header||[],h=0;e.forEach(function(t,e){SO(t).forEach(function(n){-1==(h=u.indexOf(n))&&(u[h=u.length]=n);var c=t[n],d="z",p="",m=IN({c:l+h,r:o+e+r});i=Dj(a,m),!c||"object"!=typeof c||c instanceof Date?("number"==typeof c?d="n":"boolean"==typeof c?d="b":"string"==typeof c?d="s":c instanceof Date?(d="d",s.cellDates||(d="n",c=DO(c)),p=s.dateNF||LT[14]):null===c&&s.nullError&&(d="e",c=0),i?(i.t=d,i.v=c,delete i.w,delete i.R,p&&(i.z=p)):a[m]=i={t:d,v:c},p&&(i.z=p)):a[m]=c})}),d.e.c=Math.max(d.e.c,l+u.length-1);var m=CN(o);if(r)for(h=0;h<u.length;++h)a[kN(h+l)+m]={t:"s",v:u[h]};return a["!ref"]=DN(d),a}function Dj(t,e,n){if("string"==typeof e){if(Array.isArray(t)){var i=EN(e);return t[i.r]||(t[i.r]=[]),t[i.r][i.c]||(t[i.r][i.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return Dj(t,IN("number"!=typeof e?e:{r:e,c:n||0}))}function Tj(){return{SheetNames:[],Sheets:{}}}function Oj(t,e,n,i){var s=1;if(!n)for(;s<=65535&&-1!=t.SheetNames.indexOf(n="Sheet"+s);++s,n=void 0);if(!n||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&t.SheetNames.indexOf(n)>=0){var r=n.match(/(^.*?)(\d+)$/);s=r&&+r[2]||0;var a=r&&r[1]||n;for(++s;s<=65535&&-1!=t.SheetNames.indexOf(n=a+s);++s);}if(cF(n),t.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return t.SheetNames.push(n),t.Sheets[n]=e,n}function Pj(t,e,n){return e?(t.l={Target:e},n&&(t.l.Tooltip=n)):delete t.l,t}var Nj={encode_col:kN,encode_row:CN,encode_cell:IN,encode_range:DN,decode_col:SN,decode_row:xN,split_cell:function(t){return t.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:EN,decode_range:AN,format_cell:PN,sheet_add_aoa:MN,sheet_add_json:Aj,sheet_add_dom:HF,aoa_to_sheet:RN,json_to_sheet:function(t,e){return Aj(null,t,e)},table_to_sheet:zF,table_to_book:function(t,e){return NN(zF(t,e),e)},sheet_to_csv:Ej,sheet_to_txt:Ij,sheet_to_json:Cj,sheet_to_html:BF,sheet_to_formulae:function(t){var e,n="",i="";if(null==t||null==t["!ref"])return[];var s,r=TN(t["!ref"]),a="",o=[],l=[],c=Array.isArray(t);for(s=r.s.c;s<=r.e.c;++s)o[s]=kN(s);for(var d=r.s.r;d<=r.e.r;++d)for(a=CN(d),s=r.s.c;s<=r.e.c;++s)if(n=o[s]+a,i="",void 0!==(e=c?(t[d]||[])[s]:t[n])){if(null!=e.F){if(n=e.F,!e.f)continue;i=e.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=e.f)i=e.f;else{if("z"==e.t)continue;if("n"==e.t&&null!=e.v)i=""+e.v;else if("b"==e.t)i=e.v?"TRUE":"FALSE";else if(void 0!==e.w)i="'"+e.w;else{if(void 0===e.v)continue;i="s"==e.t?"'"+e.v:""+e.v}}l[l.length]=n+"="+i}return l},sheet_to_row_object_array:Cj,sheet_get_cell:Dj,book_new:Tj,book_append_sheet:Oj,book_set_sheet_visibility:function(t,e,n){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var i=function(t,e){if("number"==typeof e){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}if("string"==typeof e){var n=t.SheetNames.indexOf(e);if(n>-1)return n;throw new Error("Cannot find sheet name |"+e+"|")}throw new Error("Cannot find sheet |"+e+"|")}(t,e);switch(t.Workbook.Sheets[i]||(t.Workbook.Sheets[i]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}t.Workbook.Sheets[i].Hidden=n},cell_set_number_format:function(t,e){return t.z=e,t},cell_set_hyperlink:Pj,cell_set_internal_link:function(t,e,n){return Pj(t,"#"+e,n)},cell_add_comment:function(t,e,n){t.c||(t.c=[]),t.c.push({t:e,a:n||"SheetJS"})},sheet_set_array_formula:function(t,e,n,i){for(var s="string"!=typeof e?e:TN(e),r="string"==typeof e?e:DN(e),a=s.s.r;a<=s.e.r;++a)for(var o=s.s.c;o<=s.e.c;++o){var l=Dj(t,a,o);l.t="n",l.F=r,delete l.v,a==s.s.r&&o==s.s.c&&(l.f=n,i&&(l.D=!0))}return t},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};nT.version;let Mj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","full_name","waitdays"],this.max_loader=!0,this.users=[],this.gnselection=[],this.ppselection=[],this.genderArray=[],this.pripopulationArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.avgwaitData=[],this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="Run Report",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:865,name:"Region 2: Central Mass"},{id:866,name:"Region 3: Northeast"},{id:867,name:"Region 4: Metro West"},{id:868,name:"Region 5: Southeast"},{id:869,name:"Region 6: Boston Region"}],this.titleService.setTitle("Reports")}ngOnInit(){this.report1Form=this.fb.group({gender:[],ppopulation:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1}ngAfterContentInit(){}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){this.genderArray=[],this.pripopulationArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"Average_wait_time_by_waitlist.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}onChange(t){this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],1==t.length&&"Men"==t[0].name&&(this.ppopulation=[{id:2,name:"Injection Drug Users"},{id:4,name:"None of these"}]),this.btnTxt="Apply Filters",0==this.gnselection.length&&0==this.ppselection.length&&(this.btnTxt="Run Report")}onRemove(t){this.ppselection=[]}export(){$("body").find("button.exportBtn").click()}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.id)}),this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)}),1==this.genderArray.length&&this.genderArray.indexOf(24)>-1&&0==this.ppselection.length&&(this.pripopulationArray=[2,4]);let t={gender:this.genderArray,prioritypopulation:this.pripopulationArray};console.log("postObj",t);const e=this;this.reportService.getAvgwaitreport(t).subscribe(t=>{e.max_loader=!1,e.users=t.rows,e.dataSource=new JD(e.users),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.srh_loader=!1,e.srh_disabled=!1,console.log("reportData",t)})}report1Submit(){}};Mj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Mj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Mj=Hh([Object(s.Component)({selector:"app-wtbywaitlist",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #f7f6f3;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="active">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;" class="">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" style="line-height:28px !important;" class="">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Average wait time by waitlist</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report1Form" (ngSubmit)="report1Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div>   \n           <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                 <ng-select [items]="items"\n                      bindLabel="name"\n                      dropdownPosition="bottom"\n                      placeholder="Select an option"\n                      appendTo="body"\n                      multiple="true"\n                      (change)="onChange(gnselection)"\n                      [(ngModel)]="gnselection"\n                      formControlName="gender"\n                      [closeOnSelect]="true"\n                      [hideSelected]="true"\n                      [clearable]="false"\n                      (remove)="onRemove($event)"\n                      >\n                      <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                          <span class="ng-value-label"> {{item.name}}</span>\n                          <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                      </ng-template>\n                  </ng-select>\n             \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>        \n            <div class="col-md-3 ">\n            <label class="labelcls">Priority Population</label>   \n             <div style="width: 165px;" class="txtField">       \n             \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n                 <ng-select [items]="ppopulation"\n                    bindLabel="name"\n                    dropdownPosition="bottom"\n                    placeholder="Select an option"\n                    appendTo="body"\n                    multiple="true"\n                    (change)="onChange(ppselection)"\n                    [(ngModel)]="ppselection"\n                    formControlName="ppopulation"\n                    [closeOnSelect]="true"\n                    [hideSelected]="true"\n                    [clearable]="false"\n                    >\n                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                        <span class="ng-value-label"> {{item.name}}</span>\n                        <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                    </ng-template>\n                </ng-select>\n            </div>\n            <input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n            <input type="hidden" name="Operator1" value="IN LIST">\n            <input type="hidden" name="DataType1" value="MENU">        \n            </div>        \n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100939">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" id="search-btn" [disabled]="srh_disabled" (click)="searchReports()" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n            <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg> \n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Average wait time by waitlist</b>\n                        </td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Priority Population: {{pripop}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                <ng-container matColumnDef="id" style="display: none;">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Organization ID</th>\n                    <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                </ng-container>    \n                        \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="full_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                </ng-container>\n                    \x3c!-- Progress Column --\x3e\n                    \x3c!-- <ng-container matColumnDef="waitlisttype">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> WaitListType </th>\n                    <td mat-cell *matCellDef="let row"> {{row.waitlisttype}} </td>\n                    </ng-container> --\x3e\n                    <ng-container matColumnDef="waitdays">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Days Waiting</th>\n                    <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[2] | number:\'1.0-1\'}}</td>\n                    </ng-container>\n                        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                        <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                        \x3c!-- Row shown when there is no matching data. --\x3e\n                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                        <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                        </tr> --\x3e\n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No records found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table>\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                  <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;">\n                <thead>\n                <tr role="row">\n                    <th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th>\n                    <th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Name: activate to sort column ascending" style="width: 308px;">Name</th>\n                    <th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="WaitListType: activate to sort column ascending" style="width: 131px;">WaitListType</th>\n                    <th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Wait # days: activate to sort column ascending" style="width: 85px;">Wait # days</th>\n                </tr>\n                </thead>\n                <tbody>\n                    <tr role="row" class="odd">\n                        <td class="sorting_1">13281</td><td>McCleary Manor</td>\n                        <td>Residential CMS</td><td>5.000000</td>\n                    </tr>\n                    <tr role="row" class="even"><td class="sorting_1">13585</td>\n                        <td>Granada House</td><td>No Value</td><td>123.020063</td>\n                    </tr>\n                    <tr role="row" class="odd"><td class="sorting_1">15569</td>\n                        <td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>16.800000</td>\n                    </tr>\n                </tbody>\n            </table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}\n}@media only screen and (max-width:768px){\n  button.export-btn{margin-top: 5px !important;}\n  .con-tab{margin: 0px !important; padding: 0 !important;}\n  .col-md-3{ padding: 0 !important;}\n  .txtField{width: 100% !important;}\n  #reportTitle{font-size: 1rem !important;}\n  ::ng-deep .mat-paginator-page-size{ margin-right: 0px !important;}\n  ::ng-deep .mat-paginator-page-size-label{ margin: 0px !important;}\n  .col-md-3,.col-md-9{max-width: 100% !important;flex: 0 0 100% !important;}\n  .container{ padding: 0px !important;} \n  .sidenav a{ line-height: 15px !important;}\n}@media only screen and (min-width:768px) and (max-width:1192px){\n  .con-tab .col-md-3,.con-tab .col-md-9{max-width: 50% !important;flex: 0 0 50% !important;}\n  .txtField{width: 100% !important;}\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],Mj);let Rj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","region","waitdays"],this.users=[],this.gnselection=[],this.ppselection=[],this.regselection=[],this.genderArray=[],this.pripopulationArray=[],this.regArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.region="",this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:865,name:"Region 2: Central Mass"},{id:866,name:"Region 3: Northeast"},{id:867,name:"Region 4: Metro West"},{id:868,name:"Region 5: Southeast"},{id:869,name:"Region 6: Boston Region"}],this.titleService.setTitle("Reports")}ngOnInit(){this.report2Form=this.fb.group({gender:[],ppopulation:[],regions:[]})}onChange(t){this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],1==t.length&&"Men"==t[0].name&&(this.ppopulation=[{id:2,name:"Injection Drug Users"},{id:4,name:"None of these"}]),this.btnTxt="Apply Filters",0==this.gnselection.length&&0==this.ppselection.length&&0==this.regselection.length&&(this.btnTxt="Run Report")}onRemove(t){this.ppselection=[]}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){this.genderArray=[],this.pripopulationArray=[],this.regArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),this.regselection.forEach(t=>{this.regArray.push(t.name)}),this.regArray.length>0&&(this.region=this.regArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"Average_wait_time_across_the_region_state.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}export(){$("body").find("button.exportBtn").click()}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[],this.regArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.id)}),this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)}),1==this.genderArray.length&&this.genderArray.indexOf(24)>-1&&0==this.ppselection.length&&(this.pripopulationArray=[2,4]),this.regselection.forEach(t=>{this.regArray.push(t.id)});let t={gender:this.genderArray,region:this.regArray,prioritypopulation:this.pripopulationArray};console.log("postObj",t);const e=this;this.reportService.getAvgwaitreportbyregion(t).subscribe(t=>{e.max_loader=!1,e.users=t.rows,e.paginator.pageSize=6,e.dataSource=new JD(e.users),e.dataSource.paginator=e.paginator,e.dataSource.sort=e.sort,e.srh_loader=!1,e.srh_disabled=!1,console.log("reportData",t)})}report2Submit(){}};Rj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Rj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Rj=Hh([Object(s.Component)({selector:"app-wtacrossregion",template:'<div class="container body" style="margin-top:10px;">\n<div class="container" style="margin: 5px auto 20px;">\n  <div class="row d-flex m-0" style="width:100%;">\n<div class="sidenav col-md-3 p-0">\n<a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n<a [routerLink]="[\'/reports\',100938]" class="active" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n<a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n<a [routerLink]="[\'/reports\',100942]"  class="">Removed report</a>\n<a [routerLink]="[\'/reports\',100941]"  class="">Waiting report</a>\n<a [routerLink]="[\'/reports\',100940]"  class="">Interim services report</a>\n<a [routerLink]="[\'/reports\',100954]"  style="line-height:28px !important;" class="">Capacity management report based on funding source</a>\n<a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n</div>\n<div class="col-md-9 con-tab">\n    <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Average wait time across the region/state</p>\n    \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n    <form [formGroup]="report2Form" (ngSubmit)="report2Submit()" autocomplete="off">\n    <div class="row m-0 p-3" style="clear:both;">\n    <div class="row reportfilter" style="width:100% !important;"> \n    <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div>   \n       <div class="col-md-3 p-0">\n        <label class="labelcls">Gender</label> \n         <div>\n            <ng-select [items]="items"\n            dropdownPosition="bottom"\n            bindLabel="name"\n            placeholder="Select an option"\n            appendTo="body"\n            multiple="true"\n            (change)="onChange(gnselection)"\n            [(ngModel)]="gnselection"\n            formControlName="gender"\n            [closeOnSelect]="true"\n            [hideSelected]="true"\n            [clearable]="false"\n            (remove)="onRemove($event)"\n            >\n            <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                <span class="ng-value-label"> {{item.name}}</span>\n                <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n            </ng-template>\n            </ng-select>\n         \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n          \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n        \x3c!-- </option></select> --\x3e\n\t\t</div>\n        <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n        <input type="hidden" name="Operator0" value="IN LIST">\n        <input type="hidden" name="DataType0" value="MENU">        \n        </div>        \n        <div class="col-md-3 ">\n        <label class="labelcls">Priority Population</label>   \n         <div style="width: 165px;" class="txtField">       \n         \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n          \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n        \x3c!-- </option></select> --\x3e\n        <ng-select [items]="ppopulation"\n            dropdownPosition="bottom"\n            bindLabel="name"\n            placeholder="Select an option"\n            appendTo="body"\n            multiple="true"\n            (change)="onChange(ppselection)"\n            [(ngModel)]="ppselection"\n            formControlName="ppopulation"\n            [closeOnSelect]="true"\n            [hideSelected]="true"\n            [clearable]="false"\n            >\n            <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                <span class="ng-value-label"> {{item.name}}</span>\n                <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n            </ng-template>\n        </ng-select>\n\t\t</div>\n\t\t<input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n        <input type="hidden" name="Operator1" value="IN LIST">\n        <input type="hidden" name="DataType1" value="MENU">        \n        </div>\n\t\t<div class="col-md-3 ">\n        <label class="labelcls">Region</label>   \n         <div style="width: 200px;" class="txtField">       \n         \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n          \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n        \x3c!-- </option></select> --\x3e\n             <ng-select [items]="allregions"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(regselection)"\n                [(ngModel)]="regselection"\n                formControlName="regions"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                (remove)="onRemove($event)"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n            </ng-select>\n\t\t</div>\n\t\t<input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n        <input type="hidden" name="Operator1" value="IN LIST">\n        <input type="hidden" name="DataType1" value="MENU">        \n        </div> \t\n\t\t<input type="hidden" name="cid" value="c_id">\n\t\t<input type="hidden" id="reportId" name="reportId" value="100939">\n        <input type="hidden" name="filterLength" value="2">\n        <div class="col-md-12"> \n            <button class="btn" id="search-btn" [disabled]="srh_disabled" (click)="searchReports()" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n        </div> \n        </div>\n        \x3c!-- <mat-form-field style="float: right;">\n        <mat-label>Search</mat-label>\n        <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n        <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n            <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n        </svg>\n        </mat-form-field> --\x3e\n        <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n            <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n            <table style="width: 100%;" *ngIf="ftabl">\n                <tbody>\n                    <tr>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Average wait time across the region/state</b></td>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                    </tr>\n                </tbody>\n            </table>\n            <table style="width: 100%;" *ngIf="ftabl">\n                <tbody>\n                    <tr>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                    </tr>\n                </tbody>\n            </table>\n            <table style="width: 100%;" *ngIf="sectbl">\n                <tbody>\n                    <tr>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Priority Population: {{pripop}};</span><span *ngIf="regArray.length>0">Region: {{region}}</span></b></td>\n                    <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                    </tr>\n                </tbody>\n            </table>\n            <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n            <ng-container matColumnDef="id" style="display: none;">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>ID</th>\n                <td mat-cell *matCellDef="let row; let i=index;"> {{i+1}} </td>\n            </ng-container>    \n                    \x3c!-- Name Column --\x3e\n            <ng-container matColumnDef="region">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Region </th>\n                <td mat-cell *matCellDef="let row">{{row[0]}}</td>\n            </ng-container>\n                \x3c!-- Progress Column --\x3e\n                <ng-container matColumnDef="waitdays">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Days Waiting</th>\n                <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[1] | number:\'1.0-1\'}} </td>\n                </ng-container>\n                    <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                    <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                    \x3c!-- Row shown when there is no matching data. --\x3e\n                    \x3c!-- <tr class="mat-row" *matNoDataRow>\n                    <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                    </tr> --\x3e\n                </table>\n                <table style="background-color: #fff;">\n                    <tr class="mat-row" *ngIf="users.length === 0">\n                    <td class="mat-cell"  colspan="3" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No records found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                    </tr>\n                </table>\n            <mat-paginator [pageSizeOptions]="[6, 12, 30, 100]"></mat-paginator>\n            <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n              </svg>\n            <span> Download</span></button></span>\n        </div>\n\t\t\x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Region: activate to sort column descending" style="width: 158px;">Region</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Wait # days: activate to sort column ascending" style="width: 85px;">Wait # days</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">Region 1: Western Mass</td><td>37.863325</td></tr><tr role="row" class="even"><td class="sorting_1">Region 2: Central Mass</td><td>27.618482</td></tr><tr role="row" class="odd"><td class="sorting_1">Region 3: Northeast</td><td>31.938731</td></tr><tr role="row" class="even"><td class="sorting_1">Region 4: Metro West</td><td>26.243298</td></tr><tr role="row" class="odd"><td class="sorting_1">Region 5: Southeast</td><td>42.126432</td></tr><tr role="row" class="even"><td class="sorting_1">Region 6: Boston Region</td><td>24.422657</td></tr></tbody></table> --\x3e\n        \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n        \x3c!-- </div>         --\x3e\n    </div> \n    </form> \t\n</div>\n</div>\n</div>\n</div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}}@media only screen and (max-width:768px){\n  button.export-btn{margin-top: 5px !important;}\n  .con-tab{margin: 0px !important; padding: 0 !important;}\n  .col-md-3{ padding: 0 !important;}\n  .txtField{width: 100% !important;}\n  #reportTitle{font-size: 1rem !important;}\n  ::ng-deep .mat-paginator-page-size{ margin-right: 0px !important;}\n  ::ng-deep .mat-paginator-page-size-label{ margin: 0px !important;}\n  .container{ padding: 0px !important;} \n  .sidenav a{ line-height: 15px !important;}\n}@media only screen and (min-width:768px) and (max-width:1192px){\n  .con-tab .col-md-3,.con-tab .col-md-9{max-width: 50% !important;flex: 0 0 50% !important;}\n  .txtField{width: 100% !important;}\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],Rj);let Lj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","prog_name","address","ppopulation","admitted"],this.users=[],this.gnselection=[],this.ppselection=[],this.genderArray=[],this.pripopulationArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.frmDate="",this.toDate="",this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:865,name:"Region 2: Central Mass"},{id:866,name:"Region 3: Northeast"},{id:867,name:"Region 4: Metro West"},{id:868,name:"Region 5: Southeast"},{id:869,name:"Region 6: Boston Region"}]}ngOnInit(){this.report3Form=this.fb.group({gender:[],ppopulation:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1,$("input[type='text']").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.frmDate="",this.toDate="",""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.genderArray=[],this.pripopulationArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"Admitted_report.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}onChange(t){this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],1==t.length&&"Men"==t[0].name&&(this.ppopulation=[{id:2,name:"Injection Drug Users"},{id:4,name:"None of these"}]),this.btnTxt="Apply Filters";let e=document.getElementById("sl_fromDate"),n=document.getElementById("sl_toDate");0==this.gnselection.length&&0==this.ppselection.length&&""==e.value&&""==n.value&&(this.btnTxt="Run Report")}export(){$("body").find("button.exportBtn").click()}report3Submit(){}inputChange(){this.btnTxt="Apply Filters";let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");0==this.gnselection.length&&0==this.ppselection.length&&""==t.value&&""==e.value&&(this.btnTxt="Run Report")}onRemove(t){this.ppselection=[]}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[];let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.gnselection.forEach(t=>{this.genderArray.push(t.id)}),this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)}),1==this.genderArray.length&&this.genderArray.indexOf(24)>-1&&0==this.ppselection.length&&(this.pripopulationArray=[2,4]);let n={gender:this.genderArray,prioritypopulation:this.pripopulationArray,startdate:t?t.value:"",enddate:e?e.value:""};console.log("postObj",n);const i=this;this.reportService.getAdmittedreport(n).subscribe(t=>{i.max_loader=!1,i.users=t.rows,i.dataSource=new JD(i.users),i.dataSource.paginator=i.paginator,i.dataSource.sort=i.sort,i.srh_loader=!1,i.srh_disabled=!1,console.log("reportData",t)})}};Lj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Lj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Lj=Hh([Object(s.Component)({selector:"app-admitted-report",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #fff;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" class="" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="active">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" style="line-height:28px !important;" class="">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Admitted report</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report3Form" (ngSubmit)="report3Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div> \n        <div class="col-md-3 p-0">\n            <label class="labelcls">Admitted Date</label> \n             <div><input type="text" data-label="Admitted Date" name="filter0[]" placeholder="MM/DD/YYYY" autocomplete="off"(input)="inputChange()" (keypress)="keyPress($event)" id="sl_fromDate"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker /></div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.ActionDate">\n            <input type="hidden" name="Operator0" value="RANGE">\n            <input type="hidden" name="DataType0" value="DATE">        \n        </div>\n        <div class="col-md-3"><label class="labelcls">To Date</label><div><input type="text" name="to_filter0[]" autocomplete="off" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker data-label="To Date" id="sl_toDate" placeholder="MM/DD/YYYY"></div></div>\n           <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                <ng-select [items]="items"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(gnselection)"\n                [(ngModel)]="gnselection"\n                formControlName="gender"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                (remove)="onRemove($event)"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n                </ng-select>\n        \n             \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>        \n            <div class="col-md-3 ">\n            <label class="labelcls">Priority Population</label>   \n             <div style="width: 165px;" class="txtField">       \n             \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            <ng-select [items]="ppopulation"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(ppselection)"\n                [(ngModel)]="ppselection"\n                formControlName="ppopulation"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n            </ng-select>\n            </div>\n            <input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n            <input type="hidden" name="Operator1" value="IN LIST">\n            <input type="hidden" name="DataType1" value="MENU">        \n            </div>\n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100939">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" id="search-btn" [disabled]="srh_disabled" (click)="searchReports();" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n                <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg>\n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Admitted report</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Priority Population: {{pripop}};</span><span *ngIf="frmDate && toDate">From Date: {{frmDate}}; To Date: {{toDate}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                <ng-container matColumnDef="id" style="display: none;">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Organization ID</th>\n                    <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                </ng-container>    \n                        \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="prog_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                </ng-container>\n                    \x3c!-- Progress Column --\x3e\n                    <ng-container matColumnDef="address">\n                        <th mat-header-cell *matHeaderCellDef mat-sort-header> Address </th>\n                        <td mat-cell *matCellDef="let row"> {{row[2]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="ppopulation">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Priority Population </th>\n                    <td mat-cell *matCellDef="let row"> {{row[3]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="admitted">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Admitted</th>\n                    <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[4]}} </td>\n                    </ng-container>\n                        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                        <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                        \x3c!-- Row shown when there is no matching data. --\x3e\n                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                        <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                        </tr> --\x3e\n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No records found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table>\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Program Name: activate to sort column ascending" style="width: 308px;">Program Name</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="PriorityPopulation: activate to sort column ascending" style="width: 131px;">PriorityPopulation</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Admitted: activate to sort column ascending" style="width: 68px;">Admitted</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">13281</td><td>McCleary Manor</td><td>Injection drug user</td><td>1</td></tr><tr role="row" class="even"><td class="sorting_1">13585</td><td>Granada House</td><td>Injection drug user</td><td>26</td></tr><tr role="row" class="odd"><td class="sorting_1">13585</td><td>Granada House</td><td>None of these</td><td>28</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>2</td></tr><tr role="row" class="odd"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>None of these</td><td>2</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>Pregnant woman</td><td>1</td></tr></tbody></table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}\n}@media only screen and (max-width:768px){\n  button.export-btn{margin-top: 5px !important;}\n  .con-tab{margin: 0px !important; padding: 0 !important;}\n  .col-md-3{ padding: 0 !important;}\n  .txtField{width: 100% !important;}\n  #reportTitle{font-size: 1rem !important;}\n  ::ng-deep .mat-paginator-page-size{ margin-right: 0px !important;}\n  ::ng-deep .mat-paginator-page-size-label{ margin: 0px !important;}\n  .col-md-3,.col-md-9{max-width: 100% !important;flex: 0 0 100% !important;}\n  .container{ padding: 0px !important;} \n  .sidenav a{ line-height: 15px !important;}\n  ::ng-deep .mat-elevation-z8{ overflow: auto !important;}\n}@media only screen and (min-width:768px) and (max-width:1192px){\n  .con-tab .col-md-3,.con-tab .col-md-9{max-width: 50% !important;flex: 0 0 50% !important;}\n  .txtField{width: 100% !important;}\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],Lj);let Fj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","prog_name","address","ppopulation","removed"],this.users=[],this.gnselection=[],this.ppselection=[],this.genderArray=[],this.pripopulationArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.frmDate="",this.toDate="",this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:2,name:"Region 2: Central Mass"},{id:3,name:"Region 3: Northeast"},{id:4,name:"Region 4: Metro West"},{id:5,name:"Region 5: Southeast"},{id:6,name:"Region 6: Boston Region"}]}ngOnInit(){this.report3Form=this.fb.group({gender:[],ppopulation:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1,$("input[type='text']").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.frmDate="",this.toDate="",""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.genderArray=[],this.pripopulationArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"Removed_report.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}onChange(t){this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],1==t.length&&"Men"==t[0].name&&(this.ppopulation=[{id:2,name:"Injection Drug Users"},{id:4,name:"None of these"}]),this.btnTxt="Apply Filters",0==this.gnselection.length&&0==this.ppselection.length&&(this.btnTxt="Run Report")}onRemove(t){this.ppselection=[]}export(){$("body").find("button.exportBtn").click()}report3Submit(){}inputChange(){}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[];let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.gnselection.forEach(t=>{this.genderArray.push(t.id)}),this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)}),1==this.genderArray.length&&this.genderArray.indexOf(24)>-1&&0==this.ppselection.length&&(this.pripopulationArray=[2,4]);let n={gender:this.genderArray,prioritypopulation:this.pripopulationArray,startdate:t?t.value:"",enddate:e?e.value:""};console.log("postObj",n);const i=this;this.reportService.getremovedreport(n).subscribe(t=>{i.max_loader=!1,i.users=t.rows,i.dataSource=new JD(i.users),i.dataSource.paginator=i.paginator,i.dataSource.sort=i.sort,i.srh_loader=!1,i.srh_disabled=!1,console.log("reportData",t)})}};Fj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Fj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Fj=Hh([Object(s.Component)({selector:"app-removed-report",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #fff;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" class="" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="active">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" style="line-height:28px !important;" class="">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Removed report</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report3Form" (ngSubmit)="report3Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div> \n        <div class="col-md-3 p-0">\n            <label class="labelcls">Removed Date</label> \n             <div><input type="text" data-label="Admitted Date" name="filter0[]" placeholder="MM/DD/YYYY" autocomplete="off"(change)="inputChange()" (keypress)="keyPress($event)" id="sl_fromDate" maxlength="10" class="input-group datetimepicker filterval" bsDatepicker /></div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.ActionDate">\n            <input type="hidden" name="Operator0" value="RANGE">\n            <input type="hidden" name="DataType0" value="DATE">        \n        </div>\n        <div class="col-md-3"><label class="labelcls">To Date</label><div><input type="text" name="to_filter0[]" autocomplete="off" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker data-label="To Date" id="sl_toDate" placeholder="MM/DD/YYYY"></div></div>\n           <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                <ng-select [items]="items"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(gnselection)"\n                [(ngModel)]="gnselection"\n                formControlName="gender"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                (remove)="onRemove($event)"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n                </ng-select>\n        \n             \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>        \n            <div class="col-md-3 ">\n            <label class="labelcls">Priority Population</label>   \n             <div style="width: 165px;" class="txtField">       \n             \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            <ng-select [items]="ppopulation"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(ppselection)"\n                [(ngModel)]="ppselection"\n                formControlName="ppopulation"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n            </ng-select>\n            </div>\n            <input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n            <input type="hidden" name="Operator1" value="IN LIST">\n            <input type="hidden" name="DataType1" value="MENU">        \n            </div>\n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100939">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" id="search-btn" [disabled]="srh_disabled" (click)="searchReports()" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n                <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg>\n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel1111</button>\n                <div class="w-100">\n\n\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Removed report</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Priority Population: {{pripop}};</span><span *ngIf="frmDate && toDate">From Date: {{frmDate}}; To Date: {{toDate}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                <ng-container matColumnDef="id" style="display: none;">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Organization ID</th>\n                    <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                </ng-container>    \n                        \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="prog_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                </ng-container>\n                <ng-container matColumnDef="address">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Address </th>\n                    <td mat-cell *matCellDef="let row"> {{row[2]}} </td>\n                </ng-container>\n                    \x3c!-- Progress Column --\x3e\n                    <ng-container matColumnDef="ppopulation">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Priority Population </th>\n                    <td mat-cell *matCellDef="let row"> {{row[3]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="removed">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Removed</th>\n                    <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[4]}} </td>\n                    </ng-container>\n                        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                        <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                        \x3c!-- Row shown when there is no matching data. --\x3e\n                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                        <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                        </tr> --\x3e\n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No records found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table>\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                </div>    \n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Program Name: activate to sort column ascending" style="width: 308px;">Program Name</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="PriorityPopulation: activate to sort column ascending" style="width: 131px;">PriorityPopulation</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Admitted: activate to sort column ascending" style="width: 68px;">Admitted</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">13281</td><td>McCleary Manor</td><td>Injection drug user</td><td>1</td></tr><tr role="row" class="even"><td class="sorting_1">13585</td><td>Granada House</td><td>Injection drug user</td><td>26</td></tr><tr role="row" class="odd"><td class="sorting_1">13585</td><td>Granada House</td><td>None of these</td><td>28</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>2</td></tr><tr role="row" class="odd"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>None of these</td><td>2</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>Pregnant woman</td><td>1</td></tr></tbody></table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}\n}@media only screen and (max-width:768px){\n  button.export-btn{margin-top: 5px !important;}\n  .con-tab{margin: 0px !important; padding: 0 !important;}\n  .col-md-3{ padding: 0 !important;}\n  .txtField{width: 100% !important;}\n  #reportTitle{font-size: 1rem !important;}\n  ::ng-deep .mat-paginator-page-size{ margin-right: 0px !important;}\n  ::ng-deep .mat-paginator-page-size-label{ margin: 0px !important;}\n  .col-md-3,.col-md-9{max-width: 100% !important;flex: 0 0 100% !important;}\n  .container{ padding: 0px !important;} \n  .sidenav a{ line-height: 15px !important;}\n  ::ng-deep .mat-elevation-z8{ overflow: auto !important;}\n}@media only screen and (min-width:768px) and (max-width:1192px){\n  .con-tab .col-md-3,.con-tab .col-md-9{max-width: 50% !important;flex: 0 0 50% !important;}\n  .txtField{width: 100% !important;}\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],Fj);let jj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","prog_name","address","ppopulation","waiting"],this.users=[],this.gnselection=[],this.ppselection=[],this.genderArray=[],this.pripopulationArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.frmDate="",this.toDate="",this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:865,name:"Region 2: Central Mass"},{id:866,name:"Region 3: Northeast"},{id:867,name:"Region 4: Metro West"},{id:868,name:"Region 5: Southeast"},{id:869,name:"Region 6: Boston Region"}]}ngOnInit(){this.report3Form=this.fb.group({gender:[],ppopulation:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1,$("input[type='text']").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.frmDate="",this.toDate="",""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.genderArray=[],this.pripopulationArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"Waiting_report.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}onChange(t){this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],1==t.length&&"Men"==t[0].name&&(this.ppopulation=[{id:2,name:"Injection Drug Users"},{id:4,name:"None of these"}]),this.btnTxt="Apply Filters",0==this.gnselection.length&&0==this.ppselection.length&&(this.btnTxt="Run Report")}export(){$("body").find("button.exportBtn").click()}onRemove(t){this.ppselection=[]}report3Submit(){}inputChange(){}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[];let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.gnselection.forEach(t=>{this.genderArray.push(t.id)}),this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)}),1==this.genderArray.length&&this.genderArray.indexOf(24)>-1&&0==this.ppselection.length&&(this.pripopulationArray=[2,4]);let n={gender:this.genderArray,prioritypopulation:this.pripopulationArray,startdate:t?t.value:"",enddate:e?e.value:""};console.log("postObj",n);const i=this;this.reportService.getWaitingreport(n).subscribe(t=>{i.max_loader=!1,i.users=t.rows,i.dataSource=new JD(i.users),i.dataSource.paginator=i.paginator,i.dataSource.sort=i.sort,console.log("reportData",t),i.srh_loader=!1,i.srh_disabled=!1})}};jj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],jj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},jj=Hh([Object(s.Component)({selector:"app-waiting-report",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #fff;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" class="" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="active">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" style="line-height:28px !important;" class="">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Waiting report</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report3Form" (ngSubmit)="report3Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div> \n        <div class="col-md-3 p-0">\n            <label class="labelcls">Waiting Date</label> \n             <div><input type="text" data-label="Admitted Date" name="filter0[]" placeholder="MM/DD/YYYY" id="sl_fromDate" autocomplete="off"(change)="inputChange()" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker /></div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.ActionDate">\n            <input type="hidden" name="Operator0" value="RANGE">\n            <input type="hidden" name="DataType0" value="DATE">        \n        </div>\n        <div class="col-md-3"><label class="labelcls">To Date</label><div><input type="text" name="to_filter0[]" id="sl_toDate" autocomplete="off" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker data-label="To Date" placeholder="MM/DD/YYYY"></div></div>\n           <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                <ng-select [items]="items"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(gnselection)"\n                [(ngModel)]="gnselection"\n                formControlName="gender"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                (remove)="onRemove($event)"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n                </ng-select>\n        \n             \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>        \n            <div class="col-md-3 ">\n            <label class="labelcls">Priority Population</label>   \n             <div style="width: 165px;" class="txtField">       \n             \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            <ng-select [items]="ppopulation"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(ppselection)"\n                [(ngModel)]="ppselection"\n                formControlName="ppopulation"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n            </ng-select>\n            </div>\n            <input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n            <input type="hidden" name="Operator1" value="IN LIST">\n            <input type="hidden" name="DataType1" value="MENU">        \n            </div>\n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100939">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" [disabled]="srh_disabled" id="search-btn" (click)="searchReports()" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n                <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg>\n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Waiting report</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Priority Population: {{pripop}};</span><span *ngIf="frmDate && toDate">From Date: {{frmDate}}; To Date: {{toDate}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                <ng-container matColumnDef="id" style="display: none;">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Organization ID</th>\n                    <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                </ng-container>    \n                        \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="prog_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                </ng-container>\n                <ng-container matColumnDef="address">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Address </th>\n                    <td mat-cell *matCellDef="let row"> {{row[2]}} </td>\n                </ng-container>\n                    \x3c!-- Progress Column --\x3e\n                    <ng-container matColumnDef="ppopulation">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Priority Population </th>\n                    <td mat-cell *matCellDef="let row"> {{row[3]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="waiting">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Waiting</th>\n                    <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[4]}} </td>\n                    </ng-container>\n                        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                        <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                        \x3c!-- Row shown when there is no matching data. --\x3e\n                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                        <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                        </tr> --\x3e\n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No records found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table>\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Program Name: activate to sort column ascending" style="width: 308px;">Program Name</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="PriorityPopulation: activate to sort column ascending" style="width: 131px;">PriorityPopulation</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Admitted: activate to sort column ascending" style="width: 68px;">Admitted</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">13281</td><td>McCleary Manor</td><td>Injection drug user</td><td>1</td></tr><tr role="row" class="even"><td class="sorting_1">13585</td><td>Granada House</td><td>Injection drug user</td><td>26</td></tr><tr role="row" class="odd"><td class="sorting_1">13585</td><td>Granada House</td><td>None of these</td><td>28</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>2</td></tr><tr role="row" class="odd"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>None of these</td><td>2</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>Pregnant woman</td><td>1</td></tr></tbody></table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}\n}@media only screen and (max-width:768px){\n  button.export-btn{margin-top: 5px !important;}\n  .con-tab{margin: 0px !important; padding: 0 !important;}\n  .col-md-3{ padding: 0 !important;}\n  .txtField{width: 100% !important;}\n  #reportTitle{font-size: 1rem !important;}\n  ::ng-deep .mat-paginator-page-size{ margin-right: 0px !important;}\n  ::ng-deep .mat-paginator-page-size-label{ margin: 0px !important;}\n  .col-md-3,.col-md-9{max-width: 100% !important;flex: 0 0 100% !important;}\n  .container{ padding: 0px !important;} \n  .sidenav a{ line-height: 15px !important;}\n  ::ng-deep .mat-elevation-z8{ overflow: auto !important;}\n}@media only screen and (min-width:768px) and (max-width:1192px){\n  .con-tab .col-md-3,.con-tab .col-md-9{max-width: 50% !important;flex: 0 0 50% !important;}\n  .txtField{width: 100% !important;}\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],jj);let Vj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","prog_name","waitlist_name","ppopulation","interim_services","status","count"],this.gnselection=[],this.genderArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.frmDate="",this.toDate="",this.users=[],this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}]}ngOnInit(){this.report3Form=this.fb.group({gender:[],ppopulation:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1,$("input[type='text']").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.frmDate="",this.toDate="",""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.genderArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"interim_service_report.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}onChange(t){this.btnTxt="Apply Filters",0==this.gnselection.length&&(this.btnTxt="Run Report")}export(){$("body").find("button.exportBtn").click()}report3Submit(){}inputChange(){}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[];let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.gnselection.forEach(t=>{this.genderArray.push(t.id)});let n={gender:this.genderArray,startdate:t?t.value:"",enddate:e?e.value:""};console.log("postObj",n);const i=this;this.reportService.getInterimservice(n).subscribe(t=>{i.max_loader=!1,i.users=t.rows,i.dataSource=new JD(i.users),i.dataSource.paginator=i.paginator,i.dataSource.sort=i.sort,console.log("reportData",t),i.srh_loader=!1,i.srh_disabled=!1})}};Vj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Vj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Vj=Hh([Object(s.Component)({selector:"app-interim-services",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #fff;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" class="" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="active">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" style="line-height:28px !important;" class="">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Interim services report</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report3Form" (ngSubmit)="report3Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div> \n        <div class="col-md-3 p-0">\n            <label class="labelcls">From Date</label> \n             <div><input type="text" data-label="Admitted Date" name="filter0[]" placeholder="MM/DD/YYYY" id="sl_fromDate" autocomplete="off"(change)="inputChange()" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker /></div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.ActionDate">\n            <input type="hidden" name="Operator0" value="RANGE">\n            <input type="hidden" name="DataType0" value="DATE">        \n        </div>\n        <div class="col-md-3"><label class="labelcls">To Date</label><div><input type="text" name="to_filter0[]" autocomplete="off" (keypress)="keyPress($event)"  maxlength="10" id="sl_toDate" class="input-group datetimepicker filterval" bsDatepicker data-label="To Date" placeholder="MM/DD/YYYY"></div></div>\n           <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                <ng-select [items]="items"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(gnselection)"\n                [(ngModel)]="gnselection"\n                formControlName="gender"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n                </ng-select>\n        \n             \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>        \n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100939">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" id="search-btn" (click)="searchReports()" [disabled]="srh_disabled" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n                <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg>\n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Interim services report</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span><span *ngIf="frmDate && toDate">From Date: {{frmDate}}; To Date: {{toDate}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                <ng-container matColumnDef="id" style="display: none;">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>ID</th>\n                    <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                </ng-container>    \n                        \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="prog_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                </ng-container>\n                <ng-container matColumnDef="waitlist_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Waitlist Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[2]}}</td>\n                </ng-container>\n                    \x3c!-- Progress Column --\x3e\n                    <ng-container matColumnDef="ppopulation">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Priority Population </th>\n                    <td mat-cell *matCellDef="let row"> {{row[3]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="interim_services">\n                        <th mat-header-cell *matHeaderCellDef mat-sort-header>Interim Service</th>\n                        <td mat-cell *matCellDef="let row"> {{row[4]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="status">\n                        <th mat-header-cell *matHeaderCellDef mat-sort-header>Status</th>\n                        <td mat-cell *matCellDef="let row"> {{row[5]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="count">\n                        <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">&nbsp;&nbsp;Count</th>\n                        <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[6]}} </td>\n                    </ng-container>\n                        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                        <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                        \x3c!-- Row shown when there is no matching data. --\x3e\n                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                        <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                        </tr> --\x3e\n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" colspan="7" *ngIf="users.length === 0">\n                        <td class="mat-cell" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table>\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Program Name: activate to sort column ascending" style="width: 308px;">Program Name</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="PriorityPopulation: activate to sort column ascending" style="width: 131px;">PriorityPopulation</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Admitted: activate to sort column ascending" style="width: 68px;">Admitted</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">13281</td><td>McCleary Manor</td><td>Injection drug user</td><td>1</td></tr><tr role="row" class="even"><td class="sorting_1">13585</td><td>Granada House</td><td>Injection drug user</td><td>26</td></tr><tr role="row" class="odd"><td class="sorting_1">13585</td><td>Granada House</td><td>None of these</td><td>28</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>2</td></tr><tr role="row" class="odd"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>None of these</td><td>2</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>Pregnant woman</td><td>1</td></tr></tbody></table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}\n}@media only screen and (max-width:768px){\n  button.export-btn{margin-top: 5px !important;}\n  .con-tab{margin: 0px !important; padding: 0 !important;}\n  .col-md-3{ padding: 0 !important;}\n  .txtField{width: 100% !important;}\n  #reportTitle{font-size: 1rem !important;}\n  ::ng-deep .mat-paginator-page-size{ margin-right: 0px !important;}\n  ::ng-deep .mat-paginator-page-size-label{ margin: 0px !important;}\n  .col-md-3,.col-md-9{max-width: 100% !important;flex: 0 0 100% !important;}\n  .container{ padding: 0px !important;} \n  .sidenav a{ line-height: 15px !important;}\n  ::ng-deep .mat-elevation-z8{ overflow: auto !important;}\n}@media only screen and (min-width:768px) and (max-width:1192px){\n  .con-tab .col-md-3,.con-tab .col-md-9{max-width: 50% !important;flex: 0 0 50% !important;}\n  .txtField{width: 100% !important;}\n}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],Vj);let Bj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","prog_name","waitlist_name","capacity_date","funding_source","total_male_beds","available_male_beds","total_female_beds","available_female_beds"],this.selection=[],this.selection2=[],this.users=[],this.gnselection=[],this.ppselection=[],this.genderArray=[],this.pripopulationArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.frmDate="",this.toDate="",this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.fundingsrc=[{id:1,name:"BSAS Licensed"},{id:2,name:"DMH Contract"},{id:3,name:"DCF Contract"},{id:4,name:"COVID-19"},{id:5,name:"Other"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Woman"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:865,name:"Region 2: Central Mass"},{id:866,name:"Region 3: Northeast"},{id:867,name:"Region 4: Metro West"},{id:868,name:"Region 5: Southeast"},{id:869,name:"Region 6: Boston Region"}]}ngOnInit(){this.report3Form=this.fb.group({fsource:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1,$("input[type='text']").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.frmDate="",this.toDate="",""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"capman_report.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}fnsChange(t){}export(){$("body").find("button.exportBtn").click()}report3Submit(){}inputChange(){}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[];let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)});let n={fundingsource:this.pripopulationArray,startdate:t?t.value:"",enddate:e?e.value:""};console.log("postObj",n);const i=this;this.reportService.getCapmanreport(n).subscribe(t=>{i.max_loader=!1,i.users=t.rows,i.dataSource=new JD(i.users),i.dataSource.paginator=i.paginator,i.dataSource.sort=i.sort,console.log("reportData",t),i.srh_loader=!1,i.srh_disabled=!1})}};Bj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Bj.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Bj=Hh([Object(s.Component)({selector:"app-capman-report",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #fff;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" class="" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" style="line-height:28px !important;" class="active">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" class="">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Capacity management report based on funding source</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report3Form" (ngSubmit)="report3Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div> \n        <div class="col-md-3 p-0">\n            <label class="labelcls">From Date</label> \n             <div><input type="text" data-label="Admitted Date" name="filter0[]" placeholder="MM/DD/YYYY" id="sl_fromDate" autocomplete="off"(change)="inputChange()" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker /></div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.ActionDate">\n            <input type="hidden" name="Operator0" value="RANGE">\n            <input type="hidden" name="DataType0" value="DATE">        \n        </div>\n        <div class="col-md-3"><label class="labelcls">To Date</label><div><input type="text" name="to_filter0[]" autocomplete="off" (keypress)="keyPress($event)"  maxlength="10" id="sl_toDate" class="input-group datetimepicker filterval" bsDatepicker data-label="To Date" placeholder="MM/DD/YYYY"></div></div>\n        <div class="col-md-3">\n          <label class="labelcls">Funding Source</label> \n           <div>\n              <ng-select [items]="fundingsrc"\n              dropdownPosition="bottom"\n              bindLabel="name"\n              placeholder="Select an option"\n              appendTo="body"\n              multiple="true"\n              (change)="fnsChange(ppselection)"\n              [(ngModel)]="ppselection"\n              formControlName="fsource"\n              [closeOnSelect]="true"\n              [hideSelected]="true"\n              [clearable]="false"\n              >\n              <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                  <span class="ng-value-label"> {{item.name}}</span>\n                  <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n              </ng-template>\n              </ng-select> \n           \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n            \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n          \x3c!-- </option></select> --\x3e\n          </div>\n        </div>\n           \x3c!-- <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                <ng-select [items]="items"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="genderChange(gnselection)"\n                [(ngModel)]="gnselection"\n                formControlName="gender"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n                </ng-select>\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>         --\x3e\n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100939">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" id="search-btn" (click)="searchReports()" [disabled]="srh_disabled" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n                <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg>\n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Capacity management report based on funding source</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>    \n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Funding Source: {{pripop}};</span><span *ngIf="frmDate && toDate">From Date: {{frmDate}}; To Date: {{toDate}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                  <ng-container matColumnDef="id" style="display: none;">\n                      <th mat-header-cell *matHeaderCellDef mat-sort-header>ID</th>\n                      <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                  </ng-container>    \n                          \x3c!-- Name Column --\x3e\n                  <ng-container matColumnDef="prog_name">\n                      <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                      <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                  </ng-container>\n                  <ng-container matColumnDef="waitlist_name">\n                      <th mat-header-cell *matHeaderCellDef mat-sort-header>Waitlist Name</th>\n                      <td mat-cell *matCellDef="let row">{{row[2]}}</td>\n                  </ng-container>\n                  <ng-container matColumnDef="capacity_date">\n                      <th mat-header-cell *matHeaderCellDef mat-sort-header>Capacity Date</th>\n                      <td mat-cell *matCellDef="let row">{{row[3]}}</td>\n                  </ng-container>\n                  \n                      \x3c!-- Progress Column --\x3e\n                      <ng-container matColumnDef="funding_source">\n                      <th mat-header-cell *matHeaderCellDef mat-sort-header> Funding Source</th>\n                      <td mat-cell *matCellDef="let row"> {{row[4]}} </td>\n                      </ng-container>\n                      <ng-container matColumnDef="total_male_beds">\n                          <th mat-header-cell *matHeaderCellDef mat-sort-header>Total Male Beds</th>\n                          <td mat-cell *matCellDef="let row"> {{row[5]}} </td>\n                      </ng-container>\n                      <ng-container matColumnDef="available_male_beds">\n                        <th mat-header-cell *matHeaderCellDef mat-sort-header >Available Male Beds</th>\n                        <td mat-cell *matCellDef="let row"> {{row[6]}} </td>\n                      </ng-container>\n                      <ng-container matColumnDef="total_female_beds">\n                        <th mat-header-cell *matHeaderCellDef mat-sort-header >Total Female Beds</th>\n                        <td mat-cell *matCellDef="let row"> {{row[7]}} </td>\n                      </ng-container>\n                      <ng-container matColumnDef="available_female_beds">\n                          <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Available Female Beds</th>\n                          <td mat-cell style="border-right: none !important;" *matCellDef="let row"> {{row[8]}} </td>\n                      </ng-container>\n\n                          <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                          <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                          \x3c!-- Row shown when there is no matching data. --\x3e\n                          \x3c!-- <tr class="mat-row" *matNoDataRow>\n                          <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                          </tr> --\x3e\n                      </table>\n                      <table style="background-color: #fff;">\n                          <tr class="mat-row" *ngIf="users.length === 0">\n                          <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                          </tr>\n                      </table>\n                    \x3c!-- <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table> --\x3e\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Program Name: activate to sort column ascending" style="width: 308px;">Program Name</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="PriorityPopulation: activate to sort column ascending" style="width: 131px;">PriorityPopulation</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Admitted: activate to sort column ascending" style="width: 68px;">Admitted</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">13281</td><td>McCleary Manor</td><td>Injection drug user</td><td>1</td></tr><tr role="row" class="even"><td class="sorting_1">13585</td><td>Granada House</td><td>Injection drug user</td><td>26</td></tr><tr role="row" class="odd"><td class="sorting_1">13585</td><td>Granada House</td><td>None of these</td><td>28</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>2</td></tr><tr role="row" class="odd"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>None of these</td><td>2</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>Pregnant woman</td><td>1</td></tr></tbody></table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label{\n    display: block;\n    margin-bottom:0;\n}.row{display: flex;\n    flex-wrap: wrap;}body{\n    /*line-height:1.3 !important;*/\n    font-family:"proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif !important;\n  }/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice{line-height: 16px}.sidenav {\n  float: left;\n    /*width: 200px;*/\n    position: relative;\n    z-index: 1;\n    top: 0;\n    left: 0;\n    /* background-color: #eceaf3; */\n    overflow-x: hidden;\n    padding-top: 16px;\n   /* border: solid 1px #9281c5;*/\n    border-right: solid 1px lightgray;\n}#search-btn{background-color:#8c5c8d;float:left;color:#fff;margin-top:20px;\n    padding: 4px 12px;}.bg-white{background: white}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table{\n  width:100%;z-index: 9 !important;\n}.sidenav a {\n  padding: 10px;\n    text-decoration: none;\n    font-size: 16px;\n    color:#000;\n    display: block;\n    line-height: 45px !important;\n    /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active{ color:#0000FF; font-weight:bold; text-decoration: underline;}.main {\n  width: 100%;\n  height:auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n /*background-color:#efefea;*/ \n}input[type=\'search\']{\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type="text"] {height: 30px}table#example,#example_info,#example_paginate {font-size: 12px !important; }#example_info {color: #9281c5;font-weight: bold; }table.dataTable tbody th, table.dataTable tbody td {\n    padding: 1px 10px !important; \n}button.buttons-csv,button.buttons-excel{     \n    background-color: #4D5E80;\n    background-image: none;\n    cursor: pointer;\n    /* border-radius: .45rem; */\n    padding: 0 10px 0 10px;\n    background: #8c5c8d !important;\n    color: #fff !important;\n}button.buttons-csv span,button.buttons-excel span{ \n    font-weight:100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover{         \n  background-color: #9281c5; background-image:none; \n}button.buttons-csv >span,button.buttons-excel>span{\n  color:#fff !important;\n}div.dt-buttons{ float:right !important; padding-left:10px; }#ui-datepicker-div{\n  font-size:12px !important;\n}th {\n    line-height: 30px!important;\n}button.buttons-csv, button.buttons-excel{padding: 3px;}.table>thead>tr>th, .table>tbody>tr>th, .table>tfoot>tr>th, .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td\n{line-height: 30px}table.dataTable thead th, table.dataTable thead td{ padding: 0 18px !important; }.dataTables_wrapper .dataTables_paginate .paginate_button.current{background: #9281c5 !important;  color: white !important;}.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0 10px !important}.d-flex{display: flex;}#reportTitle{font-weight:bold;font-size:1.5em;}ul.psd_agent_nav{ margin-right:5px !important;}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a{ color:#5c6b80 !important;}div.dt-buttons{display:none !important;}.reportfilter{border:solid 1px #e4dbdb; padding:12px;}caption{display:none;}@media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}.col-md-3{max-width:26% !important;}}@media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}label {\n\tfont-size:15px;\n\tfont-weight:700;\n}tfoot{display:none;}:host ::ng-deep div.dt-buttons{display:none !important;}:host ::ng-deep .dataTables_wrapper{top:10px;}:host ::ng-deep #example_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}:host ::ng-deep #example_paginate{\n\tfont-size:12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}:host ::ng-deep #example_wrapper{ width:98% !important}button.exportBtn{\n  display: none;    \n}button.export-btn{\n  display:block; font-size: 14px; padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter{width:100% !important; margin-left: 0px !important;}::ng-deep .mat-paginator-page-size{align-items: center !important;}::ng-deep .mat-paginator-page-size-select{ margin: -5px 4px 0 4px !important;}']})],Bj);const Hj={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let zj=class{constructor(t){this.http=t,this.backendUrl=Xf}getSubmittedRequests(){return this.http.get(this.backendUrl+"/v1/secure/myrequests/",Hj).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}getSubmittedRequestsByReference(t){return this.http.get(this.backendUrl+"/v1/secure/myrequests/"+t,Hj).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}getSavedRequests(){return this.http.get(this.backendUrl+"/v1/secure/mysavedrequests/",Hj).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}handleError(t){let e,n;return t instanceof Yf.HttpErrorResponse&&(!1===t.ok&&0===t.status?e="No internet connection or server might be unreachable. Please try again after sometime.":(n=t.error||"",e=n.message?n.message:n.error.message)),Object(O_.a)(e)}};zj.ctorParameters=()=>[{type:Yf.HttpClient}],zj=Hh([Object(s.Injectable)({providedIn:"root"})],zj);let Uj=class{constructor(t,e){this.titleService=t,this.myrequestsService=e,this.title="My Requests - Massachusetts Substance Use Helpline",this.savedSearch=!1,this.submittedRequestList=[],this.savedRequestList=[],this.titleService.setTitle(this.title)}ngOnInit(){this.myrequestsService.getSubmittedRequests().subscribe(t=>{console.log(t),this.submittedRequestList=t}),this.myrequestsService.getSavedRequests().subscribe(t=>{console.log("Saved Search:::",t),this.savedRequestList=t.savedRequests,console.log("Saved Resultss ::",this.savedRequestList)})}ngAfterViewInit(){$(document).unbind(".nl-panel-heading").on("click",".nl-panel-heading",function(){if($(this).hasClass("active"))return $(this).next().slideUp(250),$(this).removeClass("active"),!1;$(".nl-panel-heading").removeClass("active"),$(".saved-container").slideUp(250),$(this).addClass("active"),$(this).next().slideDown(250)})}};Uj.ctorParameters=()=>[{type:wh},{type:zj}],Uj=Hh([Object(s.Component)({selector:"app-myrequests",template:'<div class="container body">\n\t<div class="row">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="psd_form_section_heading" style="margin-top: -8px;">{{ title | uppercase }}</div>\n\t\t</div>\n\t</div>\n\t<div class="row">\n\t\t<div class="col-sm-12">\n\t\t\t<p class="proxima-regular">List of service requests you have submitted recently.</p>\n\n\t\t\t<div id="requests_tab" class="clearfix">\n\t\t\t\t<ul class="nav nav-tabs" style="float:none;">\n\t\t\t\t\t<li ><a class="active" href="#sr_content" data-toggle="tab">Submitted Requests</a></li>\n\t\t\t\t\t<li><a href="#ss_content" data-toggle="tab">Saved Searches</a></li>\n\t\t\t\t</ul>\n\n\t\t\t\t<div class="tab-content">\n\t\t\t\t\t<div class="tab-pane active" id="sr_content">\n\t\t\t\t\t\t<div class="psd_agency_program_box">\n\t\t\t\t\t\t\t<div class="psd_program_column_box">\n\t\t\t\t\t\t\t\t<div class="psd_th clearfix">\n\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_th">S.No</div>\n\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_th">Reference Number</div>\n\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_th">Service Type</div>\n\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_th">Status</div>\n\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_th">Last Update</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="psd_th clearfix"\n\t\t\t\t\t\t\t\t\t*ngFor="let incident of submittedRequestList; let i = index">\n\n\t\t\t\t\t\t\t\t\t<div class="psd_tr clearfix td-font-size">\n\t\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_td text-center">{{i+1}}</div>\n\t\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_td text-center">\n\n\t\t\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\t\t\t[routerLink]="[\'/requestdetail/\'+incident.incidentrefno]">{{incident.incidentrefno}}</a>&nbsp;\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_td text-center">\n\t\t\t\t\t\t\t\t\t\t\t{{incident.incidenttypename}}&nbsp;\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_td text-center">\n\t\t\t\t\t\t\t\t\t\t\t<label [ngClass]="{\'label-danger\':incident.incidentstatusname === \'Unresolved\',\n\t\t\t\t\t\t\t\t\t\t\t\t\'label-success-approved\':incident.incidentstatusname === \'Approved\',                                   \n\t\t\t\t\t\t\t\t\t\t\t\t\'label-success\':incident.incidentstatusname === \'Closed\',\n\t\t\t\t\t\t\t\t\t\t\t\t\'label-warning\':incident.incidentstatusname===\'Rejected\' }"\n\t\t\t\t\t\t\t\t\t\t\t\tclass="label_width label ">{{incident.incidentstatusname}}</label>&nbsp;\n\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t<div style="width:20%;" class="psd_col_td text-center">\n\t\t\t\t\t\t\t\t\t\t\t{{incident.updatedtime | date:\'MM/dd/yyyy h:mm a\'}}</div>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div> \x3c!-- .tab-pane --\x3e\n\t\t\t\t\t<div class="tab-pane" id="ss_content">\n\t\t\t\t\t\t\x3c!--<rn:widget path="/custom/hria/citizen_landing" />--\x3e\n\t\t\t\t\t\t<p class="proxima-regular">Click on a panel to see more details.</p>\n\t\t\t\t\t\t<div class=\'nl-accordion-container\'>\n\t\t\t\t\t\t\t<div class="nl-panel-container" *ngIf="savedRequestList">\n\t\t\t\t\t\t\t\t<div *ngFor="let savedRequest of savedRequestList |keyvalue " class="accordion-container">\n\t\t\t\t\t\t\t\t\t\x3c!-- <div class="nl-panel-heading" (click)="savedSearch = !savedSearch"> --\x3e\n\t\t\t\t\t\t\t\t\t<div class="nl-panel-heading">\n\t\t\t\t\t\t\t\t\t\tReference Number: {{savedRequest.value[0].referencenumber}} | City: {{savedRequest.value[0].city}} | Radius: {{savedRequest.value[0].radius}}\n\t\t\t\t\t\t\t\t\t</div> \x3c!-- .nl-panel-heading --\x3e\n\t\t\t\t\t\t\t\t\t\x3c!-- <div *ngIf="savedSearch"> --\x3e\n\t\t\t\t\t\t\t\t\t<div class="saved-container">\n\t\t\t\t\t\t\t\t\t\t<div class="text-right"><a\n\t\t\t\t\t\t\t\t\t\t\t\thref="/spa_result/incident_id/{{savedRequest.value[0].ref}}"\n\t\t\t\t\t\t\t\t\t\t\t\ttarget="_blank"><i class="fa fa-eye">&nbsp;</i>View Results</a></div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_agency_program_box">\n\t\t\t\t\t\t\t\t\t\t\t<div class="psd_program_column_box">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="psd_th clearfix">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div style="width:50%;" class="psd_col_th">Selection Criteria</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div style="width:50%;" class="psd_col_th">Values</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div> \x3c!-- .psd_program_column_box --\x3e\n\n\t\t\t\t\t\t\t\t\t\t\t<div class="psd_tr clearfix td-font-size" *ngFor="let  sRequest of savedRequest.value">\n\t\t\t\t\t\t\t\t\t\t\t\t<div style="width:50%;" class="psd_col_td text-center">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<strong>{{sRequest.recordtype}}</strong></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style="width:50%;" class="psd_col_td text-center">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{sRequest.attributename}}</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div> \x3c!-- .psd_agency_program_box --\x3e\n\t\t\t\t\t\t\t\t\t</div> \x3c!-- .nl-panel-body --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div> \x3c!-- .tab-pane --\x3e\n\t\t\t\t</div> \x3c!-- .tab-content --\x3e\n\t\t\t</div> \x3c!-- #requests_tab --\x3e\n\t\t</div>\n\t</div>\n</div>',styles:['#requests_tab .nav {\n  text-transform: uppercase;\n}\n#requests_tab .nav li a {\n  color: #333;\n  background-color: #DFDBD6;\n  opacity: 0.75;\n  outline: 0;\n  padding: 10px 15px;\n  position: relative;\n  display: block;\n  margin-right: 2px;\n  line-height: 1.42857143;\n  border-radius: 4px 4px 0 0;\n}\n#requests_tab .nav li a.active {\n  background-color: #7F5081;\n  color: #fff;\n  opacity: 1;\n  border: 0;\n  outline: 0;\n  top: 1px;\n}\n#requests_tab .table {\n  margin-top: 0;\n}\n#requests_tab .tab-content {\n  border: 1px solid #ccc;\n  padding: 5px;\n}\n.nav:after {\n  display: table;\n  content: " ";\n}\n.proxima-regular {\n  color: #5b6d80;\n  font-size: 18pt;\n  line-height: 24pt;\n  font-weight: normal;\n  margin-bottom: 0;\n}\n.container {\n  max-width: 1170px !important;\n}\nul.nav-tabs li a {\n  font-weight: 100;\n}\n.saved-container {\n  display: none;\n}\n.accordion-container {\n  border: 1px solid #ccc;\n  margin-bottom: 5px;\n}\n@media (max-width: 604px) {\n  .td-font-size .psd_col_td, .td-font-size .psd_col_td a {\n    font-size: 12px !important;\n  }\n\n  .psd_col_th {\n    font-size: 8pt !important;\n    line-height: 21px !important;\n  }\n\n  .psd_form_section_heading {\n    font-size: 12pt !important;\n  }\n}']})],Uj);const qj={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let $j=class{constructor(t){this.http=t,this.backendUrl=Xf}getManageUsersList(){return this.http.get(this.backendUrl+"/v1/secure/manageusers/",qj).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}getContactProgramList(t){return this.http.get(this.backendUrl+"/v1/secure/manageusers/"+t,qj).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}getManageUsersProgramList(){return this.http.get(this.backendUrl+"/v1/secure/manageusers/program/",qj).pipe(Object(P_.a)(2),Object(N_.a)(this.handleError))}updateContactManageUser(t){return this.http.put(this.backendUrl+"/v1/secure/manageusers/contact/",t)}updatePermission(t){return this.http.put(this.backendUrl+"/v1/secure/manageusers/updatepermission/",t)}removeContact(t){return this.http.post(this.backendUrl+"/v1/secure/manageusers/removecontact/",t)}updateProfile(t){return this.http.post(this.backendUrl+"/v1/secure/updateName/",t)}updatePWD(t){return this.http.post(this.backendUrl+"/v1/secure/updatepassword/",t)}handleError(t){let e,n;return t instanceof Yf.HttpErrorResponse&&(!1===t.ok&&0===t.status?e="No internet connection or server might be unreachable. Please try again after sometime.":(n=t.error||"",e=n.message?n.message:n.error.message)),Object(O_.a)(e)}};$j.ctorParameters=()=>[{type:Yf.HttpClient}],$j=Hh([Object(s.Injectable)({providedIn:"root"})],$j);var Wj=n("PSD3"),Yj=n.n(Wj);let Gj=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.manageusersService=i,this.disable=!1,this.isAdmin=!1,this.title="Manage Users - Massachusetts Substance Use Helpline",this.emailaddress="",this.oc_other=!0,this.submitted=!1,this.enableButton=!1,this.btnoption="Next",this.savedRequestList=[],this.contactProgramsList=[],this.manageUsesProgramsList=[],this.selection=[],this.manageUserPayload=[],this.contactObject=[],this.rolesObject=[],this.titleService.setTitle(this.title)}get f(){return this.adduserForm.controls}ngOnInit(){this.AdminCheck(),this.adduserForm=this.fb.group({emailid:[null,[im.required,im.pattern(/^[\w]{1,}[\w.+-]{0,}@[\w-]{1,}([.][a-zA-Z]{2,}|[.][\w-]{2,}[.][a-zA-Z]{2,})$/)]],firstname:[null,[im.required]],lastname:[null,[im.required]],contactid:[],programList:[null,[im.required]],isadmin:[!1],ismanagewaitlist:[!1],ismanageattribute:[!1]}),this.manageusersService.getManageUsersList().subscribe(t=>{console.log("Manage Users:::",t);for(var e=0;e<t.agency.length;e++){for(var n=0;n<t.agency[e].manageuser.contactlist.length;n++){if(t.agency[e].manageuser.contactlist[n].contactid==this.contactid&&1==t.agency[e].manageuser.contactlist[n].admin){t.agency[e].manageuser.edit=!0;break}t.agency[e].manageuser.edit=!1}for(var i=0;i<t.agency[e].listofprograms.length;i++)for(var s=0;s<t.agency[e].listofprograms[i].contactlist.length;s++){if(t.agency[e].listofprograms[i].contactlist[s].contactid==this.contactid&&1==t.agency[e].listofprograms[i].contactlist[s].admin){t.agency[e].listofprograms[i].edit=!0;break}t.agency[e].listofprograms[i].edit=!1}}for(e=0;e<t.onlyprograms.length;e++)for(n=0;n<t.onlyprograms[e].manageuser.contactlist.length;n++){if(t.onlyprograms[e].manageuser.contactlist[n].contactid==this.contactid&&1==t.onlyprograms[e].manageuser.contactlist[n].admin){t.onlyprograms[e].manageuser.edit=!0;break}t.onlyprograms[e].manageuser.edit=!1}this.savedRequestList=t})}AdminCheck(){this.contactid=parseInt(localStorage.getItem("contactid")),this.isAdmin=!0}AddUser(){$("#oc_other").addClass("show"),$("#add_contact_button").addClass("show"),$("#check_other_contact_button").addClass("hide")}adduserSubmit(){this.submitted=!0,"VALID"==this.adduserForm.controls.emailid.status&&(this.oc_other=!1),this.adduserForm.invalid?this.el.nativeElement.querySelectorAll("input.ng-invalid")[0].focus():(this.payload=this.adduserForm.value,console.log("Payload ::",this.payload),this.disable=!0,this.manageusersService.updateContactManageUser(this.payload).subscribe(t=>{$("#add_contact_modal").modal("hide"),Yj.a.fire("","Successfully Inserted Contact","success"),this.disable=!1,this.clearForm(),this.ngOnInit()}))}clearForm(){this.adduserForm.reset(),this.oc_other=!0,this.enableButton=!1}onChange(t){}showError(t,e){t.html(e),$("#err_location_oc").html(t),$("html, body").animate({scrollTop:$("#err_location_oc").offset().top},"fast")}reset(){this.manageUserPayload=[],this.ngOnInit()}usercheck(t){if(!t)return!1;this.oc_other=!1,this.enableButton=!0,this.manageusersService.getManageUsersProgramList().subscribe(t=>{this.manageUsesProgramsList=t,console.log(t)}),this.manageusersService.getContactProgramList(t).subscribe(t=>{console.log(t),this.adduserForm.patchValue({firstname:t?t.firstname:"",lastname:t?t.lastname:"",contactid:t?t.id:""})})}checkUncheck(t,e){let n=$(t.target).parent().parent().attr("data-programid"),i=$(t.target).parent().parent().attr("data-programName"),s=$(t.target).attr("data-role"),r={programid:n,programname:i,contacts:[]},a={contactid:e.contactid,orgconid:e.orgconid,contactname:e.contactname,roles:[]},o={role:s,oldpermission:!t.target.checked,newpermission:!!t.target.checked};this.isOrgExist(e,n)?this.isContactExist(e,n)?(console.log("exist contact"),this.isRoleExist(e,n,s)?(console.log("exist role"),this.removeExistRole(e,n,s)):(console.log("new role"),this.insertNewRole(t,e,n,s))):(console.log("new contact role"),this.insertNewContactRole(t,e,n,s)):(a.roles.push(o),r.contacts.push(a),this.manageUserPayload.push(r)),console.log(this.manageUserPayload)}isOrgExist(t,e){for(var n=0;n<this.manageUserPayload.length;n++)if(this.manageUserPayload[n].programid==e)return!0;return!1}isContactExist(t,e){for(var n=0;n<this.manageUserPayload.length;n++)if(this.manageUserPayload[n].programid==e)for(var i=0;i<this.manageUserPayload[n].contacts.length;i++)if(this.manageUserPayload[n].contacts[i].contactid==t.contactid)return!0;return!1}isRoleExist(t,e,n){for(var i=0;i<this.manageUserPayload.length;i++)if(this.manageUserPayload[i].programid==e)for(var s=0;s<this.manageUserPayload[i].contacts.length;s++)if(this.manageUserPayload[i].contacts[s].contactid==t.contactid)for(var r=0;r<this.manageUserPayload[i].contacts[s].roles.length;r++)if(this.manageUserPayload[i].contacts[s].roles[r].role==n)return!0;return!1}removeExistRole(t,e,n){for(var i=0;i<this.manageUserPayload.length;i++)if(this.manageUserPayload[i].programid==e)for(var s=0;s<this.manageUserPayload[i].contacts.length;s++)if(this.manageUserPayload[i].contacts[s].contactid==t.contactid)for(var r=0;r<this.manageUserPayload[i].contacts[s].roles.length;r++)if(this.manageUserPayload[i].contacts[s].roles[r].role==n&&(this.manageUserPayload[i].contacts[s].roles.splice(r,1),console.log(this.manageUserPayload[i].contacts[s].roles.length),0==this.manageUserPayload[i].contacts[s].roles.length))return 1==this.manageUserPayload[i].contacts.length?(this.manageUserPayload.splice(i,1),!1):(this.manageUserPayload[i].contacts.splice(s,1),!1)}insertNewRole(t,e,n,i){for(var s=0;s<this.manageUserPayload.length;s++)if(this.manageUserPayload[s].programid==n)for(var r=0;r<this.manageUserPayload[s].contacts.length;r++)if(this.manageUserPayload[s].contacts[r].contactid==e.contactid){let e={role:i,oldpermission:!t.target.checked,newpermission:!!t.target.checked};this.manageUserPayload[s].contacts[r].roles.push(e)}}insertNewContactRole(t,e,n,i){for(var s=0;s<this.manageUserPayload.length;s++)if(this.manageUserPayload[s].programid==n){let n={contactid:e.contactid,orgconid:e.orgconid,contactname:e.contactname,roles:[]},r={role:i,oldpermission:!t.target.checked,newpermission:!!t.target.checked};n.roles.push(r),this.manageUserPayload[s].contacts.push(n)}}removeContact(t,e){let n=e.orgconid,i={id:Number(n)};Yj.a.fire({title:e.contactname,text:"Are you sure you want to delete this contact?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, delete it!",cancelButtonText:"No, keep it"}).then(t=>{t.value?this.manageusersService.removeContact(i).subscribe(t=>{console.log(t),Yj.a.fire("Deleted!","Your Contact has been deleted.","success"),this.ngOnInit()}):(t.dismiss,Yj.a.DismissReason.cancel)})}save(){console.log("Save ::",this.manageUserPayload);for(var t=[],e=0;e<this.manageUserPayload.length;e++)for(var n=0;n<this.manageUserPayload[e].contacts.length;n++){var i={orgconid:this.manageUserPayload[e].contacts[n].orgconid,roles:this.manageUserPayload[e].contacts[n].roles};t.push(i)}console.log("Save Payload ::",t),this.manageusersService.updatePermission(t).subscribe(t=>{console.log(t),this.manageUserPayload=[],this.ngOnInit()})}addUserModal(t){$("#add_contact_modal").modal("show")}showPermissionModal(t){$("#save_permission_modal").modal("show")}};Gj.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:$j}],Gj=Hh([Object(s.Component)({selector:"app-manageusers",template:'<div class="container body">\n\n\t<div class="modal fade" id="add_contact_modal" tabindex="-1" role="dialog">\n\t\t<div class="modal-dialog">\n\t\t\t<div class="modal-content">\n\t\t\t\t<div class="modal-header">\n\t\t\t\t\t<h4 class="modal-title text-left">Add a New User</h4>\n\t\t\t\t\t<button type="button" class="close" data-dismiss="modal" aria-label="Close" (click)="clearForm()">\n\t\t\t\t\t\t<span aria-hidden="true">&times;</span></button>\n\n\t\t\t\t</div>\n\t\t\t\t<form [formGroup]="adduserForm" (ngSubmit)="adduserSubmit()" method="post">\n\t\t\t\t\t<div class="modal-body">\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t<div id="err_location_oc">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="emailid" class="control-label">Please enter the email address:\n\t\t\t\t\t\t\t\t\t\t<span class="red text_small">required</span></label>\n\t\t\t\t\t\t\t\t\t<input #email type="text" [ngClass]="{\'submitted\':submitted==true}" name="emailid"\n\t\t\t\t\t\t\t\t\t\tformControlName="emailid" id="emailid" class="form-control" autocomplete="off"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Email Address" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!--\n\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t<span class="help-block">Make sure you enter a valid Email address. A confirmation email will be sent to this address which will contain instructions on how to activate the account.</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t--\x3e\n\t\t\t\t\t\t\t<input type="hidden" formControlName="contactid" [ngClass]="{\'submitted\':submitted==true}" name="contactid" id="contactid" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div id="oc_other" [hidden]="oc_other">\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="firstname" class="control-label">First Name of user: <span\n\t\t\t\t\t\t\t\t\t\t\t\tclass="red text_small">required</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="firstname" formControlName="firstname"\n\t\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'submitted\':submitted==true}" id="firstname" class="form-control"\n\t\t\t\t\t\t\t\t\t\t\tautocomplete="off" placeholder="First Name" \n\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="lastname" class="control-label">Last Name of user: <span\n\t\t\t\t\t\t\t\t\t\t\t\tclass="red text_small">required</span></label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="lastname" formControlName="lastname" autocomplete="off"\n\t\t\t\t\t\t\t\t\t\t\tplaceholder="Last Name" [ngClass]="{\'submitted\':submitted==true}" id="lastname"\n\t\t\t\t\t\t\t\t\t\t\tclass="form-control" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t<div class="form-group2">\n\t\t\t\t\t\t\t\t\t\t<label for="org_oc" class="control-label">Select Program(s): <span\n\t\t\t\t\t\t\t\t\t\t\t\tclass="red text_small">required</span></label>\n\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t \x3c!-- <ng-select [items]="manageUsesProgramsList" bindLabel="name" placeholder="Select an option"\n\t\t\t\t\t\t\t\t\t\t\t\tappendTo="body" multiple="true" (change)="onChange(selection)"\n\t\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="selection" formControlName="gender" [closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true" [clearable]="false">\n\t\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="manageUsesProgramsList.programsList" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.organizationname}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\taria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t\t</ng-select> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<ng-select placeholder="Select an option" *ngIf="manageUsesProgramsList"\n\t\t\t\t\t\t\t\t\t\t\tappendTo="body" multiple="true" (change)="onChange(selection)" formControlName="programList" name="programList" [ngClass]="{\'submitted\':submitted==true}" >\n\t\t\t\t\t\t\t\t\t\t\t\t<ng-option *ngFor="let program of manageUsesProgramsList.programsList" [value]="program.organizationid">\n\t\t\t\t\t\t\t\t\t\t\t\t\t{{program.organizationname}}\n\t\t\t\t\t\t\t\t\t\t\t\t</ng-option>\n\t\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <input id="selAttribute_m" name="selAttribute_m" type="hidden"> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t<div class="checkbox"><label><input type="checkbox" formControlName="isadmin" name="isadmin" value="Yes"\n\t\t\t\t\t\t\t\t\t\t\t\tid="isadmin" /> Administrator Rights?</label></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t<div class="checkbox"><label><input type="checkbox" formControlName="ismanagewaitlist" name="ismanagewaitlist"\n\t\t\t\t\t\t\t\t\t\t\t\tvalue="Yes" id="ismanagewaitlist" /> Manage Waitlist?</label></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t<div class="checkbox"><label><input type="checkbox" formControlName="ismanageattribute" name="ismanageattribute"\n\t\t\t\t\t\t\t\t\t\t\t\tvalue="Yes" id="ismanageattribute" /> Manage Attributes?</label></div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="modal-footer modal-center">\n\t\t\t\t\t\t<button type="button" class="button button_small" data-dismiss="modal" (click)="clearForm()">Close</button>\n\t\t\t\t\t\t<button type="button" class="button button_small" (click)="usercheck(email.value)" *ngIf="!enableButton">Next</button>\n\t\t\t\t\t\t<button type="submit" id="check_other_contact_button" class="button button_small" [disabled]="disable ? true : null" *ngIf="enableButton">Submit</button>\n\t\t\t\t\t\t\x3c!--\t<button type="submit" id="check_other_contact_button" class="button button_small"\n\t\t\t\t\t\t\t(click)="usercheck(email.value)">{{btnoption}}</button>\n\t\t\t\t\t <button type="button" id="add_contact_button" class="button button_small hide">Submit</button> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t</form>\n\t\t\t</div>\x3c!-- /.modal-content --\x3e\n\t\t</div>\x3c!-- /.modal-dialog --\x3e\n\t</div>\n\t<div class="modal fade" id="save_permission_modal" tabindex="-1" role="dialog">\n\t\t<div class="modal-dialog">\n\t\t\t<div class="modal-content">\n\t\t\t\t<div class="modal-header">\n\t\t\t\t\t<h4 class="modal-title text-left">Confirm Selection</h4>\n\t\t\t\t\t<button type="button" class="close" data-dismiss="modal" aria-label="Close">\n\t\t\t\t\t\t<span aria-hidden="true">&times;</span></button>\n\n\t\t\t\t</div>\t\t\t\t\n\t\t\t\t<div class="modal-body">\n\t\t\t\t\t<ul class="fa-ul">\n\t\t\t\t\t\t<li *ngFor="let permissions of manageUserPayload"><span class="agency_name"><i class="fa-li fa fa-building">&nbsp;</i>{{permissions.programname}}</span>\n\t\t\t\t\t\t\t<div *ngFor="let contacts of permissions.contacts">\n\t\t\t\t\t\t\t\t<p style="margin:0;"><i class="fa fa-user">&nbsp;</i>{{contacts.contactname}}</p>\n\t\t\t\t\t\t\t\t<table class="table table-bordered table-condensed table-striped">\n\t\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<th>Role</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>Old Permission</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>New Permission</th>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t<tr style="text-align: center;" *ngFor="let roles of contacts.roles">\n\t\t\t\t\t\t\t\t\t\t\t<td>{{roles.role}}</td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="text-align: center;"><i class="fa" [ngClass]="{\'fa-check fa-green\':(roles.oldpermission),\'fa-close fa-red\':(!roles.oldpermission)}">&nbsp;</i></td>\n\t\t\t\t\t\t\t\t\t\t\t<td style="text-align: center;"><i class="fa" [ngClass]="{\'fa-check fa-green\':(roles.newpermission),\'fa-close fa-red\':(!roles.newpermission)}">&nbsp;</i></td>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\x3c!-- <p style="margin:0;"><i class="fa fa-user">&nbsp;</i>ALEXIS WING</p>\n\t\t\t\t\t\t\t<table class="table table-bordered table-condensed table-striped">\n\t\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<th>Role</th>\n\t\t\t\t\t\t\t\t\t\t<th>Old Permission</th>\n\t\t\t\t\t\t\t\t\t\t<th>New Permission</th>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<td>Manage WaitList</td>\n\t\t\t\t\t\t\t\t\t\t<td><i class="fa fa-check fa-green">&nbsp;</i></td>\n\t\t\t\t\t\t\t\t\t\t<td><i class="fa fa-close fa-red">&nbsp;</i></td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t</table> --\x3e\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t<div class="modal-footer modal-center">\n\t\t\t\t\t<button type="button" class="button button_small" data-dismiss="modal" (click)="save()">Save</button>\t\t\t\t\t\n\t\t\t\t</div>\t\t\t\t\n\t\t\t</div>\x3c!-- /.modal-content --\x3e\n\t\t</div>\x3c!-- /.modal-dialog --\x3e\n\t</div>\n\t\x3c!-- /.modal --\x3e\n\t<div class="row" style="margin-top: -8px;">\n\t\t<div class="col-sm-6">\n\t\t\t<div class="psd_form_section_heading">{{this.title}}</div>\n\t\t</div>\n\t\t<div class="col-sm-6 text-right" style="margin-top:5px;">\n\t\t\t<button class="button button_medium" (click)="addUserModal($event)">Add a\n\t\t\t\tUser</button>\n\t\t</div>\n\t</div>\n\t<div class="row">\n\t\t<div class="col-sm-12">\n\t\t</div>\n\t</div>\n\t<div class="row " id="manage_users_div">\n\t\t<div class="col-sm-9" *ngIf="savedRequestList">\n\t\t\t<ul class="fa-ul" *ngFor="let agencylist of savedRequestList.agency">\n\t\t\t\t<li><span class="agency_name"><i\n\t\t\t\t\t\t\tclass="fa-li fa fa-bank">&nbsp;</i>{{agencylist.manageuser.organizationname}}</span>\n\t\t\t\t\t<div class="psd_agency_program_box table_manage_users negative_ml35">\n\t\t\t\t\t\t<div class="psd_program_column_box">\n\t\t\t\t\t\t\t<div class="psd_th clearfix">\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Full Name</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Administrator Rights</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Manages Attributes</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Manages Waitlist</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th" *ngIf="agencylist.manageuser.edit">Action</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="psd_tr clearfix"\n\t\t\t\t\t\t\t\t*ngFor="let listofcontacts of agencylist.manageuser.contactlist" [attr.data-programID]="agencylist.manageuser.organizationid" \n\t\t\t\t\t\t\t\t[attr.data-programName]="agencylist.manageuser.organizationname" data-user="1925"\n\t\t\t\t\t\t\t\tdata-person="KAREN BLANCHARD">\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center">{{listofcontacts.contactname}}</div>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!agencylist.manageuser.edit"\n\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.admin),\'fa-close fa-red\':(!listofcontacts.admin)}"\n\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Admin\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="agencylist.manageuser.edit" type="checkbox" value="true" [checked]="listofcontacts.admin">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!agencylist.manageuser.edit"\n\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.manageattributes),\'fa-close fa-red\':(!listofcontacts.manageattributes)}"\n\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Manage Attributes\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="agencylist.manageuser.edit" type="checkbox" value="true" [checked]="listofcontacts.manageattributes">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!agencylist.manageuser.edit"\n\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.managewaitList),\'fa-close fa-red\':(!listofcontacts.managewaitList)}"\n\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Manage WaitList\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="agencylist.manageuser.edit" type="checkbox" value="true" [checked]="listofcontacts.managewaitList">\n\t\t\t\t\t\t\t\t</div>\t\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center" *ngIf="agencylist.manageuser.edit">\n\t\t\t\t\t\t\t\t\t<button class="remove_user button button_medium" (click)="removeContact($event,listofcontacts)">Remove</button>\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<ul class="fa-ul" style="margin-left:3px;">\n\t\t\t\t\t\t<li style="margin-bottom:10px;" *ngFor="let programlist of agencylist.listofprograms">\n\t\t\t\t\t\t\t<div class="psd_agency_title clearfix program_name">\n\t\t\t\t\t\t\t\t<div class="psd_name_address"><span class="psd_agency_name"><i\n\t\t\t\t\t\t\t\t\t\t\tclass="fa fa-building">&nbsp;</i>{{programlist.organizationname}}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="psd_agency_program_box table_manage_users" data-programID="13281"\n\t\t\t\t\t\t\t\tdata-programName="McCleary Manor">\n\t\t\t\t\t\t\t\t<div class="psd_program_column_box">\n\t\t\t\t\t\t\t\t\t<div class="psd_th clearfix">\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_th">Full Name</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_th">Administrator Rights</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_th">Manages Attributes</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_th">Manages Waitlist</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_th" *ngIf="programlist.edit">Action</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="psd_tr clearfix" *ngFor="let listofcontacts of programlist.contactlist" [attr.data-programID]="programlist.organizationid" \n\t\t\t\t\t\t\t\t\t[attr.data-programName]="programlist.organizationname">\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_td text-center">{{listofcontacts.contactname}}</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!programlist.edit"\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.admin),\'fa-close fa-red\':(!listofcontacts.admin)}"\n\t\t\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Admin\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="programlist.edit" type="checkbox" value="true" [checked]="listofcontacts.admin">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!programlist.edit"\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.manageattributes),\'fa-close fa-red\':(!listofcontacts.manageattributes)}"\n\t\t\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Manage Attributes\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="programlist.edit" type="checkbox" value="true" [checked]="listofcontacts.manageattributes">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!programlist.edit"\n\t\t\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.managewaitList),\'fa-close fa-red\':(!listofcontacts.managewaitList)}"\n\t\t\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Manage WaitList\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="programlist.edit" type="checkbox" value="true" [checked]="listofcontacts.managewaitList">\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="psd_col_td text-center" *ngIf="programlist.edit">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="remove_user button button_medium" (click)="removeContact($event,listofcontacts)">Remove</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t</ul>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<ul class="fa-ul onlyprograms">\n\t\t\t\t<li style="margin-bottom:10px;" *ngFor="let programlist of savedRequestList.onlyprograms">\n\t\t\t\t\t<div class="psd_agency_title clearfix program_name">\n\t\t\t\t\t\t<div class="psd_name_address"><span class="psd_agency_name"><i\n\t\t\t\t\t\t\t\t\tclass="fa fa-building">&nbsp;</i>{{programlist.manageuser.organizationname}}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="psd_agency_program_box table_manage_users" data-programID="13281"\n\t\t\t\t\t\tdata-programName="McCleary Manor">\n\t\t\t\t\t\t<div class="psd_program_column_box">\n\t\t\t\t\t\t\t<div class="psd_th clearfix">\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Full Name</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Administrator Rights</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Manages Attributes</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th">Manages Waitlist</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_th" *ngIf="programlist.manageuser.edit">Action</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="psd_tr clearfix"\n\t\t\t\t\t\t\t\t*ngFor="let listofcontacts of programlist.manageuser.contactlist" [attr.data-programID]="programlist.manageuser.organizationid" \n\t\t\t\t\t\t\t\t[attr.data-programName]="programlist.manageuser.organizationname">\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center">{{listofcontacts.contactname}}</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!programlist.manageuser.edit"\n\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.admin),\'fa-close fa-red\':(!listofcontacts.admin)}"\n\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Admin\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="programlist.manageuser.edit" type="checkbox" value="true" [checked]="listofcontacts.admin">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!programlist.manageuser.edit"\n\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.manageattributes),\'fa-close fa-red\':(!listofcontacts.manageattributes)}"\n\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Manage Attributes\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="programlist.manageuser.edit" type="checkbox" value="true" [checked]="listofcontacts.manageattributes">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center"><i *ngIf="!programlist.manageuser.edit"\n\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'fa-check fa-green\':(listofcontacts.managewaitList),\'fa-close fa-red\':(!listofcontacts.managewaitList)}"\n\t\t\t\t\t\t\t\t\t\tclass="fa">&nbsp;</i>\n\t\t\t\t\t\t\t\t\t\t<input [attr.data-role]="\'Manage WaitList\'" (click)="checkUncheck($event,listofcontacts)" *ngIf="programlist.manageuser.edit" type="checkbox" value="true" [checked]="listofcontacts.managewaitList">\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="psd_col_td text-center" *ngIf="programlist.manageuser.edit">\n\t\t\t\t\t\t\t\t\t<button class="remove_user button button_medium" (click)="removeContact($event,listofcontacts)">Remove</button>\n\t\t\t\t\t\t\t\t</div>\t\t\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t\t<div class="top10 text-center">\n\t\t\t\t<button [attr.disabled]="(manageUserPayload.length==0)?\'true\':null" type="button" id="reset_button"\n\t\t\t\t\t\t\t\t\t\tclass="button button_medium" (click)="reset()">Reset</button>&nbsp;\n\t\t\t\t<button [attr.disabled]="(manageUserPayload.length==0)?\'true\':null" type="button" (click)="showPermissionModal($event)"\n\t\t\t\t\tid="show_confirm_modal_button" class="button button_medium">Save</button></div>\n\t\t\t<p style="margin-bottom:0;"><strong>Note: </strong></p>\n\t\t\t<ul>\n\t\t\t\t<li>(1) Clicking "Reset" will return permissions to the most recent saved status.</li>\n\t\t\t\t<li>(2) Clicking "Save" will save any changes you\'ve made.</li>\n\t\t\t</ul>\n\t\t\t<input type="hidden" id="changed" value="0" />\n\t\t</div>\n\t</div>\n</div>',styles:[".psd_th, .psd_tr {\n  display: flex;\n  flex-wrap: wrap;\n}\n\n.psd_col_th, .psd_col_td {\n  flex-basis: 0;\n  flex-grow: 1;\n  max-width: 100%;\n}\n\n.container {\n  max-width: 1170px !important;\n}\n\ninput.submitted.ng-invalid, select.submitted.ng-invalid {\n  border: solid 1px red !important;\n}\n\n.onlyprograms {\n  margin-left: 0 !important;\n}\n\n@media (max-width: 768px) {\n  .psd_col_th {\n    line-height: 17px !important;\n    font-size: 8pt;\n  }\n\n  .psd_form_section_heading {\n    font-size: 13pt !important;\n  }\n\n  .modal-dialog {\n    width: auto !important;\n  }\n\n  .psd_agency_name, .psd_agency_address {\n    font-size: 14pt !important;\n  }\n}\n\n@media (max-width: 1215px) {\n  .psd_col_th {\n    line-height: 17px !important;\n  }\n}\n\n@media (min-width: 300px) and (max-width: 360px) {\n  .psd_col_th {\n    font-size: 7pt !important;\n  }\n}"]})],Gj);const Kj={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let Zj=class{constructor(t){this.http=t,this.backendUrl=Xf,this.waitlistdata=new pg.a(null),this.castwaitlistdata=this.waitlistdata.asObservable()}static searchWaitlistData(t){throw new Error("Method not implemented.")}setWaitlistdata(t){this.waitlistdata.next(t)}searchwaitlistperson(t){return this.http.post(this.backendUrl+"/v1/secure/searchcontact",t,Kj)}addwaitlistperson(t){return this.http.post(this.backendUrl+"/v1/secure/addcontactwaitlist",t,Kj)}addwaitlistpersonbysearch(t){return this.http.post(this.backendUrl+"/v1/secure/addcontactwaitlist",t,Kj)}checkcontactwaitlistperson(t){return this.http.post(this.backendUrl+"/v1/secure/checkcontactwaitlist",t,{responseType:"text"})}searchWaitlistData(t){return this.http.post(this.backendUrl+"/v1/secure/serachcontactwaitlist",t,Kj)}getCapacityData(t){return this.http.get(this.backendUrl+"/v1/secure/capacity/"+t)}admitContactWaitlist(t){return this.http.post(this.backendUrl+"/v1/secure/admitcontactwaitlist",t,Kj)}updatePersoninfo(t){return this.http.put(this.backendUrl+"/v1/secure/updatecontact/",t)}getpersoninfo(t){return this.http.get(this.backendUrl+"/v1/secure/contactwaitlistdetails/"+t)}movetoadmittedtab(t){return this.http.post(this.backendUrl+"/v1/secure/movecontactwaitlist",t,Kj)}removewaitlisttab(t){return this.http.get(this.backendUrl+"/v1/secure/movecontactwaitlist/"+t)}keepContactWaitlist(t){return this.http.get(this.backendUrl+"/v1/secure/keepcontactwaitlist/"+t)}getremovalreasons(t){return this.http.get(this.backendUrl+"/v1/secure/removereasoncontactwaitlist/"+t)}updatePriorityPosition(t){return this.http.post(this.backendUrl+"/v1/secure/priorityorder",t,Kj)}getcontacwaitlist(t){return this.http.get(this.backendUrl+"/v1/secure/contactwaitlist/"+t)}getOpaData(t){return this.http.post(this.backendUrl+"/v1/open/externalSearch",t,Kj)}serviceCategory(){return this.http.get(this.backendUrl+"/v1/open/treatmentscategory")}serviceCategorySP(){return this.http.get(this.backendUrl+"/v1/open/treatmentscategorysp")}getInsurance(){return this.http.get(this.backendUrl+"/v1/open/payments")}openscreeninglog(t){return this.http.post(this.backendUrl+"/v1/secure/addpersontoscreenlog",t,{responseType:"text"})}moveScreeningToWaitlist(t){return this.http.post(this.backendUrl+"/v1/secure/movescreeningtowaitlist",t,Kj)}getScreeningWaitlist(t){return this.http.get(this.backendUrl+"/v1/secure/screeningwaitlist/"+t)}searchScreeningData(t){return this.http.post(this.backendUrl+"/v1/secure/serachscreeningwaitlist",t,Kj)}shareResults(t){return this.http.post(this.backendUrl+"/v1/open/shareresults",t,{responseType:"text"})}getAnswer(t){return this.http.post(this.backendUrl+"/v1/open/answerbyattribute",t,{responseType:"text"})}getwaitlistinfo(t){return this.http.get(this.backendUrl+"/v1/secure/waitlist/"+t)}getOrgNameByID(t){return this.http.post(this.backendUrl+"/v1/secure/getorgnamesbyid",t,Kj)}getloginorgnamesbyid(t){return this.http.post(this.backendUrl+"/v1/secure/getloginorgnamesbyid",t,Kj)}getWaitlistorgname(t){return this.http.post(this.backendUrl+"/v1/secure/waitlistorgname",t,{responseType:"text"})}refuseOnScreeningLog(t){return this.http.post(this.backendUrl+"/v1/secure/refusescreeningcontactwaitlist",t,Kj)}searchadmittedData(t){return this.http.post(this.backendUrl+"/v1/secure/serachadmitcontactwaitlist",t,Kj)}getAdmittedData(t){return this.http.get(this.backendUrl+"/v1/secure/contactwaitlist/"+t)}getloggedinsharedwlcontact(t){return this.http.post(this.backendUrl+"/v1/secure/getloggedinsharedwlcontact",t,Kj)}refuseContactWaitlist(t){return this.http.post(this.backendUrl+"/v1/secure/refusecontactwaitlist",t,{responseType:"text"})}};Zj.ctorParameters=()=>[{type:Yf.HttpClient}],Zj=Hh([Object(s.Injectable)({providedIn:"root"})],Zj);let Xj=class{constructor(t,e,n,i,s,r,a){this.datePipe=t,this.modalService=e,this.activeModal=n,this.waitlistserive=i,this.fb=s,this.el=r,this.datepipe=a,this.selection=[],this.selection2=[],this.selection3=[],this.submitted=!1,this.submitted1=!1,this.dateInvalid=!1,this.movetowaitlistdata=[],this.lastSubstance=!1,this.selectedppopulation=!1,this.prloader=!1,this.disprload=!1,this.mentalhealthError=!1,this.bedoptions=[{id:2,name:"Medicaid"},{id:1,name:"Not funded"},{id:3,name:"Other"}],this.Insurance=[{id:1,name:"Private insurance"},{id:2,name:"Medicaid"},{id:3,name:"Medicare"},{id:4,name:"No Insurance"}],this.RefProgram=[{id:1,name:"ATS"},{id:2,name:"CSS"},{id:3,name:"TSS"},{id:4,name:"Other residential rehab"},{id:5,name:"Psychiatric hospital"},{id:6,name:"Shelter"},{id:7,name:"Jail"},{id:8,name:"Court/Drug court"},{id:9,name:"Section 35"},{id:10,name:"Self-referral"},{id:11,name:"Other"}],this.Races=[{id:2,name:"American Indian / Alaska Native"},{id:7,name:"Asian"},{id:4,name:"Black, African American"},{id:3,name:"Nat. Hawaiian/Pac. Islander"},{id:1461,name:"Latino"},{id:1,name:"Refuse"},{id:5,name:"White"}],this.ethnicity=[{id:4,name:"Cuban"},{id:6,name:"Hispanic, not otherwise specified"},{id:3,name:"Mexican"},{id:5,name:"Not of Hispanic Origin"},{id:2,name:"Puerto Rican"},{id:1,name:"Refuse"}],this.ppopulation=[{id:4,name:"Pregnant woman with injecting drug use"},{id:2,name:"Pregnant woman"},{id:1,name:"Person with injecting drug use"},{id:3,name:"None"}],this.Iservices=[{id:1,name:"HIV testing"},{id:2,name:"HIV/TB/Hep C education"},{id:3,name:"HIV/TB/Hep C treatment referral"},{id:5,name:"Info on substances & fetal development"},{id:6,name:"Prenatal care referral"},{id:4,name:"Referral to other services"}],this.preferredlanguages=[{id:429,name:"English"},{id:827,name:"Spanish"},{id:799,name:"Albanian"},{id:800,name:"Arabic"},{id:1052,name:"ASL (Hearing Impaired)"},{id:801,name:"Bosnian"},{id:802,name:"Cambodian"},{id:803,name:"Cantonese"},{id:806,name:"Cape Verdean"},{id:804,name:"Chinese"},{id:805,name:"Creole"},{id:807,name:"Danish"},{id:808,name:"Egyptian"},{id:809,name:"Farsi"},{id:811,name:"Finnish"},{id:810,name:"French"},{id:813,name:"German"},{id:812,name:"Greek"},{id:814,name:"Haitian Creole"},{id:815,name:"Hebrew"},{id:817,name:"Indian"},{id:816,name:"Italian"},{id:818,name:"Japanese"},{id:819,name:"Khmer"},{id:820,name:"Korean"},{id:821,name:"Laotian"},{id:822,name:"Mandarin"},{id:823,name:"Nigerian"},{id:825,name:"Polish"},{id:824,name:"Portuguese"},{id:826,name:"Russian"},{id:828,name:"Somali"},{id:829,name:"Swahili"},{id:830,name:"Vietnamese"},{id:1027,name:"Other"}],this.states=[{id:1,name:"AK"},{id:2,name:"AL"},{id:3,name:"AR"},{id:4,name:"AS"},{id:5,name:"AZ"},{id:6,name:"CA"},{id:7,name:"CO"},{id:8,name:"CT"},{id:9,name:"DC"},{id:10,name:"DE"},{id:11,name:"FL"},{id:12,name:"FM"},{id:13,name:"GA"},{id:14,name:"GU"},{id:15,name:"HI"},{id:16,name:"IA"},{id:17,name:"ID"},{id:18,name:"IL"},{id:19,name:"IN"},{id:20,name:"KS"},{id:21,name:"KY"},{id:22,name:"LA"},{id:23,name:"MA"},{id:24,name:"MD"},{id:25,name:"ME"},{id:26,name:"MH"},{id:27,name:"MI"},{id:28,name:"MN"},{id:29,name:"MO"},{id:30,name:"MP"},{id:31,name:"MS"},{id:32,name:"MT"},{id:33,name:"NC"},{id:34,name:"ND"},{id:35,name:"NE"},{id:36,name:"NH"},{id:37,name:"NJ"},{id:38,name:"NM"},{id:39,name:"NV"},{id:40,name:"NY"},{id:41,name:"OH"},{id:42,name:"OK"},{id:43,name:"OR"},{id:44,name:"PA"},{id:45,name:"PR"},{id:46,name:"PW"},{id:47,name:"RI"},{id:48,name:"SC"},{id:49,name:"SD"},{id:50,name:"TN"},{id:51,name:"TX"},{id:52,name:"UT"},{id:53,name:"VA"},{id:54,name:"VI"},{id:55,name:"VT"},{id:56,name:"WA"},{id:57,name:"WI"},{id:58,name:"WV"},{id:59,name:"WY"}]}get f(){return this.registerForm.controls}ngOnInit(){console.log(this.waitlistref),console.log(this.buttonval),this.registerForm=this.fb.group({fn_log:[null,[im.required]],ln_log:[null,[im.required]],gen_log:[null,[im.required]],dob_log:[null,[im.required]],ssn_log:[null,[im.required]],lan_log:[null,[im.required]],races:[null,[im.required]],ethnicity:[null,[im.required]],bed_opt_s:[null,im.required],ins_s:[null,im.required],rp_s:[null,im.required],em_log:[null],ph_log:[null,[im.required]],street_log:[null],city_log:[null],state_log:["23"],zip_log:[null],ppopulation:[null,[im.required]],iservices:[null],interimservices:this.fb.array([]),notes_s:[null],spclacc:[null],mentalhealthneeds:[null,[im.required]],mentalhealth:[]}),this.refusalform=this.fb.group({refusalnote:["",im.required]}),"movetowaitlist"==this.buttonval&&this.waitlistserive.getpersoninfo(this.ref).subscribe(t=>{if(this.movetowaitlistdata=t,console.log(this.movetowaitlistdata),null!=this.movetowaitlistdata||""==this.movetowaitlistdata){let t,e=[],n=[],i=this.registerForm.get("interimservices");for(let r=0;r<this.movetowaitlistdata.interimservices.length;r++)e.push(this.movetowaitlistdata.interimservices[r].interimservices),n.push(this.movetowaitlistdata.interimservices[r].statusid),i.push(this.fb.group({interimservices:this.movetowaitlistdata.interimservices[r].interimservices,statusid:this.movetowaitlistdata.interimservices[r].statusid}));t=this.movetowaitlistdata.preferredlanguage.length>4?this.preferredlanguages.filter(t=>t.name==this.movetowaitlistdata.preferredlanguage)[0]?this.preferredlanguages.filter(t=>t.name==this.movetowaitlistdata.preferredlanguage)[0].id:"":this.preferredlanguages.filter(t=>t.id==this.movetowaitlistdata.preferredlanguage)[0]?this.preferredlanguages.filter(t=>t.id==this.movetowaitlistdata.preferredlanguage)[0].id:"",this.registerForm.patchValue({fn_log:this.movetowaitlistdata.con.firstname,ln_log:this.movetowaitlistdata.con.lastname,dob_log:this.datePipe.transform(this.movetowaitlistdata.con.dob,"MM-dd-yyyy"),gen_log:this.movetowaitlistdata.genderid,ssn_log:this.movetowaitlistdata.con.ssn,lan_log:t,races:this.movetowaitlistdata.races,ethnicity:this.movetowaitlistdata.ethncity,em_log:this.movetowaitlistdata.emailaddress,ph_log:this.movetowaitlistdata.phonenumber,street_log:this.movetowaitlistdata.addressline1,city_log:this.movetowaitlistdata.city,state_log:this.movetowaitlistdata.state,zip_log:this.movetowaitlistdata.zipcode,ppopulation:this.movetowaitlistdata.prioritypoulation,iservices:e,notes_s:this.movetowaitlistdata.externalnotes,spclacc:this.movetowaitlistdata.specialaccommmodations,mentalhealth:this.movetowaitlistdata.mentalhealth,mentalhealthneeds:this.movetowaitlistdata.mentalhealthneeds});const s=this;setTimeout(()=>{if(0==s.movetowaitlistdata.mentalhealth){s.registerForm.get("mentalhealthneeds").clearValidators(),s.registerForm.get("mentalhealthneeds").updateValueAndValidity(),document.getElementById("mhealthnotes").style.display="none"}s.movetowaitlistdata.mentalhealth?document.getElementById("mhy").checked=!0:document.getElementById("mhn").checked=!0},1e3),console.log(this.registerForm.value)}})}static date(t){return new RegExp(/^\d{1,2}\.\d{1,2}\.\d{4}$/).test(t.value)?null:{date:!0}}onChange(t){}onChangePopulation(t){console.log(t),0==t.length&&(this.selectedppopulation=!1,this.registerForm.get("iservices").clearValidators(),this.registerForm.get("iservices").updateValueAndValidity());for(let e=0;e<t.length;e++){if("3"==t[e])return this.selectedppopulation=!1,this.registerForm.get("iservices").clearValidators(),this.registerForm.get("iservices").updateValueAndValidity(),void this.registerForm.get("ppopulation").patchValue([t[e]]);"3"!=t[e].name&&(this.selectedppopulation=!0,this.registerForm.get("iservices").setValidators([im.required]),this.registerForm.get("iservices").updateValueAndValidity())}}getPayload(){var t=[],e=document.getElementsByName("mental_health"),n=document.querySelector('input[name="mental_health"]:checked');if(0!=e[0].checked||0!=e[1].checked){for(let e=0;e<this.registerForm.value.interimservices.length;e++){var i={};console.log(),i.interimservices=this.registerForm.value.interimservices[e].interimservices,i.statusid=this.registerForm.value.interimservices[e].statusid,t.push(i)}return console.log(t),{waitlistref:this.waitlistref,genderid:this.registerForm.value.gen_log,preferredlanguage:this.preferredlanguages.filter(t=>t.id==this.registerForm.value.lan_log)[0].name,emailaddress:this.registerForm.value.em_log,phonenumber:this.registerForm.value.ph_log,addressline1:this.registerForm.value.street_log,city:this.registerForm.value.city_log,state:this.registerForm.value.state_log,zipcode:this.registerForm.value.zip_log,externalnotes:this.registerForm.value.notes_s,specialaccommmodations:this.registerForm.value.spclacc,races:this.registerForm.value.races,ethncity:this.registerForm.value.ethnicity,prioritypoulation:this.registerForm.value.ppopulation,interimservices:t,mentalhealth:1==n.value,mentalhealthneeds:this.registerForm.value.mentalhealthneeds,con:{firstname:this.registerForm.value.fn_log,lastname:this.registerForm.value.ln_log,ssn:this.registerForm.value.ssn_log,dob:null!=this.registerForm.value.dob_log?this.datepipe.transform(this.registerForm.value.dob_log,"yyyy-MM-dd").toString():""}}}this.mentalhealthError=!0}regSubmit(){if(3==this.registerForm.value.ppopulation&&(this.registerForm.get("iservices").clearValidators(),this.registerForm.get("iservices").updateValueAndValidity()),"addaperson"==this.buttonval){if(this.submitted=!0,this.f.lan_log.clearValidators(),this.f.lan_log.updateValueAndValidity(),this.f.races.clearValidators(),this.f.races.updateValueAndValidity(),this.f.ethnicity.clearValidators(),this.f.ethnicity.updateValueAndValidity(),this.f.ph_log.clearValidators(),this.f.ph_log.updateValueAndValidity(),this.f.ppopulation.clearValidators(),this.f.ppopulation.updateValueAndValidity(),this.f.iservices.clearValidators(),this.f.iservices.updateValueAndValidity(),this.f.bed_opt_s.clearValidators(),this.f.bed_opt_s.updateValueAndValidity(),this.f.ins_s.clearValidators(),this.f.ins_s.updateValueAndValidity(),this.f.rp_s.clearValidators(),this.f.rp_s.updateValueAndValidity(),console.log("addaperson"),this.registerForm.invalid)return void console.log("invalid");this.prloader=!0,this.disprload=!0,console.log(this.registerForm);var t=this.getPayload();console.log(t),this.waitlistserive.openscreeninglog(t).subscribe(t=>{console.log(t),t&&("This person is already added in log"==t&&Yj.a.fire({title:"",width:"424px",text:"This person is already added in log",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(t=>{console.log(t),t.value?this.modalService.dismissAll():(t.dismiss,Yj.a.DismissReason.cancel)}),"Person added to log"==t&&location.reload())})}if("movetowaitlist"==this.buttonval){if(this.submitted=!0,console.log("movetowaitlist"),this.f.lan_log.setValidators([im.required]),this.f.lan_log.updateValueAndValidity(),this.f.races.setValidators([im.required]),this.f.races.updateValueAndValidity(),this.f.ethnicity.setValidators([im.required]),this.f.ethnicity.updateValueAndValidity(),this.f.ph_log.setValidators([im.required]),this.f.ph_log.updateValueAndValidity(),this.f.ppopulation.setValidators([im.required]),this.f.ppopulation.updateValueAndValidity(),this.f.bed_opt_s.setValidators([im.required]),this.f.bed_opt_s.updateValueAndValidity(),this.f.ins_s.setValidators([im.required]),this.f.ins_s.updateValueAndValidity(),this.f.rp_s.setValidators([im.required]),this.f.rp_s.updateValueAndValidity(),this.registerForm.invalid){return this.el.nativeElement.querySelector("form .ng-invalid").focus(),void console.log("invalid")}this.prloader=!0,this.disprload=!0,(t=this.getPayload()).id=this.contactwaitlistid,t.insuranceid=this.registerForm.value.ins_s,t.bedoptionid=this.registerForm.value.bed_opt_s,t.referringprogramid=this.registerForm.value.rp_s,t.currentlyincarcerated=null,t.lastdateused=null,Yj.a.fire({title:"",width:"424px",text:"Are you sure want to add this person to waitlist",icon:"warning",showCancelButton:!0,cancelButtonText:"Cancel",confirmButtonText:"OK",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(e=>{if(console.log(e),e.value)this.waitlistserive.moveScreeningToWaitlist(t).subscribe(t=>{console.log(t),this.modalService.dismissAll(),t&&Yj.a.fire({title:"",width:"424px",text:"Person successfully added to waitlist",icon:"success",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(t=>{if(console.log(t),t.value){var e=window.location.href+"?peopleonwaitlist=true";window.location.href=e}else t.dismiss,Yj.a.DismissReason.cancel})});else if(e.dismiss===Yj.a.DismissReason.cancel)return this.prloader=!1,this.disprload=!1,!1}),console.log(t)}}ngAfterViewInit(){const t=this;document.getElementById("dob_log").addEventListener("blur",function(){t.dateInvalid=!1,"Invalid date"==t.el.nativeElement.querySelector("#dob_log").value&&(t.dateInvalid=!0,t.el.nativeElement.querySelector("#dob_log").value="")}),$("input#dob_log").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}onChangeinterim(t){console.log(t),this.selection4=this.f.iservices.value.length,console.log(this.selection4);let e=t[t.length-1];this.registerForm.get("interimservices").push(this.fb.group({interimservices:[e],statusid:[]}))}onRemoveItem(t){this.selection4=this.f.iservices.value.length-1,console.log(this.selection4);const e=this.f.iservices.value.indexOf(t.id);console.log(e),e>=0&&this.registerForm.patchValue({iservices:this.f.iservices.value.filter((t,n)=>n!==e)});this.registerForm.get("interimservices").removeAt(e)}chklabel(t){this.lastSubstance=!1,"yes"==t&&(this.lastSubstance=!0)}refusePerson(){this.submitted=!0,this.f.lan_log.clearValidators(),this.f.lan_log.updateValueAndValidity(),this.f.races.clearValidators(),this.f.races.updateValueAndValidity(),this.f.ethnicity.clearValidators(),this.f.ethnicity.updateValueAndValidity(),this.f.ph_log.clearValidators(),this.f.ph_log.updateValueAndValidity(),this.f.ppopulation.clearValidators(),this.f.ppopulation.updateValueAndValidity(),this.f.iservices.clearValidators(),this.f.iservices.updateValueAndValidity(),this.f.bed_opt_s.clearValidators(),this.f.bed_opt_s.updateValueAndValidity(),this.f.ins_s.clearValidators(),this.f.ins_s.updateValueAndValidity(),this.f.rp_s.clearValidators(),this.f.rp_s.updateValueAndValidity(),console.log(this.registerForm.valid),this.registerForm.valid&&$("#refuseModal").modal("show")}get rf(){return this.refusalform.controls}onRefusalsubmit(){if(this.submitted1=!0,this.refusalform.invalid)console.log("invalid form");else{console.log("refusal click");var t=this.getPayload();t.refusalnotes=this.refusalform.value.refusalnote,console.log(t),this.waitlistserive.refuseContactWaitlist(t).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),location.reload())})}}mhealthClicked(t){let e=document.getElementById("mhealthnotes");this.registerForm.get("mentalhealthneeds").setValue(""),0==t?(this.registerForm.get("mentalhealthneeds").clearValidators(),this.registerForm.get("mentalhealthneeds").updateValueAndValidity(),e.style.display="none"):(this.registerForm.get("mentalhealthneeds").setValidators([im.required]),this.registerForm.get("mentalhealthneeds").updateValueAndValidity(),e.style.display="block"),this.mentalhealthError=!1}};Xj.ctorParameters=()=>[{type:Cu.DatePipe},{type:ay},{type:ey},{type:Zj},{type:Uf},{type:s.ElementRef},{type:Cu.DatePipe}],Xj.propDecorators={my_modal_title:[{type:s.Input}],my_modal_content:[{type:s.Input}],waitlistref:[{type:s.Input}],buttonval:[{type:s.Input}],contactwaitlistid:[{type:s.Input}],ref:[{type:s.Input}]},Xj=Hh([Object(s.Component)({selector:"app-person",template:'<div class="modal-content" style="width: 1024px;left:50%;transform:translate(-50%) ">\n    <div class="modal-header">\n      <h4 *ngIf="buttonval==\'addaperson\'" class="modal-title pull-left" style="font-size: 18px;">Add a Person to Screening Log</h4>\n\t  <h4 *ngIf="buttonval==\'movetowaitlist\'" class="modal-title pull-left" style="font-size: 18px;">Move to Waitlist</h4>\n      <button type="button" style="padding-top: 6px;" class="close" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n    </div>\t\t\t\n      <div class="modal-body">\n        <form [formGroup]="registerForm" (ngSubmit)="regSubmit()" autocomplete="off">\n\t\t\t<div class="modal-body">\n\t\t\t\t<div class="row">\n\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t<div id="log_location">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-md-12" style="margin-bottom: 6px;">\n\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t\t<div class="psd_name_address">\n                \t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n           \t\t\t\t\t </div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="fn_log" class="control-label">First Name: </label><span class="red required_text">*</span>\n                                <input type="text" name="fn_log" formControlName="fn_log" id="fn_log" class="form-control" />\n                                <div *ngIf="submitted && f.fn_log?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f.fn_log.errors.required">Please enter firstname</small>\n                                </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="ln_log" class="control-label">Last Name: </label><span class="red required_text">*</span>\n                                <input type="text" name="ln_log" id="ln_log" formControlName="ln_log" class="form-control"/>\n                                <div *ngIf="submitted && f.ln_log?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f.ln_log.errors.required">Please enter lastname</small>\n                                </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="ssn_log" class="control-label">SSN (Last 4 digits): </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t<input type="text" name="ssn_log" maxlength="4" id="ssn_log" class="form-control" formControlName="ssn_log">\n\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.ssn_log?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f.ssn_log.errors.required">Please enter lastname</small>\n                                </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3" >\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="dob_log" class="control-label">Date of Birth (MM/DD/YYYY): </label><span class="red required_text">*</span>\n                                <input type="text" name="dob_log" id="dob_log" class="form-control" (keypress)="keyPress($event)"  maxlength="10" formControlName="dob_log" placeholder="MM/DD/YYYY" bsDatepicker />\n                                <div *ngIf="submitted && f.dob_log?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f.dob_log.errors.required">Please enter date of birth</small>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div *ngIf="dateInvalid">\n\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1">Please enter valid date of birth</small>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t<div class="col-sm-3" >\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="gen_log" class="control-label">Gender: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t<select name="gen_log" id="gen_log" class="" formControlName="gen_log">\n\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t<option value="24">Male</option>\n\t\t\t\t\t\t\t\t\t<option value="25">Female</option>\n\t\t\t\t\t\t\t\t\t<option value="26">Transgender Man</option>\n\t\t\t\t\t\t\t\t\t<option value="27">Transgender Woman</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.gen_log?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f.gen_log.errors.required">Please select gender</small>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n                                        <label for="race_log" class="control-label">Race: </label><span *ngIf="buttonval==\'movetowaitlist\'" class="red required_text">*</span>\n                                        <ng-select [items]="Races"\n\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\t\t\t\t\tbindValue="id"\n\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t(change)="onChange(selection)"\n\t\t\t\t\t\t\t\t\t\t[(ngModel)]="selection"\n\t\t\t\t\t\t\t\t\t\tformControlName="races"\n\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n                                        <div *ngIf="submitted && f.races?.errors">\n                                            <small class="text-danger ml-1" *ngIf="f.races.errors.required">Please select race</small>\n                                        </div>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <div class="ms-ctn form-control " style="" id="magicsuggest_race_log_not_exist"><span class="ms-helper " style="display: none;"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="" style="width: 183px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div>\n\t\t\t\t\t\t\t\t\t\t\t<input id="race_log_not_exist" name="race_log_not_exist" type="hidden"> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\t\n\n\t\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n                                        <label for="ethnicity_log" class="control-label">Ethnicity: </label>\n                                        <span *ngIf="buttonval==\'movetowaitlist\'" class="red required_text">*</span>\n                                        <ng-select [items]="ethnicity"\n\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\t\t\t\t\tbindValue="id"\n\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t(change)="onChange(selection2)"\n\t\t\t\t\t\t\t\t\t\t[(ngModel)]="selection2"\n\t\t\t\t\t\t\t\t\t\tformControlName="ethnicity"\n\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n                                        <div *ngIf="submitted && f.ethnicity?.errors">\n                                            <small class="text-danger ml-1" *ngIf="f.ethnicity.errors.required">Please select ethnicity</small>\n                                        </div>\n                                       \x3c!-- <span class="red required_text">*</span> --\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <div class="ms-ctn form-control " style="" id="magicsuggest_ethnicity_log_not_exist"><span class="ms-helper " style="display: none;"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="" style="width: 183px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div>\n\t\t\t\t\t\t\t\t\t\t\t<input id="ethnicity_log_not_exist" name="ethnicity_log_not_exist" type="hidden"> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="lan_log" class="control-label">Preferred Language: </label><span *ngIf="buttonval==\'movetowaitlist\'" class="red required_text">*</span>\n\t\t\t\t\t\t\t\t<select name="lan_log" id="lan_log" class="" formControlName="lan_log">\n\t\t\t\t\t\t\t\t\t<option value="" [defaultSelected]=true>Select One</option>\n\t\t\t\t\t\t\t\t\t<option *ngFor="let lang of preferredlanguages" value={{lang.id}}>{{lang.name}}</option>\n                                </select>\n                                <div *ngIf="submitted && f.lan_log?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f.lan_log.errors.required">Please enter preffered language</small>\n                                </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="row" *ngIf="buttonval==\'movetowaitlist\'" >\n\t\t\t\t\t\t<div class="col-md-12" style="margin-bottom: 6px;">\n\t\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t\t\t<div class="psd_name_address">\n\t\t\t\t\t\t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Waitlist Information</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label for="bed_opt_s" class="control-label">Bed Option/Eligibility: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t<select name="bed_opt_s" id="bed_opt_s" formControlName="bed_opt_s" class="form-control">\n\t\t\t\t\t\t\t\t<option value="" [defaultSelected]=true>Select One</option>\n\t\t\t\t\t\t\t\t<option *ngFor="let bedopt of bedoptions" value={{bedopt.id}}>{{bedopt.name}}</option>\n\t\t\t\t\t\t\t\t\x3c!-- <option value="1">Medicaid</option>\n\t\t\t\t\t\t\t\t<option value="2">Not funded</option>\n\t\t\t\t\t\t\t\t<option value="3">Other</option> --\x3e\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t<div *ngIf="submitted && f.bed_opt_s?.errors">\n\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.bed_opt_s.errors.required">Please select bed option</small>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="ins_s" class="control-label">Insurance: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t<select name="ins_s" id="ins_s" formControlName="ins_s" class="form-control">\n\t\t\t\t\t\t\t\t\t<option value="" [defaultSelected]=true>Select One</option>\n\t\t\t\t\t\t\t\t\t<option *ngFor="let ins of Insurance" value={{ins.id}}>{{ins.name}}</option>\n\t\t\t\t\t\t\t\t\t\x3c!-- <option value="1">Private insurance</option>\n\t\t\t\t\t\t\t\t\t<option value="2">Medicaid</option>\n\t\t\t\t\t\t\t\t\t<option value="3">Medicare</option>\n\t\t\t\t\t\t\t\t\t<option value="4">No insurance</option> --\x3e\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.ins_s?.errors">\n\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.ins_s.errors.required">Please select insurance</small>\n\t\t\t\t\t\t\t\t</div>    \n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="rp_s" class="control-label">Referring Program: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t<select name="rp_s" id="rp_s" class="" formControlName="rp_s">\n\t\t\t\t\t\t\t\t\t<option value="" [defaultSelected]=true>Select One</option>\n\t\t\t\t\t\t\t\t\t<option *ngFor="let ref of RefProgram" value={{ref.id}}>{{ref.name}}</option>\n\t\t\t\t\t\t\t\t\t\x3c!-- <option value="1">ATS</option>\n\t\t\t\t\t\t\t\t\t<option value="2">CSS</option>\n\t\t\t\t\t\t\t\t\t<option value="3">TSS</option>\n\t\t\t\t\t\t\t\t\t<option value="4">Other Residential Rehab</option>\n\t\t\t\t\t\t\t\t\t<option value="5">Psychiatric Hospital</option>\n\t\t\t\t\t\t\t\t\t<option value="6">Shelter</option>\n\t\t\t\t\t\t\t\t\t<option value="7">Jail</option>\n\t\t\t\t\t\t\t\t\t<option value="8">Court / Drug Court</option>\n\t\t\t\t\t\t\t\t\t<option value="9">Section 35</option>\n\t\t\t\t\t\t\t\t\t<option value="10">Self-referral</option>\n\t\t\t\t\t\t\t\t\t<option value="11">Other</option> --\x3e\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.rp_s?.errors">\n\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.rp_s.errors.required">Please select referring program</small>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-md-12" style="margin-bottom: 6px;">\n\t\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t\t\t<div class="psd_name_address">\n\t\t\t\t                \t<span class="psd_newperson_title_name" style="color: #ffffff">Contact Information</span>\n\t\t\t\t           \t\t </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-4" >\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="em_log" class="control-label">Email Address:</label>\n\t\t\t\t\t\t\t\t<input type="text" name="em_log" id="em_log" class="form-control" formControlName="em_log">\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-4" style="float: right;">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="ph_log" class="control-label">Phone Number: </label><span *ngIf="buttonval==\'movetowaitlist\'" class="red required_text">*</span>\n                                <input type="text" name="ph_log" id="ph_log" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="ph_log" class="form-control"  [showMaskTyped]="true" [dropSpecialCharacters]="false"/>\n                                <div *ngIf="submitted && f.ph_log?.errors">\n\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.ph_log.errors.required">Please enter phone number</small>\n\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.ph_log.errors?.pattern">Please enter valid phone number</small>\n                                </div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="street_s" class="control-label">Street: </label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="street_log" id="street_log" class="form-control" formControlName="street_log">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="city_log" class="control-label">City: </label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="city_log" id="city_log" class="form-control" formControlName="city_log">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="state_log" class="control-label">State: </label>\n\t\t\t\t\t\t\t\t\t\t<select name="state_log" id="state_log" class="" formControlName="state_log">\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t</select>\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="zip_log" class="control-label">ZIP: </label>\n\t\t\t\t\t\t\t\t\t\t<input type="text" name="zip_log" id="zip_log" maxlength="5" class="form-control" formControlName="zip_log">\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-md-12" style="margin-bottom: 6px;">\n\t\t\t\t\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t\t\t\t\t\t<div class="psd_name_address">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Priority Populations</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="sp_s">Priority Population: </label><span *ngIf="buttonval==\'movetowaitlist\'" class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t\t<ng-select [items]="ppopulation"\n\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\t\t\t\t\t\tbindValue="id"\n\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t(change)="onChangePopulation(selection3)"\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="selection3"\n\t\t\t\t\t\t\t\t\t\t\tformControlName="ppopulation"\n\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\n\t\t\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.ppopulation?.errors">\n\t\t\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.ppopulation.errors.required">Please select priority population</small>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label class="control-label" for="int_s">Interim/Alternative Services: </label>\n\t\t\t\t\t\t\t\t\t\t<span  class="red required_text" [ngClass]="selectedppopulation==true?\'\':\'hide\'">*</span>\n\t\t\t\t\t\t\t\t\t<ng-select [items]="Iservices"\n\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\tbindValue="id"\n\t\t\t\t\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t(change)="onChangeinterim(f.iservices.value)"\n\t\t\t\t\t\t\t\t\t\tformControlName="iservices"\n\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="onRemoveItem(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.iservices?.errors">\n\t\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.iservices.errors.required">Please select interim/alternative services:</small>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t<div class="col-sm-12" *ngIf="f.iservices.value!=null && selection4!=0"  id="int_svcstatusdata" style="margin-top: 36px;">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<table class="table table-bordered table-condensed" id="int_svc_update" hide="">\n\t\t\t\t\t\t\t\t\t\t\t\t<thead class="hidetr">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Interim Service</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Interim Service Status</th>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t\t\t\t<tbody class="int_svc-body" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr *ngFor="let addressGroup of registerForm.get(\'interimservices\')[\'controls\'];let i = index" [formGroup]="addressGroup">\n\t\t\t\t\t\t\t\t\t\t\t\t\t   \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==1">HIV testing</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==2">HIV/TB/Hep C education</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==3">HIV/TB/Hep C treatment referral</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==4">Referral to other services</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==5">Info on substances & fetal development</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==6">Prenatal care referral</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" formControlName="interimservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<select name="selintsvc1" class="statusoffer" formControlName="statusid">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">-select one-</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="2">Offered and referred</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="1">Offered and refused</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="3">Offered and provided</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</select></td>  </tr>\n\t\t\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="spclacc" class="control-label">High Priority Mental Health Need</label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t\t\t<div><label for="mhy" style="cursor: pointer;"><input id="mhy" type="radio" value="1" (click)="mhealthClicked(1);" name="mental_health" />&nbsp;<span style="\n\t\t\t\t\t\t\t\t\t\t\t\tmargin-top: -23px;\n\t\t\t\t\t\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\t\t\t\t\t\tmargin-left: 16px;\n\t\t\t\t\t\t\t\t\t\t\t">Yes</span></label> &nbsp;<label for="mhn" style="cursor: pointer;"><input type="radio" id="mhn" value="2" (click)="mhealthClicked(0);" name="mental_health"/>&nbsp;<span style="margin-top: -23px;display: block;margin-left: 16px;">No</span></label> </div>\n\t\t\t\t\t\t\t\t\t\t\t<div *ngIf="submitted && mentalhealthError">\n\t\t\t\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="mentalhealthError">Please select mental health need</small>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group" id="mhealthnotes">\n\t\t\t\t\t\t\t\t\t\t<label for="notes_s" class="control-label">Mental Health Notes: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t\t\t\t<input type="text" formControlName="mentalhealth" id="mhealthhidden" />\n\t\t\t\t\t\t\t\t\t\t<textarea name="mental_health_notes" placeholder="mental health notes" id="mental_health_notes" class="form-control" formControlName="mentalhealthneeds"></textarea>\n\t\t\t\t\t\t\t\t\t\t<div *ngIf="submitted && f.mentalhealthneeds?.errors">\n\t\t\t\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.mentalhealthneeds.errors.required">Please enter mental health notes</small>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\t\n\t\t\t\t\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="spclacc" class="control-label">Special Accommodations: </label>\n\t\t\t\t\t\t\t\t\t\t<textarea name="spclacc" id="spclacc" class="form-control" formControlName="spclacc"></textarea>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label for="notes_s" class="control-label">Additional Details: </label>\n\t\t\t\t\t\t\t\t\t\t<textarea name="notes_s" id="notes_s" class="form-control" formControlName="notes_s"></textarea>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t<div class="form-group text-center">\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="add_log" value="163" id="add_log">\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <button class="btn btn-primary" style="padding: 6px 10px !important" data-dismiss="modal" (click)="activeModal.close(\'Close click\')">Refuse</button> --\x3e\n\t\t\t\t\t\t\t\t\t\t<button *ngIf="buttonval==\'addaperson\'" type="button" class="btn btn-primary" style="padding: 6px 10px !important;background-color: #545b62!important;" (click)="refusePerson()">Refuse</button>\n\t\t\t\t\t\t\t\t\t\t<button *ngIf="buttonval==\'addaperson\'" class="btn btn-primary" style="padding: 6px 10px !important" id="add_log_details">Search</button>\n\t\t\t\t\t\t\t\t\t\t<button *ngIf="buttonval==\'movetowaitlist\'" class="btn btn-primary" style="padding: 6px 10px !important" data-dismiss="modal" (click)="activeModal.close(\'Close click\')">Cancel</button>\n\t\t\t\t\t\t\t\t\t\t<button *ngIf="buttonval==\'movetowaitlist\'" class="btn btn-primary" [disabled]="disprload" style="padding: 6px 10px !important" id="add_log_details">Submit</button>&nbsp;<img *ngIf="prloader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t</div>\n\t</form>\t\t\n      </div>\t\t\t\n  </div>\n',styles:["/* .modal-content{\n    width: 1073px;\n    left: 50%;\n    transform: translate(-50%);\n} */\nform span, form .h4{\n    font-weight: normal;\n}\n:host ::ng-deep select{background: none !important;}\n.table td, .table th{padding: 0.25rem;}\n.purple-bg, .btn-primary {\n    background: #8c5c8d;\n    color: #fff;\n    border: none;\n}\n.btn {padding: 2px 10px !important;}\n/* .modal-footer{display: block;} */\n.psd_newperson_title{\n    background-color: #8c5c8d;\n    height: auto;\n    padding-left: 10px;\n    padding-right: 25px;\n}\n.btn-primary{\n    padding: 2px 10px !important;\n    margin: 3px;\n    font-size: 13px;\n}\n#mhealthhidden{\n    height: 0px;\n    background-color: #fff;\n    color: #fff;\n    border: solid 1px #fff;\n    margin-left: 1000px;\n    position: absolute;\n}\n/* input.ng-invalid,select.ng-invalid{\n    border: solid 1px red !important;\n} */"]})],Xj);let Qj=class{constructor(t,e,n,i,s,r,a){this.modalService=t,this._Activatedroute=e,this.activeModal=n,this.datepipe=i,this.fb=s,this.el=r,this.waitlistservice=a,this.addprbtn=!1,this.submitted=!1,this.lastSubstance=!1,this.dateInvalid=!1,this.lan_wp="",this.selection=[],this.selection2=[],this.selection3=[],this.selection4=0,this.selection5=[],this.addNewPerson=!1,this.searchSection=!0,this.modaltitle=!0,this.modaltitle2=!1,this.existingwaitlist=!1,this.addperson=!1,this.selectedppopulation=!1,this.selectedppopulationval=!1,this.loader=!1,this.searchloader=!1,this.srcdisbl=!1,this.disable=!1,this.movetowaitlist=!1,this.submitted1=!1,this.waitlistInfo=!1,this.selectBtn=!1,this.refloader=!1,this.refdisbled=!1,this.city_mndtry=!1,this.waitlistnames=[],this.waitlistnamesNew=[],this.submittedapf=!1,this.hideaddpersonsubmit=!0,this.ppopulation=[],this.mentalhealthError=!1,this.gender=[{id:24,name:"Male"},{id:25,name:"Female"},{id:26,name:"Transgender man"},{id:27,name:"Transgender woman"}],this.bedoptions=[{id:2,name:"Medicaid"},{id:1,name:"Not funded"},{id:3,name:"Other"}],this.Insurance=[{id:1,name:"Private insurance"},{id:2,name:"Medicaid"},{id:3,name:"Medicare"},{id:4,name:"No Insurance"}],this.RefProgram=[{id:1,name:"ATS"},{id:2,name:"CSS"},{id:3,name:"TSS"},{id:4,name:"Other residential rehab"},{id:5,name:"Psychiatric hospital"},{id:6,name:"Shelter"},{id:7,name:"Jail"},{id:8,name:"Court/Drug court"},{id:9,name:"Section 35"},{id:10,name:"Self-referral"},{id:11,name:"Other"}],this.interimserviceoffer=[{id:3,name:"Offered and provided"},{id:2,name:"Offered and referred"},{id:1,name:"Offered and refused"}],this.Races=[{id:2,name:"American Indian / Alaska Native"},{id:7,name:"Asian"},{id:4,name:"Black, African American"},{id:3,name:"Nat. Hawaiian/Pac. Islander"},{id:1461,name:"Latino"},{id:5,name:"White"},{id:1,name:"Refuse"}],this.ethnicity=[{id:4,name:"Cuban"},{id:6,name:"Hispanic, not otherwise specified"},{id:3,name:"Mexican"},{id:5,name:"Not of Hispanic Origin"},{id:2,name:"Puerto Rican"},{id:1,name:"Refuse"}],this.Iservices=[{id:1,name:"HIV testing"},{id:2,name:"HIV/TB/Hep C education"},{id:3,name:"HIV/TB/Hep C treatment referral"},{id:5,name:"Info on substances & fetal development"},{id:6,name:"Prenatal care referral"},{id:4,name:"Referral to other services"}],this.preferredlanguages=[{id:429,name:"English"},{id:827,name:"Spanish"},{id:799,name:"Albanian"},{id:800,name:"Arabic"},{id:1052,name:"ASL (Hearing Impaired)"},{id:801,name:"Bosnian"},{id:802,name:"Cambodian"},{id:803,name:"Cantonese"},{id:806,name:"Cape Verdean"},{id:804,name:"Chinese"},{id:805,name:"Creole"},{id:807,name:"Danish"},{id:808,name:"Egyptian"},{id:809,name:"Farsi"},{id:811,name:"Finnish"},{id:810,name:"French"},{id:813,name:"German"},{id:812,name:"Greek"},{id:814,name:"Haitian Creole"},{id:815,name:"Hebrew"},{id:817,name:"Indian"},{id:816,name:"Italian"},{id:818,name:"Japanese"},{id:819,name:"Khmer"},{id:820,name:"Korean"},{id:821,name:"Laotian"},{id:822,name:"Mandarin"},{id:823,name:"Nigerian"},{id:825,name:"Polish"},{id:824,name:"Portuguese"},{id:826,name:"Russian"},{id:828,name:"Somali"},{id:829,name:"Swahili"},{id:830,name:"Vietnamese"},{id:1027,name:"Other"}],this.states=[{id:1,name:"AK"},{id:2,name:"AL"},{id:3,name:"AR"},{id:4,name:"AS"},{id:5,name:"AZ"},{id:6,name:"CA"},{id:7,name:"CO"},{id:8,name:"CT"},{id:9,name:"DC"},{id:10,name:"DE"},{id:11,name:"FL"},{id:12,name:"FM"},{id:13,name:"GA"},{id:14,name:"GU"},{id:15,name:"HI"},{id:16,name:"IA"},{id:17,name:"ID"},{id:18,name:"IL"},{id:19,name:"IN"},{id:20,name:"KS"},{id:21,name:"KY"},{id:22,name:"LA"},{id:23,name:"MA"},{id:24,name:"MD"},{id:25,name:"ME"},{id:26,name:"MH"},{id:27,name:"MI"},{id:28,name:"MN"},{id:29,name:"MO"},{id:30,name:"MP"},{id:31,name:"MS"},{id:32,name:"MT"},{id:33,name:"NC"},{id:34,name:"ND"},{id:35,name:"NE"},{id:36,name:"NH"},{id:37,name:"NJ"},{id:38,name:"NM"},{id:39,name:"NV"},{id:40,name:"NY"},{id:41,name:"OH"},{id:42,name:"OK"},{id:43,name:"OR"},{id:44,name:"PA"},{id:45,name:"PR"},{id:46,name:"PW"},{id:47,name:"RI"},{id:48,name:"SC"},{id:49,name:"SD"},{id:50,name:"TN"},{id:51,name:"TX"},{id:52,name:"UT"},{id:53,name:"VA"},{id:54,name:"VI"},{id:55,name:"VT"},{id:56,name:"WA"},{id:57,name:"WI"},{id:58,name:"WV"},{id:59,name:"WY"}]}get f(){return this.registerForm.controls}get f2(){return this.newpersonForm.controls}get apf2(){return this.AddPersonToForm.controls}ngOnInit(){var t={waitlistref:this.waitlistref};this.waitlistservice.getloggedinsharedwlcontact(t).subscribe(t=>{console.log("Waitlist Names",t),this.waitlistnamesNew=t}),this.refusalform=this.fb.group({refusalnote:["",im.required]}),this.registerForm=this.fb.group({fn_s:[null,[im.required]],ln_s:[null,[im.required]],ssn_s:[null,[im.required,im.pattern("^[0-9]*$")]],dob_s:[null,[im.required]]}),this.AddPersonToForm=this.fb.group({addpersonto:[null,im.required]}),this.newpersonForm=this.fb.group({fn_wp:[null,[im.required]],ln_wp:[null,[im.required]],dob_wp:["",im.required],ldu_s:[null],ssn_wp:[null,[im.required,im.pattern("^[0-9]*$")]],gen_wp:[null,[im.required]],races:[null,[im.required]],ethnicity:[null,[im.required]],lan_s:[null,[im.required]],bed_opt_s:[null,[im.required]],ins_s:[null,[im.required]],rp_s:[null,[im.required]],ph_s:[null,[im.required]],ppopulation:[null,[im.required]],iservices:[null,[im.required]],sh_onselect_programs:[null,[im.required]],em_s:[""],street_s:[""],city_s:[null,[im.required]],state_s:["23"],zip_s:[""],notes_s:[""],spclacc:[""],selintsvc1:[],mental_health_notes:[null,[im.required]],interimservices:this.fb.array([])}),this.ppopulation=[{id:"4",name:"Pregnant woman with injecting drug use"},{id:"2",name:"Pregnant woman"},{id:"1",name:"Person with injecting drug use"},{id:"3",name:"None"}]}get rf(){return this.refusalform.controls}static date(t){return new RegExp(/^\d{1,2}\.\d{1,2}\.\d{4}$/).test(t.value)?null:{date:!0}}onChange(t){}onChangePopulation(t){console.log(t),0==t.length&&(this.selectedppopulation=!1,this.newpersonForm.get("iservices").clearValidators(),this.newpersonForm.get("iservices").updateValueAndValidity());for(let e=0;e<t.length;e++){if("None"==t[e].name)return this.selectedppopulation=!1,this.newpersonForm.get("iservices").clearValidators(),this.newpersonForm.get("iservices").updateValueAndValidity(),void this.newpersonForm.get("ppopulation").patchValue([t[e]]);"None"!=t[e].name&&(this.selectedppopulation=!0,this.newpersonForm.get("iservices").setValidators([im.required]),this.newpersonForm.get("iservices").updateValueAndValidity())}}onChangeinterim(t){console.log(t),this.selection4=this.f2.iservices.value.length,console.log(this.selection4),$("#interimvalid").hide();let e=t[t.length-1];this.newpersonForm.get("interimservices").push(this.fb.group({interimservices:[e],statusid:[]}))}onRemoveItem(t){this.selection4=this.f2.iservices.value.length-1,console.log(this.selection4),console.log(this.submitted),console.log(this.selectedppopulation),0==this.selection4&&$("#interimvalid").show();const e=this.f2.iservices.value.indexOf(t.id);console.log(e),e>=0&&this.newpersonForm.patchValue({iservices:this.f2.iservices.value.filter((t,n)=>n!==e)});this.newpersonForm.get("interimservices").removeAt(e)}ngAfterViewInit(){const t=this;document.getElementById("dob_s").addEventListener("blur",function(){t.dateInvalid=!1,"Invalid date"==t.el.nativeElement.querySelector("#dob_s").value&&(t.dateInvalid=!0,t.el.nativeElement.querySelector("#dob_s").value="")}),$("input#dob_s,input#dob_wp").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}refusePerson(){if(console.log("refuse"),this.f2.bed_opt_s.clearValidators(),this.f2.bed_opt_s.updateValueAndValidity(),this.f2.ins_s.clearValidators(),this.f2.ins_s.updateValueAndValidity(),this.f2.rp_s.clearValidators(),this.f2.rp_s.updateValueAndValidity(),this.newpersonForm.invalid)return document.getElementById("add_existing_contact_as_patient").click(),void console.log("invalid",this.newpersonForm);this.newpersonForm.valid&&($("#refuseModal").modal("show"),document.getElementById("custom-body").classList.add("custom-modal"),document.body.scrollTop=document.documentElement.scrollTop=0)}addpersontoSubmit(){this.submittedapf=!0,console.log("add person form"),this.AddPersonToForm.invalid}onRefusalsubmit(){this.submitted1=!0;var t=document.getElementsByName("mental_health"),e=document.querySelector('input[name="mental_health"]:checked');if(0!=t[0].checked||0!=t[1].checked)if(this.refusalform.invalid)console.log("invalid form");else{this.refdisbled=!0,this.refloader=!0,console.log("refusal click");var n,i,s=[],r=[],a=[],o=[];this.newpersonForm.value.races.forEach(t=>{s.push(t.id),console.log(s)}),this.newpersonForm.value.ethnicity.forEach(t=>{r.push(t.id),console.log(r)}),this.newpersonForm.value.ppopulation.forEach(t=>{a.push(t.id),console.log(a)});for(let t=0;t<this.newpersonForm.value.interimservices.length;t++){var l={};console.log(),l.interimservices=this.newpersonForm.value.interimservices[t].interimservices,l.statusid=this.newpersonForm.value.interimservices[t].statusid,o.push(l)}console.log(o),i="("+this.newpersonForm.value.ph_s.slice(0,3)+")"+this.newpersonForm.value.ph_s.slice(3,6)+"-"+this.newpersonForm.value.ph_s.slice(6,10),console.log(i),n={waitlistref:this.waitlistref,genderid:this.newpersonForm.value.gen_wp,preferredlanguage:this.preferredlanguages.filter(t=>t.id==this.newpersonForm.value.lan_s)[0].name,emailaddress:this.newpersonForm.value.em_s,phonenumber:this.newpersonForm.value.ph_s,addressline1:this.newpersonForm.value.street_s,city:this.newpersonForm.value.city_s,state:this.states.filter(t=>t.id==this.newpersonForm.value.state_s)[0].name,insuranceid:null,bedoptionid:null,referringprogramid:null,currentlyincarcerated:null,lastdateused:null,zipcode:this.newpersonForm.value.zip_s,externalnotes:this.newpersonForm.value.notes_s,mentalhealth:1==e.value,mentalhealthneeds:this.newpersonForm.value.mental_health_notes,specialaccommmodations:this.newpersonForm.value.spclacc,races:s,ethncity:r,prioritypoulation:a,interimservices:o,con:{firstname:this.newpersonForm.value.fn_wp,lastname:this.newpersonForm.value.ln_wp,ssn:this.newpersonForm.value.ssn_wp,dob:this.datepipe.transform(this.newpersonForm.value.dob_wp,"yyyy-MM-dd").toString()}},console.log(n),n.refusalreason=this.refusalform.value.refusalnote,console.log(n),this.waitlistservice.refuseContactWaitlist(n).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),location.reload())})}else this.mentalhealthError=!0}checkcontactwaitlist(t){var e;e={waitlistref:this.waitlistref,contactid:this.persondata[0].id},$(t.target).next().show(),this.selectBtn=!0;const n=this;this.waitlistservice.checkcontactwaitlistperson(e).subscribe(e=>{console.log(e),n.selectBtn=!0,$(t.target).next().hide(),this.checkwaitlistdata=e,'This person was recently removed from your waitlist. If you wish to add him/her again, use the "PEOPLE REMOVED" section below to do so'==this.checkwaitlistdata?(this.checkwaitlist=!1,alert(this.checkwaitlistdata)):"This person is already on your waitlist"==this.checkwaitlistdata?(this.checkwaitlist=!0,this.existingwaitlist=!0,alert(this.checkwaitlistdata)):(this.checkwaitlistdata="add to waitlist")&&(this.movetowaitlist=!0,this.waitlistInfo=!0,this.addperson=!1,this.addNewperson(this.checkwaitlistdata),this.newpersonForm.patchValue({fn_wp:this.persondata[0].firstname,ln_wp:this.persondata[0].lastname,dob_wp:this.persondata[0].dob?this.datepipe.transform(this.persondata[0].dob,"MM-dd-yyyy").toString():"",ssn_wp:this.persondata[0].ssn}))})}regSubmit(){if(this.submitted=!0,console.log(this.selection4),!this.registerForm.invalid){var t;this.searchloader=!0,this.srcdisbl=!0,this.submitted=!1,this.addNewPerson=!0,this.modaltitle=!1,this.modaltitle2=!0,console.log(this.registerForm),t={firstname:this.registerForm.value.fn_s,lastname:this.registerForm.value.ln_s,dob:this.datepipe.transform(this.registerForm.value.dob_s,"yyyy-MM-dd").toString(),ssn:this.registerForm.value.ssn_s},console.log(t.firstname);var e=t.firstname.match(t.firstname);console.log(e),this.waitlistservice.searchwaitlistperson(t).subscribe(t=>{console.log(t),this.persondata=t,this.searchloader=!1,this.srcdisbl=!1,0==this.persondata.length?(this.addperson=!0,this.addNewPerson=!0):(this.existingwaitlist=!0,this.addperson=!1),console.log(this.addperson)})}}screeningLOG(t){this.waitlistservice.openscreeninglog(t).subscribe(t=>{console.log(t),t&&("This person is already added in log"==t&&Yj.a.fire({title:"",width:"424px",text:"This person is already added in log",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(t=>{console.log(t),t.value?this.modalService.dismissAll():(t.dismiss,Yj.a.DismissReason.cancel)}),"Person added to log"==t&&Yj.a.fire({title:"",text:"Person successfully added to screening log",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{(t.value||t.dismiss)&&location.reload()}))})}mhealthClicked(t){let e=document.getElementById("mhealthnotes");this.newpersonForm.get("mental_health_notes").setValue(""),0==t?(this.newpersonForm.get("mental_health_notes").clearValidators(),this.newpersonForm.get("mental_health_notes").updateValueAndValidity(),e.style.display="none"):(this.newpersonForm.get("mental_health_notes").setValidators([im.required]),this.newpersonForm.get("mental_health_notes").updateValueAndValidity(),e.style.display="block"),this.mentalhealthError=!1}newpersonSubmit(){this.submitted=!0,1==this.waitlistnamesNew.length&&(this.newpersonForm.get("sh_onselect_programs").clearValidators(),this.newpersonForm.get("sh_onselect_programs").updateValueAndValidity());let t=document.getElementById("programs_onselect");var e=document.getElementsByName("mental_health"),n=document.querySelector('input[name="mental_health"]:checked');if(0!=e[0].checked||0!=e[1].checked){if("screeninglog"==this.AddPersonToForm.value.addpersonto){if(console.log("screeninglog"),this.f2.bed_opt_s.clearValidators(),this.f2.bed_opt_s.updateValueAndValidity(),this.f2.ins_s.clearValidators(),this.f2.ins_s.updateValueAndValidity(),this.f2.rp_s.clearValidators(),this.f2.rp_s.updateValueAndValidity(),this.newpersonForm.invalid)return void console.log("invalid",this.newpersonForm)}else if("waitlist"==this.AddPersonToForm.value.addpersonto&&this.newpersonForm.invalid)return void console.log("invalid",this.newpersonForm);console.log(this.newpersonForm);var i,s,r=[],a=[],o=[],l=[];this.newpersonForm.value.races.forEach(t=>{r.push(t.id),console.log(r)}),this.newpersonForm.value.ethnicity.forEach(t=>{a.push(t.id),console.log(a)}),this.newpersonForm.value.ppopulation.forEach(t=>{o.push(t.id),console.log(o)});for(let t=0;t<this.newpersonForm.value.interimservices.length;t++){var c={};console.log(),c.interimservices=this.newpersonForm.value.interimservices[t].interimservices,c.statusid=this.newpersonForm.value.interimservices[t].statusid,l.push(c)}if(console.log(l),"screeninglog"==this.AddPersonToForm.value.addpersonto)this.loader=!0,this.disable=!0,console.log("screening log"),s="("+this.newpersonForm.value.ph_s.slice(0,3)+")"+this.newpersonForm.value.ph_s.slice(3,6)+"-"+this.newpersonForm.value.ph_s.slice(6,10),console.log(s),i={waitlistref:this.waitlistref,genderid:this.newpersonForm.value.gen_wp,preferredlanguage:this.preferredlanguages.filter(t=>t.id==this.newpersonForm.value.lan_s)[0].name,emailaddress:this.newpersonForm.value.em_s,phonenumber:this.newpersonForm.value.ph_s,addressline1:this.newpersonForm.value.street_s,city:this.newpersonForm.value.city_s,state:this.states.filter(t=>t.id==this.newpersonForm.value.state_s)[0].name,insuranceid:null,bedoptionid:null,referringprogramid:null,currentlyincarcerated:null,lastdateused:null,zipcode:this.newpersonForm.value.zip_s,externalnotes:this.newpersonForm.value.notes_s,mentalhealth:1==n.value,mentalhealthneeds:this.newpersonForm.value.mental_health_notes,specialaccommmodations:this.newpersonForm.value.spclacc,races:r,ethncity:a,prioritypoulation:o,interimservices:l,createdbyprogram:t.value,con:{firstname:this.newpersonForm.value.fn_wp,lastname:this.newpersonForm.value.ln_wp,ssn:this.newpersonForm.value.ssn_wp,dob:this.datepipe.transform(this.newpersonForm.value.dob_wp,"yyyy-MM-dd").toString()}},console.log(i),this.screeningLOG(i);if("waitlist"==this.AddPersonToForm.value.addpersonto)if(this.loader=!0,this.disable=!0,0==this.addperson)s="("+this.newpersonForm.value.ph_s.slice(0,3)+")"+this.newpersonForm.value.ph_s.slice(3,6)+"-"+this.newpersonForm.value.ph_s.slice(6,10),console.log(s),console.log(this.waitlistref),i={contactid:this.persondata[0].id,waitlistref:this.waitlistref,genderid:this.newpersonForm.value.gen_wp,preferredlanguage:this.preferredlanguages.filter(t=>t.id==this.newpersonForm.value.lan_s)[0].name,languageid:this.newpersonForm.value.lan_s,emailaddress:this.newpersonForm.value.em_s,insuranceid:this.newpersonForm.value.ins_s,bedoptionid:this.newpersonForm.value.bed_opt_s,referringprogramid:this.newpersonForm.value.rp_s,currentlyincarcerated:null,lastdateused:new Date(this.datepipe.transform(this.newpersonForm.value.ldu_s,"yyyy-MM-dd")).toISOString(),phonenumber:this.newpersonForm.value.ph_s,addressline1:this.newpersonForm.value.street_s,city:this.newpersonForm.value.city_s,state:this.states.filter(t=>t.id==this.newpersonForm.value.state_s)[0].name,stateid:this.newpersonForm.value.state_s,zipcode:this.newpersonForm.value.zip_s,mentalhealth:1==n.value,mentalhealthneeds:this.newpersonForm.value.mental_health_notes,specialaccommmodations:this.newpersonForm.value.spclacc,externalnotes:this.newpersonForm.value.notes_s,races:r,ethncity:a,prioritypoulation:o,interimservices:l,con:null},console.log(i),this.waitlistservice.addwaitlistpersonbysearch(i).subscribe(t=>{console.log(t),this.disable=!1,1==t&&(this.loader=!1,Yj.a.fire({title:"",text:"Person successfully added to waitlist",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{(t.value||t.dismiss)&&location.reload()})),0==t&&(Yj.a.fire("","Failed to add a person","error"),this.modalService.dismissAll())});else s="("+this.newpersonForm.value.ph_s.slice(0,3)+")"+this.newpersonForm.value.ph_s.slice(3,6)+"-"+this.newpersonForm.value.ph_s.slice(6,10),console.log(s),i={waitlistref:this.waitlistref,genderid:this.newpersonForm.value.gen_wp,preferredlanguage:this.preferredlanguages.filter(t=>t.id==this.newpersonForm.value.lan_s)[0].name,languageid:this.newpersonForm.value.lan_s,emailaddress:this.newpersonForm.value.em_s,insuranceid:this.newpersonForm.value.ins_s,bedoptionid:this.newpersonForm.value.bed_opt_s,referringprogramid:this.newpersonForm.value.rp_s,currentlyincarcerated:null,lastdateused:new Date(this.datepipe.transform(this.newpersonForm.value.ldu_s,"yyyy-MM-dd")).toISOString(),phonenumber:this.newpersonForm.value.ph_s,addressline1:this.newpersonForm.value.street_s,city:this.newpersonForm.value.city_s,state:this.states.filter(t=>t.id==this.newpersonForm.value.state_s)[0].name,stateid:this.newpersonForm.value.state_s,zipcode:this.newpersonForm.value.zip_s,mentalhealth:1==n.value,mentalhealthneeds:this.newpersonForm.value.mental_health_notes,specialaccommmodations:this.newpersonForm.value.spclacc,externalnotes:this.newpersonForm.value.notes_s,races:r,ethncity:a,prioritypoulation:o,interimservices:l,createdbyprogram:t.value,con:{firstname:this.newpersonForm.value.fn_wp,lastname:this.newpersonForm.value.ln_wp,ssn:this.newpersonForm.value.ssn_wp,dob:this.datepipe.transform(this.newpersonForm.value.dob_wp,"yyyy-MM-dd").toString()}},console.log(i),this.disable=!0,this.waitlistservice.addwaitlistperson(i).subscribe(t=>{console.log(t),this.disable=!1,1==t&&(this.loader=!1,Yj.a.fire({title:"",text:"Person successfully added to waitlist",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{(t.value||t.dismiss)&&location.reload()})),0==t&&(Yj.a.fire("","Failed to add a person","error"),this.modalService.dismissAll())})}else this.mentalhealthError=!0}selectedGender(t){console.log(t),this.selection3=""}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}addNewperson(t){if(this.addprbtn=!0,"add to waitlist"==t){console.log(t),this.waitlistInfo=!1;const e=this;setTimeout(()=>{e.AddPersonToForm.get("addpersonto").setValue(null),document.querySelectorAll(".hideContent").forEach(function(t){console.log("element",t),t.style.display="none"})},1e3)}this.searchSection=!1,console.log(this.existingwaitlist),console.log(this.addperson),setTimeout(()=>{this.newpersonForm.get("iservices").setValidators(null),this.newpersonForm.get("iservices").updateValueAndValidity()},200),0!=this.existingwaitlist&&1!=this.addperson||this.newpersonForm.patchValue({fn_wp:this.registerForm.value.fn_s,ln_wp:this.registerForm.value.ln_s,dob_wp:this.datepipe.transform(this.registerForm.value.dob_s,"MM-dd-yyyy").toString(),ssn_wp:this.registerForm.value.ssn_s}),console.log(this.f2.iservices.value)}chklabel(t){this.lastSubstance=!1,"yes"==t&&(this.lastSubstance=!0)}personOptn(t){let e=document.getElementById("addpersonto");console.log(e.value),this.waitlistInfo=!1,""!=e.value?(this.hideaddpersonsubmit=!1,document.querySelectorAll(".hideContent").forEach(function(t){t.style.display="block"})):document.querySelectorAll(".hideContent").forEach(function(t){t.style.display="none"}),this.city_mndtry=!0,"waitlist"==e.value&&(this.city_mndtry=!1,this.waitlistInfo=!0)}};Qj.ctorParameters=()=>[{type:ay},{type:Wf.ActivatedRoute},{type:ey},{type:Cu.DatePipe},{type:Uf},{type:s.ElementRef},{type:Zj}],Qj.propDecorators={my_modal_title:[{type:s.Input}],my_modal_content:[{type:s.Input}],waitlistref:[{type:s.Input}]},Qj=Hh([Object(s.Component)({selector:"app-waitperson",template:'<div class="modal-content" style="width: 1024px;left:50%;transform:translate(-50%) ">\n    <div class="modal-header">\n      <h4 class="modal-title pull-left" *ngIf="modaltitle" style="font-size: 18px;">Add a New Person</h4>\n      <h4 class="modal-title" *ngIf="modaltitle2 && !movetowaitlist">Add a New Person <br><font size="2px">Please select one of the options below and fill out the form. An <font color="red" size="3px"> *</font> indicates a required field. All other fields are optional.</font></h4>\n      <h4 class="modal-title" *ngIf="movetowaitlist">Move to waitlist <br><font size="2px">An </font><font color="red" size="3px"> *</font> <font size="2px">indicates a required field. All other fields are optional</font></h4>\n      <button type="button" class="close" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n    </div>\t\t\t\n        <div class="modal-body" id="custom-body">\n            <div class="row">\n                <div class="col-sm-12">\n                    <div id="err_location_wp"></div>\n                </div>\n            </div>\n            <div id="search_section">\n                <div class="row" *ngIf="searchSection">\n                    <div class="col-sm-12">\n                        <em>[*] All four fields are required.</em>\n                    </div>\n                    <div class="col-sm-12">\n                    <em _ngcontent-vce-c20="">Your client may already be in the system. To search please fill out all the information below and click \u201csearch\u201d</em>\n                    </div>\n                </div>\n                <form [formGroup]="registerForm" *ngIf="searchSection" (ngSubmit)="regSubmit()" autocomplete="off">\n                <div class="row top10">\t\t\n\t\t\t\t\t<div class="col-md-12" style="margin-bottom:6px;">\n\t\t\t\t\t\t<div class="title-hide hide">\n\t\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t\t\t<div class="psd_name_address">\n\t\t\t\t\t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\t\t\t\n                    <div class="col-sm-3">\n                        <div class="form-group">\n                            <label for="fn_s" class="control-label">First Name: </label><span class="red required_text">*</span>\n                            <input type="text" autocomplete="off" name="fn_s" id="fn_s" class="form-control" formControlName="fn_s" />\n                            <div *ngIf="submitted && f.fn_s?.errors">\n                                <small class="text-danger ml-1" *ngIf="f.fn_s.errors.required">Please enter firstname</small>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="col-sm-3">\n                        <div class="form-group">\n                            <label for="ln_s" class="control-label">Last Name: </label><span class="red required_text">*</span>\n                            <input type="text" autocomplete="off" name="ln_s" id="ln_s" class="form-control" formControlName="ln_s" />\n                            <div *ngIf="submitted && f.ln_s?.errors">\n                                <small class="text-danger ml-1" *ngIf="f.ln_s.errors.required">Please enter lastname</small>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="col-sm-3">\n                        <div class="form-group">\n                            <label for="ssn_s" class="control-label">SSN (Last 4 digits only): </label><span class="red required_text">*</span>\n                            <input type="text" autocomplete="off" name="ssn_s" maxlength="4"  mask="0000" id="ssn_s" class="form-control" formControlName="ssn_s"/>\n                            <div *ngIf="submitted && f.ssn_s?.errors">\n                                <small class="text-danger ml-1" *ngIf="f.ssn_s.errors.required">Please enter SSN</small>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="col-sm-3">\n                        <div class="form-group">\n                            <label for="dob_s" class="control-label">Date of Birth (MM/DD/YYYY): </label><span class="red required_text">*</span>\n                            <input type="text" autocomplete="off" name="dob_s" id="dob_s" data-date-start-date="-1w" class="form-control" (keypress)="keyPress($event)"  maxlength="10" placeholder="MM/DD/YYYY" formControlName="dob_s" bsDatepicker />\n                            <div *ngIf="submitted && f.dob_s?.errors">\n                                <small class="text-danger ml-1" *ngIf="f.dob_s.errors.required">Please enter date of birth</small>\n                            </div>\n                            <div *ngIf="dateInvalid">\n                                <small class="text-danger ml-1">Please enter valid date of birth</small>\n                            </div>\n                        </div>\n                    </div>\t\t\t\t\t\t\n                </div>\n                <div class="row">\n                    <div class="col-sm-12 text-right search_button_container">\n                        <button class="btn purple-bg" [disabled]="srcdisbl" id="button_s" style="padding: 6px 10px !important;margin:4px;">Search</button>\n                        &nbsp;<img *ngIf="searchloader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /> \n                        <button class="btn purple-bg" type="button" style="padding: 6px 10px !important" (click)="activeModal.dismiss(\'Cross click\')" data-dismiss="modal">Cancel</button>\n                    </div>\n                </div>\n                </form>\n                <div class="row">\n                    <div class="col-sm-12" *ngIf="searchSection">\n                        <div id="search_overflow" *ngIf="persondata">\n                            <table class="table table-bordered table-condensed" id="search_result">\n                                <thead>\n                                    <tr>\n                                        <th>First Name</th>\n                                        <th>Last Name</th>\n                                        <th>SSN</th>\n                                        <th>Date of Birth</th>\n                                        <th>Action</th>\n                                    </tr>\n                                </thead>\n                                <tbody>\n                                    <tr *ngFor="let data of persondata" style="text-align: center;"><td>{{data.firstname}}</td>\n                                        <td>{{data.lastname}}</td>\n                                        <td>{{data.ssn}}</td>\n                                        <td>{{data.dob | date: \'MM/dd/yyyy\'}}</td>\n                                        <td><button class="button_green button_small" style="padding: 6px 10px !important" (click)="checkcontactwaitlist($event)" [disabled]="selectBtn">Select</button>&nbsp;<img class="admitload" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></td>\n                                    </tr>\n                                    <tr align="center" *ngIf="addperson" class="alert-danger"><td colspan="5"><em>Person not found. Please use the button below to add your client to the system</em></td></tr>\n                                    \x3c!-- <tr><td colspan="5"><em>Please perform a search using the form above - your client may already be in the system</em></td></tr></tbody> --\x3e\n                            </table>\n                        </div>\n                        <div class="text-left" *ngIf="addperson" id="person_not_found_link" style="text-align:center !important;">\n                            <a id="patient_add" class="btn btn-primary" (click)="addNewperson(\'\');"  style="padding: 6px 10px !important">Add a New Person</a>\n                        </div>\n                    </div>\n                    <div class="col-sm-12" id="on_contact_select" *ngIf="addprbtn">\n                   \n                       <form [formGroup]="AddPersonToForm" (ngSubmit)="addpersontoSubmit()" autocomplete="off">\n                        <div class="row">\n                            <div class="col-md-3">\n                                <div class="form-group">\n                                    <label for="addpersonto" class="control-label">Add person to:</label><span class="red required_text">*</span>\n                                <select name="addpersonto" id="addpersonto" formControlName="addpersonto" (change)="personOptn($event)" class="">\n                                    <option value="">Select one</option>\n                                    <option value="screeninglog" >Screening Log</option>\n                                    <option value="waitlist">Waitlist</option>\n                                </select>\n                                <div *ngIf="submittedapf && apf2.addpersonto?.errors">\n                                    <small class="text-danger ml-1" *ngIf="apf2.addpersonto.errors.required">Please select option</small>\n                                </div>\n                                </div>\n                            </div>\n                            \n                        </div>\n                        <div class="row">\n                            <div class="col-sm-12">\n                                <div class="form-group text-center">\n                        <button *ngIf="hideaddpersonsubmit" class="btn btn-primary" style="padding: 6px 10px !important">Submit</button> \n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                        <form [formGroup]="newpersonForm" (ngSubmit)="newpersonSubmit()" autocomplete="off">\n                        <div class="row hideContent">\n                            <div class="col-md-12" style="margin-bottom:6px;">\n                                <div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n                                    <div class="psd_name_address">\n                                            <span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="fn_wp" class="control-label">First Name: </label><span class="red required_text">*</span>\n                                    <input type="text" name="fn_wp" formControlName="fn_wp" id="fn_wp" class="form-control">\n                                    <div *ngIf="submitted && f2.fn_wp?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f2.fn_wp.errors.required">Please enter first name</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3" >\n                                <div class="form-group">\n                                    <label for="ln_wp" class="control-label">Last Name: </label><span class="red required_text">*</span>\n                                    <input type="text" name="ln_wp" formControlName="ln_wp" id="ln_wp" class="form-control">\n                                    <div *ngIf="submitted && f2.ln_wp?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f2.ln_wp.errors.required">Please enter last name</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="gen_wp" class="control-label">Gender: </label><span class="red required_text">*</span>\n                                    <select name="gen_wp" id="gen_wp" formControlName="gen_wp" class="" (change)="selectedGender(f2.gen_wp.value)">\n                                        <option value="" [defaultSelected]=true>Select One</option>\n                                        \x3c!-- <option value="1">Male</option>\n                                        <option value="2">Female</option>\n                                        <option value="3">Transgender Man</option>\n                                        <option value="4">Transgender Woman</option> --\x3e\n                                        <option *ngFor="let gen of gender" value={{gen.id}}>{{gen.name}}</option>\n                                    </select>\n                                    <div *ngIf="submitted && f2.gen_wp?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.gen_wp.errors.required">Please select gender</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="dob_wp" class="control-label">Date of Birth (MM/DD/YYYY): </label><span class="red required_text">*</span>\n                                    <input type="text" autocomplete="off" name="dob_wp" id="dob_wp" data-date-start-date="-1w" class="form-control" (keypress)="keyPress($event)"  maxlength="10" placeholder="MM/DD/YYYY" formControlName="dob_wp" bsDatepicker />\n                                    <div *ngIf="submitted && f2.dob_wp?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f2.dob_wp.errors.required">Please enter date of birth</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="ssn_wp" class="control-label">SSN (Last 4 digits): </label><span class="red required_text">*</span>\n                                    <input type="text" name="ssn_wp" mask="0000" formControlName="ssn_wp" maxlength="4" id="ssn_wp" class="form-control">\n                                    <div *ngIf="submitted && f2.ssn_wp?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f2.ssn_wp.errors.required">Please enter SSN</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="race_s" class="control-label">Race: </label><span class="red required_text">*</span>\n                                  \n                                    <ng-select [items]="Races"\n                                    bindLabel="name"\n                                    placeholder="Select an option"\n                                    dropdownPosition="auto"\n                                    multiple="true"\n                                    (change)="onChange(selection)"\n                                    [(ngModel)]="selection"\n                                    formControlName="races"\n                                    [closeOnSelect]="true"\n                                    [hideSelected]="true"\n                                    [clearable]="false"\n                                    required\n                                    >\n                                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                        <span class="ng-value-label"> {{item.name}}</span>\n                                        <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                                    </ng-template>\n                                    </ng-select>\n                                    <div *ngIf="submitted && f2.races?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.races.errors.required">Please select race</small>\n                                    </div>\n                                </div>\n                            </div>\t\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="ethnicity_s" class="control-label">Ethnicity: </label><span class="red required_text">*</span>\n                                    <ng-select [items]="ethnicity"\n                                    bindLabel="name"\n                                    placeholder="Select an option"\n                                    dropdownPosition="auto"\n                                    multiple="true"\n                                    (change)="onChange(selection2)"\n                                    [(ngModel)]="selection2"\n                                    formControlName="ethnicity"\n                                    [closeOnSelect]="true"\n                                    [hideSelected]="true"\n                                    [clearable]="false"\n                                    required\n                                    >\n                                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                        <span class="ng-value-label"> {{item.name}}</span>\n                                        <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                                    </ng-template>\n                                    </ng-select>\n                                    <div *ngIf="submitted && f2.ethnicity?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.ethnicity.errors.required">Please select ethnicity</small>\n                                    </div>\n                                </div>\n                            </div>\t\t\t\t\t\n                        <div class="col-sm-3">\n                        <div class="form-group">\n                            <label for="lan_s" class="control-label">Preferred Language: </label><span class="red required_text">*</span>\n                            <select name="lan_s" id="lan_s" formControlName="lan_s" class="">\n                                <option value="" [defaultSelected]=true>Select One</option>\n                                <option *ngFor="let lang of preferredlanguages" value={{lang.id}}>{{lang.name}}</option>\n                            </select>\n                            <div *ngIf="submitted && f2.lan_s?.errors">\n                                <small class="text-danger ml-1" *ngIf="f2.lan_s.errors.required">Please select preferred language</small>\n                            </div>\n                        </div>\n                    </div>\n                    </div>\n                        <div class="row" *ngIf="waitlistInfo">\n                            <div class="col-md-12" style="margin-bottom:6px;">\n                                <div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n                                    <div class="psd_name_address">\n                                        <span class="psd_newperson_title_name" style="color: #ffffff">Waitlist Information</span>\n                                        </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                <label for="bed_opt_s" class="control-label">Bed Option/Eligibility: </label><span class="red required_text">*</span>\n                                <select name="bed_opt_s" id="bed_opt_s" formControlName="bed_opt_s" class="form-control">\n                                    <option value="" [defaultSelected]=true>Select One</option>\n                                    <option *ngFor="let bedopt of bedoptions" value={{bedopt.id}}>{{bedopt.name}}</option>\n                                    \x3c!-- <option value="1">Medicaid</option>\n                                    <option value="2">Not funded</option>\n                                    <option value="3">Other</option> --\x3e\n                                </select>\n                                <div *ngIf="submitted && f2.bed_opt_s?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f2.bed_opt_s.errors.required">Please select bed option</small>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="ins_s" class="control-label">Insurance: </label><span class="red required_text">*</span>\n                                    <select name="ins_s" id="ins_s" formControlName="ins_s" class="form-control">\n                                        <option value="" [defaultSelected]=true>Select One</option>\n                                        <option *ngFor="let ins of Insurance" value={{ins.id}}>{{ins.name}}</option>\n                                        \x3c!-- <option value="1">Private insurance</option>\n                                        <option value="2">Medicaid</option>\n                                        <option value="3">Medicare</option>\n                                        <option value="4">No insurance</option> --\x3e\n                                    </select>\n                                    <div *ngIf="submitted && f2.ins_s?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.ins_s.errors.required">Please select insurance</small>\n                                    </div>    \n                                </div>\n                        </div>\n                        <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="rp_s" class="control-label">Referring Program: </label><span class="red required_text">*</span>\n                                    <select name="rp_s" id="rp_s" class="" formControlName="rp_s">\n                                        <option value="" [defaultSelected]=true>Select One</option>\n                                        <option *ngFor="let ref of RefProgram" value={{ref.id}}>{{ref.name}}</option>\n                                        \x3c!-- <option value="1">ATS</option>\n                                        <option value="2">CSS</option>\n                                        <option value="3">TSS</option>\n                                        <option value="4">Other Residential Rehab</option>\n                                        <option value="5">Psychiatric Hospital</option>\n                                        <option value="6">Shelter</option>\n                                        <option value="7">Jail</option>\n                                        <option value="8">Court / Drug Court</option>\n                                        <option value="9">Section 35</option>\n                                        <option value="10">Self-referral</option>\n                                        <option value="11">Other</option> --\x3e\n                                    </select>\n                                    <div *ngIf="submitted && f2.rp_s?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.rp_s.errors.required">Please select referring program</small>\n                                    </div>\n                                </div>\n                            </div>\n\n                            \x3c!-- <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label class="control-label">Currently incarcerated? </label><span class="red required_text">*</span>\n                                    <div class="radio">\n                                        <label><input type="radio" formControlName="ci_s" name="ci_s" (click)="chklabel(\'yes\')"  value="Yes">&nbsp;Yes</label>&nbsp;&nbsp;&nbsp;\n                                        <label><input type="radio" formControlName="ci_s" name="ci_s" (click)="chklabel(\'no\')"  value="No">&nbsp;No</label>\n                                        <div *ngIf="submitted && f2.ci_s?.errors">\n                                            <small class="text-danger ml-1" *ngIf="f2.ci_s.errors.required">Please select currently incarcerated</small>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div> --\x3e\n                            <div class="col-sm-3" *ngIf="lastSubstance">\n                                <div class="form-group">\n                                    <label for="ldu_s" class="control-label">Date of Last Substance Use (MM/DD/YYYY)? </label>\n                                    \x3c!-- <input type="text" autocomplete="off" name="ldu_s" id="ldu_s" class="form-control" (keypress)="keyPress($event)"  maxlength="10" placeholder="MM/DD/YYYY" formControlName="ldu_s" bsDatepicker /> --\x3e\n                                    <input type="text" autocomplete="off" name="ldu_s" id="ldu_s" data-date-start-date="-1w" class="form-control" (keypress)="keyPress($event)"  maxlength="10" placeholder="MM/DD/YYYY" formControlName="ldu_s" bsDatepicker />\n                                </div>\n                            </div>\n                        </div>\n                        \n                        <div class="row hideContent">\n                            <div class="col-md-12" style="margin-bottom:6px;">\n                                <div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n                                    <div class="psd_name_address">\n                                        <span class="psd_newperson_title_name" style="color: #ffffff">Contact Information</span>\n                                        </div>\n                                </div>\n                            </div>\n                            <div class="col-md-4">\n                                <div class="form-group">\n                                    <label for="em_s" class="control-label">Email Address:</label>\n                                    <input type="text" name="em_s" id="em_s" class="form-control" formControlName="em_s">\n                                </div>\n                            </div>\n                            <div class="col-md-4">\n                                <div class="form-group"> \n                                    <label for="ph_s" class="control-label">Phone Number: </label><span class="red">*</span>\n                                    <input type="text" name="ph_s" id="ph_s" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="ph_s" class="form-control" [showMaskTyped]="true" [dropSpecialCharacters]="false"/>\n                                    <div *ngIf="submitted && f2.ph_s?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.ph_s.errors.required">Please enter phone number</small>\n                                        <small class="text-danger ml-1" *ngIf="f2.ph_s.errors?.pattern">Please enter valid phone number</small>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="row hideContent">\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="street_s" class="control-label">Street: </label>\n                                    <input type="text" name="street_s" id="street_s" class="form-control" formControlName="street_s">\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="city_s" class="control-label">City: </label><span class="red">*</span>\n                                    <input type="text" name=\n                                    "city_s" id="city_s" class="form-control" formControlName="city_s" />\n                                    <div *ngIf="submitted && f2.city_s?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.city_s.errors.required">Please enter city</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="state_s" class="control-label">State: </label>\n                                    <select name="state_s" id="state_s"  formControlName="state_s">\n                                     \n                                       <option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\t\t\t\t\t\t\t\n                                    </select>\t\n                                </div>\n                            </div>\n                            <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="zip_s" class="control-label">ZIP: </label>\n                                    <input type="text" name="zip_s" id="zip_s" maxlength="5" class="form-control" formControlName="zip_s">\n                                </div>\n                            </div>\n                        </div>\n\n                        <div class="row hideContent">\n                            <div class="col-md-12" style="margin-bottom:6px;">\n                                    <div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n                                        <div class="psd_name_address">\n                                                <span class="psd_newperson_title_name" style="color: #ffffff">Priority Populations</span>\n                                            </div>\n                                    </div>\n                            </div>\n                            <div class="col-sm-4" >\n                                <div class="form-group">\n                                    <label for="sp_s">Priority Population: </label><span class="red required_text">*</span>\n                                    <ng-select [items]="ppopulation"\n                                        bindLabel="name"\n                                        placeholder="Select an option"\n                                        dropdownPosition="auto"\n                                        multiple="true"\n                                        (change)="onChangePopulation(selection3)"\n                                        [(ngModel)]="selection3"\n                                        formControlName="ppopulation"\n                                        [closeOnSelect]="true"\n                                        [hideSelected]="true"\n                                        [clearable]="false"\n                                        required\n                                        >\n                                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                            <span class="ng-value-label"> {{item.name}}</span>\n                                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                                        </ng-template>\n                                    </ng-select>\n\n                                    <div *ngIf="submitted && f2.ppopulation?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.ppopulation.errors.required">Please select priority population</small>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-4">\n                                <div class="form-group">\n                                    <label class="control-label" for="int_s">Interim/Alternative Services: </label><span class="red required_text" *ngIf="f2.iservices.invalid">*</span>\n\n                                <ng-select [items]="Iservices"\n                                    bindLabel="name"\n                                    bindValue="id"\n                                    placeholder="Select an option"\n                                    dropdownPosition="auto"\n                                    multiple="true"\n                                    (change)="onChangeinterim(f2.iservices.value)"\n                                    formControlName="iservices"\n                                    [closeOnSelect]="true"\n                                    [hideSelected]="true"\n                                    [clearable]="false"\n                                    required\n                                    >\n                                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                        <span class="ng-value-label"> {{item.name}}</span>\n                                        <span class="ng-value-icon right" (click)="onRemoveItem(item)" aria-hidden="true">\xd7</span>\n                                    </ng-template>\n                                </ng-select>\n                                <div *ngIf="submitted && f2.iservices.invalid" id="interimvalid">\n                                    <small class="text-danger ml-1" *ngIf="f2.iservices.invalid">Please select interim/alternative services: </small>\n                                </div>\n                                </div>\n                            </div>\n                            <div class="col-sm-4">\n                                <div *ngIf="f2.iservices.value!=null && selection4!=0" class="col-sm-12" id="int_svcstatusdata" style="margin-top: 36px;">\n                                    <div class="form-group">\n                                        <table class="table table-bordered table-condensed" id="int_svc_update" hide="">\n                                            <thead class="hidetr">\n                                                <tr>\n                                                    <th>Interim Service</th>\n                                                    <th>Interim Service Status</th>\n                                                </tr>\n                                            </thead>\n                                            <tbody class="int_svc-body" >\n                                                <tr *ngFor="let addressGroup of newpersonForm.get(\'interimservices\')[\'controls\'];let i = index" [formGroup]="addressGroup">\n                                                   \n                                                        <td>\n                                                            <span *ngIf="addressGroup.controls.interimservices.value==1">HIV testing</span>\n                                                            <span *ngIf="addressGroup.controls.interimservices.value==2">HIV/TB/Hep C education</span>\n                                                            <span *ngIf="addressGroup.controls.interimservices.value==3">HIV/TB/Hep C treatment referral</span>\n                                                            <span *ngIf="addressGroup.controls.interimservices.value==4">Referral to other services</span>\n                                                            <span *ngIf="addressGroup.controls.interimservices.value==5">Info on substances & fetal development</span>\n                                                            <span *ngIf="addressGroup.controls.interimservices.value==6">Prenatal care referral</span>\n                                                            <input type="hidden" formControlName="interimservices"></td>\n                                                        <td>\n                                                            <select name="selintsvc1" class="statusoffer" formControlName="statusid">\n                                                            <option value="">-select one-</option>\n                                                            <option *ngFor="let int of interimserviceoffer" value={{int.id}}>{{int.name}}</option>\n                                                        </select></td>  </tr>\n                                            </tbody>\n                                    \n                                    </table>\n                              \n                                </div>\n                                </div>\n                            </div>\n                        </div>\n\n                        \x3c!-- <div class="row">\n                            <div class="col-sm-6">\n                                <div class="form-group">\n                                    <label for="onselect_programs">Program Name:</label><span class="red required_text">*</span>\n                                <select id="programs_onselect" name="sh_onselect_programs" formControlName="sh_onselect_programs">\n                                    <option value="" [defaultSelected]=true>--Select Program--</option><option value="Granada House">Granada House</option><option value="Apricot Residential Program (TEST PROGR">Apricot Residential Program (TEST PROGR</option><option value="River Valley Counseling Center">River Valley Counseling Center</option></select>\n                                <div *ngIf="submitted && f2.sh_onselect_programs?.errors">\n                                    <small class="text-danger ml-1" *ngIf="f2.sh_onselect_programs.errors.required">Please select program name</small>\n                                </div>\n                                </div>\n                            </div>\n                        </div>  --\x3e\n                        <div class="row hideContent">\n                            <div class="col-sm-6">\n                                <div class="form-group">\n                                    <label for="onselect_programs">Added by:</label><span class="red required_text">*</span>\n                                    <select *ngIf="waitlistnamesNew.length>1"  id="programs_onselect" name="sh_onselect_programs" formControlName="sh_onselect_programs">\n                                        <option value="" [defaultSelected]=true>--Select Program--</option>\n                                        <ng-container *ngFor="let name of waitlistnamesNew">\n                                        <option *ngIf="!name.providername.toLowerCase().includes(\'inactive\')" value={{name.providername}}>{{name.providername}}</option>\n                                        </ng-container>\n                                    </select>\n                                    <select *ngIf="waitlistnamesNew.length==1"  id="programs_onselect" name="sh_onselect_programs" formControlName="sh_onselect_programs">\n                                        <option [defaultSelected]=true value={{waitlistnamesNew[0].providername}}>{{waitlistnamesNew[0].providername}}</option>\n                                    </select>\n                                    <div *ngIf="submitted && f2.sh_onselect_programs?.errors && waitlistnamesNew.length>1">\n                                        <small class="text-danger ml-1" *ngIf="f2.sh_onselect_programs.errors.required">Please select program name</small>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class="row hideContent">\t\t\t\t\t\t\n                            <div class="col-sm-6">\n                                <div class="form-group">\n                                    <label for="spclacc" class="control-label">High Priority Mental Health Need: </label><span class="red required_text">*</span>\n                                        <div><label for="mhy" style="cursor: pointer;"><input id="mhy" type="radio" value="1" (click)="mhealthClicked(1);" name="mental_health" />&nbsp;<span style="\n                                            margin-top: -23px;\n                                            display: block;\n                                            margin-left: 16px;\n                                        ">Yes</span></label> &nbsp;<label for="mhn" style="cursor: pointer;"><input type="radio" id="mhn" value="2" (click)="mhealthClicked(0);" name="mental_health"/>&nbsp;<span style="margin-top: -23px;display: block;margin-left: 16px;">No</span></label> </div>\n                                        <div *ngIf="submitted && mentalhealthError">\n                                            <small class="text-danger ml-1" *ngIf="mentalhealthError">Please select mental health need</small>\n                                        </div>\n                                </div>\n                            </div>\t\t\t\t\t\n                            <div class="col-sm-6">\n                                <div class="form-group" id="mhealthnotes">\n                                    <label for="notes_s" class="control-label">Mental Health Notes: </label><span class="red required_text">*</span>\n                                    <textarea name="mental_health_notes" placeholder="mental health notes" id="mental_health_notes" class="form-control" formControlName="mental_health_notes"></textarea>\n                                    <div *ngIf="submitted && f2.mental_health_notes?.errors">\n                                        <small class="text-danger ml-1" *ngIf="f2.mental_health_notes.errors.required">Please enter mental health notes</small>\n                                    </div>\n                                </div>\n                            </div>\t\t\t\t\t\t\t\t\n                        </div>\n                        <div class="row hideContent">\t\t\t\t\t\t\n                            <div class="col-sm-6">\n                                <div class="form-group">\n                                    <label for="spclacc" class="control-label">Special Accommodations: </label>\n                                    <textarea name="spclacc" id="spclacc" class="form-control" formControlName="spclacc" placeholder="legal services needs, health insurance needs, accessibility needs"></textarea>\n                                </div>\n                            </div>\t\t\t\t\t\n                            <div class="col-sm-6">\n                                <div class="form-group">\n                                    <label for="notes_s" class="control-label">Additional Details: </label>\n                                    <textarea name="notes_s" id="notes_s" class="form-control" formControlName="notes_s"></textarea>\n                                </div>\n                            </div>\t\t\t\t\t\t\t\t\n                        </div>\n                        \n                        <div class="row hideContent">\n                            <div class="col-sm-12">\n                                <div class="form-group text-center">\n                                    <input type="hidden" id="on_contact_select_cid" name="on_contact_select_cid">\n                                    <input type="hidden" value="163" id="on_contact_select_wlid" name="on_contact_select_wlid">\n                                    <button *ngIf="apf2.addpersonto.value==\'screeninglog\'" type="button" class="btn btn-primary" style="padding: 6px 10px !important;background-color: #545b62!important;" (click)="refusePerson()">Refuse</button>\n                                    <button  *ngIf="apf2.addpersonto.value!=\'screeninglog\'" class="btn btn-primary" style="padding: 6px 10px !important" (click)="activeModal.dismiss(\'Cross click\')" id="cancel_selection">Cancel</button>\n                                    <button class="btn btn-primary" [disabled]="disable ? true : null" style="padding: 6px 10px !important" id="add_existing_contact_as_patient">Submit</button> &nbsp; <img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n                                </div>\n                            </div>\n                        </div>\n                        </form>\n                    </div>\n                </div>\n            </div>\n           \n        </div>\n        <div class="modal-footer modal-center hide" id="new_contact_buttons">\n            <button  type="button" class="btn btn-primary" style="padding: 6px 10px !important" (click)="activeModal.dismiss(\'Cross click\')" id="back_to_search">Cancel</button>\t\t\t\t\n            <button type="button" id="add_patient_button" style="padding: 6px 10px !important" class="btn btn-primary">Submit</button>\n        </div>\n        </div>\n        <div class="modal fade" id="refuseModal" tabindex="-1">\n            <div class="modal-dialog" >\n            <div class="modal-content" style="width: 630px !important;">\n                <form [formGroup]="refusalform" (ngSubmit)="onRefusalsubmit()" autocomplete="off">\n                <div class="modal-header">\n                    <h4 class="modal-title">Reason for Refusal</h4>\n                    <button type="button" style="margin-top: -12px;" class="close" data-dismiss="modal"><span style="font-size: 24px;">\xd7</span></button>\n                </div>\n                <div class="modal-body">\n                    <label for="inputEmail3" class="col-sm-2 col-form-label">Notes <span class="red required_text">*</span></label>\n                    <div class="col-sm-10">\n                        <textarea type="text" rows="4" cols="50"  [(ngModel)]="refusalnote" style="resize: none;" formControlName="refusalnote" id="refusalnote"></textarea>\n                        \n                    </div>\n                    <div *ngIf="submitted1 && rf.refusalnote?.errors" style="text-align: center;">\n                        <small class="text-danger ml-1" *ngIf="rf.refusalnote.errors.required">Please enter refusal notes</small>\n                    </div>\n                    \n                </div>\n                <div class="modal-footer" style="display:flex !important">\n                    <div style="text-align:center;"><button class="btn btn-primary" type="submit" [disabled]="refdisbled">Save</button>&nbsp;<img *ngIf="refloader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></div>            \n                </div>\n            </form>\n                </div>\n            </div>\n        </div>  ',styles:['.modal-content{\n    width: 1073px;\n    left: 50%;\n    transform: translate(-50%);\n}\nform span, form .h4{\n    font-weight: normal;\n}\n:host ::ng-deep select{background: none !important;}\n.table td, .table th{padding: 0.25rem;}\n.purple-bg, .btn-primary {\n    background: #8c5c8d;\n    color: #fff !important;\n    border: none;\n}\n.btn {padding: 2px 10px !important;}\n.modal-footer{display: block;}\n.psd_newperson_title{\n    background-color: #8c5c8d;\n    height: auto;\n    padding-left: 10px;\n    padding-right: 25px;\n}\n.btn-primary{\n    padding: 2px 10px !important;\n    margin: 3px;\n    font-size: 13px;\n}\n.col-sm-3{height: 80px;}\n#refusalnote{border-right: solid 1px gray;}\nbutton#close{margin-top: -12px !important;}\n.custom-modal{ height: 400px;overflow-y: scroll !important;}\n.ng-select span.ng-arrow-wrapper:before {\n    content: "\\f0ab";\n    display: inline-block;\n    font: normal normal normal 14px/1 FontAwesome;\n    font-size: inherit;\n    text-rendering: auto;\n}\n::ng-deep .ng-select .ng-arrow-wrapper .ng-arrow{\n    height: 8px !important;\n    width: 8px !important;\n}\n::ng-deep .ng-select, .ng-select div, .ng-select input, .ng-select span{\n    line-height: 30px;\n}\n::ng-deep .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{\n    margin-top: -13px;\n}\n::ng-deep input[type=text]{\n    height: 28px !important;\n}']})],Qj);let Jj=class{constructor(t,e,n,i,r){this.modalService=t,this.activeModal=e,this.fb=n,this.el=i,this.waitlistservice=r,this.waitlistdata=new s.EventEmitter,this.submitted=!1}get f(){return this.addwaitlistForm.controls}ngOnInit(){this.addwaitlistForm=this.fb.group({ssn_alert_log:[null,[im.required]]}),console.log(this.contactwaitlistdata),console.log(this.contactwaitlistreference);for(let e=0;e<this.contactwaitlistdata.length;e++)this.contactwaitlistdata[e].ref==this.contactwaitlistreference&&(this.contactdatassn=this.contactwaitlistdata[e].con.ssn);var t;(console.log(this.contactdatassn),null!=this.contactdatassn)&&(t={ref:this.contactwaitlistreference,ssn:this.contactdatassn},console.log(t),this.waitlistservice.moveScreeningToWaitlist(t).subscribe(t=>{console.log(t),this.modalService.dismissAll(),location.reload(),t&&this.waitlistdata.emit(t)}))}addwaitSubmit(){var t;(this.submitted=!0,this.addwaitlistForm.invalid)||(console.log(this.addwaitlistForm),t={ref:this.contactwaitlistreference,ssn:this.addwaitlistForm.value.ssn_alert_log},console.log(t),this.waitlistservice.moveScreeningToWaitlist(t).subscribe(t=>{console.log(t),this.modalService.dismissAll(),location.reload(),t&&this.waitlistdata.emit(t)}))}ngAfterContentInit(){document.querySelector("#myModalid").closest(".modal-content").setAttribute("id","updateCapacityModal2")}};Jj.ctorParameters=()=>[{type:ay},{type:ey},{type:Uf},{type:s.ElementRef},{type:Zj}],Jj.propDecorators={my_modal_title:[{type:s.Input}],my_modal_content:[{type:s.Input}],contactwaitlistreference:[{type:s.Input}],contactwaitlistdata:[{type:s.Input}],waitlistdata:[{type:s.Output}]},Jj=Hh([Object(s.Component)({selector:"app-addwaitlist",template:'<div id="myModalid" *ngIf="contactdatassn==null">\n    <div class="modal-header">\n      <h4 class="modal-title pull-left" style="font-size: 18px;">SSN</h4>\n      <button type="button" class="close" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n    </div>\t\t\t\n      <div class="modal-body">\n        <form [formGroup]="addwaitlistForm" (ngSubmit)="addwaitSubmit()" autocomplete="off">\n            <div class="form-group">\n                <label for="ssn_alert_log" class="control-label">SSN (Last 4 digits): </label>\n                <input type="text" autocomplete="off" name="ssn_alert_log" id="ssn_alert_log" class="form-control" maxlength="4" formControlName="ssn_alert_log" />\n                <div *ngIf="submitted && f.ssn_alert_log?.errors">\n                    <small class="text-danger ml-1" *ngIf="f.ssn_alert_log.errors.required">Please enter SSN</small>\n                </div>\n            </div>\n         <input type="hidden" name="contactid_log" id="contactid_log" value="21411" class="data-waitlist">\n        <input type="hidden" name="slid_log" id="slid_log" value="18" class="data-waitlist">\n        <input type="hidden" name="waitlstID_log" id="waitlstID_log" value="163" class="data-waitlist"> \n        <div align="center" class="modal-footer modal-center" id="ssn_buttons" style="text-align:center; display: inherit;">\n        <button class="btn btn-primary" id="add_log_details">Save</button>\n        </div>\n        </form>\t\n      </div>\n      </div>\t\t\t',styles:[".purple-bg:hover, .btn-primary:hover, .btn-primary:active,.btn-primary {\n    background: #8c5c8d;\n    color: #fff;\n}"]})],Jj);let tV=class{constructor(t,e,n,i,s,r){this.activeModal=t,this.fb=e,this.el=n,this.waitlistService=i,this.datePipe=s,this.cdRef=r,this.addprbtn=!1,this.submitted=!1,this.lastSubstance=!1,this.dateInvalid=!1,this.lan_wp="",this.selection=[],this.selection2=[],this.selection3=[],this.selection4=[],this.Interimservice=[],this.racessb=[],this.ethnicitysb=[],this.prpopulationsb=[],this.intermservicessb=[],this.intermsercb=[],this.intermstatus=[],this.editButton=!0,this.saveButton=!1,this.viewInfo=!0,this.editInfo=!1,this.prpopulationObj=[],this.interimvalid=!1,this.selectedppopulation=!0,this.loader=!1,this.mentalhealthError=!1,this.interimservices=[{interimservices:"",statusid:""}],this.Races=[{id:2,name:"American Indian / Alaska Native"},{id:7,name:"Asian"},{id:4,name:"Black, African American"},{id:3,name:"Nat. Hawaiian/Pac. Islander"},{id:1461,name:"Latino"},{id:1,name:"Refuse"},{id:5,name:"White"}],this.ethnicity=[{id:4,name:"Cuban"},{id:6,name:"Hispanic, not otherwise specified"},{id:3,name:"Mexican"},{id:5,name:"Not of Hispanic Origin"},{id:2,name:"Puerto Rican"},{id:1,name:"Refuse"}],this.ppopulation=[{id:4,name:"Pregnant woman with injecting drug use"},{id:2,name:"Pregnant woman"},{id:1,name:"Person with injecting drug use"},{id:3,name:"None"}],this.Iservices=[{id:1,name:"HIV testing"},{id:2,name:"HIV/TB/Hep C education"},{id:3,name:"HIV/TB/Hep C treatment referral"},{id:5,name:"Info on substances & fetal development"},{id:6,name:"Prenatal care referral"},{id:4,name:"Referral to other services"}],this.ReferingProgramming=[{id:1,name:"ATS"},{id:2,name:"CSS"},{id:3,name:"TSS"},{id:4,name:"Other residential rehab"},{id:5,name:"Psychiatric hospital"},{id:6,name:"Shelter"},{id:7,name:"Jail"},{id:8,name:"Court/Drug court"},{id:9,name:"Section 35"},{id:10,name:"Self-referral"},{id:11,name:"Other"}],this.Insurance=[{id:1,name:"Private insurance"},{id:2,name:"Medicaid"},{id:3,name:"Medicare"},{id:4,name:"No Insurance"}],this.BedOption=[{id:2,name:"Medicaid"},{id:1,name:"Not funded"},{id:3,name:"Other"}],this.IntermServiceStatus=[{id:3,name:"Offered and provided"},{id:2,name:"Offered and referred"},{id:1,name:"Offered and refused"}],this.PreferredLanguageID=[{id:429,name:"English"},{id:827,name:"Spanish"},{id:799,name:"Albanian"},{id:800,name:"Arabic"},{id:1052,name:"ASL (Hearing Impaired)"},{id:801,name:"Bosnian"},{id:802,name:"Cambodian"},{id:803,name:"Cantonese"},{id:806,name:"Cape Verdean"},{id:804,name:"Chinese"},{id:805,name:"Creole"},{id:807,name:"Danish"},{id:808,name:"Egyptian"},{id:809,name:"Farsi"},{id:811,name:"Finnish"},{id:810,name:"French"},{id:813,name:"German"},{id:812,name:"Greek"},{id:814,name:"Haitian Creole"},{id:815,name:"Hebrew"},{id:817,name:"Indian"},{id:816,name:"Italian"},{id:818,name:"Japanese"},{id:819,name:"Khmer"},{id:820,name:"Korean"},{id:821,name:"Laotian"},{id:822,name:"Mandarin"},{id:823,name:"Nigerian"},{id:825,name:"Polish"},{id:824,name:"Portuguese"},{id:826,name:"Russian"},{id:828,name:"Somali"},{id:829,name:"Swahili"},{id:830,name:"Vietnamese"},{id:1027,name:"Other"}],this.Gender=[{id:24,name:"Male"},{id:25,name:"Female"},{id:26,name:"Transgender man"},{id:27,name:"Transgender woman"}],this.State=[{id:1,name:"AK"},{id:2,name:"AL"},{id:3,name:"AR"},{id:4,name:"AS"},{id:5,name:"AZ"},{id:6,name:"CA"},{id:7,name:"CO"},{id:8,name:"CT"},{id:9,name:"DC"},{id:10,name:"DE"},{id:11,name:"FL"},{id:12,name:"FM"},{id:13,name:"GA"},{id:14,name:"GU"},{id:15,name:"HI"},{id:16,name:"IA"},{id:17,name:"ID"},{id:18,name:"IL"},{id:19,name:"IN"},{id:20,name:"KS"},{id:21,name:"KY"},{id:22,name:"LA"},{id:23,name:"MA"},{id:24,name:"MD"},{id:25,name:"ME"},{id:26,name:"MH"},{id:27,name:"MI"},{id:28,name:"MN"},{id:29,name:"MO"},{id:30,name:"MP"},{id:31,name:"MS"},{id:32,name:"MT"},{id:33,name:"NC"},{id:34,name:"ND"},{id:35,name:"NE"},{id:36,name:"NH"},{id:37,name:"NJ"},{id:38,name:"NM"},{id:39,name:"NV"},{id:40,name:"NY"},{id:41,name:"OH"},{id:42,name:"OK"},{id:43,name:"OR"},{id:44,name:"PA"},{id:45,name:"PR"},{id:46,name:"PW"},{id:47,name:"RI"},{id:48,name:"SC"},{id:49,name:"SD"},{id:50,name:"TN"},{id:51,name:"TX"},{id:52,name:"UT"},{id:53,name:"VA"},{id:54,name:"VI"},{id:55,name:"VT"},{id:56,name:"WA"},{id:57,name:"WI"},{id:58,name:"WV"},{id:59,name:"WY"}],this.selection5=[]}get f1(){return this.registerForm.controls}ngOnInit(){let t=this.ref;console.log(this.ref),console.log(this.screeningloginfo),this.registerForm=this.fb.group({pt_fn:[],pt_ln:[],pt_dob:[],pt_gen:[],pt_ssn:[],pt_race:[],pt_ethnicity:[],prf_lang:[],pt_bedopt:[],pt_ins:[],pt_ref:[],pt_inc:[],pt_em:[],pt_ph:[],pt_str:[],pt_city:[],pt_sta:[],pt_zip:[],pt_pp:[],pt_notes:[],pt_accom:[],pt_prgrmname:[],pt_is:[null],pt_st:[null],races:[null,[im.required]],ethnicity:[null,[im.required]],lan_s:[null,[im.required]],bed_opt_s:[null,[im.required]],ins_s:[null,[im.required]],rp_s:[null,[im.required]],ldu_s:[null,[im.required]],ph_s:[null,[im.required]],ppopulation:[null,[im.required]],iservices:[null,[im.required]],e_em:[],e_str:[],e_ct:[],e_st:[],e_zip:[],e_note:[],e_accom:[],e_gen:[],selectintermserive:[],e_fn:[],e_ssn:[],e_edob:[],e_ln:[],selintsvc1:[],interimservices:this.fb.array([]),mentalhealthneeds:[null,[im.required]],mentalhealth:[]}),this.loader=!0,this.waitlistService.getpersoninfo(t).subscribe(t=>{this.loader=!1,console.log("fulldata",t),this.fulldata=t,console.log(this.fulldata),console.log(this.fulldata.con),console.log(this.fulldata.con.firstname),this.fullname=this.fulldata.con.firstname+" "+this.fulldata.con.lastname;let e=[];new Array;this.selection3=this.fulldata.prioritypoulation;for(let p=0;p<this.fulldata.races.length;p++)this.raceObj=this.Races.find(t=>t.id==this.fulldata.races[p]),e.push(this.raceObj.name),console.log(this.raceObj);let n=[];for(let p=0;p<this.fulldata.ethncity.length;p++)console.log(this.fulldata.ethncity[p]),this.ethnicityObj=this.ethnicity.find(t=>t.id==this.fulldata.ethncity[p]),console.log(n.push(this.ethnicityObj.name));let i=[];for(let p=0;p<this.fulldata.prioritypoulation.length;p++)console.log(this.fulldata.prioritypoulation[p]),this.prpopulationObj=this.ppopulation.find(t=>t.id==this.fulldata.prioritypoulation[p]),this.prpopulationObj&&(i.push(this.prpopulationObj.name),console.log(this.prpopulationObj));console.log(this.fulldata.interimservices);for(let p=0;p<this.fulldata.interimservices.length;p++)console.log(this.fulldata.interimservices[p].interimservices),null!=this.fulldata.interimservices[p].interimservices&&(this.intermservicesObj=this.Iservices.find(t=>t.id==this.fulldata.interimservices[p].interimservices),console.log(this.intermservicesObj));console.log(this.fulldata.referringprogramid);let s=[];s=this.PreferredLanguageID.find(t=>t.id==this.fulldata.preferredlanguage),this.rgmpid=this.ReferingProgramming.find(t=>t.id==this.fulldata.referringprogramid),console.log(this.rgmpid);let r,a=this.Insurance.find(t=>t.id==this.fulldata.insuranceid),o=this.BedOption.find(t=>t.id==this.fulldata.bedoptionid);r=null==this.fulldata.genderid?{id:"",name:""}:this.Gender.find(t=>t.id==this.fulldata.genderid);let l,c=this.State.find(t=>t.id==this.fulldata.stateid);console.log("genderval",this.fulldata.con.genderid),l=1==this.fulldata.currentlyincarcerated?"Yes":"No",console.log(l);let d=[];for(let p=0;p<this.fulldata.interimservices.length;p++)this.infostatus=this.IntermServiceStatus.find(t=>t.id==this.fulldata.interimservices[p].statusid),this.interservice=this.Iservices.find(t=>t.id==this.fulldata.interimservices[p].interimservices),d.push({intername:this.interservice.name,infoname:null==this.infostatus?"":this.infostatus.name});console.log(d),d.length>0&&(this.selectedppopulation=!1),null==this.interservice&&(console.log(this.interservice),this.interservice={id:"",name:""},console.log(this.interservice),this.infostatus={id:"",name:""}),console.log(this.interservice.name),console.log(this.infostatus),console.log(this.interservice),this.fulldata.preferredlanguage.length<5?this.prf_lang_txt=this.PreferredLanguageID.filter(t=>t.id==this.fulldata.preferredlanguage)[0].name:this.prf_lang_txt=this.fulldata.preferredlanguage,this.registerForm.patchValue({pt_fn:this.fulldata.con.firstname,pt_ln:this.fulldata.con.lastname,pt_dob:this.datePipe.transform(this.fulldata.con.dob,"MM-dd-yyyy"),pt_gen:r.name,pt_ssn:this.fulldata.con.ssn,pt_race:e,pt_ethnicity:n,prf_lang:this.fulldata.preferredlanguage,pt_bedopt:null==o?"":o.name,pt_ins:null==a?"":a.name,pt_ref:null==this.rgmpid?"":this.rgmpid.name,pt_inc:l,pt_em:this.fulldata.emailaddress,pt_ph:this.fulldata.phonenumber,pt_str:this.fulldata.addressline1,pt_city:this.fulldata.city,pt_sta:null==c?"":c.name,pt_zip:this.fulldata.zipcode,pt_pp:i,pt_is:d,pt_st:null==this.infostatus?"":this.infostatus.name,pt_prgrmname:this.fulldata.createdbyprogram,pt_accom:this.fulldata.specialaccommmodations,pt_notes:this.fulldata.externalnotes,mentalhealth:this.fulldata.mentalhealth,mentalhealthneeds:this.fulldata.mentalhealthneeds})})}get registerFormControls(){return this.registerForm.controls}ngAfterViewInit(){$("input#ldu_s").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}static date(t){return new RegExp(/^\d{1,2}\.\d{1,2}\.\d{4}$/).test(t.value)?null:{date:!0}}onRemoveItem(t){this.selection4=this.registerFormControls.iservices.value.length-1,console.log(this.selection4),console.log(this.submitted),console.log(this.selectedppopulation),0==this.selection4&&$("#interimvalid").show();const e=this.registerFormControls.iservices.value.indexOf(t.id);e>=0&&this.registerForm.patchValue({iservices:this.registerFormControls.iservices.value.filter((t,n)=>n!==e)});this.registerForm.get("interimservices").removeAt(e)}onChange(t){console.log(t),this.selection4=this.registerFormControls.iservices.value.length,console.log(this.selection4),$("#interimvalid").hide();let e=t[t.length-1];this.registerForm.get("interimservices").push(this.fb.group({interimservices:[e],statusid:[]}))}mhealthClicked(t){let e=document.getElementById("mhealthnotes");this.registerForm.get("mentalhealthneeds").setValue(""),0==t?(this.registerForm.get("mentalhealthneeds").clearValidators(),this.registerForm.get("mentalhealthneeds").updateValueAndValidity(),e.style.display="none"):(this.registerForm.get("mentalhealthneeds").setValidators([im.required]),this.registerForm.get("mentalhealthneeds").updateValueAndValidity(),e.style.display="block"),this.mentalhealthError=!1}regSubmit(){this.submitted=!0,this.screeningloginfo&&(this.registerForm.get("bed_opt_s").clearValidators(),this.registerForm.get("bed_opt_s").updateValueAndValidity(),this.registerForm.get("rp_s").clearValidators(),this.registerForm.get("rp_s").updateValueAndValidity(),this.registerForm.get("ins_s").clearValidators(),this.registerForm.get("ins_s").updateValueAndValidity());var t=document.getElementsByName("mental_health"),e=document.querySelector('input[name="mental_health"]:checked');if(0!=t[0].checked||0!=t[1].checked){if(console.log(this.registerForm.invalid),!this.registerForm.invalid){console.log(this.fulldata),console.log("raw form submitted data",this.registerForm.value),console.log(this.registerForm.value.races);for(let e=0;e<this.registerForm.value.races.length;e++)console.log(this.registerForm.value.races[e]),this.racessb.push(this.registerForm.value.races[e]),console.log(this.racessb);for(let e=0;e<this.registerForm.value.ethnicity.length;e++)console.log(this.registerForm.value.ethnicity[e]),this.ethnicitysb.push(this.registerForm.value.ethnicity[e]),console.log(this.ethnicitysb);for(let e=0;e<this.registerForm.value.ppopulation.length;e++)console.log(this.registerForm.value.ppopulation[e]),this.prpopulationsb.push(this.registerForm.value.ppopulation[e]),console.log(this.prpopulationsb);var n=[];for(let e=0;e<this.registerForm.value.iservices.length;e++){var i={};i.interimservices=this.registerForm.value.iservices[e],i.statusid=3,n.push(i)}let t=this.datePipe.transform(this.registerForm.value.ldu_s,"yyyy-MM-dd");console.log(t);var s={id:this.fulldata.id,waitlistid:this.fulldata.waitlistid,contactid:this.fulldata.contactid,genderid:this.registerForm.value.e_gen,languageid:this.registerForm.value.lan_s,preferredlanguage:this.registerForm.value.lan_s,emailaddress:this.registerForm.value.e_em,insuranceid:this.registerForm.value.ins_s,bedoptionid:this.registerForm.value.bed_opt_s,referringprogramid:this.registerForm.value.rp_s,currentlyincarcerated:this.registerForm.value.ci_s,lastdateused:t,phonenumber:this.registerForm.value.ph_s,addressline1:this.registerForm.value.e_str,city:this.registerForm.value.e_ct,stateid:this.registerForm.value.e_st,state:this.registerForm.value.e_st,zipcode:this.registerForm.value.e_zip,externalnotes:this.registerForm.value.e_note,specialaccommmodations:this.registerForm.value.e_accom,races:this.racessb,ethncity:this.ethnicitysb,prioritypoulation:this.prpopulationsb,interimservices:this.registerForm.value.interimservices,mentalhealth:1==e.value,mentalhealthneeds:this.registerForm.value.mentalhealthneeds};console.log(s),this.loader=!0,this.waitlistService.updatePersoninfo(s).subscribe(t=>{console.log(t),this.loader=!1,location.reload()})}}else this.mentalhealthError=!0}addNewperson(){this.addprbtn=!0}chklabel(t){this.lastSubstance=!1,"yes"==t&&(this.lastSubstance=!0)}editSubmitted(){this.editButton=!1,this.viewInfo=!1,this.saveButton=!0;let t=[],e=[];console.log(this.fulldata.prioritypoulation),setTimeout(()=>{3==this.fulldata.prioritypoulation?(console.log("none of these"),this.registerForm.get("iservices").setValidators(null),this.registerForm.get("iservices").updateValueAndValidity()):(console.log("valid"),this.registerForm.get("iservices").setValidators([im.required]),this.registerForm.get("iservices").updateValueAndValidity())},500);let n=this.registerForm.get("interimservices");for(let a=0;a<this.fulldata.interimservices.length;a++)t.push(this.fulldata.interimservices[a].interimservices),e.push(this.fulldata.interimservices[a].statusid),n.push(this.fb.group({interimservices:this.fulldata.interimservices[a].interimservices,statusid:this.fulldata.interimservices[a].statusid}));let i,s=this.datePipe.transform(this.fulldata.lastdateused,"yyyy-MM-dd");console.log(s),console.log(this.fulldata.currentlyincarcerated),1==this.fulldata.currentlyincarcerated&&this.chklabel("yes"),console.log("this.fulldata",this.fulldata),i=this.fulldata.preferredlanguage.length>4?this.PreferredLanguageID.filter(t=>t.name==this.fulldata.preferredlanguage)[0]?this.PreferredLanguageID.filter(t=>t.name==this.fulldata.preferredlanguage)[0].id:"":this.PreferredLanguageID.filter(t=>t.id==this.fulldata.preferredlanguage)[0]?this.PreferredLanguageID.filter(t=>t.id==this.fulldata.preferredlanguage)[0].id:"",this.registerForm.patchValue({e_fn:this.fulldata.con.firstname,e_ln:this.fulldata.con.lastname,e_edob:this.datePipe.transform(this.fulldata.con.dob,"MM-dd-yyyy"),e_gen:this.fulldata.genderid,e_ssn:this.fulldata.con.ssn,races:this.fulldata.races,ethnicity:this.fulldata.ethncity,lan_s:i,bed_opt_s:this.fulldata.bedoptionid,ldu_s:new Date(s),ins_s:this.fulldata.insuranceid,rp_s:this.fulldata.referringprogramid,ci_s:this.fulldata.currentlyincarcerated,e_em:this.fulldata.emailaddress,ph_s:this.fulldata.phonenumber,e_str:this.fulldata.addressline1,e_ct:this.fulldata.city,e_st:this.fulldata.stateid,e_zip:this.fulldata.zipcode,ppopulation:this.fulldata.prioritypoulation,iservices:t,selintsvc1:e,e_note:this.fulldata.externalnotes,e_accom:this.fulldata.specialaccommmodations,mentalhealth:this.fulldata.mentalhealth,mentalhealthneeds:this.fulldata.mentalhealthneeds}),console.log(this.registerForm.value),this.editInfo=!0;const r=this;setTimeout(()=>{if(0==r.fulldata.mentalhealth){r.registerForm.get("mentalhealthneeds").clearValidators(),r.registerForm.get("mentalhealthneeds").updateValueAndValidity(),document.getElementById("mhealthnotes").style.display="none"}r.fulldata.mentalhealth?document.getElementById("mhy").checked=!0:document.getElementById("mhn").checked=!0},1e3)}onChangePopulation(t){console.log(t),0==t.length&&(this.selectedppopulation=!1,this.registerForm.get("iservices").clearValidators(),this.registerForm.get("iservices").updateValueAndValidity());for(let e=0;e<t.length;e++){if(3==t[e])return this.selectedppopulation=!1,this.registerForm.get("iservices").clearValidators(),this.registerForm.get("iservices").updateValueAndValidity(),void this.registerForm.get("ppopulation").patchValue([t[e]]);3!=t[e]&&(this.selectedppopulation=!0,this.registerForm.get("iservices").setValidators([im.required]),this.registerForm.get("iservices").updateValueAndValidity())}}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}};tV.ctorParameters=()=>[{type:ey},{type:Uf},{type:s.ElementRef},{type:Zj},{type:Cu.DatePipe},{type:s.ChangeDetectorRef}],tV.propDecorators={screeningloginfo:[{type:s.Input}],my_modal_title:[{type:s.Input}],my_modal_content:[{type:s.Input}],ref:[{type:s.Input}]},tV=Hh([Object(s.Component)({selector:"app-personinfo",template:'<div class="modal-content" style="width: 1024px;left:50%;transform:translate(-50%) ">\n    <div class="modal-header">\n      <h5><font size="2px">An </font><font color="red" size="3px"> *</font> <font size="2px">indicates a required field. All other fields are optional</font></h5>  \n      <h4 class="modal-title pull-left" style="font-size: 18px;">{{fullname}}</h4>\n      <button type="button" class="close" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close" style="margin-top: -49px;"><span aria-hidden="true"  style="font-size: -29px;">&times;</span></button>\n\t</div>\t\t\n\t<form [formGroup]="registerForm" (ngSubmit)="regSubmit()" autocomplete="off">\t\n    <div class="modal-body">\t\t\n\t\t\x3c!-- <div id="fetch_pt_loading" class="text-center hide">\n\t\t\t<img src="/euf/assets/themes/standard/images/loading.gif" alt="Loading...">\n\t\t</div> --\x3e\n\t\t<div id="post_fetch" *ngIf="viewInfo">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-12" style="margin-bottom:6px;">\n                    <div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n                        <div class="psd_name_address">\n                            <span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n                        </div>\n                    </div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.pt_fn.value">\n\t\t\t\t\t<strong>First Name:</strong> <span id="pt_fn"> {{registerFormControls.pt_fn.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_fn">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.pt_ln.value">\n\t\t\t\t\t<strong>Last Name:</strong> <span id="pt_ln"> {{registerFormControls.pt_ln.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_ln">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.pt_dob.value">\n\t\t\t\t\t<strong>Date of Birth:</strong> <span id="pt_dob"> {{registerFormControls.pt_dob.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_dob">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.pt_gen.value">\n\t\t\t\t\t<strong>Gender:</strong> <span id="pt_gen"> {{registerFormControls.pt_gen.value}}</span><span class="hide" id="pt_gen_id"></span>\n\t\t\t\t\t<input type="hidden" forControlName="pt_gen">\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row top10">\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.pt_ssn.value">\n\t\t\t\t\t<strong>SSN:</strong> <span id="pt_ssn"> XXX-XX-{{registerFormControls.pt_ssn.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_ssn">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3" *ngIf="registerFormControls.pt_race.value">\n\t\t\t\t\t<strong>Race:</strong> <span id="pt_race"> {{registerFormControls.pt_race.value}}</span><span class="hide" id="pt_race_id">1</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_race">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3" *ngIf="registerFormControls.pt_ethnicity.value">\n\t\t\t\t\t<strong>Ethnicity:</strong> <span id="pt_ethnicity"> {{registerFormControls.pt_ethnicity.value}}</span><span class="hide" id="pt_ethnicity_id">6</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_ethnicity">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.prf_lang.value">\n\t\t\t\t\t<strong>Preferred Language:</strong> <span id="prf_lang"> {{prf_lang_txt}}</span><span class="hide" id="prf_lang_id">English</span>\n\t\t\t\t\t<input type="hidden" formControlName="prf_lang">\n\t\t\t\t</div>\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row top10" *ngIf="!screeningloginfo">\n\t\t\t\t<div class="col-md-12" style="margin-bottom:6px;">\n\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t<div class="psd_name_address">\n\t\t\t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Waitlist Information</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3" *ngIf="registerFormControls.pt_bedopt.value">\n\t\t\t\t\t<strong>Bed Option/Eligibility:</strong> <span id="pt_bedopt"> {{registerFormControls.pt_bedopt.value}}</span><span class="hide" id="pt_bedopt_id"></span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_bedopt">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-3" *ngIf="registerFormControls.pt_ins.value">\n\t\t\t\t\t<strong>Insurance:</strong> <span id="pt_ins"> {{registerFormControls.pt_ins.value}}</span><span class="hide" id="pt_ins_id"></span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_ins">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-3" *ngIf="registerFormControls.pt_ref.value">\n\t\t\t\t\t<strong>Referring Program:</strong> <span id="pt_ref"> {{registerFormControls.pt_ref.value}}</span><span class="hide" id="pt_ref_id">1</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_ref">\n\t\t\t\t</div>\n\n\t\t\t\t\x3c!-- <div class="col-xs-3">\n\t\t\t\t\t<strong>Currently incarcerated?</strong> <span id="pt_inc"> {{registerFormControls.pt_inc.value}}</span>&nbsp;<span id="pt_inc_dt"></span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_inc">\n\t\t\t\t</div> --\x3e\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row top10">\n\t\t\t\t<div class="col-md-12" style="margin-bottom:6px;">\n\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t\t<div class="psd_name_address">\n                \t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Contact Information</span>\n           \t\t\t\t\t </div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-4" *ngIf="registerFormControls.pt_em.value">\n\t\t\t\t\t<strong>Email:</strong> <span id="pt_em"> {{registerFormControls.pt_em.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_em">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-4" *ngIf="registerFormControls.pt_ph.value">\n\t\t\t\t\t<strong>Phone Number:</strong> <span id="pt_ph" > {{registerFormControls.pt_ph.value}}</span>\n\t\t\t\t\t\n\t\t\t\t\t<input type="hidden" mask="(000) 000-0000" formControlName="pt_ph">\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row top10">\n\t\t\t\t<div class="col-xs-4" *ngIf="registerFormControls.pt_str.value">\n\t\t\t\t\t<strong>Street:</strong> <span id="pt_str"> {{registerFormControls.pt_str.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_str">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-4" *ngIf="registerFormControls.pt_city.value">\n\t\t\t\t\t<strong>City:</strong> <span id="pt_city"> {{registerFormControls.pt_city.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_city">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-4" *ngIf="registerFormControls.pt_zip.value">\n\t\t\t\t\t<strong>State &amp; Zip:</strong> <span id="pt_sta"> {{registerFormControls.pt_sta.value}}</span>&nbsp;<span id="pt_zip">{{registerFormControls.pt_zip.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_sta"><input type="hidden" formControlName="pt_zip">\n\n\t\t\t\t</div>\t\t\t\n\n\t\t\t</div>\n\t\t\t<input type="hidden" id="intsvc_intstatus">\n\t\t\t<div class="row top10">\n\t\t\t\t<div class="col-md-12" style="margin-bottom:6px;">\n\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t<div class="psd_name_address">\n            \t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Priority Populations</span>\n       \t\t\t\t\t </div>\n\t\t\t\t\t</div>\n\t\t\t   </div>\n\t\t\t   <div class="col-xs-4" *ngIf="registerFormControls.pt_pp.value">\n\t\t\t\t\t<strong>Priority Population:</strong> <span id="pt_pp"> {{registerFormControls.pt_pp.value}}</span><span class="hide" id="pt_pp_id">2</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_pp">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-6" *ngIf="registerFormControls.pt_is.value">\n\t\t\t\t\t<div id="Intservicediv">\n\t\t\t\t\t\t<table class="table table-bordered table-condensed" id="Intservicetable" hide="">\n\t\t\t\t\t\t\t<thead>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<th>Interim Service</th>\n\t\t\t\t\t\t\t\t\t<th>Interim Service Status</th>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t<tbody class="intsvc_status_body"><tr *ngFor="let i of registerFormControls.pt_is.value">\n\t\t\t\t\t\t\t\t<td>{{i.intername}}</td>\n\t\t\t\t\t\t\t\t<td >{{i.infoname}}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row top10">\n\t\t\t\t<div class="col-xs-6" *ngIf="registerFormControls.pt_prgrmname.value">\n\t\t\t\t\t<strong>Added by:</strong> &nbsp;<span id="pt_prgrmname"> {{registerFormControls.pt_prgrmname.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_prgrmname">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row top10">\n\t\t\t\t<div class="col-xs-6" *ngIf="registerFormControls.mentalhealth.value || registerFormControls.mentalhealth.value==false">\n\t\t\t\t\t<strong>High Priority Mental Health Need:</strong> &nbsp;<span id="mentalhealth"> {{(registerFormControls.mentalhealth.value===true)?\'Yes\':\'No\'}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="mentalhealth">\n\t\t\t\t</div>\n\n\t\t\t\t<div class="col-xs-6" *ngIf="registerFormControls.mentalhealthneeds.value && registerFormControls.mentalhealth.value===true">\n\t\t\t\t\t<strong>Mental Health Notes:</strong> &nbsp;<span id="mentalhealthneeds"> {{registerFormControls.mentalhealthneeds.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="mentalhealthneeds">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row top10">\t\t\t\t\n\t\t\t\t<div class="col-xs-6" *ngIf="registerFormControls.pt_accom.value">\n\t\t\t\t\t<strong>Special Accommodations:</strong> <span id="pt_accom"> {{registerFormControls.pt_accom.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_accom">\n\t\t\t\t</div>\n\t\t\t\t<div class="col-xs-6" *ngIf="registerFormControls.pt_notes.value">\n\t\t\t\t\t<strong>Additional Details:</strong> <span id="pt_notes"> {{registerFormControls.pt_notes.value}}</span>\n\t\t\t\t\t<input type="hidden" formControlName="pt_notes">\n\t\t\t\t</div>\t\t\t\t\n\t\t\t</div>\n\t\t</div>\n\t\t<div id="edit_modal_data" *ngIf="editInfo">\t\t\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-12" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="margin-bottom: 6px;">\n\t\t\t\t\t\t<div class="psd_name_address">\n            \t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n       \t\t\t\t\t </div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_fn">First Name: </label>\n\t\t\t\t\t\t<input type="text" id="e_fn" class="form-control hide" formControlName="e_fn">\n\t\t\t\t\t\t<div id="e_fn_l" >{{registerFormControls.e_fn.value}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_ln">Last Name: </label>\n\t\t\t\t\t\t<input type="text" id="e_ln" class="form-control hide" formControlName="e_ln">\n\t\t\t\t\t\t<div id="e_ln_l" >{{registerFormControls.e_ln.value}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_dob">Date of Birth (MM/DD/YYYY): </label>\n\t\t\t\t\t\t<input type="text" id="e_dob" class="form-control hide" formControlName="e_edob">\n\t\t\t\t\t\t<div id="e_dob_l" > {{registerFormControls.e_edob.value}}</div>\n\t\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_gen">Gender: </label>\n\t\t\t\t\t\t<select name="e_gen" id="e_gen" formControlName="e_gen">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option  *ngFor="let gen of Gender" [value]="gen.id">{{gen.name}}</option>\t\t\t\t\t\t\t\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t</div>\t\n\n\t\t\t<div class="row">\t\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_ssn">SSN (Last 4 digits only): </label>\n\t\t\t\t\t\t<input type="text" id="e_ssn" maxlength="4" class="form-control hide" formControlName="e_ssn">\n\t\t\t\t\t\t<div id="e_ssn_l" > XXX-XX-{{this.fulldata.con.ssn}}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label" for="e_race">Race: </label>&nbsp;<span class="red">*</span>\n\t\t\t\t\t\t<ng-select [items]="Races"\n\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\tbindValue="id"\n\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\tdropdownPosition="auto"\n\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\n\t\t\t\t\t\tformControlName="races"\n\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\t>\n\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t<div *ngIf="submitted && f1.races?.errors">\n\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.races.errors.required">Please select race</small>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label" for="e_ethnicity">Ethnicity: </label>&nbsp;<span class="red">*</span>\n\t\t\t\t\t\t<ng-select [items]="ethnicity"\n\t\t\t\t\t\t    bindValue="id"\n\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\t\tdropdownPosition="auto"\n\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\tformControlName="ethnicity"\n\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\trequired\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t<div *ngIf="submitted && f1.ethnicity?.errors">\n\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.ethnicity.errors.required">Please select ethnicity</small>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\x3c!-- <div class="col-md-3">\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label for="e_ethn">Ethnicity: </label>&nbsp;<span class="red">*</span>\n\t\t\t\t\t\t\t<select name="e_ethn" id="e_ethn" class="form-control">\n\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t<option value="2">Puerto Rican</option>\n\t\t\t\t\t\t\t\t\t<option value="3">Mexican</option>\n\t\t\t\t\t\t\t\t\t<option value="4">Not of Hispanic Origin</option>\n\t\t\t\t\t\t\t\t\t<option value="5">Hispanic, not otherwise specified</option>\n\t\t\t\t\t\t\t\t\t<option value="1">Refuse</option>\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div> --\x3e\n\t\t\t\t\n\t\t\t\t<div class="col-sm-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="lan_s" class="control-label">Preferred Language: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<select name="lan_s" id="lan_s" formControlName="lan_s" class="">\n\t\t\t\t\t\t\t<option value="" >Select One</option>\n\t\t\t\t\t\t\t<option  *ngFor="let item of PreferredLanguageID" [value]="item.id">{{item.name}}</option>\n\t\t\t\t\t\t\t\x3c!-- <option value="1" >English</option>\n\t\t\t\t\t\t\t\t\t<option value="2">Spanish</option>\n\t\t\t\t\t\t\t\t\t<option value="3" >ASL (Hearing Impaired)</option>\n\t\t\t\t\t\t\t\t\t<option value="4" >Albanian</option>\n\t\t\t\t\t\t\t\t\t<option value="5" >Arabic</option>\n\t\t\t\t\t\t\t\t\t<option value="6" >Bosnian</option>\n\t\t\t\t\t\t\t\t\t<option value="7" >Cambodian</option>\n\t\t\t\t\t\t\t\t\t<option value="8" >Cantonese</option>\n\t\t\t\t\t\t\t\t\t<option value="9" >Chinese</option>\n\t\t\t\t\t\t\t\t\t<option value="10" >Creole</option>\n\t\t\t\t\t\t\t\t\t<option value="11" >Cape Verdean</option>\n\t\t\t\t\t\t\t\t\t<option value="12" >Danish</option>\n\t\t\t\t\t\t\t\t\t<option value="13" >Egyptian</option>\n\t\t\t\t\t\t\t\t\t<option value="14" >Farsi</option>\n\t\t\t\t\t\t\t\t\t<option value="15" >French</option>\n\t\t\t\t\t\t\t\t\t<option value="16" >Finnish</option>\n\t\t\t\t\t\t\t\t\t<option value="17" >Greek</option>\n\t\t\t\t\t\t\t\t\t<option value="18" >German</option>\n\t\t\t\t\t\t\t\t\t<option value="19" >Haitian Creole</option>\n\t\t\t\t\t\t\t\t\t<option value="20" >Hebrew</option>\n\t\t\t\t\t\t\t\t\t<option value="21" >Italian</option>\n\t\t\t\t\t\t\t\t\t<option value="22" >Indian</option>\n\t\t\t\t\t\t\t\t\t<option value="23" >Japanese</option>\n\t\t\t\t\t\t\t\t\t<option value="24" >Khmer</option>\n\t\t\t\t\t\t\t\t\t<option value="25" >Korean</option>\n\t\t\t\t\t\t\t\t\t<option value="26" >Laotian</option>\n\t\t\t\t\t\t\t\t\t<option value="27" >Mandarin</option>\n\t\t\t\t\t\t\t\t\t<option value="28" >Nigerian</option>\n\t\t\t\t\t\t\t\t\t<option value="29" >Portuguese</option>\n\t\t\t\t\t\t\t\t\t<option value="30" >Polish</option>\n\t\t\t\t\t\t\t\t\t<option value="31" >Russian</option>\n\t\t\t\t\t\t\t\t\t<option value="32" >Somali</option>\n\t\t\t\t\t\t\t\t\t<option value="33" >Swahili</option>\n\t\t\t\t\t\t\t\t\t<option value="34" >Vietnamese</option>\n\t\t\t\t\t\t\t\t\t<option value="35" >Other</option> --\x3e\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<div *ngIf="submitted && f1.lan_s?.errors">\n\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.lan_s.errors.required">Please select preferred language</small>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row" *ngIf="!screeningloginfo">\n\t\t\t<div class="col-md-12" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="margin-bottom: 6px;">\n\t\t\t\t\t<div class="psd_name_address">\n\t\t\t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Waitlist Information</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\t\t\n\t\t\t<div class="col-md-3">\n\t\t\t\t<div class="form-group">\n\t\t\t\t\t<label for="bed_opt_s" class="control-label">Bed Option/Eligibility: </label><span *ngIf="!screeningloginfo" class="red required_text">*</span>\n\t\t\t\t\t<select  id="bed_opt_s" formControlName="bed_opt_s" class="form-control" >\n\t\t\t\t\t\t<option value=""  >Select One</option>\n\t\t\t\t\t\t <option *ngFor="let item of BedOption" [value]="item.id">{{item.name}}</option>\n\t\t\t\t\t\t\x3c!-- <option value="1">Funded by IDHS/SUPR</option> --\x3e\n\t\t\t\t\t\t\x3c!-- <option value="2" >Medicaid</option>\n\t\t\t\t\t\t<option value="1" >Not funded</option>\n\t\t\t\t\t\t<option value="3" >Other</option>--\x3e\n\t\t\t\t\t</select>\n\t\t\t\t\t<div *ngIf="submitted && f1.bed_opt_s?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.bed_opt_s.errors.required">Please select bed option</small>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label for="ins_s" class="control-label">Insurance: </label><span *ngIf="!screeningloginfo" class="red required_text">*</span>\n\t\t\t\t\t\t\t<select name="ins_s" id="ins_s" formControlName="ins_s" class="form-control">\n\t\t\t\t\t\t\t\t<option value="" >Select One</option>\n\t\t\t\t\t\t\t\t<option  *ngFor="let opt of Insurance" [value]="opt.id">{{opt.name}}</option>\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t<div *ngIf="submitted && f1.ins_s?.errors">\n\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.ins_s.errors.required">Please select insurance</small>\n\t\t\t\t\t\t\t</div>    \n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\t\n\t\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="rp_s" class="control-label">Referring Program: </label><span *ngIf="!screeningloginfo" class="red required_text">*</span>\n\t\t\t\t\t\t<select name="rp_s" id="rp_s" class="" formControlName="rp_s" >\n\t\t\t\t\t\t\t<option value="" >Select One</option>\n\t\t\t\t\t\t\t<option  *ngFor="let opt of ReferingProgramming" [value]="opt.id">{{opt.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<div *ngIf="submitted && f1.rp_s?.errors">\n\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.rp_s.errors.required">Please select referring program</small>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\n\t\t\t\t\x3c!-- <div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label">Currently incarcerated? </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<div class="radio">\n\t\t\t\t\t\t\t<label><input type="radio" formControlName="ci_s" name="ci_s"  (click)="chklabel(\'yes\')" [value]="true">&nbsp;Yes</label>&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t\t\t<label><input type="radio" formControlName="ci_s" name="ci_s" (click)="chklabel(\'no\')" [value]="false">&nbsp;No</label>\n\t\t\t\t\t\t\t<div *ngIf="submitted && f1.ci_s?.errors">\n\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.ci_s.errors.required">Please select currently incarcerated</small>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div> --\x3e\n\t\t\t\t<div class="col-sm-3" *ngIf="lastSubstance">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="ldu_s" class="control-label">Date of Last Substance Use (MM/DD/YYYY)? </label>\n\t\t\t\t\t\t<input type="text" autocomplete="off" name="ldu_s" id="ldu_s" data-date-start-date="-1w" class="form-control" placeholder="MM/DD/YYYY" formControlName="ldu_s" bsDatepicker />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row">\t\n\t\t\t<div class="col-md-12" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="margin-bottom: 6px;">\n\t\t\t\t\t\t\t<div class="psd_name_address">\n                \t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Contact Information</span>\n           \t\t\t\t\t </div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\t\t\t\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_em">Email: </label>\n\t\t\t\t\t\t<input type="text" name="e_em" id="e_em" class="form-control" formControlName="e_em">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<label for="ph_s" class="control-label">Phone Number: </label><span class="red">*</span>\n\t\t\t\t\t<input type="text" name="ph_s" id="ph_s" mask="(000) 000-0000" formControlName="ph_s" class="form-control"/>\n\t\t\t\t\t<div *ngIf="submitted && f1.ph_s?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.ph_s.errors.required">Please enter phone number</small>\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.ph_s.errors?.pattern">Please enter valid phone number</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t</div>\n\t\t\t<div class="row">\t\t\t\t\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_str">Street: </label>\n\t\t\t\t\t\t<input type="text" name="e_str" id="e_str" formControlName="e_str" class="form-control">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_ct">City: </label>\n\t\t\t\t\t\t<input type="text" name="e_ct" id="e_ct" formControlName="e_ct" class="form-control">\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_st">State: </label>\n\t\t\t\t\t\t<select name="e_st" id="e_st" formControlName="e_st">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option  *ngFor="let opt of State" [value]="opt.id">{{opt.name}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-3">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_zip">Zip: </label>\n\t\t\t\t\t\t<input type="text" name="e_zip" id="e_zip" formControlName="e_zip" class="form-control" >\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-12" style="padding-top: 2px;padding-bottom: 2px;">\n\t\t\t\t\t\t<div class="psd_newperson_title clearfix program_name" style="margin-bottom:6px;">\n\t\t\t\t\t\t\t<div class="psd_name_address">\n                \t\t\t\t\t<span class="psd_newperson_title_name" style="color: #ffffff">Priority Populations</span>\n           \t\t\t\t\t </div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label class="control-label" for="e_pp">Priority Population: </label>&nbsp;<span class="red">*</span>\t\t\t\t\t\t\n\t\t\t\t\t\t<ng-select [items]="ppopulation"\n\t\t\t\t\t\tbindValue="id"\n\t\t\t\t\t\tbindLabel="name"\t\n\t\t\t\t\t\tplaceholder="Select an option"\n\t\t\t\t\t\tdropdownPosition="auto"\n\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t[(ngModel)]="selection3"\n\t\t\t\t\t\t(change)="onChangePopulation(selection3)"\n\t\t\t\t\t\tformControlName="ppopulation"\n\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\t>\n\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t</ng-select>\n\n\t\t\t\t\t<div *ngIf="submitted && f1.ppopulation?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.ppopulation.errors.required">Please select priority population</small>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label class="control-label" for="e_sp">Interim/Alternative Services:  </label><span id="interiminvalid" *ngIf="registerFormControls.iservices.invalid" class="red required_text" >*</span>\n\t\t\t\t\t\t\t\t\t<ng-select [items]="Iservices"\n\t\t\t\t\t\t\t\t\tbindValue="id"\n                                    bindLabel="name"\n                                    placeholder="Select an option"\n                                    dropdownPosition="auto"\n                                    multiple="true"\n                                    (change)="onChange(registerFormControls.iservices.value)"\n                                    formControlName="iservices"\n                                    [closeOnSelect]="true"\n                                    [hideSelected]="true"\n                                    [clearable]="false"\t\t\t\t\t\t\t\t\t\n                                    required\n                                    >\n                                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                        <span class="ng-value-label"> {{item.name}}</span>\n                                        <span class="ng-value-icon right" (click)="onRemoveItem(item)" aria-hidden="true">\xd7</span>\n                                    </ng-template>\n                                </ng-select>\n\t\t\t\t\t\t\t\t\n                                <div *ngIf="submitted && registerFormControls.iservices.invalid" id="interimvalid">\n                                    <small class="text-danger ml-1" *ngIf="registerFormControls.iservices.invalid">Please select interim/alternative services:</small>\n                                </div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t\t<div *ngIf="registerFormControls.iservices.value.length>0" class="col-sm-12" id="int_svcstatusdata" style="margin-top: 36px;">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<table class="table table-bordered table-condensed" id="int_svc_update">\n\t\t\t\t\t\t\t\t\t<thead class="hidetr">\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<th>Interim Service</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>Interim Service Status</th>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t<tbody class="int_svc-body">\n\t\t\t\t\t\t\t\t\t\t<tr *ngFor="let addressGroup of registerForm.get(\'interimservices\')[\'controls\'];let i = index" [formGroup]="addressGroup">\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- {{registerForm.controls.interimservices.controls[i].controls.interimservices.value}} --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3c!-- {{addressGroup.controls.interimservices.value}} --\x3e\n\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==1">HIV testing</span>\n\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==2">HIV/TB/Hep C education</span>\n\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==3">HIV/TB/Hep C treatment referral</span>\n\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==4">Referral to other services</span>\n\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==5">Info on substances & fetal development</span>\n\t\t\t\t\t\t\t\t\t\t\t<span *ngIf="addressGroup.controls.interimservices.value==6">Prenatal care referral</span>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" formControlName="interimservices">\n\t\t\t\t\t\t\t\t\t\t</td>\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t<select name="selintsvc1" class="statusoffer" formControlName="statusid" >\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="">-select one-</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<option  *ngFor="let opt of IntermServiceStatus" [value]="opt.id">{{opt.name}}</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</td>\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t  </table>\t\n\t\t\t\t\t\t\t\x3c!-- <table class="table table-bordered table-condensed" id="int_svc_update" hide="">\n\t\t\t\t\t\t\t\t\t<thead class="hidetr">\n\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t<th>Interim Service</th>\n\t\t\t\t\t\t\t\t\t\t\t<th>Interim Service Status</th>\n\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</thead>\n\t\t\t\t\t\t\t\t\t<tbody class="int_svc-body">\n\t\t\t\t\t\t\t\t\t\t\t<tr *ngFor="let i of registerFormControls.iservices.value" data-trid="1">\n\t\t\t\t\t\t\t\t\t\t\t\t<td *ngIf="i==2">HIV/TB/Hep C education<input type="hidden" name="intsvc1[]"  value="1" formControlName="iservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td *ngIf="i==1">HIV testing<input type="hidden" name="intsvc1[]"  value="1" formControlName="iservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td *ngIf="i==3">HIV/TB/Hep C treatment referral<input type="hidden" name="intsvc1[]"  value="1" formControlName="iservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td *ngIf="i==4">Referral to other services<input type="hidden" name="intsvc1[]"  value="1" formControlName="iservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td *ngIf="i==5">Info on substances & fetal development<input type="hidden" name="intsvc1[]"  value="1" formControlName="iservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td *ngIf="i==6">Prenatal care referral<input type="hidden" name="intsvc1[]"  value="1" formControlName="iservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="selintsvc1" class="statusoffer" formControlName="selintsvc1" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">-select one-</option><option value="2">Offered and referred</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="1">Offered and refused</option><option value="3">Offered and provided</option>\n\t\t\t\t\t\t\t\t\t\t\t\t</select></td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t\t<tr *ngFor="let item of registerForm.get(\'interimservices_new\').controls; let i = index;" formGroup="item">\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<td><input type="hidden" formControlName="interimservices"></td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<select  class="statusoffer" formControlName="statusid" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">-select one-</option><option value="2">Offered and referred</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="1">Offered and refused</option><option value="3">Offered and provided</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t    </td>\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t</table> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\t\t\t\t\t\t\n\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="spclacc" class="control-label">High Priority Mental Health Need</label><span class="red required_text">*</span>\n\t\t\t\t\t\t\t<div><label for="mhy" style="cursor: pointer;"><input id="mhy" type="radio" value="1" (click)="mhealthClicked(1);" name="mental_health" />&nbsp;<span style="\n\t\t\t\t\t\t\t\tmargin-top: -23px;\n\t\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\t\tmargin-left: 16px;\n\t\t\t\t\t\t\t">Yes</span></label> &nbsp;<label for="mhn" style="cursor: pointer;"><input type="radio" id="mhn" value="2" (click)="mhealthClicked(0);" name="mental_health"/>&nbsp;<span style="margin-top: -23px;display: block;margin-left: 16px;">No</span></label> </div>\n\t\t\t\t\t\t\t<div *ngIf="submitted && mentalhealthError">\n\t\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="mentalhealthError">Please select mental health need</small>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t<div class="form-group" id="mhealthnotes">\n\t\t\t\t\t\t<label for="notes_s" class="control-label">Mental Health Notes: </label><span class="red required_text">*</span>\n\t\t\t\t\t\t<input type="text" formControlName="mentalhealth" id="mhealthhidden" />\n\t\t\t\t\t\t<textarea name="mental_health_notes" placeholder="mental health notes" id="mental_health_notes" class="form-control" formControlName="mentalhealthneeds"></textarea>\n\t\t\t\t\t\t<div *ngIf="submitted && f1.mentalhealthneeds?.errors">\n\t\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f1.mentalhealthneeds.errors.required">Please enter mental health notes</small>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\t\t\t\n\t\t\t</div>\n\t\t\t<div class="row">\t\n\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_accom">Special Accommodations: </label>\n\t\t\t\t\t\t<textarea name="e_accom" id="e_accom" formControlName="e_accom" class="form-control" placeholder="legal services needs, health insurance needs, accessibility needs">{{fulldata.specialaccommmodations}}</textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\t\t\t\n\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="e_note">Additional Details: </label>\n\t\t\t\t\t\t<textarea name="e_note" id="e_note" formControlName="e_note" class="form-control">{{fulldata.externalnotes}}</textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t</div>\t\t\t\n\t\t</div>\n      </div>\n    <div class="modal-footer modal-center" id="new_contact_buttons">\n        <button class="btn btn-primary" style="margin:3px 2px 0px 0px;padding:6px 10px !important" (click)="activeModal.dismiss(\'Cross click\')" >Close</button>\t\t\t\t\n\t\t<button id="add_patient_button" *ngIf="editButton" style="padding: 6px 10px !important" (click)="editSubmitted()" class="btn btn-primary">Edit</button>\n\t\t<button id="add_patient_button" *ngIf="saveButton" style="padding: 6px 10px !important" class="btn btn-primary">Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\t</div>\n</form>\n</div>',styles:[".modal-content{\n    width: 1073px;\n    left: 50%;\n    transform: translate(-50%);\n}\nform span, form .h4{\n    font-weight: normal;\n}\n:host ::ng-deep select{background: none !important;}\n.table td, .table th{padding: 0.25rem;}\n.purple-bg, .btn-primary {\n    background: #8c5c8d;\n    color: #fff !important;\n    border: none;\n}\n.btn {padding: 2px 10px !important;}\n.modal-footer{display: block;}\n.psd_newperson_title{\n    background-color: #8c5c8d;\n    height: auto;\n    padding-left: 10px;\n    padding-right: 25px;\n}\n.btn-primary{\n    padding: 2px 10px !important;\n    margin: 3px;\n    font-size: 13px;\n}\n.modal-header{display: block !important;}\n.modal-footer{text-align: center !important;}\n#mhealthhidden{\n    height: 0px;\n    background-color: #fff;\n    color: #fff;\n    border: solid 1px #fff;\n    margin-left: 1000px;\n    position: absolute;\n}"]})],tV);let eV=class{constructor(t,e,n,i){this.activeModal=t,this.fb=e,this.httpService=n,this.waitlistservice=i,this.baseurl=Xf,this.caploader=!1,this.totalObj=this.getTotalObj()}ngOnInit(){this.errorMsg="",this.capacityForm=this.fb.group({items:this.fb.array([])})}getTotalObj(){return{totalOccupiedMale:0,totalOccupiedFeMale:0,totalLicencedMale:0,totalLicencedFeMale:0,totalMale:0,totalFeMale:0}}ngAfterContentInit(){this.items=this.capacityForm.get("items"),this.waitlistservice.getCapacityData(this.my_modal_title).subscribe(t=>{this.bedInformation=t,null!=t.capdetails&&(t.capdetails.map(t=>{this.items.push(this.fb.group({mainId:[t.id],id:[t.bedoptionid,im.required],occupiedMale:[t.totallicensedmale],occupiedFeMale:[t.totallicensedfemale],licencedMale:[t.totaloccupiedmale],licencedFeMale:[t.totaloccupiedfemale],totalMale:[0],totalFeMale:[0],other:[5===t.bedoptionid?t.otherfundingsource:""]}))}),this.items.value.map((t,e)=>{this.items.at(e).get("totalMale").setValue(+t.occupiedMale-+t.licencedMale),this.items.at(e).get("totalFeMale").setValue(+t.occupiedFeMale-+t.licencedFeMale)}),this.getTotalData())},t=>{console.log(t.message)}),document.querySelector("#myModalid").closest(".modal-content").setAttribute("id","updateCapacityModal")}createItem(){return this.fb.group({mainId:[-1],id:["",im.required],occupiedMale:[0],occupiedFeMale:[0],licencedMale:[0],licencedFeMale:[0],totalMale:[0],totalFeMale:[0],other:[""]})}addItem(){this.capacityForm.invalid||(this.items=this.capacityForm.get("items"),this.items.push(this.createItem()))}changeBeds(t,e,n,i){"M"===i?(this.items.at(e).get("totalMale").setValue(""),this.items.value.map(t=>{this.items.at(e).get("totalMale").setValue(+this.items.value[e].occupiedMale-+this.items.value[e].licencedMale)}),this.getTotalData()):(this.items.at(e).get("totalFeMale").setValue(""),this.items.value.map(t=>{this.items.at(e).get("totalFeMale").setValue(+this.items.value[e].occupiedFeMale-+this.items.value[e].licencedFeMale)}),this.getTotalData())}getTotalData(){this.totalObj=this.getTotalObj(),this.items.value.map(t=>{this.totalObj.totalOccupiedMale+=+t.occupiedMale,this.totalObj.totalLicencedMale+=+t.licencedMale,this.totalObj.totalLicencedFeMale+=+t.licencedFeMale,this.totalObj.totalOccupiedFeMale+=+t.occupiedFeMale,this.totalObj.totalFeMale+=+t.totalFeMale,this.totalObj.totalMale+=+t.totalMale})}changeCatagery(t,e){5!=t.target.value&&this.items.value.filter(t=>t.id==this.items.controls[e].get("id").value).length>1&&(this.errorMsg="Capacity Information existed to the Funding Source :  "+this.getFullForm(+t.target.value),jQuery("#warning").modal("show"),this.items.controls[e].get("id").setValue("")),5==t.target.value?this.items.controls[e].get("other").setValidators(im.required):(this.items.controls[e].get("other").clearValidators(),this.items.controls[e].get("other").updateValueAndValidity())}saveChanges(){var t;if(this.capacityForm.invalid)this.errorMsg="Please fill Category",jQuery("#warning").modal("show"),this.caploader=!1;else if(this.items.value.some(t=>t.totalMale<0)){let t=this.items.value.filter(t=>t.totalMale<0);this.errorMsg="In "+(5!=+t[0].id?this.getFullForm(+t[0].id):this.getFullForm(+t[0].id)+"  "+t[0].other)+"  category occupied beds must be less than number of beds",jQuery("#warning").modal("show")}else{this.caploader=!0;let e=[];null===(t=this.items.value)||void 0===t||t.map(t=>{e.push({id:+t.mainId>0?t.mainId:"-1",bedoptionid:t.id,totallicensedmale:t.occupiedMale,totallicensedfemale:t.occupiedFeMale,totaloccupiedmale:t.licencedMale,totaloccupiedfemale:t.licencedFeMale,otherfundingsource:5==+t.id?t.other:""})});let n={ref:this.my_modal_title,capdatalist:e};this.httpService.post(this.baseurl+"/v1/secure/capacity",n).subscribe(t=>{this.caploader=!1,location.reload()},t=>{console.log(t.message)})}}onDelete(t){this.deleteIndex=t,this.errorMsg="Are you sure, you want to delete this funding source",jQuery("#deletewarning").modal("show"),console.log(this.bedInformation)}confirmdelete(){this.bedInformation.capdetails.length-1>=this.deleteIndex?this.httpService.delete(this.baseurl+"/v1/secure/capacity/"+this.bedInformation.capdetails[this.deleteIndex].ref,{responseType:"text"}).subscribe(t=>{location.reload()},t=>{console.log(t.message)}):location.reload()}getFullForm(t){switch(t){case 1:return"BSAS Licensed";case 2:return"DMH Contract";case 3:return"DCF Contract";case 4:return"COVID-19";case 5:return"Other"}}};eV.ctorParameters=()=>[{type:ey},{type:Uf},{type:Yf.HttpClient},{type:Zj}],eV.propDecorators={my_modal_title:[{type:s.Input}],capacityid:[{type:s.Input}],capacityInfo:[{type:s.Input}]},eV=Hh([Object(s.Component)({selector:"app-update-capacity",template:'<div id="myModalid">\n    <div class="modal-header">\n        <h4 class="modal-title pull-left page_heading" style="font-size: 24px;"><strong>Update Capacity</strong></h4>\n        <button type="button" style="font-size:27px; margin-top:-20px;" (click)="activeModal.dismiss(\'Cross click\')"\n            class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n    </div>\n    <form [formGroup]="capacityForm">\n        <span style="margin-left: 18px; font-size: 18px; display: none;">Total Licensed beds:&nbsp; </span>\n        <span style="margin-left:20px; font-size: 18px;display: none;">Total Available beds:&nbsp;</span>\n        <div class="modal-body">\n            <table class="table table-bordered table-condensed" id="cap_update">\n                <thead>\n                    <tr style="background-color: #8c5c8d;color:#fff;border-bottom-width:1px;">\n                        <th style="width: 23%; vertical-align: middle;" class="border-tab-th-ln" rowspan="2">Category\n                        </th>\n                        <th colspan="2" class="border-tab-th" style="text-align:center;">Number of Beds</th>\n                        <th colspan="2" class="border-tab-th" style="text-align:center;">Occupied Beds</th>\n                        <th colspan="2" class="border-tab-th" style="text-align:center;    background-color: #27b3ca;">Available Beds</th>\n                        <th colspan="2" class="border-tab-th-ln" rowspan="2"\n                            style="text-align:center; width: 150px;vertical-align: middle;">Action</th>\n                    </tr>\n                    <tr style="background-color: #8c5c8d;color:#fff; text-align: center;">\n                        \x3c!-- <th></th> --\x3e\n                        <th class="border-tab-th-ln">Male</th>\n                        <th class="border-tab-th-ln">Female</th>\n                        <th class="border-tab-th-ln">Male</th>\n                        <th class="border-tab-th-ln">Female</th>\n                        <th class="border-tab-th-ln" style="background-color:#3a6084;">Male</th>\n                        <th class="border-tab-th-ln" style="background-color:#3a6084;">Female</th>\n                        \x3c!-- <th></th> --\x3e\n                    </tr>\n                </thead>\n                <tbody class="capacity-body" formArrayName="items">\n\n                    <tr *ngFor="let item of capacityForm.get(\'items\')[\'controls\']; let i = index;">\n                        <td [formGroupName]="i" style="width: 23%;">\n                            <select class="form-control" (change)="changeCatagery($event,i)" formControlName="id"\n                                required>\n                                <option selected disabled>-- Select --</option>\n                                <option value="1">BSAS Licensed</option>\n                                <option value="2">DMH Contract</option>\n                                <option value="3">DCF Contract</option>\n                                <option value="4">COVID-19</option>\n                                <option value="5">Other</option>\n                            </select>\n                            <input type="text" formControlName="other"\n                                *ngIf="capacityForm.get(\'items\')?.at(i).get(\'id\').value == 5" />\n\n                        </td>\n                        <td [formGroupName]="i">\n                            <input type="text" class="form-control" formControlName="occupiedMale"\n                                (input)="changeBeds($event,i,\'OC\',\'M\')" numbersOnly>\n\n                        </td>\n                        <td [formGroupName]="i">\n                            <input type="text" class="form-control" formControlName="occupiedFeMale"\n                                (input)="changeBeds($event,i,\'OC\',\'F\')" numbersOnly>\n\n                        </td>\n                        <td [formGroupName]="i">\n                            <input type="text" class="form-control" formControlName="licencedMale"\n                                (input)="changeBeds($event,i,\'LI\',\'M\')" numbersOnly>\n\n                        </td>\n                        <td [formGroupName]="i">\n                            <input type="text" class="form-control" formControlName="licencedFeMale"\n                                (input)="changeBeds($event,i,\'LI\',\'F\')" numbersOnly>\n\n                        </td>\n                        <td [formGroupName]="i" style="background-color: #b6c4c7 !important;\n                        ">\n                            <input type="text" class="form-control" style="background-color: #b6c4c7 !important;border: solid 1px #b6c4c7;color:#fff;" formControlName="totalMale" readonly>\n\n                        </td>\n                        <td [formGroupName]="i" style="background-color: #b6c4c7 !important;\n                        ">\n                            <input type="text" class="form-control" style="background-color: #b6c4c7 !important;border: solid 1px #b6c4c7;color:#fff;" formControlName="totalFeMale" readonly>\n\n                        </td>\n                        <td [formGroupName]="i" style="text-align: center;">\n                            <a (click)="onDelete(i)"><i class="fa fa-trash" title="Delete"\n                                    style="color:red;margin-top: 9px; cursor: pointer;"></i></a>\n\n                        </td>\n                    </tr>\n\n                    \x3c!-- <tr *ngIf="bedInformation">\n                    <td>BSAS Licensed</td>\n                    <input type="hidden" name="bedid[]" id="" class="bedid" value="{{(bedInformation.capdetails)?bedInformation.capdetails[0].id:0}}">\n                    <td><input type="text" class="form-control req totallicensedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[0].totallicensedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totallicensedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedfemale\')"  value="{{(bedInformation.capdetails)?bedInformation.capdetails[0].totallicensedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control req totaloccupiedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[0].totaloccupiedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totaloccupiedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedfemale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[0].totaloccupiedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control totalavlmale" readonly /></td>\n                    <td><input type="text" class="form-control totalavlfemale" readonly /></td>\t\n                  </tr>\n                  <tr *ngIf="bedInformation">\n                    <td>DMH Contract</td>\n                    <input type="hidden" name="bedid[]" id="" class="bedid" value="{{(bedInformation.capdetails)?bedInformation.capdetails[1].id:0}}">\n                    <td><input type="text" class="form-control req totallicensedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[1].totallicensedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totallicensedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedfemale\')"  value="{{(bedInformation.capdetails)?bedInformation.capdetails[1].totallicensedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control req totaloccupiedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[1].totaloccupiedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totaloccupiedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedfemale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[1].totaloccupiedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control totalavlmale" readonly /></td>\n                    <td><input type="text" class="form-control totalavlfemale" readonly /></td>\n                   \n                  </tr>\n                  <tr *ngIf="bedInformation">\n                    <td>DCF Contract</td>\n                    <input type="hidden" name="bedid[]" id="" class="bedid" value="{{(bedInformation.capdetails)?bedInformation.capdetails[2].id:0}}">\n                    <td><input type="text" class="form-control req totallicensedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[2].totallicensedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totallicensedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedfemale\')"  value="{{(bedInformation.capdetails)?bedInformation.capdetails[2].totallicensedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control req totaloccupiedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[2].totaloccupiedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totaloccupiedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedfemale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[2].totaloccupiedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control totalavlmale" readonly /></td>\n                    <td><input type="text" class="form-control totalavlfemale" readonly /></td>\n                   \n                  </tr>\n                  <tr *ngIf="bedInformation">\n                    <td>COVID-19</td>\n                    <input type="hidden" name="bedid[]" id="" class="bedid" value="{{(bedInformation.capdetails)?bedInformation.capdetails[3].id:0}}">\n                    <td><input type="text" class="form-control req totallicensedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[3].totallicensedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totallicensedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedfemale\')"  value="{{(bedInformation.capdetails)?bedInformation.capdetails[3].totallicensedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control req totaloccupiedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[3].totaloccupiedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totaloccupiedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedfemale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[3].totaloccupiedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control totalavlmale" readonly /></td>\n                    <td><input type="text" class="form-control totalavlfemale" readonly /></td>\n                  \n                  </tr>\n                  <tr *ngIf="bedInformation">\n                    <td>Other<br/><input type="text" id="otherfundingsource" value="{{(bedInformation.capdetails)?bedInformation.capdetails[4].otherfundingsource:\'\'}}" /></td>\n                    <input type="hidden" name="bedid[]" id="" class="bedid" value="{{(bedInformation.capdetails)?bedInformation.capdetails[4].id:0}}">\n                    <td><input type="text" class="form-control req totallicensedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[4].totallicensedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totallicensedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totallicensedfemale\')"  value="{{(bedInformation.capdetails)?bedInformation.capdetails[4].totallicensedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control req totaloccupiedmale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedmale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[4].totaloccupiedmale:0}}" /></td>\n                    <td><input type="text" class="form-control req totaloccupiedfemale" (keypress)="isNumberKey($event)" (input)="validate(\'totaloccupiedfemale\')" value="{{(bedInformation.capdetails)?bedInformation.capdetails[4].totaloccupiedfemale:0}}"/></td>\n                    <td><input type="text" class="form-control totalavlmale" readonly /></td>\n                    <td><input type="text" class="form-control totalavlfemale" readonly /></td>\n                  \n                  </tr>--\x3e\n                    <tr *ngIf="capacityForm.get(\'items\')[\'controls\'].length"\n                        style="text-align: center;background: #f5f5f5;">\n                        <td style="text-align: center;\n                    font-size: 18px;">Total</td>\n                        <input type="hidden" id="" class="bedid" value="0">\n\n                        <td>{{totalObj.totalOccupiedMale}}</td>\n                        <td> {{totalObj.totalOccupiedFeMale}}</td>\n                        <td>{{totalObj.totalLicencedMale}}</td>\n                        <td>{{totalObj.totalLicencedFeMale}}</td>\n                        <td style="background-color:#7d9fa8 !important; color: #fff;">{{totalObj.totalMale}}</td>\n                        <td style="background-color:#7d9fa8 !important;color: #fff;">{{totalObj.totalFeMale}}</td>\n                        <td></td>\n                    </tr>\n                    \x3c!-- <tr align="center" style="background-color: #fff;" >\n                    <td colspan="7"><img src="assets/images/loader.gif"\n                      style="padding-right: 6px; height:20px;" /></td>\n                  </tr>  --\x3e\n                </tbody>\n            </table>\n\n            \x3c!-- <input type="hidden" name="waitlist" value="163" class="data-waitlist"> --\x3e\n            <div class="modal-footer modal-center" id="new_capacity_buttons" style="text-align:center;">\n                <button class="btn purple-bg" type="button" data-dismiss="modal"\n                    (click)="activeModal.close(\'Close click\')">Cancel</button>\n                <button type="button" id="add_capacity_button" class="btn btn-primary" (click)="saveChanges()">Save\n                    Changes</button> &nbsp;\n                &nbsp;<img *ngIf="caploader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n                <button type="button" class="add_more btn btn-primary btn-add" (click)="addItem()">Add Another Category</button>\n            </div>\n        </div>\n    </form>\n\n</div>\n\n\x3c!-- Modal --\x3e\n<div class="modal fade" id="warning" role="dialog">\n    <div class="modal-dialog">\n\n        \x3c!-- Modal content--\x3e\n        <div class="modal-content">\n            <div class="modal-header p-0">\n                <button type="button" class="close mr-2" data-dismiss="modal">&times;</button>\n                \x3c!-- <h4 class="modal-title">Modal Header</h4> --\x3e\n            </div>\n            <div class="modal-body pt-0">\n                <p class="font-18"><i class=\'fa fa-warning fa-lg\' style="color:#fd7e14"></i>&nbsp;&nbsp; {{errorMsg}}\n                </p>\n            </div>\n            <div class="modal-footer pt-0">\n                <button type="button" class="btn btn-success font-18" data-dismiss="modal">ok</button>\n            </div>\n        </div>\n\n    </div>\n</div>\n\n\x3c!-- Modal --\x3e\n<div class="modal fade" id="deletewarning" role="dialog">\n    <div class="modal-dialog">\n\n        \x3c!-- Modal content--\x3e\n        <div class="modal-content">\n            <div class="modal-header p-0">\n                <button type="button" class="close mr-2" data-dismiss="modal">&times;</button>\n                \x3c!-- <h4 class="modal-title">Modal Header</h4> --\x3e\n            </div>\n            <div class="modal-body pt-0">\n                <p class="font-18"><i class=\'fa fa-warning fa-lg\' style="color:#fd7e14"></i>&nbsp;&nbsp; {{errorMsg}}\n                </p>\n            </div>\n            <div class="modal-footer pt-0">\n                <button type="button" class="btn btn-success font-18" data-dismiss="modal"\n                    (click)="confirmdelete()">Yes</button>\n                <button type="button" class="btn btn-success font-18" data-dismiss="modal"\n                    style="background:red">No</button>\n            </div>\n        </div>\n\n    </div>\n</div>',styles:[":host ::ng-deep .modal-content{\n    width: 605px !important;\n    left: 50%;\n    transform: translate(-50%);\n}\nform span, form .h4{\n    font-weight: normal;\n}\n:host ::ng-deep select{background: none !important;}\n.table td, .table th{padding: 0.25rem;}\n.purple-bg, .btn-primary {\n    background: #8c5c8d;\n    color: #fff;\n}\n.border-tab-th {\n    border-bottom-width:1px;\n}\n.border-tab-th-ln {\n    border-bottom-width:3px;\n}\n.btn {padding: 2px 10px !important;}\n.modal-footer{display: block;}\n#myModalid .modal-body .row{margin-bottom:20px}\n#totlicbeds,#totavlbeds{\n    width: 129px;\n}\n.error{ border:solid 1px red !important;}\n::ng-deep #updateCapacityModal{width: 774px !important;}\n.capacity-body{font-size: 16px;}\ninput[readonly] {\nbackground-color:#fff !important;\n}\n/* #cap_update tr:nth-child(odd){ \n    background: #b8d1f3;\n}\n#cap_update tr:nth-child(even){\n    background: #fff;\n} */\n/* #cap_update tbody tr{\nborder-bottom: solid 1.1px #000 !important;\n}\n#cap_update tbody td{\nborder-right: solid 1px #000 !important;\n} */\n.modal-footer {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    padding: 1rem;\n    border-top: 0px solid #e9ecef;\n}\n.modal-header {\n   border-bottom: 0px solid #e9ecef;\n}\n.form-control {\n    text-align: center;\n}\n#cap_update th , #new_capacity_buttons button, .font-18 {\n    font-size: 18px !important;\n    font-weight: normal;\n}\n#deletewarning .modal-content, #warning .modal-content{width: 400px !important;}"]})],eV);let nV=class{constructor(t,e,n,i,s,r,a,o,l,c){this.modalService=t,this.activeModal=e,this.overviewservice=n,this.datePipe=i,this.titleService=s,this.fb=r,this.httpService=a,this.route=l,this.waitlistservice=c,this.submitted=!1,this.displayedColumns=["id","full_name","population","bedoption","status","dateadded","days_of_waiting","date_updated","actions"],this.displayedColumnssl=["id","full_name","dateadded","population","date_updated","mental_health","actions"],this.removeData=[],this.users=[],this.users1=[],this.removalreason="",this.screeninglog=[],this.bedInformation=[],this.waitlistId=0,this.screeningdata=[],this.baseurl=Xf,this.fromdatevalue=!1,this.todatevalue=!1,this.contactwaitlistData=[],this.sl_fromDate="",this.loader=!1,this.max_loader=!0,this.loadersearch=!1,this.admit_loader=!1,this.specifyreason=!1,this.movetowaitlistdata=[],this.totAvlcntinfo=[],this.submitted1=!1,this.ftabl=!1,this.sectbl=!1,this.frmDate="",this.toDate="",this.loader1=!1,this.refreserr=!1,this.resloader=!1,this.refdisabled=!1,this.srcdisabled=!1,this.logdata=[],this.waitlistnames=[],this.delimiterwaitlistname=!0,this.searchdata=[],this.searchscreeningdata=!1,this.sharedwaitlist=!1,this.totalshowCampsMale={bsasavailtotal:0,dmhavailtotal:0,dcfavailtotal:0,covidavailtotal:0,bsastotla:0,dmhtotal:0,dcftotal:0,covidtotal:0},this.totalshowCampsFeMale={bsasavailtotal:0,dmhavailtotal:0,dcfavailtotal:0,covidavailtotal:0,bsastotla:0,dmhtotal:0,dcftotal:0,covidtotal:0},this.totalOther=[],this.demo1TabIndex=0,this.BedOption=[{id:1,name:"BSAS Licensed"},{id:2,name:"DMH Contract"},{id:3,name:"DCF Contract"},{id:4,name:"COVID-19"},{id:5,name:"Other"}],this.Insurance=[{id:1,name:"Private insurance"},{id:2,name:"Medicaid"},{id:3,name:"Medicare"},{id:4,name:"No Insurance"}],this.ReferingProgramming=[{id:1,name:"ATS"},{id:2,name:"CSS"},{id:3,name:"TSS"},{id:4,name:"Other residential rehab"},{id:5,name:"Psychiatric hospital"},{id:6,name:"Shelter"},{id:7,name:"Jail"},{id:8,name:"Court/Drug court"},{id:9,name:"Section 35"},{id:10,name:"Self-referral"},{id:11,name:"Other"}],this.PreferredLanguage=[{id:429,name:"English"},{id:827,name:"Spanish"},{id:799,name:"Albanian"},{id:800,name:"Arabic"},{id:1052,name:"ASL (Hearing Impaired)"},{id:801,name:"Bosnian"},{id:802,name:"Cambodian"},{id:803,name:"Cantonese"},{id:806,name:"Cape Verdean"},{id:804,name:"Chinese"},{id:805,name:"Creole"},{id:807,name:"Danish"},{id:808,name:"Egyptian"},{id:809,name:"Farsi"},{id:811,name:"Finnish"},{id:810,name:"French"},{id:813,name:"German"},{id:812,name:"Greek"},{id:814,name:"Haitian Creole"},{id:815,name:"Hebrew"},{id:817,name:"Indian"},{id:816,name:"Italian"},{id:818,name:"Japanese"},{id:819,name:"Khmer"},{id:820,name:"Korean"},{id:821,name:"Laotian"},{id:822,name:"Mandarin"},{id:823,name:"Nigerian"},{id:825,name:"Polish"},{id:824,name:"Portuguese"},{id:826,name:"Russian"},{id:828,name:"Somali"},{id:829,name:"Swahili"},{id:830,name:"Vietnamese"},{id:1027,name:"Other"}],this.sharedwaitlist=localStorage.getItem("issharedwaitlist"),this.datePickerConfig=Object.assign({},{containerClass:"theme-dark-blue",showWeekNumbers:!1}),this.route.params.subscribe(t=>{this.waitlistId=t.id}),this.waitlistservice.getwaitlistinfo(this.waitlistId).subscribe(t=>{console.log(t),this.programinformation=t,this.waitlistidnumber=this.programinformation.id;var e={waitlistid:this.waitlistidnumber};const n=this;this.waitlistservice.getOrgNameByID(e).subscribe(t=>{console.log("Waitlist Names",t),n.waitlistnames=t,document.getElementById("capacityUpdate").click(),this.waitlistnames[length-1]&&(this.delimiterwaitlistname=!1)}),null!=this.programinformation&&(this.programname=this.programinformation.organizationName)}),this.modalOptions={backdrop:"static",backdropClass:"customBackdrop"},this.refusalform=this.fb.group({refusalnote:["",im.required]}),this.titleService.setTitle("Waitlist"),this.waitlistservice.getCapacityData(this.waitlistId).subscribe(t=>{this.bedInformation=t,this.totalOther=[],null!=this.bedInformation.capdetails&&(this.capacityid=this.bedInformation.capdetails.id,this.bedInformation.capdetails.map(t=>{1===t.bedoptionid?(this.totalshowCampsMale.bsasavailtotal=t.totallicensedmale-t.totaloccupiedmale,this.totalshowCampsFeMale.bsasavailtotal=t.totallicensedfemale-t.totaloccupiedfemale):2===t.bedoptionid?(this.totalshowCampsMale.dmhavailtotal=t.totallicensedmale-t.totaloccupiedmale,this.totalshowCampsMale.dmhtotal=t.totallicensedmale,this.totalshowCampsFeMale.dmhavailtotal=t.totallicensedfemale-t.totaloccupiedfemale,this.totalshowCampsFeMale.dmhtotal=t.totallicensedfemale):3===t.bedoptionid?(this.totalshowCampsMale.dcfavailtotal=t.totallicensedmale-t.totaloccupiedmale,this.totalshowCampsMale.dcftotal=t.totallicensedmale,this.totalshowCampsFeMale.dcfavailtotal=t.totallicensedfemale-t.totaloccupiedfemale,this.totalshowCampsFeMale.dcftotal=t.totallicensedfemale):4===t.bedoptionid?(this.totalshowCampsMale.covidavailtotal=t.totallicensedmale-t.totaloccupiedmale,this.totalshowCampsMale.covidtotal=t.totallicensedmale,this.totalshowCampsFeMale.covidavailtotal=t.totallicensedfemale-t.totaloccupiedfemale,this.totalshowCampsFeMale.covidtotal=t.totallicensedfemale):5===t.bedoptionid&&this.totalOther.push({otherDesc:t.otherfundingsource,totalavailmale:t.totallicensedmale-t.totaloccupiedmale,totalavailfemale:t.totallicensedfemale-t.totaloccupiedfemale,totalFemale:t.totallicensedfemale,totalmale:t.totallicensedmale})}),this.totalshowCampsMale.bsastotla+=this.totalshowCampsMale.covidavailtotal+this.totalshowCampsMale.dcfavailtotal+this.totalshowCampsMale.dmhavailtotal+this.totalshowCampsMale.bsasavailtotal,this.totalshowCampsFeMale.bsastotla+=this.totalshowCampsFeMale.covidavailtotal+this.totalshowCampsFeMale.dcfavailtotal+this.totalshowCampsFeMale.dmhavailtotal+this.totalshowCampsFeMale.bsasavailtotal);this.bedInformation.capdetails&&console.log(this.createdtimeBI),this.totAvlcntinfo=this.bedInformation.totalbeds-0},t=>{console.log(t.message)}),this.waitlistservice.getScreeningWaitlist(this.waitlistId).subscribe(t=>{console.log(t),this.logdata=t;t["Added to Waitlist"];if(this.screeningdata.push(t["Add to log"]),console.log(this.screeningdata),this.max_loader=!1,null!=this.screeningdata){let t=0,e=0;this.screeningdata&&(this.users=[],this.screeningdata.forEach(n=>{t++,null!=n&&n.forEach(t=>{e++;let n=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{n.push(t.splpopname)}),console.log(n),this.users.push({id:e,full_name:t.contactfullname,dateadded:this.datePipe.transform(t.createdtime,"MM-dd-yyyy"),population:n.join(", "),date_updated:this.datePipe.transform(t.updatedtime,"MM-dd-yyyy"),mental_health:!0===t.mentalhealth?"Yes":"No",actions:this.movetowaitlist,ref:t.ref,contactwaitlistid:t.id,statusid:t.admissionstatusid,addedtowaitlistdate:t.existedcwdate,refusereason:t.refusalreason,buttonval:6==t.admissionstatusid?"Move to waitlist":"7"==t.admissionstatusid?"Refused":"Added to waitlist"})})}),console.log(this.users),this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort)}})}get f(){return this.rvmprForm.controls}get rf(){return this.refusalform.controls}refusePerson(t){console.log(this.contactwaitlistid),this.contactwaitlistid=t,$("#refuseModalSL").modal("show")}onRefusalsubmit(){var t;(this.submitted1=!0,this.refusalform.invalid)?console.log("invalid form"):(this.resloader=!0,this.refdisabled=!0,t={conwaitlistid:this.contactwaitlistid,refusalnotes:this.refusalform.value.refusalnote},this.waitlistservice.refuseOnScreeningLog(t).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),location.reload())}))}ngOnInit(){this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]],refid:[null],specify_reason:[null]})}toggleAccordian(t){if(console.log(t),this.panelid=t.panelId,0==this.searchscreeningdata&&("static-1"==t.panelId&&(this.screeningdata=[],this.screeningdata.push(this.logdata["Add to log"])),"static-2"==t.panelId&&(this.screeningdata=[],this.screeningdata.push(this.logdata["Added to Waitlist"])),"static-3"==t.panelId&&(this.screeningdata=[],this.screeningdata.push(this.logdata.Refuse)),null!=this.screeningdata)){let t=0,e=0;this.screeningdata&&(this.users=[],this.screeningdata.forEach(n=>{t++,null!=n&&n.forEach(t=>{e++;let n=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{n.push(t.splpopname)}),console.log(n),this.users.push({id:e,full_name:t.contactfullname,dateadded:this.datePipe.transform(t.createdtime,"MM-dd-yyyy"),population:n.join(", "),date_updated:this.datePipe.transform(t.updatedtime,"MM-dd-yyyy"),mental_health:!0===t.mentalhealth?"Yes":"No",actions:this.movetowaitlist,ref:t.ref,contactwaitlistid:t.id,statusid:t.admissionstatusid,addedtowaitlistdate:t.existedcwdate,refusereason:t.refusalreason,buttonval:6==t.admissionstatusid?"Move to waitlist":"7"==t.admissionstatusid?"Refused":"Added to waitlist"})})}),console.log(this.users),this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort)}if(1==this.searchscreeningdata&&("static-1"==t.panelId&&(this.searchdata=[],this.searchdata.push(this.screeninglog["Add to log"])),"static-2"==t.panelId&&(this.searchdata=[],this.searchdata.push(this.screeninglog["Added to Waitlist"])),"static-3"==t.panelId&&(this.searchdata=[],this.searchdata.push(this.screeninglog.Refuse)),null!=this.searchdata)){let t=0,e=0;this.searchdata&&(this.users=[],this.searchdata.forEach(n=>{t++,null!=n&&n.forEach(t=>{e++;let n=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{n.push(t.splpopname)}),console.log(n),this.users.push({id:e,full_name:t.contactfullname,dateadded:this.datePipe.transform(t.createdtime,"MM-dd-yyyy"),population:n.join(", "),date_updated:this.datePipe.transform(t.updatedtime,"MM-dd-yyyy"),mental_health:!0===t.mentalhealth?"Yes":"No",actions:this.movetowaitlist,ref:t.ref,contactwaitlistid:t.id,statusid:t.admissionstatusid,addedtowaitlistdate:t.existedcwdate,refusereason:t.refusalreason,buttonval:6==t.admissionstatusid?"Move to waitlist":"7"==t.admissionstatusid?"Refused":"Added to waitlist"})})}),console.log(this.users),this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort)}this.max_loader=!1,setTimeout(()=>{this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort},1e3)}ngAfterViewInit(){this.route.queryParams.subscribe(t=>{"true"==t.peopleonwaitlist&&(this.demo1TabIndex=1,window.history.pushState({},document.title,window.location.href.split("?")[0])),"true"==t.peopleadmitted&&(this.demo1TabIndex=2,window.history.pushState({},document.title,window.location.href.split("?")[0])),"true"==t.peopleremoved&&(this.demo1TabIndex=3,window.history.pushState({},document.title,window.location.href.split("?")[0]))});const t=this;$("#sl_fromDate").blur(function(e){console.log("event",e),""==$(this).val()&&$(this).val(t.sl_fromDate),console.log("this.value",$(this).val())}),$("#sl_fromDate,#sl_toDate").on("keydown",function(e){8==(e.keyCode||e.charCode)&&(t.sl_fromDate="")}),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))}),$("button#proceed_with_removal2").on("click",function(){t.loader=!0;let e={ref:document.getElementById("refid2").value,reasonid:t.removalreason,removaltype:1,contactid:t.contactid,externalnotes:t.specifyresn};t.httpService.post(t.baseurl+"/v1/secure/removecontactwaitlist",e).subscribe(t=>{console.log(t),$("#ask_removal_reason").modal("hide"),window.location.reload()},t=>{console.log(t.message),window.location.reload()})}),$("body").on("click",".deleteCapacity",function(){var t=$(this).parent(".round-box-3").find(".occupied_beds2").html(),e=($("#totAvlcnt").text(),$(this).attr("title"));if(""!=e&&null!=e)return $("#myModal100").modal("show"),$("input#refno").val(e),$("input#occbeds").val(t),$("input#actype").val(1),!1}),$("body").on("click",".removeRow",function(){var t=$(this).parents("tr").find(".occupied_beds").val();if(null!=t&&""!=t){if($(this).parents("tr").find("input.bedid").val()>0)return $("#myModal100").modal("show"),$("input#refno").val($(this).parents("tr").find("input.bedid").attr("id")),$("input#occbeds").val(t),$("input#actype").val(0),!1;$("input#totalAvlbeds").val(parseInt($("input#totalAvlbeds").val())+parseInt(t))}$(this).closest("tr.capacity-row").remove()}),$("body").on("click","#confirmYes",function(){var e=$("input#occbeds").val();$("input#totalAvlbeds").val(parseInt($("input#totalAvlbeds").val())+parseInt(e));var n=this.bedInformation.capdetails.ref,i=$("input#actype").val();t.httpService.delete(t.baseurl+"/v1/secure/capacity/"+n,{responseType:"text"}).subscribe(t=>{console.log(t),1==i?($("#totAvlcnt").html(parseInt($("input#totalAvlbeds").val())+parseInt(e)),$("#rbx3"+n).remove(),$("#myModal100").modal("hide"),location.reload()):location.reload()},t=>{console.log(t.message),1==i?($("#totAvlcnt").html(parseInt($("#totAvlcnt").text())+parseInt(e)),$("#rbx3"+n).remove(),$("#myModal100").modal("hide")):location.reload()})}),$('<span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span>').prependTo("#wl_pending_admission_wrapper"),$("#sortable_pending_admission").sortable()}deletecapacity(){$("#myModal100").modal("show")}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}changeDate(t){console.log(t)}openTab(t,e){var n,i,s;for(i=document.getElementsByClassName("tabcontent"),n=0;n<i.length;n++)i[n].style.display="none";for(s=document.getElementsByClassName("tablinks"),n=0;n<s.length;n++)s[n].className=s[n].className.replace(" active","");document.getElementById(e).style.display="block",void 0!==t&&document.getElementById(t).classList.add("active")}deleteConfirm(t){if("confirmYes"==t){var e=this.bedInformation.capdetails.ref;this.httpService.delete(this.baseurl+"/v1/secure/capacity/"+e,{responseType:"text"}).subscribe(t=>{console.log(t),t&&location.reload()})}}updateCapacity(){const t=this.modalService.open(eV,{backdrop:"static",keyboard:!1,size:"xl"});t.componentInstance.my_modal_title=this.waitlistId,t.componentInstance.my_modal_content="",t.componentInstance.id="myModalid",t.componentInstance.capacityid=this.capacityid,t.componentInstance.capacityInfo=this.bedInformation}updateContent(){}export(){this.paginator.pageSize=this.users.length,this.dataSourceS=new JD(this.users),console.log($("body").find("button#exportBtn2")),$("body").find("button#exportBtn"+this.tab._selectedIndex).click(),console.log(this.panelid),this.ftabl=!0,"static-2"==this.panelid?setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"ADDED_TO_WAITLIST.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3):"static-3"==this.panelid?setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"ADDED_TO_REFUSE.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3):setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"ADDED_TO_LOG.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3),this.paginator.pageSize=10,this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort}addPerson(t,e,n,i){if(console.log(t,i),this.refusalreason=i,this.contactwaitlistid=n,"Move to waitlist"==t){console.log(e),this.movetowaitlistdata=null==this.movetowaitlistdata?"":this.movetowaitlistdata.filter(t=>t.ref==e);const t=this.modalService.open(Xj,{backdrop:"static",keyboard:!1});t.componentInstance.my_modal_title="",t.componentInstance.my_modal_content="",t.componentInstance.waitlistref=this.waitlistId,t.componentInstance.buttonval="movetowaitlist",t.componentInstance.ref=e,t.componentInstance.contactwaitlistid=n}else"Refused"==t&&$("#refuseReasonModal").modal("show")}addPerson2(){const t=this.modalService.open(Qj,{backdrop:"static",keyboard:!1});t.componentInstance.my_modal_title="",t.componentInstance.my_modal_content="",t.componentInstance.waitlistref=this.waitlistId,t.componentInstance.waitlistnames=this.waitlistnames}addWaitlist(t,e){console.log(e);const n=this.modalService.open(Jj,{backdrop:"static",keyboard:!1});n.componentInstance.my_modal_title="",n.componentInstance.my_modal_content="",n.componentInstance.contactwaitlistreference=e,n.componentInstance.contactwaitlistdata=this.screeningdata,n.componentInstance.waitlistdata.subscribe(e=>{console.log(e),this.movetowaitlist=e,$(t.target).addClass("btn btn-sm bg-secondary").html("Added to waitlist").attr("disabled","disabled").css({cursor:"pointer",color:"black"}),$(".movetowaitlistmsg").show(),document.body.scrollTop=0,document.documentElement.scrollTop=0,console.log(this.movetowaitlist)})}waitlistInfo(t){const e=this.modalService.open(tV,{backdrop:"static",keyboard:!1});e.componentInstance.ref=t,e.componentInstance.my_modal_title="",e.componentInstance.my_modal_content="",e.componentInstance.screeningloginfo=!0}removePerson(t,e,n){this.contactid=n,this.admissionstatusid=e,2==this.admissionstatusid||818==this.admissionstatusid?($("#refid2").val(t),$("#ask_removal_reason2").modal("show")):($("#refid").val(t),$("#ask_removal_reason").modal("show"))}keepPerson(t,e){Yj.a.fire({title:"",width:"424px",text:"Are you sure you want to keep "+e+" on the Waitlist?",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(e=>{e.value?this.waitlistservice.keepContactWaitlist(t).subscribe(t=>{console.log("data",t),Yj.a.fire("","Record Submitted successfully","success"),location.reload()},t=>{console.log(t.message)}):(e.dismiss,Yj.a.DismissReason.cancel)})}adminPerson(t,e,n,i,s){console.log(t,e,n,i),Yj.a.fire({title:"",width:"424px",text:"Are you sure you want to admit "+e+"?",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(e=>{if(this.admit_loader=!0,e.value){let e={ref:t,contactid:n,waitlistid:i};$(s.target).next().show(),this.waitlistservice.admitContactWaitlist(e).subscribe(t=>{console.log("data",t),$(s.target).next().hide(),Yj.a.fire({title:"",text:"Record submitted successfully",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{(t.value||t.dismiss)&&location.reload()})},t=>{console.log(t.message)})}else e.dismiss,Yj.a.DismissReason.cancel})}removereason(t){console.log(t),7==t&&(this.specifyreason=!0,this.rvmprForm.get("specify_reason").setValidators([im.required]),this.rvmprForm.get("specify_reason").updateValueAndValidity(),this.rvmprForm.get("wl_removal_reason").clearValidators(),this.rvmprForm.get("wl_removal_reason").updateValueAndValidity()),7!=t&&(this.specifyreason=!1,this.rvmprForm.get("wl_removal_reason").setValidators([im.required]),this.rvmprForm.get("wl_removal_reason").updateValueAndValidity(),this.rvmprForm.get("specify_reason").clearValidators(),this.rvmprForm.get("specify_reason").updateValueAndValidity())}rvmpersonSubmit(){if(this.submitted=!0,this.rvmprForm.invalid)return!1;{this.loader=!0;let t={ref:document.getElementById("refid").value,reasonid:this.rvmprForm.controls.wl_removal_reason.value,removaltype:this.rvmprForm.controls.remove_type.value,contactid:this.contactid,externalnotes:this.rvmprForm.value.specify_reason};console.log("postobj",t),this.httpService.post(this.baseurl+"/v1/secure/removecontactwaitlist",t).subscribe(t=>{console.log(t),$("#ask_removal_reason").modal("hide"),window.location.reload()},t=>{console.log(t.message),window.location.reload()})}}applyFilter(t){const e=t.target.value;this.dataSourceS.filter=e.trim().toLowerCase()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.ftabl=!0}sortData(t){console.log(t)}saveReason(){let t=document.getElementById("refreason");if(""==t.value)this.refreserr=!0;else{this.resloader=!0,this.refdisabled=!0;let e={conwaitlistid:this.contactwaitlistid,refusalnotes:t.value};this.waitlistservice.refuseOnScreeningLog(e).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),location.reload())})}}searchBydate(){this.users=[],this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort,this.max_loader=!0;let t=$("#sl_fromDate").val(),e=$("#sl_toDate").val();if(""!=t&&""!=e&&(this.loadersearch=!0),""!=t&&""!=e){this.srcdisabled=!0,$("#sl_fromDate").css({border:"1px solid #ccc"}),$("#sl_toDate").css({border:"1px solid #ccc"});let n=t.split("/"),i=e.split("/");t=n[2]+"-"+n[0]+"-"+n[1],e=i[2]+"-"+i[0]+"-"+i[1];let s={fromdate:t,todate:e,ref:this.waitlistId};console.log("postObj",s),this.screeninglog=this.waitlistservice.searchScreeningData(s).subscribe(t=>{this.screeninglog=t,console.log(this.screeninglog),this.loadersearch=!1,this.max_loader=!1,this.searchscreeningdata=!0,this.screeningdata=[],this.searchdata=[],this.searchdata.push(this.screeninglog["Add to log"]),console.log(this.searchdata);let e=0;this.users=[],this.searchdata.length>0?this.searchdata.forEach(t=>{e++,null!=t&&t.forEach(t=>{0;let n=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{n.push(t.splpopname)}),this.users.push({id:e,full_name:t.contactfullname,dateadded:this.datePipe.transform(t.createdtime,"MM-dd-yyyy"),population:n.join(", "),date_updated:this.datePipe.transform(t.updatedtime,"MM-dd-yyyy"),mental_health:!0===t.mentalhealth?"Yes":"No",actions:this.movetowaitlist,ref:t.ref,contactwaitlistid:t.id,statusid:t.admissionstatusid,addedtowaitlistdate:t.existedcwdate,refusereason:t.refusalreason,buttonval:6==t.admissionstatusid?"Move to waitlist":"7"==t.admissionstatusid?"Refused":"Added to waitlist"}),console.log(this.users),this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort})}):(this.users=[],this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort),this.srcdisabled=!1})}else if(""==t||""==e)return""==t?$("#sl_fromDate").css({border:"1px solid #a94442"}):$("#sl_fromDate").css({border:"1px solid #ccc"}),void(""==e?$("#sl_toDate").css({border:"1px solid #a94442"}):$("#sl_toDate").css({border:"1px solid #ccc"}))}clearBydate(){this.searchscreeningdata=!1,$("#sl_fromDate").val()&&$("#sl_toDate").val()&&(this.loader1=!0,$("#sl_fromDate,#sl_toDate").attr("ng-reflect-model",""),$("#sl_fromDate,#sl_toDate").attr("value",""),this.sl_fromDate=$("#sl_fromDate").val(),$("#sl_fromDate,#sl_toDate").val(""),this.waitlistservice.getScreeningWaitlist(this.waitlistId).subscribe(t=>{if(console.log(t),this.screeningdata=[],this.screeningdata.push(t["Add to log"]),console.log(this.screeningdata),this.max_loader=!1,null!=this.screeningdata){let t=0,e=0;this.screeningdata&&(this.users=[],this.screeningdata.forEach(n=>{t++,null!=n&&n.forEach(t=>{e++;let n=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{n.push(t.splpopname)}),console.log(n),this.users.push({id:e,full_name:t.contactfullname,dateadded:this.datePipe.transform(t.createdtime,"MM-dd-yyyy"),population:n.join(", "),date_updated:this.datePipe.transform(t.updatedtime,"MM-dd-yyyy"),mental_health:!0===t.mentalhealth?"Yes":"No",actions:this.movetowaitlist,ref:t.ref,contactwaitlistid:t.id,statusid:t.admissionstatusid,addedtowaitlistdate:t.existedcwdate,refusereason:t.refusalreason,buttonval:6==t.admissionstatusid?"Move to waitlist":"7"==t.admissionstatusid?"Refused":"Added to waitlist"})})}),console.log(this.users),this.dataSourceS=new JD(this.users),this.dataSourceS.paginator=this.paginator,this.dataSourceS.sort=this.sort)}this.loader1=!1}))}};nV.ctorParameters=()=>[{type:ay},{type:ey},{type:R_},{type:Cu.DatePipe},{type:wh},{type:Uf},{type:Yf.HttpClient},{type:Yf.HttpClient},{type:Wf.ActivatedRoute},{type:Zj}],nV.propDecorators={table:[{type:s.ViewChild,args:["TABLE"]}],tab:[{type:s.ViewChild,args:["tab",{static:!1}]}],paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}]},nV=Hh([Object(s.Component)({selector:"app-waitlist",template:'<div class="container body">\n    <div class="modal fade" id="show_removal_reasons" tabindex="-1">\n        <div class="modal-dialog">\n            <div class="modal-content">\n                <div class="modal-header">\n                    <button type="button" class="close" data-dismiss="modal"><span>\xd7</span></button>\n                    <h4 class="modal-title">Removal Reasons</h4>\n                </div>\n                <div class="modal-body">\n                    \n                </div>\n                <div class="modal-footer" style="text-align:center;">\n                    <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="modal fade" id="saveWaitListOrder" tabindex="-1">\n        <div class="modal-dialog">\n            <div class="modal-content">\n                <div class="modal-header">\n                    <button type="button" class="close" data-dismiss="modal"><span>\xd7</span></button>\n                    <h4 class="modal-title">Save Changes</h4>\n                </div>\n                <div class="modal-body">\n                        You have unsaved changes on your waitlist. Please save now.\n                </div>\n                <div class="modal-footer" style="text-align:center;">\n                  <button type="button" class="btn green-bg save-changes-btn">Save</button>\n                    <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n                </div>\n            </div>\n        </div>\n    </div>\n    \n    <div class="modal fade" id="wl_patient_data" tabindex="-1">\n      <div class="modal-dialog" style="width:60%;">\n        <div class="modal-content">\n        <form id="patient_data_update_form">\n          <div class="modal-header">\n            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">\xd7</span></button>\n            <h5><font size="2px">An </font><font color="red" size="3px"> *</font> <font size="2px">indicates a required field. All other fields are optional</font></h5>\n    \n            <h4 class="modal-title"></h4>\n          </div>\n          <div class="modal-body">\t\t\n            <div id="fetch_pt_loading" class="text-center">\n                <img src="\\assets\\images\\Curve-Loading.gif" alt="Loading...">\n            </div>\n            \n            <div id="post_fetch" class="hide">\n                <div class="row">\n                    <div class="col-md-12">\n                            <div class="psd_newperson_title clearfix program_name">\n                                <div class="psd_name_address">\n                                        <span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n                                    </div>\n                            </div>\n                    </div>\n                    <div class="col-xs-3">\n                        <strong>First Name:</strong> <span id="pt_fn"></span>\n                    </div>\n                    <div class="col-xs-3">\n                        <strong>Last Name:</strong> <span id="pt_ln"></span>\n                    </div>\n                    <div class="col-xs-3">\n                        <strong>Date of Birth:</strong> <span id="pt_dob"></span>\n                    </div>\n                    <div class="col-xs-3">\n                        <strong>Gender:</strong> <span id="pt_gen"></span><span class="hide" id="pt_gen_id"></span>\n                    </div>\n                    \n                    \n                </div>\n                <div class="row top10">\n                    <div class="col-xs-3">\n                        <strong>SSN:</strong> <span id="pt_ssn"></span>\n                    </div>\n                    <div class="col-sm-3">\n                        <strong>Race:</strong> <span id="pt_race"></span><span class="hide" id="pt_race_id"></span>\n                    </div>\n                    <div class="col-sm-3">\n                        <strong>Ethnicity:</strong> <span id="pt_ethnicity"></span><span class="hide" id="pt_ethnicity_id"></span>\n                    </div>\n                    <div class="col-xs-3">\n                        <strong>Preferred Language:</strong> <span id="prf_lang"></span><span class="hide" id="prf_lang_id"></span>\n                    </div>\n    \n                    \n                    \n                </div>\n                <div class="row top10">\n    \n                    <div class="col-sm-3">\n                        <strong>Bed Option/Eligibility:</strong> <span id="pt_bedopt"></span><span class="hide" id="pt_bedopt_id"></span>\n                    </div>\n                    <div class="col-sm-3">\n                        <strong>Insurance:</strong> <span id="pt_ins"></span><span class="hide" id="pt_ins_id"></span>\n                    </div>\n                    <div class="col-xs-3">\n                        <strong>Referring Program:</strong> <span id="pt_ref"></span><span class="hide" id="pt_ref_id"></span>\n                    </div>\n    \n                    <div class="col-xs-3">\n                        <strong>C\n                            urrently incarcerated?</strong> <span id="pt_inc"></span>&nbsp;<span id="pt_inc_dt"></span>\n                    </div> \n                    \n                    \n                    \n                    \n                </div>\n                <div class="row top10">\n                    <div class="col-md-12">\n                            <div class="psd_newperson_title clearfix program_name">\n                                <div class="psd_name_address">\n                                        <span class="psd_newperson_title_name" style="color: #ffffff">Contact Information</span>\n                                    </div>\n                            </div>\n                    </div>\n                    <div class="col-xs-4">\n                        <strong>Email:</strong> <span id="pt_em"></span>\n                    </div>\n                    <div class="col-xs-4">\n                        <strong>Phone Number:</strong> <span id="pt_ph"></span>\n                    </div>\n                    \n                </div>\n                <div class="row top10">\n                    <div class="col-xs-4">\n                        <strong>Street:</strong> <span id="pt_str"></span>\n                    </div>\n                    <div class="col-xs-4">\n                        <strong>City:</strong> <span id="pt_city"></span>\n                    </div>\n                    <div class="col-xs-4">\n                        <strong>State &amp; Zip:</strong> <span id="pt_sta"></span>&nbsp;<span id="pt_zip"></span>\n                    </div>\t\t\t\n    \n                </div>\n                <input type="hidden" id="intsvc_intstatus">\n                <div class="row top10">\n                    <div class="col-md-12">\n                        <div class="psd_newperson_title clearfix program_name">\n                            <div class="psd_name_address">\n                                    <span class="psd_newperson_title_name" style="color: #ffffff">Priority Populations</span>\n                                </div>\n                        </div>\n                   </div>\n                   <div class="col-xs-4">\n                        <strong>Priority Population:</strong> <span id="pt_pp"></span><span class="hide" id="pt_pp_id"></span>\n                    </div>\n                    <div class="col-sm-6">\n                        <div id="Intservicediv">\n                            <table class="table table-bordered table-condensed" id="Intservicetable" hide="">\n                                <thead>\n                                    <tr>\n                                        <th>Interim Service</th>\n                                        <th>Interim Service Status</th>\n                                    </tr>\n                                </thead>\n                                <tbody class="intsvc_status_body">\n                                    \n                                </tbody>\n                            </table>\n                        </div>\n                    </div>\n                </div>\n                <div class="row top10">\t\t\t\t\n                    <div class="col-xs-8">\n                        <strong>Notes:</strong> <span id="pt_notes"></span>\n                    </div>\t\t\t\t\n                </div>\n            </div>\n            \n            <div id="edit_modal_data" class="hide">\t\t\n                \n                <div class="row">\n                    <div class="col-md-12">\n                        <div class="psd_newperson_title clearfix program_name">\n                            <div class="psd_name_address">\n                                    <span class="psd_newperson_title_name" style="color: #ffffff">Personal Information</span>\n                                </div>\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_fn">First Name: </label>\n                            <input type="text" id="e_fn" class="form-control hide">\n                            <div id="e_fn_l"></div>\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_ln">Last Name: </label>\n                            <input type="text" id="e_ln" class="form-control hide">\n                            <div id="e_ln_l"></div>\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_dob">Date of Birth (MM/DD/YYYY): </label>\n                            <input type="text" id="e_dob" class="form-control hide">\n                            <div id="e_dob_l"></div>\n                            \n                        </div>\n                    </div>\t\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_gen">Gender: </label>\n                            <select name="e_gen" id="e_gen">\n                                <option value="">Select One</option>\n                                <option value="24">Male</option>\n                                <option value="25">Female</option>\n                                <option value="26">Transgender Man</option>\n                                <option value="27">Transgender Woman</option>\t\t\t\t\t\t\t\t\n                            </select>\n                        </div>\n                    </div>\n                    \n                </div>\t\n    \n                <div class="row">\t\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_ssn">SSN (Last 4 digits only): </label>\n                            <input type="text" id="e_ssn" maxlength="4" class="form-control hide">\n                            <div id="e_ssn_l"></div>\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                            <div class="form-group">\n                                <label class="control-label" for="e_race">Race: </label>&nbsp;<span class="red">*</span>\n                                <div class="ms-ctn form-control " style="" id="magicsuggest_race_edit"><span class="ms-helper " style="display: none;"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="" style="width: 68px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div>\n                                <input id="race_edit" name="race_edit" type="hidden">\n                            </div>\n                        </div>\n                                    <div class="col-md-3">\n                            <div class="form-group">\n                                <label class="control-label" for="e_ethnicity">Ethnicity: </label>&nbsp;<span class="red">*</span>\n                                <div class="ms-ctn form-control " style="" id="magicsuggest_ethnicity_edit"><span class="ms-helper " style="display: none;"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="" style="width: 68px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div>\n                                <input id="ethnicity_edit" name="ethnicity_edit" type="hidden">\n                            </div>\n                        </div>\n                        \x3c!-- <div class="col-md-3">\n                            <div class="form-group">\n                                <label for="e_ethn">Ethnicity: </label>&nbsp;<span class="red">*</span>\n                                <select name="e_ethn" id="e_ethn" class="form-control">\n                                        <option value="">Select One</option>\n                                        <option value="2">Puerto Rican</option>\n                                        <option value="3">Mexican</option>\n                                        <option value="4">Not of Hispanic Origin</option>\n                                        <option value="5">Hispanic, not otherwise specified</option>\n                                        <option value="1">Refuse</option>\n                                </select>\n                            </div>\n                        </div> --\x3e\n                    \n                    <div class="col-sm-3">\n                                <div class="form-group">\n                                    <label for="e_lan_wp" class="control-label">Preferred Language: </label><span class="red required_text">*</span>\n                                    <select name="e_lan_wp" id="e_lan_wp" class="">\n                                        <option value="">Select One</option>\n                                        <option  *ngFor="let item of PreferredLanguage" [value]="item.id">{{item.name}}</option>\n                                    </select>\n                                </div>\n                            </div>\n                </div>\n                <div class="row">\t\n                <div class="col-md-3">\n                            <div class="form-group">\n                                <label for="e_bedopt">Bed Option/Eligibility: </label>&nbsp;<span class="red">*</span>\n                                <select name="e_bedopt" id="e_bedopt" class="form-control">\n                                        <option value="">Select One</option>\n                                        <option *ngFor="let item of BedOption" [value]="item.id">{{item.name}}</option>\n                                    </select>\n                            </div>\n                        </div>\n                        <div class="col-md-3">\n                            <div class="form-group">\n                                <label for="e_ins">Insurance: </label>&nbsp;<span class="red">*</span>\n                                <select name="e_ins" id="e_ins" class="form-control">\n                                        <option value="">Select One</option>\n                                        <option  *ngFor="let opt of Insurance" [value]="opt.id">{{opt.name}}</option>\n                                    </select>\n                            </div>\n                        </div>\t\n                        <div class="col-md-3">\n                        <div class="form-group">\n                            <label class="control-label" for="e_rp">Referring Program: </label>&nbsp;<span class="red">*</span>\n                            <select name="e_rp" id="e_rp">\n                                <option value="">Select One</option>\n                                <option  *ngFor="let opt of ReferingProgramming" [value]="opt.id">{{opt.name}}</option>\t\t\t\t\t\t\t\t\n                            </select>\n                        </div>\n                    </div>\t\t\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label class="control-label" for="e_ci">Currently Incarcerated: </label>&nbsp;<span class="red">*</span>\n                            <select name="e_ci" id="e_ci">\n                                <option value="">Select One</option>\n                                <option value="Yes">Yes</option>\n                                <option value="No">No</option>\n                            </select>\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group hide">\n                            <label class="control-label" for="e_ldu">Date of Last Substance Use (MM/DD/YYYY)?: </label>\n                            <input type="text" name="e_ldu" id="e_ldu" class="form-control" placeholder="MM/DD/YYYY">\n                        </div>\n                    </div>\t\t\n                    \n                    \n                                \n                </div>\n    \n    \n                <div class="row">\t\n                <div class="col-md-12">\n                            <div class="psd_newperson_title clearfix program_name">\n                                <div class="psd_name_address">\n                                        <span class="psd_newperson_title_name" style="color: #ffffff">Contact Information</span>\n                                    </div>\n                            </div>\n                            </div>\t\t\t\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_em">Email: </label>\n                            <input type="text" name="e_em" id="e_em" class="form-control">\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label class="control-label" for="e_ph">Phone Number: </label>&nbsp;<span class="red">*</span>\n                            <input type="text" name="e_ph" id="e_ph" class="form-control">\n                        </div>\n                    </div>\n                    \n                </div>\n                <div class="row">\t\t\t\t\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_str">Street: </label>\n                            <input type="text" name="e_str" id="e_str" class="form-control">\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_ct">City: </label>\n                            <input type="text" name="e_ct" id="e_ct" class="form-control">\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_st">State: </label>\n                            <select name="e_st" id="e_st">\n                                <option value="">Select One</option>\n                                <option value="AK">AK</option><option value="AL">AL</option><option value="AR">AR</option><option value="AS">AS</option><option value="AZ">AZ</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DC">DC</option><option value="DE">DE</option><option value="FL">FL</option><option value="FM">FM</option><option value="GA">GA</option><option value="GU">GU</option><option value="HI">HI</option><option value="IA">IA</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option value="MA">MA</option><option value="MD">MD</option><option value="ME">ME</option><option value="MH">MH</option><option value="MI">MI</option><option value="MN">MN</option><option value="MO">MO</option><option value="MP">MP</option><option value="MS">MS</option><option value="MT">MT</option><option value="NC">NC</option><option value="ND">ND</option><option value="NE">NE</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><option value="NV">NV</option><option value="NY">NY</option><option value="OH">OH</option><option value="OK">OK</option><option value="OR">OR</option><option value="PA">PA</option><option value="PR">PR</option><option value="PW">PW</option><option value="RI">RI</option><option value="SC">SC</option><option value="SD">SD</option><option value="TN">TN</option><option value="TX">TX</option><option value="UT">UT</option><option value="VA">VA</option><option value="VI">VI</option><option value="VT">VT</option><option value="WA">WA</option><option value="WI">WI</option><option value="WV">WV</option><option value="WY">WY</option>\n                            </select>\n                        </div>\n                    </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label for="e_zip">Zip: </label>\n                            <input type="text" name="e_zip" id="e_zip" class="form-control">\n                        </div>\n                    </div>\t\t\t\t\n                </div>\n                <div class="row">\n                    <div class="col-md-12">\n                            <div class="psd_newperson_title clearfix program_name">\n                                <div class="psd_name_address">\n                                        <span class="psd_newperson_title_name" style="color: #ffffff">Priority Populations</span>\n                                    </div>\n                            </div>\n                            </div>\n                    <div class="col-md-3">\n                        <div class="form-group">\n                            <label class="control-label" for="e_pp">Priority Population: </label>&nbsp;<span class="red">*</span>\t\t\t\t\t\t\n                    \n                            <div class="ms-ctn form-control " style="" id="magicsuggest_pp_edit"><span class="ms-helper " style="display: none;"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="" style="width: 68px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div>\n                            <input id="selpp_edit" name="selpp_edit" type="hidden">\t\n                        </div>\n                    </div>\n                    <div class="col-sm-4">\n                                    <div class="form-group">\n                                        <label class="control-label" for="e_sp">Interim/Alternative Services:  </label><span class="red required_text hide">*</span>\n                                        <div class="ms-ctn form-control " style="" id="magicsuggest_intsvc_edit_exist"><span class="ms-helper " style="display: none;"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="" style="width: 68px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div>\n                                        <input id="intsvc_edit" name="intsvc_edit" type="hidden">\n                                    </div>\n                            </div>\n    \n                            <div class="col-sm-5" id="intsvcstatuseditdata" style="margin-top: 36px;">\n                                <div class="form-group">\n                                <table class="table table-bordered table-condensed" id="intsvc_edit1">\n                                        <thead>\n                                            <tr>\n                                                <th>Interim Service</th>\n                                                <th>Interim Service Status</th>\n                                            </tr>\n                                        </thead>\n                                        <tbody class="intsvcedit-body">\n                                            \n                                        </tbody>\n                                </table>\n                            </div>\n                            </div>\n                </div>\n                <div class="row">\t\t\t\t\t\t\t\t\n                    <div class="col-md-8">\n                        <div class="form-group">\n                            <label for="e_note">Notes: </label>\n                            <textarea name="e_note" id="e_note" class="form-control"></textarea>\n                        </div>\n                    </div>\t\t\t\t\t\t\t\t\t\t\t\n                </div>\t\t\t\n            </div>\n          </div>\x3c!-- .body --\x3e\n          <div class="modal-footer" style="text-align:center;">\n            <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n            <button type="button" class="btn btn-primary hide" id="e_edit">Edit</button>\n            <button class="btn btn-primary hide" id="e_save">Save</button>\n            <input type="hidden" name="u_cid" id="u_cid">\n            <input type="hidden" name="u_cwid" id="u_cwid">\n          </div>\n          </form>\n        </div>\n      </div>\n    </div>\n    \n    <div class="row top10">\n        <div class="col-sm-12">\n        \x3c!-- <div class="page_heading" style="border-bottom: solid 0.5px #9c6b9e;">Residential Waitlist for [<span *ngFor="let name of waitlistnames; let isLast=last">{{name}}{{isLast ? \'\' : \', \'}}</span> ]</div> --\x3e\n        <div class="page_heading" *ngIf="waitlistnames" style="border-bottom: solid 0.5px #9c6b9e;"><img src="assets/images/rec-waitlist-icon.png" *ngIf="waitlistnames.length>1" style="padding-right: 2px; height:40px;" /><span *ngIf="waitlistnames.length>1">Shared</span> Waitlist for: <ng-container *ngFor="let name of waitlistnames;let i=index;"><span *ngIf="!name.toLowerCase().includes(\'inactive\')" style="font-size: 0.7em !important;">{{name}}<span *ngIf="waitlistnames.length-1!=i">, </span></span></ng-container>\n        \x3c!-- <ul style="font-size: 0.7em !important;list-style:disc; margin-left: 18px;"><li *ngFor="let name of waitlistnames">{{name}}</li></ul> --\x3e\n        </div>\n          <br>\n         \x3c!-- River Valley Counseling Center --\x3e\n         \x3c!-- <button class="btn purple-bg capacityUpdate" (click)="updateCapacity()" style="margin-bottom:10px;font-size: 16px; padding: 9px !important;"> \n            <img src="assets/images/edit2.png" style="margin-right: 5px;" alt="">Update Capacity</button> --\x3e\n            <input type="hidden" id="urlencvalue" value="163">\n            <button id="capacityUpdate" (click)="updateContent()">click</button></div>\n         \x3c!-- <div class="col-sm-7 "><p class="hide alert alert-warning" id="saveOrderText"><i class="fa fa-exclamation-triangle triangle_color">&nbsp;</i>You have unsaved changes on your waitlist. Please save now</p></div> --\x3e\n         <div class="alert alert-success col-md-12 movetowaitlistmsg" style="font-size:large;margin-left: 15px;"><i class="fa fa-check">&nbsp;</i>Added to WaitList</div>\n        </div>\n        \x3c!-- <div *ngIf="bedInformation.capdetails!=null && bedInformation.totalbeds!=null && bedInformation.waitlistid!=null ">\n            <div *ngIf="bedInformation">\n            <div *ngIf="bedInformation.capdetails[0].id>0" align="left" id="yui_3_18_1_11_1580817757485_179">\n                <span>Total # of Beds: <span id="totBedscnt">{{bedInformation.totalbeds}}</span></span>\n                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \n                <span>Available Beds: <span id="totAvlcnt">{{totAvlcntinfo}}</span></span></div>\n            <div class="row top10 type-beds">\n            <div class="col-md-2" *ngFor="let beds of bedInformation.capdetails; index as i"><div id="rbx3{{beds.ref}}" class="round-box-3">\n                <span class="deleteCapacity" data-bedsoccupied="10" title="{{beds.ref}}">\n                    <i class="fa fa-times-circle" aria-hidden="true"></i></span>\n                    <h4 *ngIf="beds.bedoptionname==\'Not funded\'">Non - Funded Beds</h4>\n                    <h4 *ngIf="beds.bedoptionname==\'Medicaid\'">Funded Beds by {{(beds.bedoptionname)}}</h4>\n                    <h4 *ngIf="beds.bedoptionname==\'Other\'">Funded Beds by {{(beds.otherfundingsourcename)}}</h4>\n                    <p>Occupied Beds: <b class="occupied_beds2">{{beds.bedsoccupied}}</b>&nbsp;<br></p></div></div>\n            </div>\n            </div>\n        </div> --\x3e\n        <div>\n            <div>\n            <div class="row top10 type-beds m-0" style="display:inline-block;" *ngIf="bedInformation.capdetails!=null && bedInformation.capdetails[0].id>0">\n                <div id="rbx3" class="round-box-3" style="float: left; border-right: solid 2px #fff;background: #ccc;border-radius: 10px;">\n                    <div class="col p-0 flexTbs">\n                        <h4 style="color: #000;font-weight: bold; margin-bottom: 18px;">Total Available Beds Male: {{totalshowCampsMale.bsastotla}} </h4>\n                        <h4 style="color: #000;font-weight: bold;">Available Beds Male</h4>\n                        <h4 *ngIf="totalshowCampsMale.bsasavailtotal > 0">BSAS Licensed:<strong> {{totalshowCampsMale.bsasavailtotal}}</strong></h4>\n                        <h4 *ngIf="totalshowCampsMale.dmhavailtotal > 0">DMH Contract:<strong>{{totalshowCampsMale.dmhavailtotal}}</strong></h4>\n                        <h4 *ngIf="totalshowCampsMale.dcfavailtotal > 0">DCF Contract:<strong>{{totalshowCampsMale.dcfavailtotal}}</strong></h4>\n                        <h4 *ngIf="totalshowCampsMale.covidavailtotal > 0">COVID-19:<strong>{{totalshowCampsMale.covidavailtotal}}</strong></h4>\n                        <span *ngIf="totalOther.length > 0"> <h4 *ngFor="let data of totalOther">Other ({{data.otherDesc ? data.otherDesc: \'\'}} ):<strong>  {{data.totalavailmale}}</strong></h4></span>\n                    </div>\n                    <div class="verticalline"></div>\n                </div> \n                <div id="rbx3" class="round-box-3" style="border-left:none;background: #ccc;border-radius: 10px;">\n                    <div class="col flexTbs">\n                        <h4 style="color: #000;font-weight: bold; margin-bottom: 18px;">Total Available Beds Female: {{totalshowCampsFeMale.bsastotla}}</h4>\n                        <h4 style="color: #000;font-weight: bold;">Available Beds Female</h4>\n                        <h4 *ngIf="totalshowCampsFeMale.bsasavailtotal > 0">BSAS Licensed:<strong>{{totalshowCampsFeMale.bsasavailtotal}}</strong></h4>\n                        <h4 *ngIf="totalshowCampsFeMale.dmhavailtotal > 0">DMH Contract:<strong> {{totalshowCampsFeMale.dmhavailtotal}}</strong></h4>\n                        <h4 *ngIf="totalshowCampsFeMale.dcfavailtotal > 0">DCF Contract:<strong> {{totalshowCampsFeMale.dcfavailtotal}}</strong></h4>\n                        <h4 *ngIf="totalshowCampsFeMale.covidavailtotal > 0">COVID-19:<strong>{{totalshowCampsFeMale.covidavailtotal}}</strong></h4>\n                       <span *ngIf="totalOther.length > 0"> <h4 *ngFor="let data of totalOther">Other ({{data.otherDesc ? data.otherDesc: \'\'}} ):<strong>  {{data.totalavailfemale}}</strong></h4></span>\n                    </div>\n                </div>\n            </div>\n            <div class="row top10 type-beds m-0" style="display:inline-block; background: #ccc;border-radius: 10px;" *ngIf="bedInformation.capdetails!=null && bedInformation.capdetails[0].id>0">\n           \x3c!-- // <div class="col-md-10"> --\x3e\n                <div id="rbx3" class="round-box-3" *ngIf="bedInformation.capdetails.totallicensedmale || bedInformation.capdetails.totalavailablemale || bedInformation.capdetails.totallicensedfemale || bedInformation.capdetails.totalavailablefemale || bedInformation.capdetails.othertotalbeds || bedInformation.capdetails.otheravailablebeds">\n                    <div class="col p-0 flexTbs" *ngIf="bedInformation.capdetails.totallicensedmale || bedInformation.capdetails.totalavailablemale">\n                     \x3c!-- //   <span class="deleteCapacity" data-bedsoccupied="10" title="{{beds.ref}}"> --\x3e\n                           \x3c!-- // <i class="fa fa-times-circle" aria-hidden="true"></i> --\x3e\n                            <h4 >Total Licensed beds (Male):<strong> {{bedInformation.capdetails.totallicensedmale}}</strong></h4>\n                            <h4 >Total Available beds (Male):<strong> {{bedInformation.capdetails.totalavailablemale}}</strong></h4>\n                            <h4 >Closed beds (Male):<strong> {{bedInformation.capdetails.totalclosedmale}}</strong></h4>\n                            <h4 *ngIf="bedInformation.capdetails.totalclosedmale>0 && bedInformation.capdetails.closedbedreasonmaleid!=3">Closed reason:<strong> {{bedInformation.capdetails.closedbedreasonmaleid==1?\'Milieu acuity\':bedInformation.capdetails.closedbedreasonmaleid==2?\'Staffing\':\'Others\'}}</strong></h4>\n                            <h4 *ngIf="bedInformation.capdetails.otherreasonforclosedbedmale && bedInformation.capdetails.closedbedreasonmaleid==3">Closed reason:<strong> {{bedInformation.capdetails.otherreasonforclosedbedmale}}</strong></h4>\n                           \n                    </div>\n                    <div class="verticalline" *ngIf="bedInformation.capdetails.totallicensedfemale || bedInformation.capdetails.totalavailablefemale" ></div>\n                        <div class="col flexTbs" *ngIf="bedInformation.capdetails.totallicensedfemale || bedInformation.capdetails.totalavailablefemale">\n                           \x3c!-- // <span class="deleteCapacity" data-bedsoccupied="10" title="{{beds.ref}}"> --\x3e\n                              \x3c!-- //  <i class="fa fa-times-circle" aria-hidden="true"></i> --\x3e\n                                <h4 >Total Licensed beds (Female):<strong> {{bedInformation.capdetails.totallicensedfemale}}</strong></h4>\n                                <h4 >Total Available beds (Female):<strong> {{bedInformation.capdetails.totalavailablefemale}}</strong></h4>\n                                <h4 >Closed beds (Female):<strong> {{bedInformation.capdetails.totalclosedfemale}}</strong></h4>\n                                <h4 *ngIf="bedInformation.capdetails.totalclosedfemale>0 && bedInformation.capdetails.closedbedreasonfemaleid!=3">Closed reason:<strong> {{bedInformation.capdetails.closedbedreasonfemaleid==1?\'Milieu acuity\':bedInformation.capdetails.closedbedreasonfemaleid==2?\'Staffing\':\'Others\'}}</strong></h4>\n                                <h4 *ngIf="bedInformation.capdetails.otherreasonforclosedbedfemale && bedInformation.capdetails.totalclosedfemale>0 && bedInformation.capdetails.closedbedreasonfemaleid==3">Closed reason:<strong> {{bedInformation.capdetails.otherreasonforclosedbedfemale}}</strong></h4>\n\n                    </div>\n                    <div class="verticalline" *ngIf="bedInformation.capdetails.othertotalbeds || bedInformation.capdetails.otheravailablebeds"></div>\n                    <div class="col flexTbs" *ngIf="bedInformation.capdetails.othertotalbeds || bedInformation.capdetails.otheravailablebeds">\n                        <h4 >Total Licensed beds ({{bedInformation.capdetails.otherfundname}}):<strong> {{bedInformation.capdetails.othertotalbeds}}</strong></h4>\n                        <h4 >Total Available beds ({{bedInformation.capdetails.otherfundname}}):<strong> {{bedInformation.capdetails.otheravailablebeds}}</strong></h4>\n                        <h4 >Closed beds ({{bedInformation.capdetails.otherfundname}}):<strong> {{bedInformation.capdetails.otherclosedbeds}}</strong></h4>\n                        <h4 *ngIf="bedInformation.capdetails.otherclosedbeds>0 && bedInformation.capdetails.otherclosedbedreasonid!=3">Closed reason:<strong> {{bedInformation.capdetails.otherclosedbedreasonid==1?\'Milieu acuity\':bedInformation.capdetails.otherclosedbedreasonid==2?\'Staffing\':\'Others\'}}</strong></h4>\n                        <h4 *ngIf="bedInformation.capdetails.reasonforclosedbedother && bedInformation.capdetails.otherclosedbeds>0 && bedInformation.capdetails.otherclosedbedreasonid==3">Closed reason:<strong> {{bedInformation.capdetails.reasonforclosedbedother}}</strong></h4>\n                    </div>    \n                    <span class="deleteCapacity" (click)="deletecapacity()"> <i class="fa fa-times-circle" aria-hidden="true"></i></span>\n                </div>\n              \x3c!-- //  </div> --\x3e\n            </div>\n            </div>\n        </div>\n        \x3c!-- <div class="row top10 type-beds" *ngIf="bedInformation.capdetails==null || bedInformation.capdetails[0].id==\'-1\'">\n            <div  class="col-md-12"><div class="alert alert-danger"><i class="fa fa-exclamation-triangle">&nbsp;</i>Please update the capacity Information</div></div>\n        </div> --\x3e\n        <div class="row top10 type-beds" *ngIf="bedInformation.capdetails">\n            <div *ngIf="bedInformation.capdetails[0].id>0" class="col-md-12"><div style="background-color: #9c6b9e;padding:5px;color: white;">&nbsp;Last updated on {{bedInformation.capdetails[0].createdtime.split(\'T\')[0] | date:\'MM/dd/yyyy\'}} at {{bedInformation.capdetails[0].createdtime | date:\'h:mm:ss a\'}} by {{bedInformation.capdetails[0].createdby}}</div></div>\n        </div>\n     <div class="row time-update">\n      </div> \n    <div class="row">\n           <div class="col-sm-10">\n          \x3c!-- <p><strong>Note:</strong> Click on a person\'s name to view their full record. To move a person up or down the waitlist, click and drag their record.</p> --\x3e\n    </div>\n         \x3c!-- <div class="col-sm-2 text-right" style="display:none;">\n          <button class="btn purple-bg hide" style="margin-top: 4px; font-size: 16px;" id="saveOrder">Save Changes</button>\n        </div> --\x3e\n        <div class="col-sm-12" align="right">\n          <button class="btn purple-bg pull-right addperson_waitlistbtn" style="padding: 8px 15px !important;top: 5px;" (click)="addPerson2()"><i class="fa fa-user-plus" style="margin-right: 5px;"></i>Add a Person</button>\n        </div>\n    <div class="col-sm-12" align="right">\n        <button mat-raised-button color="primary" id="exportBtn0" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n\n    </div>      \n    <div class="col-sm-12" style="margin-top: 5px;">     \n        <mat-tab-group mat-align-tabs="start"  class="tab-group waitlist-tabgroup" [(selectedIndex)]="demo1TabIndex" #tab>\n            <mat-tab label="SCREENING LOG (in last 30 days)">\n                    \n                      \x3c!-- <button class="btn purple-bg pull-right addperson_btn" (click)="addPerson(\'addaperson\',\'\',\'\')"><i class="fa fa-user-plus" style="margin-right: 5px;"></i>Add to Log</button> --\x3e\n                      \x3c!-- <mat-form-field style="float: right;margin-bottom: 15px;">\n                        <mat-label style="font-size:12px;padding:3px;">Search</mat-label>\n                        <input matInput (keyup)="applyFilter($event)" id="providerSearch" style="border: solid 1px lightgray; height:30px; margin-top:-7px; position: absolute; font-size: 12px; padding: 5px;" placeholder="Search" #input>\n                        <svg  style="float: right; margin:0 4px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                          <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                        </svg>              \n                    </mat-form-field> --\x3e\n                    <p style="padding: 2px 230px;font-weight: bold;">Search by screening date <span style="margin-left: 100px;"></span></p>\n                            <div align="center" style="margin-top:5px;font-weight: bold;">                    \n                              From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  [(ngModel)]="selectedStartDate" (ngModelChange)="changeDate($event)"\n                              maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY">\n                              To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> &nbsp; \n                              <button class="btn btn-success req-btn searchbyrmDate1" [disabled]="srcdisabled" (click)="searchBydate()" id="people_in_slog">Search</button>&nbsp;<img *ngIf="loadersearch" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n                              <button type="button" class="btn btn-warning req-btn" id="people_in_sl_clr1"  (click)="clearBydate()">Clear</button>\n                            </div>\n                  <div class="mat-elevation-z8" #TABLE style="margin-top: 5px;">\n                  <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Screening Log</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                    </table>\n                    <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>From Date: {{frmDate}}; To Date: {{toDate}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                    </table>  \n                    <ngb-accordion [closeOthers]="true" id="{{(waitlistnames.length==1)?\'screening\':\'\'}}" activeIds="static-1"  (panelChange)="toggleAccordian($event)">\n                        <ngb-panel id="static-1" title="Added to Screening Log" >\n                          <ng-template ngbPanelContent>\n                            <div class="row">  \n                                <div class="col-md-12">\n                                    <div style="float: right;margin-bottom: 15px;">\n                                        <input (keyup)="applyFilter($event)" id="providerSearch" class="searchbox" style="border: solid 1px lightgray; height:40px;width: 195px; margin-top:-7px; font-size: 12px; padding: 5px;font-weight: 400;color: black;" placeholder="Search" #input>\n                                        <svg  style="float: right; margin:6px -20px;position:absolute" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                                          <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                                        </svg>              \n                                    </div>\n                                </div>\n                                </div>\n                    <table style="width:100%;" mat-table [dataSource]="dataSourceS" matSort class="custom-table"><img *ngIf="loader" src="assets/images/loader.gif">\n                            <ng-container matColumnDef="id">\n                                <th mat-header-cell *matHeaderCellDef mat-sort-header  style="width: 100px;">#</th>\n                                <td mat-cell *matCellDef="let row" style="width: 10px;"> {{row.id}} </td>\n                            </ng-container>\n                                  <ng-container matColumnDef="full_name">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 120px; text-align:center;">Name </th>\n                                    <td mat-cell *matCellDef="let row1"><a href="javascript:void(0);" (click)="waitlistInfo(row1.ref);" > {{row1.full_name}} </a> </td>\n                                  </ng-container>\n                              \n                                  \n                                  \x3c!-- <ng-container matColumnDef="dob">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Date of Birth </th>\n                                    <td mat-cell *matCellDef="let row1"> {{row1.dob}} </td>\n                                  </ng-container> --\x3e\n\n                                  \n                                  <ng-container matColumnDef="dateadded">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Added </th>\n                                    <td mat-cell *matCellDef="let row1"> {{row1.dateadded}} </td>\n                                  </ng-container>\n                                  <ng-container matColumnDef="population">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 180px;">&nbsp;&nbsp;&nbsp;Priority Population </th>\n                                    <td mat-cell *matCellDef="let row1"> {{row1.population}} </td>\n                                  </ng-container>\n                                  <ng-container matColumnDef="date_updated">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Updated</th>\n                                    <td mat-cell *matCellDef="let row1"> {{row1.date_updated}} </td>\n                                  </ng-container>\n                                  <ng-container matColumnDef="mental_health">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="width:170px;">High Priority Mental Health Need</th>\n                                    <td mat-cell *matCellDef="let row1"> {{row1.mental_health}} </td>\n                                  </ng-container>\n                                  <ng-container matColumnDef="actions">\n                                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Outcome</th>\n                                    <td mat-cell *matCellDef="let row1" > \n                                        <button *ngIf="row1.statusid==6" type="button"\n                                        class="btn btn-primary" style="padding: 4px 10px !important;background-color: #545b62!important;margin-left: 5px;" (click)="refusePerson(row1.contactwaitlistid)">Refuse</button>\n                                        <button  [ngClass]="{\'btn btn-sm bg-secondary\':(row1.statusid==8 || row1.statusid==7 || row1.statusid==4 || row1.statusid==3 || row1.statusid==1 || row1.statusid==2 || row1.statusid==818)}" \n                                                [ngStyle]="(row1.statusid==8 || row1.statusid==7 || row1.statusid==4 || row1.statusid==3 || row1.statusid==1 || row1.statusid==2 || row1.statusid==818) ? {\'cursor\': \'pointer\', \'color\': \'black\',\'box-shadow\':\'1px 1px 0px #a5a7a7\'} : {}" \n                                                [disabled]="(row1.statusid==8)" id="atw" (click)="addPerson(row1.buttonval,row1.ref,row1.contactwaitlistid,row1.refusereason)" \n                                                class="btn btn-sm green-bg wl_admit_again">{{row1.buttonval}}\n                                                \x3c!-- <div *ngIf="row1.buttonval==7"> --\x3e\n                                                    \n                                                \x3c!-- </div> --\x3e\n                                                <div *ngIf="row1.statusid==8">{{row1.addedtowaitlistdate |  date: \'dd/MM/yyyy\'}}</div></button>\n                                                </td>\n                                  </ng-container>\n                                  <tr mat-header-row *matHeaderRowDef="displayedColumnssl"></tr>\n                                  <tr mat-row *matRowDef="let row1; columns: displayedColumnssl;"></tr>\n                              \n                                  \n                                  \x3c!-- <tr class="mat-row" *matNoDataRow>\n                                    <td class="mat-cell" *ngIf="!max_loader" colspan="4">No data matching the filter "{{input.value}}"</td>\n                                    <td><span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                                </tr> --\x3e\n                              \n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                           \n                        </tr>\n                    </table>\n                    <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();"><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download</button>\n                    <mat-paginator [pageSizeOptions]="[10, 25, 100,1000]"></mat-paginator>\n                </ng-template>\n                        </ngb-panel>\n                        <ngb-panel id="static-2" title="Added to Waitlist">\n                            <ng-template ngbPanelContent>\n                                <div class="row">  \n                                    <div class="col-md-12">\n                                        <div style="float: right;margin-bottom: 15px;">\n                                            <input (keyup)="applyFilter($event)" id="providerSearch" class="searchbox" style="border: solid 1px lightgray; height:40px;width: 195px; margin-top:-7px; font-size: 12px; padding: 5px;font-weight: 400;color: black;" placeholder="Search" #input>\n                                            <svg  style="float: right; margin:6px -20px;position:absolute" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                                              <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                                            </svg>              \n                                        </div>\n                                    </div>\n                                    </div>\n                               \n                                <table style="width:100%;" *ngIf="dataSourceS" mat-table [dataSource]="dataSourceS" matSort class="custom-table"><img *ngIf="loader" src="assets/images/loader.gif">\n                                    <ng-container matColumnDef="id">\n                                        <th mat-header-cell *matHeaderCellDef mat-sort-header  style="width: 142px;">#</th>\n                                        <td mat-cell *matCellDef="let row" style="width: 10px;"> {{row.id}} </td>\n                                    </ng-container>\n                                        <ng-container matColumnDef="full_name">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 120px; text-align:center;">Name </th>\n                                            <td mat-cell *matCellDef="let row1"><a href="javascript:void(0);" (click)="waitlistInfo(row1.ref);" > {{row1.full_name}} </a> </td>\n                                        </ng-container>\n                                    \n                                        \n                                        \x3c!-- <ng-container matColumnDef="dob">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date of Birth </th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.dob}} </td>\n                                        </ng-container> --\x3e\n\n                                        \n                                        <ng-container matColumnDef="dateadded">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Added </th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.dateadded}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="population">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 180px;">&nbsp;&nbsp;&nbsp;Priority Population </th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.population}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="date_updated">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Updated</th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.date_updated}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="mental_health">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width:170px;">High Priority Mental Health Need</th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.mental_health}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="actions">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Outcome</th>\n                                            <td mat-cell *matCellDef="let row1" > \n                                                <button *ngIf="row1.statusid==6" type="button"\n                                                class="btn btn-primary" style="padding: 4px 10px !important;background-color: #545b62!important;margin-left: 5px;" (click)="refusePerson(row1.contactwaitlistid)">Refuse</button>\n                                                <button  [ngClass]="{\'btn btn-sm bg-secondary\':(row1.statusid==8 || row1.statusid==7 || row1.statusid==4 || row1.statusid==3 || row1.statusid==1 || row1.statusid==2 || row1.statusid==818)}" \n                                                        [ngStyle]="(row1.statusid==8 || row1.statusid==7 || row1.statusid==4 || row1.statusid==3 || row1.statusid==1 || row1.statusid==2 || row1.statusid==818) ? {\'cursor\': \'pointer\', \'color\': \'black\',\'box-shadow\':\'1px 1px 0px #a5a7a7\'} : {}" \n                                                        [disabled]="(row1.statusid==8)" id="atw" (click)="addPerson(row1.buttonval,row1.ref,row1.contactwaitlistid,row1.refusereason)" \n                                                        class="btn btn-sm green-bg wl_admit_again">{{row1.buttonval}}\n                                                        \x3c!-- <div *ngIf="row1.buttonval==7"> --\x3e\n                                                            \n                                                        \x3c!-- </div> --\x3e\n                                                        <div *ngIf="row1.statusid==8">{{row1.addedtowaitlistdate |  date: \'dd/MM/yyyy\'}}</div></button>\n                                                        </td>\n                                        </ng-container>\n                                        <tr mat-header-row *matHeaderRowDef="displayedColumnssl"></tr>\n                                        <tr mat-row *matRowDef="let row1; columns: displayedColumnssl;"></tr>\n                                    \n                                        \n                                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                                            <td class="mat-cell" *ngIf="!max_loader" colspan="4">No data matching the filter "{{input.value}}"</td>\n                                            <td><span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                                        </tr> --\x3e\n                                    \n                            </table>\n                            <table style="background-color: #fff;">\n                                <tr class="mat-row" *ngIf="users.length === 0">\n                                <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                                \n                                </tr>\n                            </table>\n                            <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();"><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download</button>\n                            <mat-paginator [pageSizeOptions]="[10, 25, 100,1000]"></mat-paginator>\n                            </ng-template>\n                        </ngb-panel>\n                        <ngb-panel id="static-3" title="Added to Refusal">\n                            <ng-template ngbPanelContent>\n                                <div class="row">  \n                                    <div class="col-md-12">\n                                        <div style="float: right;margin-bottom: 15px;">\n                                            <input (keyup)="applyFilter($event)" id="providerSearch" class="searchbox" style="border: solid 1px lightgray; height:40px;width: 195px; margin-top:-7px; font-size: 12px; padding: 5px;font-weight: 400;color: black;" placeholder="Search" #input>\n                                            <svg  style="float: right; margin:6px -20px;position:absolute" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                                              <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                                            </svg>              \n                                        </div>\n                                    </div>\n                                    </div>\n                               \n                                <table style="width:100%;" mat-table [dataSource]="dataSourceS" matSort class="custom-table"><img *ngIf="loader" src="assets/images/loader.gif">\n                                    <ng-container matColumnDef="id">\n                                        <th mat-header-cell *matHeaderCellDef mat-sort-header  style="width: 142px;"># </th>\n                                        <td mat-cell *matCellDef="let row" style="width: 10px;"> {{row.id}} </td>\n                                    </ng-container>\n                                        <ng-container matColumnDef="full_name">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 120px; text-align:center;">Name </th>\n                                            <td mat-cell *matCellDef="let row1"><a href="javascript:void(0);" (click)="waitlistInfo(row1.ref);" > {{row1.full_name}} </a> </td>\n                                        </ng-container>\n                                    \n                                        \n                                        \x3c!-- <ng-container matColumnDef="dob">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date of Birth </th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.dob}} </td>\n                                        </ng-container> --\x3e\n\n                                        \n                                        <ng-container matColumnDef="dateadded">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Added </th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.dateadded}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="population">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 180px;">&nbsp;&nbsp;&nbsp;Priority Population </th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.population}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="date_updated">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Updated</th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.date_updated}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="mental_health">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width:170px;">High Priority Mental Health Need</th>\n                                            <td mat-cell *matCellDef="let row1"> {{row1.mental_health}} </td>\n                                        </ng-container>\n                                        <ng-container matColumnDef="actions">\n                                            <th mat-header-cell *matHeaderCellDef mat-sort-header> Outcome</th>\n                                            <td mat-cell *matCellDef="let row1" > \n                                                <button *ngIf="row1.statusid==6" type="button"\n                                                class="btn btn-primary" style="padding: 4px 10px !important;background-color: #545b62!important;margin-left: 5px;" (click)="refusePerson(row1.contactwaitlistid)">Refuse</button>\n                                                <button  [ngClass]="{\'btn btn-sm bg-secondary\':(row1.statusid==8 || row1.statusid==7 || row1.statusid==4 || row1.statusid==3 || row1.statusid==1 || row1.statusid==2 || row1.statusid==818)}" \n                                                        [ngStyle]="(row1.statusid==8 || row1.statusid==7 || row1.statusid==4 || row1.statusid==3 || row1.statusid==1 || row1.statusid==2 || row1.statusid==818) ? {\'cursor\': \'pointer\', \'color\': \'black\',\'box-shadow\':\'1px 1px 0px #a5a7a7\'} : {}" \n                                                        [disabled]="(row1.statusid==8)" id="atw" (click)="addPerson(row1.buttonval,row1.ref,row1.contactwaitlistid,row1.refusereason)" \n                                                        class="btn btn-sm green-bg wl_admit_again">{{row1.buttonval}}\n                                                        \x3c!-- <div *ngIf="row1.buttonval==7"> --\x3e\n                                                            \n                                                        \x3c!-- </div> --\x3e\n                                                        <div *ngIf="row1.statusid==8">{{row1.addedtowaitlistdate |  date: \'dd/MM/yyyy\'}}</div></button>\n                                                        </td>\n                                        </ng-container>\n                                        <tr mat-header-row *matHeaderRowDef="displayedColumnssl"></tr>\n                                        <tr mat-row *matRowDef="let row1; columns: displayedColumnssl;"></tr>\n                                    \n                                        \n                                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                                            <td class="mat-cell" *ngIf="!max_loader" colspan="4">No data matching the filter "{{input.value}}"</td>\n                                            <td><span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                                        </tr> --\x3e\n                                    \n                            </table>\n                            <table style="background-color: #fff;">\n                                <tr class="mat-row" *ngIf="users.length === 0">\n                                <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                                \n                                </tr>\n                            </table>\n                            <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();"><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download</button>\n                            <mat-paginator [pageSizeOptions]="[10, 25, 100,1000]"></mat-paginator>\n                            </ng-template>\n                        </ngb-panel>\n            </ngb-accordion>\n                  </div>\n            </mat-tab>\n            <mat-tab label="PEOPLE ON WAITLIST">\n                <app-wait-tab></app-wait-tab>\n            </mat-tab>\n            <mat-tab label="PEOPLE ADMITTED (in last 30 days)">\n                <app-admitted-tab></app-admitted-tab>\n            </mat-tab>\n            <mat-tab label="PEOPLE REMOVED (in last 30 days)">\n                <app-removed-tab></app-removed-tab>\n            </mat-tab>\n          </mat-tab-group>           \n        \x3c!-- <div class="tab" id="target" style="display: flex;">\n          <button class="tablinks" data-tab="0" (click)="openTab(\'defaultOpen\', \'screeninglog\')" id="defaultOpen">SCREENING LOG (in last 30 Days)</button>\n          <button class="tablinks" data-tab="1" id="tablink2" (click)="openTab(\'tablink2\', \'peoplewaitlist\')">PEOPLE ON WAITLIST (in last 30 Days)</button>\n          <button class="tablinks" data-tab="2" id="tablink3" (click)="openTab(\'tablink3\', \'peopleadmitted\')">PEOPLE ADMITTED (in last 30 Days)</button>                      \n          <button class="tablinks" data-tab="3" id="tablink4" (click)="openTab(\'tablink4\', \'peopleremoved\')">PEOPLE REMOVED (in last 30 Days)</button>                    \n        </div> --\x3e\n    \n    </div>\n    </div>  \n    </div>\n    <div class="modal fade" id="refuseReasonModal" tabindex="-1">\n        <div class="modal-dialog">\n        <div class="modal-content">\n           <div class="modal-header" style="padding: 0px;">\n               <h4  class="modal-title pull-left" style="font-size: 18px;">Reason for Refusal</h4>\n                <button type="button" style="padding-top: 0px;" class="close" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>\n            <div class="modal-body">\n                <label  class="col-sm-3 col-form-label">Reason:<span class="red required_text">*</span></label>\n                <div class="col-sm-7">\n                    <textarea type="text" style="border-left: solid 1px gray;" rows="3" cols="60" id="refreason"  [(ngModel)]="refusalreason"></textarea>\n                    <div *ngIf="refreserr">\n                        <small class="text-danger ml-1">Please enter refusal notes</small>\n                    </div>\n                </div>\n            </div>\n            <div class="modal-footer" style="display:flex !important">\n                <div style="text-align:center;"><button class="btn btn-primary" type="submit" (click)="saveReason()" [disabled]="refdisabled">Save</button>&nbsp;<img *ngIf="resloader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></div>            \n            </div>\n            </div>\n        </div>\n    </div>\n    <div id="myModal100" class="modal fade" style="z-index: 9999999999;">\n        <div class="modal-dialog" style="width:504px !important; top: 100px !important;">\n        <div class="modal-content">\n            <span style="text-align: right;" data-dismiss="modal" aria-label="Close" class="close">&times;</span>\n            <div class="confirm">\n            <div></div>\n            <div>\n                <div id="confirmMessage"><svg style="color:orange; margin:-3px 2px; height:20px; width:20px;" width="16" height="16" fill="currentColor" class="bi bi-exclamation-triangle" viewBox="0 0 16 16">\n                <path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/>\n                <path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/>\n                </svg>\n                &nbsp;Are you sure, you want to delete this capacity?</div>\n                <div style="text-align: center; padding-top: 15px;">\n                <button type="button"  type="button" class="btn btn-success" value="Yes" (click)="deleteConfirm(\'confirmYes\')">Yes</button>&nbsp;&nbsp;\n                <button data-dismiss="modal" aria-label="Close"  type="button" class="btn btn-danger" value="No" (click)="deleteConfirm(\'confirmNo\')">No</button>\n                <input type="hidden" id="refno" />\n                <input type="hidden" id="occbeds" />\n                <input type="hidden" id="actype" value="0" />\n                </div>\n            </div>\n            </div>\n            </div>\n        </div>\n    </div>\n    <div id="myModal101" class="modal fade" style="z-index: 9999999999;">\n            <div class="modal-dialog" style="width:504px !important; top: 100px !important;">\n            <div class="modal-content">\n                <span style="text-align: right;" data-dismiss="modal" aria-label="Close" class="close">&times;</span>\n                <div class="confirm">\n                <div></div>\n                <div>\n                    <div id="confirmMessage"><svg style="color:orange; margin:-3px 2px; height:20px; width:20px;" width="16" height="16" fill="currentColor" class="bi bi-exclamation-triangle" viewBox="0 0 16 16">\n                    <path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"/>\n                    <path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"/>\n                    </svg>\n                    &nbsp;Capacity Information existed to the Funding Source :<span id="fundsrc"></span> </div>\n                    <div style="text-align: center; padding-top: 15px;">\n                    <input data-dismiss="modal" aria-label="Close"  type="button" class="btn btn-success" value="Ok" />\n                    </div>\n                </div>\n                </div>\n                </div>\n            </div>\n        </div>\n        <div class="modal fade" id="refuseModalSL" tabindex="-1">\n            <div class="modal-dialog" >\n            <div class="modal-content" style="width: 630px;">\n                <form [formGroup]="refusalform" (ngSubmit)="onRefusalsubmit()" autocomplete="off">\n                <div class="modal-header">\n                    <h4 class="modal-title">Reason for Refusal</h4>\n                    <button type="button" style="margin-top: -42px;" class="close" data-dismiss="modal"><span style="font-size: 30px;">\xd7</span></button>\n                    \n                </div>\n                <div class="modal-body">\n                    \n                    <label for="inputEmail3" class="col-sm-2 col-form-label">Notes <span class="red required_text">*</span></label>\n                    <div class="col-sm-10">\n                        <textarea type="text" rows="4" style="border-right: solid 1px lightgray; resize: none;" cols="50"  [(ngModel)]="refusalnote" formControlName="refusalnote" id="refusalnote"></textarea>\n                        \n                    </div>\n                    <div align="center" *ngIf="submitted1 && rf.refusalnote?.errors">\n                        <small class="text-danger ml-1" *ngIf="rf.refusalnote.errors.required">Please enter refusal notes</small>\n                    </div>\n                    \n                </div>\n                <div class="modal-footer" style="display:flex !important">\n                    <div style="text-align:center;"><button class="btn btn-primary" type="submit" [disabled]="refdisabled">Save</button>&nbsp;<img *ngIf="resloader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></div>            \n                </div>\n            </form>\n                </div>\n            </div>\n        </div> ',changeDetection:s.ChangeDetectionStrategy.OnPush,styles:['    /* form span{font-weight:400;}\n    .psd_newperson_title{background-color: #8c5c8d;height: auto;padding-left: 10px;padding-right: 25px;} */\n    /*.btn-add{padding: 1px 10px;    border-radius: 5px;color: #fff; border:none}\n    .modal-dialog{    max-width: 660px;}\n    .modal-dialog {    max-width: 50%;}*/\n    /* #wl_pending_admission a:hover { text-decoration: underline;}\n    .required{border: 1px solid red !important;}\n    .hidetr{display: none;}\n    \n    @media screen and (max-width: 992px) {.container{ max-width: 100%;}}\n    \n    @media screen and (max-width: 768px) {\n    th{font-size:14px;}\n    .col-sm-6{width:100%}\n    }\n    select{background:#ffffff !important}\n    @media screen and (min-width: 768px) and (max-width: 1024px){.modal label.control-label {font-size: 13px;} .row .col-sm-3{padding-right:0} .modal .row .col-sm-3:last-child{padding-right:15px} .tab-font{display:none}\n     #wl_patient_data .modal-dialog{max-width:85%} #post_fetch strong, #edit_modal_data label {  font-size: 14px;} \n    span#pt_pp {word-break: break-word;} span#pt_ph {    display: block;} #intsvcstatuseditdata table, #Intservicediv table{font-size:14px; } #Intservicediv table th, #intsvcstatuseditdata table th{vertical-align:top}\n    }\n    @media screen and (max-width: 624px) {#wl_patient_data .modal-dialog{max-width:85%; margin: 20px auto;} \n    #inner-page {   margin: 100px 0 0 0;}\n    } */\n    .purple-bg:hover, .btn-primary:hover, .btn-primary:active {\n        background: #8c5c8d;\n        color: #fff;\n    }\n    .purple-bg, .btn-primary {\n        background: #8c5c8d;\n        color: #fff;\n    }\n    .btn {\n        padding: 4px 12px;\n        border: none;\n    }\n    .req-btn{ margin:2px;padding:3px 10px; color: #fff;}\n    .table {\n        margin-bottom: 10px;  \n      }\n    .psd_tr{\n          min-height: 70px;\n      }\n    .psd_col_td {    \n          padding-left: 3px;\n      }\n    #wl_pending_admission .psd_tr:hover .up_down_action{\n          visibility: visible;\n      }\n    .page_heading{font-size: 2em !important;}\n    #wl_pending_admission .psd_tr:hover{\n          background-color: lightyellow !important\n      }\n    .round-box-1 {background-color: #ccc;display: block;border-radius: 10px;padding: 10px;border-left: 10px solid #6cac3c;}\n    .round-box-1 p{ font-size:16px; font-size: 14px;line-height: 18px; color:#000; padding-top:0px;}\n    .round-box-1 h4{border-bottom: 1px solid #6cac3c;padding-bottom: 5px; margin-bottom: 5px;}\n    .round-box-2 {background-color: #ccc;display: block;border-radius: 10px;padding: 10px;border-left: 10px solid #f7b00a;}\n    .round-box-2 p{ font-size:16px; font-size: 14px;line-height: 18px; color:#000; padding-top:0px;}\n    .round-box-2 h4{border-bottom: 1px solid #f7b00a;padding-bottom: 5px; margin-bottom: 5px;}\n    .round-box-3 { display: flex !important;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #6baa46;}\n    .round-box-3 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}\n    .round-box-3 h4{ margin:5px 0;font-size: 18px;   color: black;}\n    .round-box-4 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #005d68;}\n    .round-box-4 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}\n    .round-box-4 h4{border-bottom: 1px solid #005d68;    padding-bottom: 5px; margin-bottom: 5px;}\n    .round-box-5 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #11cedf;}\n    .round-box-5 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}\n    .round-box-5 h4{border-bottom: 1px solid #11cedf;    padding-bottom: 5px; margin-bottom: 5px;}\n    .round-box-6 {background-color: #ccc;    display: block;    border-radius: 10px;    padding: 10px;    border-left: 10px solid #6411df;}\n    .round-box-6 p{ font-size:16px; font-size: 14px;    line-height: 18px; color:#000; padding-top:0px;}\n    .round-box-6 h4{border-bottom: 1px solid #6411df;    padding-bottom: 5px; margin-bottom: 5px;}\n    .type-beds .col-md-2{padding: 0 5px; border-radius: 10px;}\n    .bg-info { background-color: #d9edf7 !important;}\n    .bg-danger {\n          background-color: #f2dede !important;\n      }\n    .time-update{\n          background: #795179 !important;padding: 0px 15px;margin-top: 7px;color: white;\n      }\n    table.dataTable.no-footer {font-size: 18px;}\n    table.dataTable.table-bordered>tbody>tr>td, table.dataTable.table-bordered>tbody>tr>th {line-height: 30px;}\n    .btn-group-sm>.btn, .btn-sm { font-size: .875rem;}\n    .dataTables_wrapper .dataTables_paginate .paginate_button {padding: 0 .6em;}\n    #wl_pending_admission_filter{margin: 0 10px}\n    #wl_pending_admission_filter input{border: 1px solid #ccc; }\n    #wl_pending_admission_length,#wl_admitted_length,#wl_removed_length{display: none}\n    #wl_pending_admission_wrapper { background: #f1f1f185;padding: 10px;}\n    #wl_admitted_filter{margin: 20px 0}\n    #wl_admitted_filter input{border: 1px solid #ccc; }\n    #wl_admitted_wrapper { background: #f1f1f185;padding: 10px;margin-top: 10px;}\n    #wl_removed_filter{margin: 20px 0}\n    #wl_removed_filter input{border: 1px solid #ccc; }\n    #wl_removed_wrapper { background: #f1f1f185;padding: 10px;margin-top: 10px;}\n    .removal_reason{margin-bottom: 10px;}\n    /*#accSection{\n          background-color: #ccc;\n      }*/\n    .filter_admit_data td,.filter_rmv_data td{text-align: center;}\n    .filter_admit_data td:first-child,.filter_rmv_data td:first-child{width: 15%}\n    .notes-text{position:relative; z-index: 99; font-weight: bold;}\n    .t-116{top:116px;}\n    @media screen and (max-width: 992px) {\n      .container{ max-width: 100%;}\n      }\n    .dataTables_wrapper{\n          max-height: 700px;\n          overflow-y: auto;\n      }\n    @media screen and (max-width: 768px) {\n      #wl_pending_admission_wrapper, #wl_admitted_wrapper, #wl_removed_wrapper {overflow: scroll;}\n      ::ng-deep .modal-dialog{ width: auto !important;}\n      ::ng-deep .modal-content{ width: auto !important;}\n      ::ng-deep #refreason,#refusalnote{ width: 100% !important;}\n      ::ng-deep .hasDatepicker{ width:100% !important}\n      ::ng-deep p.ng-star-inserted{ padding: 0 !important;}\n      ::ng-deep p.searchtitle{ padding: 0 !important;}\n      ::ng-deep div:has(.hasDatepicker){  text-align: left !important;}\n      ::ng-deep #addmitted_txt{width: 100% !important;}\n      ::ng-deep #program_name{width: 100% !important;}\n      ::ng-deep .btn{ margin-bottom: 1px !important;}\n      }\n    @media screen and (max-width: 624px) {\n      #inner-page {   margin: 100px 0 0 0;}\n      }\n    .tablinks{\n        flex: 1 1;\n      }\n    .tab {\n        overflow: hidden;\n        border: 1px solid #ccc;\n        border-bottom:none;\n        background-color: #f1f1f1;\n        border-radius:5px;\n        border-bottom-left-radius:0px;\n        border-bottom-right-radius:0px;\n      }\n    table.dataTable {\n          border-collapse: collapse !important;\n      }\n    .tab button {\n          background-color: #4D5E80;\n          float: left;\n          border: none;\n          outline: none;\n          cursor: pointer;\n          padding: 8px 106.1px;\n          transition: 0.3s;\n          font-size: 17px;\n          font-weight: bold;\n          color: white;\n      }\n    @media only screen and (max-width: 1920px) {\n      .tab button {\n          background-color: transparent;\n          float: left;\n          border: none;\n          outline: none;\n          cursor: pointer;\n          padding: 8px 0px;\n          transition: 0.3s;\n          font-size: 17px;\n          font-weight: bold;\n          color: #9c6b9e;\n          border: 1px solid transparent;\n          border-top-left-radius: .25rem;\n          border-top-right-radius: .25rem;\n      }\n      }\n    /* Change background color of buttons on hover */\n    .tab button:hover {\n        background-color: #ddd;\n      }\n    /* Create an active/current tablink class */\n    .tab button.active {\n        /*background-color: #fcfaff;\n        color: #4D5E80;*/\n        color: #495057;\n          background-color: #fff;\n          border-color: #dee2e6 #dee2e6 #fff;\n      }\n    /* Style the tab content */\n    .tabcontent {\n        display: none;\n        padding: 6px 12px;\n        border: 1px solid #ccc;\n        border-top: none;\n        margin-bottom:10px;\n      }\n    /* Style the tab content */\n    .tabcontent {\n        display: none;\n        padding: 6px 12px;\n        border: 1px solid #ccc;\n        border-top: none;\n        margin-bottom:10px;\n      }\n    .psd_agency_program_box {\n          background-color: #f3eee64f !Important;\n          }\n    .tabcontent {       \n              padding: 6px 5px !Important;\n          }\n    .m-b-10 { margin-bottom:10px;}\n    .deleteCapacity{    \n        position: relative;\n        color: red;\n        right: -16px;top: -21px;\n        cursor: pointer;\n        font-size: 24px; \n    }\n    div.dt-buttons {\n          position: relative;\n          float: right;\n      }\n    button.dt-button, div.dt-button, a.dt-button{\n            padding: 0 10px 0 10px;\n            background: #4D5E80 !important;\n            color: #fff !important;\n      }\n    button.dt-button span{\n        font-size: 14px;\n      }\n    ::ng-deep .hideContent{\n          display: none;\n      }\n    @media only screen and (max-width: 1920px){\n      .tab button {\n        font-size: 15px;  \n      }\n      }\n    .alert-danger {\n          color: #a94442;\n          background-color: #f2dede;\n          border-color: #ebccd1;\n      }\n    .btn-group-sm>.btn, .btn-sm{\n          padding: 2px 5px !important;\n      }\n    .btn-group-sm>.btn, .btn-sm{\n          font-size: .775rem;\n      }\n    a span{ color:#fff !important;}\n    #wl_patient_data{z-index:999999999999 !important}\n    .mytooltip:hover:after{\n        background: #333;\n        background: rgba(0,0,0,.9);\n        border-radius: 5px;\n        color: #fff;\n        content: "Use the arrows next to the fields to sort the data";\n        margin-left:20px;\n        padding: 5px 15px;\n        position: absolute;\n        z-index: 9999999999999 !important;\n        width: 390px;\n        top:0px;\n        }\n    .mytooltipexp:hover:after{\n        background: #333;\n        background: rgba(0,0,0,.9);\n        border-radius: 5px;\n        color: #fff;\n        content: "Use the arrows next to the fields to sort the data";\n        margin-left:-400px;\n        padding: 5px 15px;\n        position: absolute;\n        z-index: 9999999999999 !important;\n        width: 390px;\n        top:0px;\n        }\n    .mytooltip2:hover:after{\n        background: #333;\n        background: rgba(0,0,0,.9);\n        border-radius: 5px;\n        color: #fff;\n        content: "Click on a person\'s name to view their full record";\n        margin-right:20px;\n        padding: 5px 15px;\n        position: absolute;\n        z-index: 98;\n        width: auto;}\n    button.drag{display:none;}\n    button.buttons-excel{display:none;}\n    input[type=\'search\']::-moz-placeholder {font-size:13px !important;}\n    input[type=\'search\']::placeholder {font-size:13px !important;}\n    .table-bordered>thead>tr>td, .table-bordered>thead>tr>th{width:-moz-max-content !important;width:max-content !important;}\n    table#wl_screening_admission1,table#wl_all_slog_data{ margin-top:32px;}\n    table#wl_admitted,table#wl_removed,table#wl_all_admitted_data,table#wl_all_rmv_data{margin-top:25px;}\n    .addperson_btn{\n          margin-top: -35px;\n          border-radius: 25px;\n          /* padding: 7px 10px; */\n          position: absolute;\n          margin-left: 20px;}\n    .addperson_waitlistbtn{\n          border-radius: 25px;\n          /* padding: 7px 10px; */\n          position: absolute;\n          margin-left: 20px;\n          }\n    :host ::ng-deep .dt-button{display: none;}\n    :host ::ng-deep div.dt-buttons{display:none !important;}\n    :host ::ng-deep #wl_screening_admission1_info,#wl_pending_admission_info {\n            color: #9281c5;\n            font-weight: bold;\n            font-size:12px;\n         }\n    :host ::ng-deep #wl_screening_admission1_paginate{\n            font-size:12px;\n         }\n    :host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n            background: #9281c5 !important;\n            color: white !important;\n         }\n    :host ::ng-deep #wl_screening_admission1_wrapper{ width:98% !important}\n    li.menu-item a{ color:#5c6b80 !important;}\n    div.dt-buttons{display:none !important;}\n    .reportfilter{border:solid 1px #e4dbdb; padding:12px;}\n    caption{display:none;}\n    @media only screen and (min-width: 768px){\nspan#headerIcons li {\n    font-size: 1.0em;\n    font-family: "proxima-nova","Helvetica Neue",Helvetica,Arial,sans-serif;\n}\n.col-md-3{max-width:26% !important;}}\n    @media screen and (max-height: 450px) {\n  .sidenav {padding-top: 15px;}\n  .sidenav a {font-size: 18px;}\n}\n    .xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{display:none !important;}\n    label {\n\tfont-size:15px;\n\tfont-weight:700;\n}\n    tfoot{display:none;}\n    :host ::ng-deep div.dt-buttons{display:none !important;}\n    :host ::ng-deep #wl_screening_admission1_info,#wl_pending_admission_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}\n    :host ::ng-deep #wl_pending_admission_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}\n    :host ::ng-deep #wl_admitted_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}\n    :host ::ng-deep #wl_removed_info {\n    color: #9281c5;\n    font-weight: bold;\n\tfont-size:12px;\n}\n    :host ::ng-deep #wl_screening_admission1_paginate{\n\tfont-size:12px;\n}\n    :host ::ng-deep #wl_pending_admission_paginate{\n\tfont-size:12px;\n}\n    :host ::ng-deep #wl_admitted_paginate{font-size:12px;}\n    :host ::ng-deep #wl_removed_paginate{font-size:12px;}\n    :host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n    background: #9281c5 !important;\n    color: white !important;\n}\n    :host ::ng-deep #wl_screening_admission1_wrapper{ width:98% !important}\n    .bg-secondary{ background-color: #ebeff3 !important;}\n    .bg-secondary:hover{ color:#fff !important;}\n    a,a span{color: #8c5c8d;}\n    :host ::ng-deep #wl_pending_admission_wrapper {\n    background: #f1f1f185;\n    padding: 10px;\n}\n    :host ::ng-deep .notes-text {\n    position: relative;\n    z-index: 99;\n    font-weight: bold;\n}\n    :host ::ng-deep .addperson_waitlistbtn{\n    border-radius: 25px;\n    /* position: absolute; */\n    margin-left: 20px;\n    /* float: left !important; */\n    margin-bottom:10px;\n}\n    .modal-content{\n    width:1024px;\n    left:50%;\n    transform: translate(-50%);\n}\n    .green-bg{    \n   background: #5cb85c;\n   color: #fff;\n }\n    .btn-sm {\n    font-size: 1.10rem !important;\n}\n    .modal-content{\n    width: 1073px;\n    left: 50%;\n    transform: translate(-50%);\n}\n    form span, form .h4{\n    font-weight: normal;\n}\n    :host ::ng-deep select{background: none !important;}\n    .table td, .table th{padding: 0.25rem;}\n    .purple-bg, .btn-primary {\n    background: #8c5c8d;\n    color: #fff !important;\n    border: none;\n}\n    .btn {padding: 2px 8px !important;}\n    .modal-footer{display: block;}\n    .psd_newperson_title{\n    background-color: #8c5c8d;\n    height: auto;\n    padding-left: 10px;\n    padding-right: 25px;\n}\n    .btn-sm{font-size: 12px !important;}\n    .btn-primary{\n    padding: 2px 10px !important;\n    margin: 3px;\n    font-size: 13px;\n}\n    .modal-header{\n    display: inline !important;\n}\n    .button_small{\n    padding: 4px 8px !important;\n    margin: 2px !important;\n}\n    .exportBtn{\n    display: none;\n}\n    .modal-content {\n    background-color: #fefefe;\n    /* margin: auto; */\n    padding: 20px;\n    border: 1px solid #888;\n    width: 80%;\n  }\n    /* The Close Button */\n    .close {\n    color: #aaaaaa;\n    float: right;\n    font-size: 28px;\n    font-weight: bold;\n  }\n    .close,.close:hover,\n  .close:focus {\n    color: #000;\n    text-decoration: none;\n    cursor: pointer;\n  }\n    modal{\n    padding-top: 100px;\n  }\n    :host ::ng-deep .mat-sort-header-content{\n    font-weight: bold !important;\n    color:#000;\n}\n    :host ::ng-deep .alert-info{\n    margin-bottom: 0rem !important;\n}\n    ::ng-deep .mat-form-field-underline {\n    display: none;\n}\n    ::ng-deep .mat-form-field-label-wrapper{\n    display:none;\n}\n    label{margin-bottom: 0;}\n    button.btnSubmit:last-child{float: right;}\n    :host ::ng-deep th.mat-column-action .mat-sort-header-container{left: 21%;}\n    /* :host ::ng-deep thead tr{\n    background: #e0e4ec;\n} */\n    ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper{\n    padding-bottom: 0.25em !important;\n}\n    :host ::ng-deep span.alert-info{\n    width: 100%;\n    font-size: 16px;\n    display: block;\n    font-weight: 500;\n}\n    /* td,th{\n    border-right: 1px solid gray;\n} */\n    ::ng-deep .mat-sort-header-container {\ndisplay:flex;\njustify-content:center;\n}\n    ::ng-deep .mat-cell{\n    text-align: center;\n}\n    /* .mat-cell, .mat-footer-cell{font-size: 12px !important;} */\n    a{color: blue !important; cursor: pointer;}\n    #hader-col img{height: 30px; width: 30px; padding: 0px 0px 6px 3px;}\n    tr:nth-child(even) {background-color: #f2f2f2;}\n    ::ng-deep app-footer{width: 100% !important; left: 0% !important;}\n    ::ng-deep .mat-form-field-infix{ margin-right: 15px !important;}\n    .flexTbs{\n    padding: 10px !important;\n    width: 225px !important;\n}\n    /* :host ::ng-deep .modal-backdrop{\n      z-index: 99999999 !important;\n  } */\n    .type-beds .round-box-3 .col:first-child{border-left: none;}\n    .type-beds .round-box-3 .col{border-left: 2px solid #fff;}\n    #exportel{ \n    font-size: 16px;\n    position: absolute;\n    bottom: 25px;\n}\n    .card-body{position:relative}\n    /* ::ng-deep #screening > .ng-star-inserted{\n    display: none;\n}\n::ng-deep #screening > .ng-star-inserted:first-child{\n    display: block !important;\n}\n::ng-deep #screening > .card > .card-header:first-child{ display: none !important;}\n::ng-deep #screening > .card:first-child{ background-color:#f7f6f3 !important;border:solid 1px #f7f6f3 !important;} */\n    #capacityUpdate{display: none;}\n    .ng-select span.ng-arrow-wrapper:before {\n    content: "\\f0ab";\n    display: inline-block;\n    font: normal normal normal 14px/1 FontAwesome;\n    font-size: inherit;\n    text-rendering: auto;\n}']})],nV);const iV={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let sV=class{constructor(t){this.http=t,this.backendUrl=Xf}getTravelLog(){return this.http.get(this.backendUrl+"/v1/secure/travellog",iV)}getTravelLogInfo(t){return this.http.get(this.backendUrl+"/v1/secure/travellog/"+t,iV)}savescheduledInfo(t){return this.http.post(this.backendUrl+"/v1/secure/scheduletravellog",t,iV)}saveCompleteTravellogInfo(t){return this.http.post(this.backendUrl+"/v1/secure/completetravellog",t,iV)}saveInCompleteTravellogInfo(t){return this.http.post(this.backendUrl+"/v1/secure/incompletetravellog",t,iV)}savedEditTravellogInfo(t){return this.http.post(this.backendUrl+"/v1/secure/edittravellog",t,iV)}cancelInfo(t){return this.http.post(this.backendUrl+"/v1/secure/canceltravellog",t,iV)}deletetravellog(t){return this.http.post(this.backendUrl+"/v1/secure/deletetravellog",t,iV)}searchTravelLog(t){return this.http.post(this.backendUrl+"/v1/secure/serachnewtravellog",t,iV)}searchscheduledTravelLog(t){return this.http.post(this.backendUrl+"/v1/secure/serachscheduletravellog",t,iV)}savefundingSourceData(t){return this.http.post(this.backendUrl+"/v1/secure/savefundsource",t,iV)}};sV.ctorParameters=()=>[{type:Yf.HttpClient}],sV=Hh([Object(s.Injectable)({providedIn:"root"})],sV);let rV=class{constructor(t,e,n,i,s,r,a,o,l){this.transportservice=t,this.datePipe=e,this.modalService=n,this.titleService=i,this.fb=s,this.overviewservice=r,this._Activatedroute=a,this.myrequestsService=o,this.authService=l,this.programData=[],this.notassociated=!1,this.transportation=!0,this.provider=!1,this.citizen=!1,this.submitted=!1,this.displayedColumns=["id","created_date","passanger_name","uniqueidentifier","phone_number","pickup_time","pickup_location","drop_of_location","notes","status","actions"],this.agencyassociated=[],this.programassociated=[],this.transportdata=[],this.new_scheduleddata=[],this.users=[],this.cnlinfo=[],this.deleteval="",this.scheduleinfo=[],this.schedule=!1,this.complete=!1,this.incomplete=!1,this.travellog=[],this.editlog=!1,this.cancellog=!1,this.savedRequestList=[],this.submittedRequestList=[],this.s1=!1,this.s2=!1,this.s3=!1,this.s4=!1,this.travellogdata=!1,this.loader=!1,this.clonemessage=!1,this.max_loader=!0,this.modalOptions={backdrop:"static",backdropClass:"customBackdrop"},this.actionform=this.fb.group({programname:[""],nameofdriver:["",im.required],psngrname:["",[im.required]],callerphone:[""],pckuploc:["",im.required],pckupcity:[""],pckupdate_time:["",im.required],drop_of_loc:["",im.required],createddate:[""],fromDate_rmv:["",im.required],mileage:["",im.required],cmnts:[""],submittedby:[""],primarysubst:[""],travelstatus:["",im.required],funding_source:[""],flat_matride:[""],flat_noshow:[""],flat_interruptedride:[""],creason:[""]}),"true"==this._Activatedroute.snapshot.paramMap.get("clone")&&(this.clonemessage=!0,window.history.pushState({},document.title,window.location.href.split(";")[0])),this.deletedata=this.fb.group({dreason:["",im.required]}),this.titleService.setTitle("Substance Abuse Information and Education Helpline : Login / Sign Up")}get f(){return this.actionform.controls}get d(){return this.deletedata.controls}ngOnInit(){this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]]}),this.authService.getMe().subscribe(t=>{this.contacttypeid=t.contacttypeid}),this.dataTable=$("#wl_screening_admission1"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"SCREENING_LOG.xls"}]}),this.dataTable=$("#wl_pending_admission"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!0,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ON_WAITLIST.xls"}]}),this.dataTable=$("#wl_admitted"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ADMITTED.xls"}]}),this.dataTable=$("#wl_removed"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_REMOVED.xls"}]})}export(){let t=this.tabGroup.selectedIndex>1?1:this.tabGroup.selectedIndex;$("body").find("button.exportBtn").eq(t).click()}ngAfterViewInit(){$("#transportation").hide();const t=this;this.authService.getMe().subscribe(e=>{let n=e.contacttypeid;"4"==n?(t.transportservice.getTravelLog().subscribe(e=>{t.transportdata=e,t.travellogdata=!0;var n=[];if(t.transportdata.New&&n.push(t.transportdata.New),t.transportdata.Scheduled&&n.push(t.transportdata.Scheduled),t.new_scheduleddata=n,null!=t.new_scheduleddata){if(t.new_scheduleddata){t.new_scheduleddata.forEach(e=>{e.forEach(e=>{t.users.push({id:null,created_date:null!==e.createdtime?new Date(e.createdtime).toLocaleString():"",passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,phone_number:null==e.callerphone?"":e.callerphone,pickup_time:null==e.pickuptime?"":new Date(e.pickuptime).toLocaleString(),pickup_location:e.pickuplocation,drop_of_location:e.dropofflocation,notes:e.notes,status:e.travellerstatusname,actions:"",ref:e.ref}),t.sortindDate(t.users)})});for(var i=0;i<t.users.length;i++)t.users[i].id=i+1;t.max_loader=!1,t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}}}),$("#transportation").show(),t.transportation=!0):"1"==n?(t.myrequestsService.getSavedRequests().subscribe(e=>{console.log("Saved Search:::",e),t.savedRequestList=e.savedRequests}),t.transportation=!1,t.citizen=!0):"2"==n&&(t.overviewservice.getProviderInfo().subscribe(e=>{console.log(e),t.programData=e,0==t.programData.length&&(this.notassociated=!0);for(let n=0;n<t.programData.length;n++)68==t.programData[n].organizationtypeid&&t.agencyassociated.push(t.programData[n]),69==t.programData[n].organizationtypeid&&t.programassociated.push(t.programData[n]);console.log(t.agencyassociated),console.log(t.programassociated)}),t.transportation=!1,t.provider=!0)}),$('<span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span>').prependTo("#wl_pending_admission_wrapper"),$("#sortable_pending_admission").sortable(),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))}),$("body").on("click","#people_in_slog_t",function(){console.log("hi");let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1];let r={fromdate:e,todate:n};console.log("postObj",r),t.loader=!0,t.travellog=t.transportservice.searchTravelLog(r).subscribe(e=>{t.travellog=e,console.log(t.travellog);t.users=[],t.travellog.length>0?t.travellog.forEach(e=>{t.users.push({id:null,created_date:null!==e.createdtime?new Date(e.createdtime).toLocaleString():"",passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,phone_number:null==e.callerphone?"":e.callerphone,pickup_time:null==e.pickuptime?"":new Date(e.pickuptime).toLocaleString(),pickup_location:e.pickuplocation,drop_of_location:e.dropofflocation,notes:e.notes,status:e.travellerstatusname,actions:"",ref:e.ref}),t.sortindDate(t.users);for(var n=0;n<t.users.length;n++)t.users[n].id=n+1;console.log(t.users),t.loader=!1,t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}):(t.users=[],t.loader=!1,t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort)})}}),$("body").on("click","#people_in_sl_clr_t",function(){if(console.log($("#sl_fromDate").val()),console.log($("#sl_toDate").val()),$("#sl_fromDate").val()&&$("#sl_toDate").val("")?(console.log("firstdate"),$("#sl_fromDate").val("")):$("#sl_toDate").val(""),$("#sl_fromDate").val("")&&$("#sl_toDate").val("")&&($("#sl_fromDate,#sl_toDate").val(""),console.log(t.new_scheduleddata),null!=t.new_scheduleddata)){let n=0;if(t.users=[],t.loader=!0,t.new_scheduleddata){t.new_scheduleddata.forEach(e=>{e.forEach(e=>{n++,t.users.push({created_date:e.createdtime?new Date(e.createdtime).toLocaleString():"",passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,phone_number:null==e.callerphone?"":e.callerphone,pickup_time:null==e.pickuptime?"":new Date(e.pickuptime).toLocaleString(),pickup_location:e.pickuplocation,drop_of_location:e.dropofflocation,notes:e.notes,status:e.travellerstatusname,actions:"",ref:e.ref}),t.sortindDate(t.users)})});for(var e=0;e<t.users.length;e++)t.users[e].id=e+1;t.loader=!1,console.log(t.users),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}}}),$(document).unbind(".nl-panel-heading").on("click",".nl-panel-heading",function(){if($(this).hasClass("active"))return $(".nl-container").slideUp(250),$(".nl-panel-heading").removeClass("active"),!1;$(".nl-panel-heading").removeClass("active"),$(".nl-container").slideUp(250),$(this).addClass("active"),$(this).next().slideDown(250)})}ngAfterViewChecked(){document.querySelectorAll("video").forEach(function(t){console.log("video",t),t.addEventListener("play",function(e){console.log("ddd",t),t.requestFullscreen()})})}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"SCHEDULED_RIDES.xlsx")}waitlistInfo(){}removePerson(){}addPerson2(){}addWaitlist(){}addPerson(){}programDetails(t){console.log(t)}sortindDate(t){return t.sort((t,e)=>new Date(e.created_date)-new Date(t.created_date))}Incompleterides(t,e){this.closevalidation(),console.log("incomplete"),this.schedule=!1,this.complete=!1,this.incomplete=!0,this.editlog=!1,this.cancellog=!1,this.travelreference=e,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.getActiondata(),this.actionform.patchValue({travelstatus:1457})}deleteride(t,e){this.travelreference=e,this.deleteval="",this.closevalidation(),this.modalService.open(t,{windowClass:"xlModal"}),this.getActiondata()}cancelride(t,e){this.closevalidation(),this.travelreference=e,this.cancellog=!0,this.schedule=!1,this.complete=!1,this.incomplete=!1,this.editlog=!1,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.getActiondata(),this.actionform.patchValue({travelstatus:3})}completerides(t,e){this.closevalidation(),console.log("complete"),this.schedule=!1,this.complete=!0,this.incomplete=!1,this.editlog=!1,this.cancellog=!1,this.travelreference=e,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.getActiondata(),this.actionform.patchValue({travelstatus:4})}addedit(t,e){this.closevalidation(),this.editlog=!0,this.schedule=!1,this.complete=!1,this.incomplete=!1,this.cancellog=!1,this.travelreference=e,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.getActiondata()}addschedule(t,e){this.closevalidation(),this.schedule=!0,this.complete=!1,this.incomplete=!1,this.editlog=!1,this.cancellog=!1,this.travelreference=e,console.log("schedule"),this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.getActiondata()}actionFormSubmit(t,e,n,i,s){this.submitted=!0;for(let o in this.actionform.controls)this.actionform.controls[o].errors&&console.log(o);if(console.log(this.f.nameofdriver.invalid),console.log(this.f.psngrname.invalid),1==t){if(this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("pckuploc").setValidators([im.required]),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.f.nameofdriver.invalid||this.f.psngrname.invalid||this.f.pckuploc.invalid||this.f.pckupdate_time.invalid)return void console.log("invalid");console.log(this.actionform.value),a={id:this.scheduleinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,pickuplocation:this.actionform.value.pckuploc,pickupcity:this.actionform.value.pckupcity,pickuptime:new Date(this.actionform.value.pckupdate_time).toISOString().slice(0,16)},console.log(a),this.loader=!0,this.transportservice.savescheduledInfo(a).subscribe(t=>{console.log(t),t&&(this.closevalidation(),this.modalService.dismissAll(),this.loader=!1,location.reload())})}if(1==e){if(this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("drop_of_loc").setValidators([im.required]),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.actionform.get("nameofdriver").setValidators([im.required]),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("fromDate_rmv").setValidators([im.required]),this.actionform.get("fromDate_rmv").updateValueAndValidity(),this.actionform.get("travelstatus").setValidators([im.required]),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").setValidators([im.required]),this.actionform.get("mileage").updateValueAndValidity(),this.f.nameofdriver.invalid||this.f.psngrname.invalid||this.f.drop_of_loc.invalid||this.f.pckupdate_time.invalid||this.f.mileage.invalid||this.f.travelstatus.invalid||this.f.fromDate_rmv.invalid)return void console.log("invalid");console.log(this.actionform.value.fromDate_rmv),r=null==this.actionform.value.fromDate_rmv||""==this.actionform.value.fromDate_rmv?"":new Date(this.actionform.value.fromDate_rmv).toISOString().slice(0,16),a={id:this.scheduleinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,dropofflocation:this.actionform.value.drop_of_loc,dropofftime:r,dateofride:this.datePipe.transform(this.actionform.value.createddate,"yyyy-MM-dd"),mileage:this.actionform.value.mileage,comments:this.actionform.value.cmnts},console.log(a),this.loader=!0,this.transportservice.saveCompleteTravellogInfo(a).subscribe(t=>{console.log(t),t&&(this.closevalidation(),this.modalService.dismissAll(),this.loader=!1,location.reload())})}if(1==n){if(this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("pckuploc").setValidators([im.required]),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("drop_of_loc").setValidators([im.required]),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.actionform.get("travelstatus").setValidators([im.required]),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").setValidators([im.required]),this.actionform.get("mileage").updateValueAndValidity(),this.f.nameofdriver.invalid||this.f.psngrname.invalid||this.f.drop_of_loc.invalid||this.f.pckupdate_time.invalid||this.f.mileage.invalid||this.f.travelstatus.invalid)return void console.log("invalid");r=null==this.actionform.value.fromDate_rmv||""==this.actionform.value.fromDate_rmv?"":new Date(this.actionform.value.fromDate_rmv).toISOString().slice(0,16),a={id:this.scheduleinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,dropofflocation:this.actionform.value.drop_of_loc,dropofftime:r,dateofride:this.datePipe.transform(this.actionform.value.createddate,"yyyy-MM-dd"),mileage:this.actionform.value.mileage,comments:this.actionform.value.cmnts},console.log(a),this.loader=!0,this.transportservice.saveInCompleteTravellogInfo(a).subscribe(t=>{console.log(t),t&&(this.closevalidation(),this.modalService.dismissAll(),this.loader=!1,location.reload())})}if(1==i){if(console.log(""==this.actionform.value.fromDate_rmv),this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("pckuploc").setValidators([im.required]),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("drop_of_loc").setValidators([im.required]),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.actionform.get("nameofdriver").setValidators([im.required]),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("travelstatus").setValidators([im.required]),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").setValidators([im.required]),this.actionform.get("mileage").updateValueAndValidity(),console.log(this.f.psngrname.value),this.f.nameofdriver.clearValidators(),this.f.nameofdriver.updateValueAndValidity(),this.f.fromDate_rmv.clearValidators(),this.f.fromDate_rmv.updateValueAndValidity(),this.f.psngrname.invalid||this.f.drop_of_loc.invalid||this.f.pckupdate_time.invalid||this.f.pckuploc.invalid||this.f.mileage.invalid)return void console.log("invalid");var r;r=null==this.actionform.value.fromDate_rmv||""==this.actionform.value.fromDate_rmv?"":new Date(this.actionform.value.fromDate_rmv).toISOString().slice(0,16),a={id:this.scheduleinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,pickuplocation:this.actionform.value.pckuploc,pickupcity:this.actionform.value.pckupcity,pickuptime:new Date(this.actionform.value.pckupdate_time).toISOString().slice(0,16),dropofflocation:this.actionform.value.drop_of_loc,travellerstatusid:this.actionform.value.travelstatus,comments:this.actionform.value.cmnts,flatmatride:this.actionform.value.flat_matride,flatnoshow:this.actionform.value.flat_noshow,flatinterruptedride:this.actionform.value.flat_interruptedride,mileage:this.actionform.value.mileage,dropofftime:r},console.log(a),console.log(this.actionform),this.loader=!0,this.transportservice.savedEditTravellogInfo(a).subscribe(t=>{console.log(t),t&&(this.closevalidation(),this.modalService.dismissAll(),this.loader=!1,location.reload())})}if(1==s){if(this.f.travelstatus.invalid)return void console.log("invalid");var a;a={id:this.scheduleinfo.id,ref:this.travelreference,reason:this.actionform.value.creason},console.log(a),this.loader=!0,this.transportservice.cancelInfo(a).subscribe(t=>{console.log(t),t&&(this.closevalidation(),this.modalService.dismissAll(),this.loader=!1,location.reload())})}}getActiondata(){"4"==this.contacttypeid&&this.transportservice.getTravelLogInfo(this.travelreference).subscribe(t=>{console.log(t),this.scheduleinfo=t,this.actionform.patchValue({programname:this.scheduleinfo.programname,nameofdriver:this.scheduleinfo.nameofthedriver,psngrname:this.scheduleinfo.nameofthetraveller,callerphone:this.scheduleinfo.callerphone,pckupcity:this.scheduleinfo.pickupcity,pckuploc:this.scheduleinfo.pickuplocation,pckupdate_time:null==this.scheduleinfo.pickuptime?"":new Date(this.scheduleinfo.pickuptime),drop_of_loc:this.scheduleinfo.dropofflocation,createddate:new Date(this.scheduleinfo.createdtime).toLocaleString(),creason:null==this.scheduleinfo.reason?"":this.scheduleinfo.reason,fromDate_rmv:null==this.scheduleinfo.dropofftime?"":new Date(this.scheduleinfo.dropofftime),mileage:this.scheduleinfo.mileage,cmnts:this.scheduleinfo.comments,submittedby:this.scheduleinfo.submittedby,funding_source:this.scheduleinfo.fundingsourceid,flat_noshow:this.scheduleinfo.flatnoshow,flat_matride:this.scheduleinfo.flatmatride,flat_interruptedride:this.scheduleinfo.flatinterruptedride,primarysubst:this.scheduleinfo.primaryconcerndata}),this.editlog&&this.actionform.patchValue({travelstatus:this.scheduleinfo.travellerstatusid}),console.log(this.actionform)})}onClickSubmit(t){if(this.deletedata.get("dreason").setValidators([im.required]),this.deletedata.get("dreason").updateValueAndValidity(),this.submitted=!0,console.log(this.deletedata.get("dreason").setValidators([im.required])),console.log(t.invalid),0==t.invalid){var e={ref:this.travelreference,reason:this.deleteval,id:this.scheduleinfo.id};console.log(e),this.loader=!0,this.transportservice.deletetravellog(e).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),this.loader=!1,location.reload())})}}numberOnly(t){const e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}closevalidation(){console.log("clr validation"),this.actionform.get("psngrname").clearValidators(),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("nameofdriver").clearValidators(),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("pckuploc").clearValidators(),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").clearValidators(),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").clearValidators(),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").clearValidators(),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("fromDate_rmv").clearValidators(),this.actionform.get("fromDate_rmv").updateValueAndValidity(),this.actionform.get("drop_of_loc").clearValidators(),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.deletedata.get("dreason").clearValidators(),this.deletedata.get("dreason").clearValidators()}cleardates(){$("#fromDate").value(""),$("#toDate").value("")}waitlistnameclk(t){localStorage.setItem("issharedwaitlist",t)}};rV.ctorParameters=()=>[{type:sV},{type:Cu.DatePipe},{type:ay},{type:wh},{type:Uf},{type:R_},{type:Wf.ActivatedRoute},{type:zj},{type:sg}],rV.propDecorators={formDirective:[{type:s.ViewChild,args:["formDirective"]}],table:[{type:s.ViewChild,args:["TABLE"]}],tabGroup:[{type:s.ViewChild,args:["tabGroup"]}],paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}]},rV=Hh([Object(s.Component)({selector:"app-overview",template:'<div class="container body" style="clear: none !important;">\n  <div class="col-sm-12 top10" *ngIf="notassociated">\n    <div class="alert alert-warning">Currently, no agency or programs  are associated with this account. Click on <a style="color: blue;" routerLink="/makearequest">"MAKE A REQUEST"</a> to get started</div>\n  </div>\n  <div class="col-sm-12 top10" *ngIf="clonemessage"><div class="alert alert-success">Request to clone program submitted successfully. You will be notified when your request has been processed by a Helpline administrator.</div>\n  </div>\n  <div class="clearfix" *ngIf="provider">\n    <div class="psd_home_left">\n      <div *ngIf="agencyassociated.length!=0" class="psd_form_section_heading psd_only_program_heading agency_heading overview-agency-heading f-20">\n        <img src="../../../assets/images/icons/agencies.png" alt="icon" />Agencies and their Programs associated with your account</div>\n        <div class="onlyagency" *ngIf="agencyassociated.length!=0">\n        <div *ngFor="let program of agencyassociated" class="top10">\n\n          <div class="agency">\n            <div class="row" *ngIf="program">\n              <div class="col-md-10">\n                <strong class="f-20">{{program.name}} </strong>\n                <span *ngIf="program.orgaddress!=null"> {{program.orgaddress[0].cityname}},</span>\n                <span *ngIf="program.orgaddress!=null"> {{program.orgaddress[0].stateval}}</span>\n                <span *ngIf="program.orgaddress!=null"> {{program.orgaddress[0].postalcode}}</span>\n              </div>\n              <div class="col-md-2">\n                <a style="color:white;float: right;font-size: 13.3px;text-align: center;padding-top: 7px;" [routerLink]="[\'/providerpage\',program.id]">VIEW DETAILS\n                  <i class="fa fa-caret-right"></i>\n                </a>\n              </div>\n            </div>\n          </div>\n          <div style="padding-top:5px;font-style: italic;"><img src="assets/images/waitlist-icon.png" style="padding-right: 6px; height:20px;" />All programs that have a shared waitlist within your agency or other programs will display this icon</div>\n          <div class="psd_agency_program_box" [ngClass]="program.organizationtypeid!=68? \'agency_list\':\'\' ">\n            <div class="psd_program_column_box" *ngIf="program.programList.length!=0">\n              <div class="psd_th clearfix">\n                <div class="psd_col_th psd_program_name_th">Program</div>\n                <div class="psd_col_th psd_program_waitlist_name_th">Waitlist Name</div>\n                <div class="psd_col_th psd_program_waitlist_num_th" style="width: 30%;">Waiting</div>\n                \x3c!--<div class="psd_col_th psd_program_status_th">Status</div>--\x3e\n              </div>\n              <div class="psd_tr clearfix overview-tr" *ngFor="let proglist of program.programList">\n\n\n                <div class="psd_col_td psd_program_name_td">\n                  <span class="psd_program_name">\n                    <a [routerLink]="[\'/providerpage\',proglist.id]">{{proglist.name}}</a>\n                  </span>\n\n                  <span class="psd_program_address" *ngIf="proglist.orgaddress!=null">{{proglist.orgaddress[0].street}}\n                    <br>{{proglist.orgaddress[0].cityname}} {{proglist.orgaddress[0].stateval}} {{proglist.orgaddress[0].postalcode}}</span>\n                </div>\n\n\n                <div class="psd_col_td psd_program_waitlist_name_td text-center">\n                  <br>\n                  <div *ngIf="proglist.orgpermission.admin==false && proglist.orgpermission.waitlist==false;else elseblock1">\n                    <div *ngFor="let data of proglist.waitlistcounts"> <span>Not authorized<br><br><br><br></span></div>\n                   \n                  </div>\n                  <ng-template #elseblock1>\n                  <div *ngIf="proglist.waitlistcounts">\n                    \x3c!-- <span *ngFor=\'let data of proglist.waitlistcounts\'>\n\n                      <a [routerLink]="[\'/waitlist\',data.waitlistref]">{{data.waitlistname}}</a><br><br><br><br>\n                    </span> --\x3e\n                    <span *ngFor=\'let data of proglist.waitlistcounts\'>\n                        <img src="assets/images/waitlist-icon.png" *ngIf="data.issharedwaitlist" style="padding-right: 6px; height:20px;" />\n                        <a [routerLink]="[\'/waitlist\',data.waitlistref]" (click)="waitlistnameclk(data.issharedwaitlist)">{{data.waitlistname}}</a><br><br><br><br>\n                      </span>\n                  </div>\n                  <div *ngIf=" proglist.waitlistcounts==null">\n                    <span>Not created<br><br><br><br></span>\n                  </div>\n                  <div *ngIf="proglist.waitlistcounts && proglist.waitlistcounts.length==0">\n                    <span>Not created<br><br><br><br></span>\n                  </div>\n                </ng-template>\n                </div>\n\n\n\n                <div class="psd_col_td psd_program_waitlist_num_td text-center" style="width: 30%;"> \n                  <div *ngIf="proglist.orgpermission.admin==false && proglist.orgpermission.waitlist==false;else elseblock2">\n                    <div *ngFor="let data of proglist.waitlistcounts"> <span>Not authorized<br><br><br><br></span></div>\n                  </div>                \n                 <ng-template #elseblock2>\n                  <div *ngIf="proglist.waitlistcounts">\n                    <br>\n                    <span *ngFor=\'let data of proglist.waitlistcounts\'>{{data.waitlistcount}}<br><br><br><br></span>\n                  </div>\n                  <div class="mt-5" *ngIf="proglist.waitlistcounts==null">\n                    <span>Not applicable<br><br><br><br></span>\n                  </div>\n                  <div class="mt-5" *ngIf="proglist.waitlistcounts && proglist.waitlistcounts.length==0">\n                    <span>Not applicable<br><br><br><br></span>\n                  </div>\n                 </ng-template>\n                </div>\n                \x3c!--<div class="psd_col_td psd_program_status_td text-center">\n                  <div *ngIf="program.approvalstatus.valueen==\'Approved\'">\n                    <div *ngFor="let data of proglist.waitlistcounts">\n                    <img src=\'../../../assets/images/icons/approved.png\'>\n                  <span >Approved</span><br><br>\n                </div>\n                  <div *ngIf="proglist.waitlistcounts.length==0">\n                    <img src=\'../../../assets/images/icons/approved.png\'>\n                <span >Approved</span><br><br>\n                  </div>\n                  </div>\n                  <div *ngIf="program.approvalstatus.valueen==\'Pending\'">\n                    <div *ngFor="let data of proglist.waitlistcounts">\n                    <img src=\'../../../assets/images/icons/pending.png\'>\n                  <span >Pending</span><br><br>\n                </div>\n                <div *ngIf="proglist.waitlistcounts.length==0">\n                  <img src=\'../../../assets/images/icons/pending.png\'>\n                  <span >Pending</span><br><br>\n                </div>\n                  </div>\n                  <div *ngIf="program.approvalstatus.valueen==\'Rejected\'">\n                    <div *ngFor="let data of proglist.waitlistcounts">\n                    <img src=\'../../../assets/images/icons/denied.png\'>\n                  <span >Denied</span><br><br>\n                </div>\n                <div *ngIf="proglist.waitlistcounts.length==0">\n                  <img src=\'../../../assets/images/icons/denied.png\'>\n                  <span >Denied</span><br><br>\n                </div>\n                  </div>\n                  <div *ngIf="program.approvalstatus.valueen!=\'Approved\' || program.approvalstatus.valueen==\'Pending\' || program.approvalstatus.valueen==\'Rejected\'">\n                    <div *ngFor="let data of proglist.waitlistcounts">\n                    <img src=\'../../../assets/images/icons/pad.png\'>\n                  <span >Unknown</span><br><br>\n                </div>\n                <div *ngIf="proglist.waitlistcounts.length==0">\n                  <img src=\'../../../assets/images/icons/pad.png\'>\n                  <span >Unknown</span><br><br>\n                  </div>                 \n                </div>\n              </div>--\x3e\n            </div>\n          </div>\n        </div>\n        </div>\n      </div>\n      <div *ngIf="programassociated">\n        <div *ngIf="programassociated.length!=0">\n          <div class="psd_tr clearfix">\n            <div class="psd_form_section_heading psd_only_program_heading overview-agency-heading f-20" style="margin-bottom:0px;">\n              <img src="../../../assets/images/icons/programs.png" alt="icon" />Programs associated with your account</div>\n              <div style="padding-top:5px;font-style: italic;"><img src="assets/images/waitlist-icon.png" style="padding-right: 6px; height:20px;" />All programs that have a shared waitlist within your agency or other programs will display this icon</div>\n              \x3c!-- <div><img src="assets/images/waitlist-icon.png" style="padding-right: 6px; height:20px;" />All programs that have a shared waitlist within your agency or other programs will display this icon</div> --\x3e\n            <div class="psd_agency_program_box">\n              <div class="psd_program_column_box">\n                <div class="psd_th clearfix">\n                  <div class="psd_col_th psd_program_name_th">Program</div>\n                  <div class="psd_col_th psd_program_waitlist_name_th">Waitlist Name</div>\n                  <div class="psd_col_th psd_program_waitlist_num_th" style="width: 30%;">Waiting</div>\n                  \x3c!-- <div class="psd_col_th psd_program_status_th">Status</div> --\x3e\n                </div>\n               \n                \x3c!-- <div *ngIf="program.organizationtypeid !=1"> --\x3e\n                  <div class="psd_tr clearfix" *ngFor="let program of programassociated">\n                    <div class="psd_col_td psd_program_name_td">\n                      <span class="psd_program_name">\n                        <a [routerLink]="[\'/providerpage\',program.id]">{{program.name}}</a>\n                      </span>\n                      <span class="psd_program_address" *ngIf="program.orgaddress!=null">{{program.orgaddress[0].street}}\n                        <br>{{program.orgaddress[0].cityname}} {{program.orgaddress[0].stateval}} {{program.orgaddress[0].postalcode}}</span>\n                    </div>\n                    <div class="psd_col_td psd_program_waitlist_name_td text-center">\n                      <div *ngIf="program.orgpermission.admin==false && program.orgpermission.waitlist==false;else elseblock1">\n                        <span>Not authorized<br><br><br><br></span>\n                      </div>\n                      <ng-template #elseblock1>\n                     <div> <span *ngFor=\'let data of program.waitlistcounts\'>\n                      <img src="assets/images/waitlist-icon.png" *ngIf="data.issharedwaitlist" style="padding-right: 6px; height:20px;" /><a [routerLink]="[\'/waitlist\',data.waitlistref]" (click)="waitlistnameclk(data.issharedwaitlist)">{{data.waitlistname}}</a><br><br><br><br>\n                    </span></div>\n                    \n                      <div *ngIf="program.waitlistcounts && program.waitlistcounts.length==0">\n                        <span>Not created<br><br><br><br></span>\n                      </div>\n                      <div  *ngIf="program.waitlistcounts==null">\n                        <span>Not created<br><br><br><br></span>\n                      </div>\n                    </ng-template>\n                    </div>\n                    <div class="psd_col_td psd_program_waitlist_num_td text-center" style="width: 30%;">\n                      <div *ngIf="program.orgpermission.admin==false && program.orgpermission.waitlist==false;else elseblock2">\n                        <span>Not authorized<br><br><br><br></span>\n                      </div>\n                      <ng-template #elseblock2>\n                        <div *ngIf="program.waitlistcounts" class="d-count-wl">\n                          <span *ngFor=\'let data of program.waitlistcounts\'>{{data.waitlistcount}}<br><br><br><br></span>\n                        </div>\n                        <div class="mt-5" *ngIf="program.waitlistcounts==null">\n                          <span>Not applicable<br><br><br><br></span>\n                        </div>\n                        <div class="mt-5" *ngIf="program.waitlistcounts && program.waitlistcounts.length==0">\n                          <span>Not applicable<br><br><br><br></span>\n                        </div>\n                      </ng-template>\n                    </div>\n\n\n                    \x3c!--<div class="psd_col_td psd_program_status_td text-center">\n                      \n                      <div *ngIf="program.approvalstatus.valueen==\'Approved\'">\n                        <div *ngFor="let data of program.waitlistcounts">\n                        <img src=\'../../../assets/images/icons/approved.png\'>\n                      <span >Approved</span><br><br>\n                    </div>\n                    <div *ngIf="program.waitlistcounts.length==0">\n                      <img src=\'../../../assets/images/icons/approved.png\'>\n                  <span >Approved</span><br><br>\n                    </div>\n                      </div>\n                      <div *ngIf="program.approvalstatus.valueen==\'Pending\'">\n                        <div *ngFor="let data of program.waitlistcounts">\n                        <img src=\'../../../assets/images/icons/pending.png\'>\n                      <span >Pending</span><br><br>\n                    </div>\n                    <div *ngIf="program.waitlistcounts.length==0">\n                      <img src=\'../../../assets/images/icons/pending.png\'>\n                      <span >Pending</span><br><br>\n                    </div>\n                      </div>\n                      <div *ngIf="program.approvalstatus.valueen==\'Rejected\'">\n                        <div *ngFor="let data of program.waitlistcounts">\n                        <img src=\'../../../assets/images/icons/denied.png\'>\n                      <span >Denied</span><br><br>\n                    </div>\n                    <div *ngIf="program.waitlistcounts.length==0">\n                      <img src=\'../../../assets/images/icons/denied.png\'>\n                      <span >Denied</span><br><br>\n                    </div>\n                      </div>\n                      <div *ngIf="program.approvalstatus.valueen!=\'Approved\' || program.approvalstatus.valueen==\'Pending\' || program.approvalstatus.valueen==\'Rejected\'">\n                        <div *ngFor="let data of program.waitlistcounts">\n                        <img src=\'../../../assets/images/icons/pad.png\'>\n                      <span >Unknown</span><br><br>\n                    </div>\n                    <div *ngIf="program.waitlistcounts.length==0">\n                      <img src=\'../../../assets/images/icons/pad.png\'>\n                      <span >Unknown</span><br><br>\n                    </div>\n                      </div>\n                     \n                    </div>--\x3e\n                  </div>\n                \x3c!-- </div> --\x3e\n                \n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n      \x3c!-- <div class="psd_event_box event-margin">\n        <iframe class="events_iframe" src="https://dev-helplinema.pantheonsite.io/oracle-events/" style="height:450px;"></iframe>\n      </div> --\x3e\n  </div>\n    <div class="psd_home_right">\n      <div class="psd_side_box psd_blue">\n        <div>Questions on how to use the Portal?</div>\n        <a href="https://helplinema.org/wp-content/uploads/2017/12/Provider-Portal-Instructions.pdf" target="_blank" class="psd_side_box_anchor">Click here for instructions\n          <i class="fa fa-caret-right">&nbsp;</i>\n        </a>\n      </div>\n      <div class="psd_side_box psd_purple">\n        <div style="font-size:30px;">Residential Waitlist Tutorial Videos</div>\n        <p  id="video-header">Click the links below to view Waitlist tutorial videos</p>\n        <h5 class="video-head">Adding client from Screening log <i _ngcontent-wgy-c4="" class="fa fa-caret-right">&nbsp;</i></h5>\n        <video class="rwms-videos" controls width="200" poster="../../../assets/images/video-cover1.PNG">\n          <source src="https://mahelpline.blob.core.windows.net/public/MA_Training/adding_client_from_screening_log_to_waitlist.mp4" type="video/mp4">\n        </video>\n        <h5 class="video-head">Removing client from Screening log <i _ngcontent-wgy-c4="" class="fa fa-caret-right">&nbsp;</i></h5>\n        <video class="rwms-videos" controls width="200" poster="../../../assets/images/video-cover2.PNG">\n            <source src="https://mahelpline.blob.core.windows.net/public/MA_Training/Removing_client_from_screening_log.mp4" type="video/mp4">\n        </video>\n        <h5 class="video-head">Removing client from Waitlist <i _ngcontent-wgy-c4="" class="fa fa-caret-right">&nbsp;</i></h5>\n        <video class="rwms-videos" controls width="200" poster="../../../assets/images/video-cover3.PNG">\n            <source src="https://mahelpline.blob.core.windows.net/public/MA_Training/Removing_client_from_waitlist.mp4" type="video/mp4">\n        </video>\n        \x3c!-- <a href="https://helplinema.org/wp-content/uploads/2018/04/2018-02-28-15.03-Waitlist-demo-test.mp4" target="_blank" class="psd_side_box_anchor">To view a demo of the RWMS, click here \n          <i class="fa fa-caret-right">&nbsp;</i>\n        </a>--\x3e\n\n        \x3c!-- <div>RWMS Q&amp;A</div>\n        <a href="https://helplinema.org/wp-content/uploads/2018/04/MA-Residential-Waitlist-Management-System-QA.pdf" target="_blank"\n          class="psd_side_box_anchor">For the RWMS Q&amp;A, click here\n          <i class="fa fa-caret-right">&nbsp;</i>\n        </a> --\x3e\n      </div>\n      <div class="psd_side_box psd_cream">\n        <iframe class="bsas_iframe" src="https://dev-helplinema.pantheonsite.io/oracle-key-topics/" style="height: 350px;"></iframe>\n      </div>\n\n      <div class="psd_side_box psd_cream">\n        <iframe class="key_topics_iframe" src="https://dev-helplinema.pantheonsite.io/oracle-bsas-update/" style="height: 435px;"></iframe>\n      </div>\n    </div>\n\n    \x3c!-- Model popup for Schedule function start --\x3e\n    <div class="modal fade" id="travellogSchedule" tabindex="-1">\n      <div class="modal-dialog">\n        <div class="modal-content">\n          <form id="trans_data_schedule_form">\n            <div class="modal-header">\n              <button type="button" class="close" data-dismiss="modal">\n                <span>&times;</span>\n              </button>\n            </div>\n            <div class="modal-body">\n\n            </div>\n          </form>\n        </div>\n      </div>\n    </div>\n\n    \x3c!-- Model popup for edit function  --\x3e\n    <div class="modal fade" id="travellogedit" tabindex="-1">\n      <div class="modal-dialog">\n        <div class="modal-content">\n          <form id="trans_data_update_form">\n            <div class="modal-header">\n              <button type="button" class="close" data-dismiss="modal">\n                <span>&times;</span>\n              </button>\n              <h4 class="modal-title">Ride Information</h4>\n            </div>\n            <div class="modal-body">\n              <div class="row">\n                <div class="col-md-12">\n                  <div class="form-group form-inline">\n                    <label for="programname">Program Name: </label>\n                    <input type="text" id="programname" name="programname" class="form-control" readonly="readonly" />\n                  </div>\n                </div>\n\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="drivername">Name of the Driver: </label>\n                    <input type="text" id="drivername" name="drivername" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="travelname">Passenger Name: </label>\n                    <input type="text" id="travelname" name="travelname" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="tphone">Caller Phone#: </label>\n                    <input type="text" id="tphone" name="tphone" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="pickloc">Pickup Location: </label>\n                    <input type="text" id="pickloc" name="pickloc" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="pickcity">Pickup City: </label>\n                    <input type="text" id="pickcity" name="pickcity" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="pkp_date">Pickup Date Time: </label>\n                    <div class=\'input-group date\' id=\'pickupdatetimepicker\'>\n                      <input type=\'text\' id="pkp_date" name="pkp_date" class="form-control w-100" />\n                      <span class="input-group-addon">\n                        <span class="glyphicon glyphicon-calendar"></span>\n                      </span>\n                    </div>\n\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="droploc">Drop off Location: </label>\n                    <input type="text" id="droploc" name="droploc" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12">\n                  <div class="form-group form-inline">\n                    <label for="datecreated">Created Date: </label>\n                    <input type="text" id="datecreated" name="datecreated" class="form-control" disabled="disabled" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="status">Status: </label>\n                    <select name="status" id="status" class="form-control">\n                      <option value="">Select One</option>\n                      <option value="1">New</option>\n                      <option value="2">Scheduled</option>\n                      <option value="4">Completed</option>\n                      <option value="5">Incomplete</option>\n                      <option value="3">Cancelled</option>\n                    </select>\n                  </div>\n                </div>\n                <div class="col-md-12 hide hide">\n                  <div class="form-group form-inline">\n                    <label for="dropdate">Drop off Date Time: </label>\n                    <div class=\'input-group date\' id=\'dropdatetimepicker\'>\n                      <input type=\'text\' id="dropdate" name="dropdate" class="form-control w-100" />\n                      <span class="input-group-addon">\n                        <span class="glyphicon glyphicon-calendar"></span>\n                      </span>\n                    </div>\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="mileage">Mileage: </label>\n                    <input type="text" id="mileage" name="mileage" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="reason">Reason: </label>\n                    <input type="text" id="reason" name="reason" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12 hide">\n                  <div class="form-group form-inline">\n                    <label for="comments">Comments: </label>\n                    <input type="text" id="comments" name="comments" class="form-control" />\n                  </div>\n                </div>\n                <div class="col-md-12">\n                  <div class="form-group form-inline">\n                    <label for="comments">Submitted by: </label>\n                    <input type="text" disabled="disabled" id="submittedby" name="submittedby" class="form-control" />\n                  </div>\n                </div>\n              </div>\n            </div>\n            <div class="modal-footer" style="text-align:center;">\n              <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n              <button class="btn btn-primary" id="e_save">Save</button>\n              <input type="hidden" name="t_id" id="t_id" />\n            </div>\n          </form>\n        </div>\n      </div>\n    </div>\n  \n  <div class="clearfix" id="transportation" *ngIf="transportation">\n    <div class="col-sm-12" style="margin-top: 5px;">\n      <div class="page_heading col mb-10"> Transportation New/Scheduled Rides and Completed Rides information</div>\n      <mat-tab-group class="tab-group" mat-align-tabs="start" #tabGroup>\n        <mat-tab label="NEW / SCHEDULED RIDES">\n          <div style="margin:16px 0 10px 0;text-align: center;">\n            From:&nbsp;&nbsp;\n            <input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"\n              maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> To:&nbsp;&nbsp;\n            <input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10"\n              style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp;\n            <button class="btn btn-success req-btn" id="people_in_slog_t">Search</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n            <button type="reset" class="btn btn-warning req-btn" id="people_in_sl_clr_t">Clear</button>\n          </div>\n          <button class="btn purple-bg pull-right addperson_btn" style="margin-top: 14px !important;" [useExistingCss]="true" printSectionId="print-section"\n            ngxPrint>Print</button>\n          <button class="btn purple-bg pull-right addperson_btn" style="margin-top: 14px !important;" (click)="exportAsExcel()">Export to Excel</button>\n          \x3c!-- <div class="" align="right" style="width:100%;">\n              <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();">Export to Excel</button>\n              <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n               </div> --\x3e\n          <mat-form-field style="float: right; margin-right: 14px;">\n            <mat-label>Search</mat-label>\n            <input matInput (keyup)="applyFilter($event)" placeholder="" #input>\n          </mat-form-field>\n          <div class="mat-elevation-z8" id="print-section" #TABLE>\n            <table *ngIf="dataSource && users.length>0" style="width:100%;" mat-table [dataSource]="dataSource" matSort class="custom-table"\n            >\n                <ng-container matColumnDef="id">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n                    \x3c!-- <td mat-cell *matCellDef="let element; let id = index;"> {{row.id}} </td> --\x3e\n                    <td mat-cell *matCellDef="let row"> {{row.id}} </td>\n                </ng-container>\n                \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="created_date">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>Created Date </th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.created_date}} </td>\n              </ng-container>\n\n              \x3c!-- Progress Column --\x3e\n              <ng-container matColumnDef="passanger_name">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Passenger Name</th>\n                <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.passanger_name}} </td>\n              </ng-container>\n              <ng-container matColumnDef="uniqueidentifier">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Unique Identifier</th>\n                <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.uniqueidentifier}} </td>\n              </ng-container>\n              \x3c!-- Color Column --\x3e\n              <ng-container matColumnDef="phone_number">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Phone Number </th>\n                <td style="width: 120px;" mat-cell *matCellDef="let row">\n                  <span *ngIf="(row.phone_number!=\'\')"> {{row.phone_number}}</span>\n                </td>\n              </ng-container>\n              <ng-container matColumnDef="pickup_time">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Time</th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.pickup_time}} </td>\n              </ng-container>\n              <ng-container matColumnDef="pickup_location">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup<br> Location</th>\n                <td style="width: 150px;" mat-cell *matCellDef="let row"> {{row.pickup_location}} </td>\n              </ng-container>\n              <ng-container matColumnDef="drop_of_location">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Drop off <br>Location</th>\n                <td style="width: 150px;" mat-cell *matCellDef="let row"> {{row.drop_of_location}} </td>\n              </ng-container>\n              <ng-container matColumnDef="notes">\n                <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Notes</th>\n                <td mat-cell *matCellDef="let row"> {{row.notes}} </td>\n              </ng-container>\n              <ng-container matColumnDef="status">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Status</th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.status}} </td>\n              </ng-container>\n              <ng-container matColumnDef="actions">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Actions</th>\n                <td mat-cell *matCellDef="let row" id="actionbtns" class="action-buttons">\n                  <button *ngIf="(row.status==\'New\')" data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" class="btn btn-sm bg-navy"\n                    (click)="addschedule(completecontent,row.ref)">Schedule</button>\n                  <button *ngIf="(row.status==\'Scheduled\')" data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" class="btn btn-sm btn-success"\n                    (click)="completerides(completecontent,row.ref)">Complete</button>\n                  <button *ngIf="(row.status==\'Scheduled\')" data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" (click)="Incompleterides(completecontent,row.ref)"\n                    class="btn btn-sm btn-warning wl_admit_again">Incomplete</button>\n                  <button *ngIf="(row.status==\'Scheduled\')" data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" (click)="cancelride(completecontent,row.ref)"\n                    class="btn btn-sm btn-danger wl_admit_again">Cancel</button>\n                  <button *ngIf="(row.status==\'New\' || row.status==\'Scheduled\')" data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570"\n                    (click)="addedit(completecontent,row.ref);" class="btn btn-sm purple-bg wl_admit_again">Edit</button>\n                  <button *ngIf="(row.status==\'New\')"  data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570"\n                    (click)="deleteride(deletecontent,row.ref);" class="btn btn-sm  btn-danger">Delete</button>\n\n                </td>\n              </ng-container>\n                <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                \x3c!-- Row shown when there is no matching data. --\x3e\n                <div *ngIf="users.length>0">\n                <tr class="mat-row" *matNoDataRow>\n                \x3c!-- <td class="mat-cell" colspan="11">No Record Found"{{input.value}}"</td> --\x3e\n                <td class="mat-cell" colspan="11">No Record Found</td>\n                </tr>\n              </div>\n            </table>\n            <table style="width:100%;background-color: #fff;">\n              <thead *ngIf="users.length === 0">\n                              <tr style="background-color:#efefef;">\n                                  <th style="width:50px;">Id#</th>\n                                  <th>Created Date</th>\n                                  <th>Passenger Name</th>\n                                  <th>Unique Identifier</th>\n                                  <th>Phone Number</th>\n                                  <th >Pickup Time</th>\n                                  <th>Pickup Location</th>\n                                  <th>Drop off Location</th>\n                                  <th style="width:97px;">Status</th>\n                                  <th style="width:88px;">Actions</th>\n                              </tr>\n                          </thead>\n                          <tr style="background:#fff;" class="mat-row" *ngIf="users.length === 0"><td class="mat-cell"  colspan="10" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px; font-size: 14px !important; font-weight: 600;">\n                            <span *ngIf="!max_loader">No results found</span>\n                              <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span>\n                          </td>\n                          </tr>\n                      </table> \n            <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n            </div>\n        </mat-tab>\n        <mat-tab label="COMPLETED RIDES">\n          <app-completed-rides></app-completed-rides>\n        </mat-tab>\n        <mat-tab label="INCOMPLETE RIDES">\n          <app-incompleted-rides></app-incompleted-rides>\n        </mat-tab>\n        <mat-tab label="CANCELLED RIDES">\n          <app-cancelled-rides></app-cancelled-rides>\n        </mat-tab>\n        <mat-tab label="DELETED RIDES">\n          <app-deleted-rides></app-deleted-rides>\n        </mat-tab>\n      </mat-tab-group>\n      \x3c!-- <div class="tab" id="target" style="display: flex;">\n            <button class="tablinks" data-tab="0" (click)="openTab(\'defaultOpen\', \'screeninglog\')" id="defaultOpen">SCREENING LOG (in last 30 Days)</button>\n            <button class="tablinks" data-tab="1" id="tablink2" (click)="openTab(\'tablink2\', \'peoplewaitlist\')">PEOPLE ON WAITLIST (in last 30 Days)</button>\n            <button class="tablinks" data-tab="2" id="tablink3" (click)="openTab(\'tablink3\', \'peopleadmitted\')">PEOPLE ADMITTED (in last 30 Days)</button>                      \n            <button class="tablinks" data-tab="3" id="tablink4" (click)="openTab(\'tablink4\', \'peopleremoved\')">PEOPLE REMOVED (in last 30 Days)</button>                    \n          </div> --\x3e\n      <div id="screeninglog" class="tabcontent" style="display: none;">\n        <p style="padding: 2px 230px;">Search by screening date\n          <span style="margin-left: 100px;">\n            \x3c!-- <b>Note:</b> These records defaulted to 30 days.</span> --\x3e\n          </span>\n        </p>\n        <div align="center" style="margin-top:5px;">\n          From:&nbsp;&nbsp;\n          <input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"\n            maxlength="10" style="width:20%;" bsDatepicker placeholder="MM/DD/YYYY"> To:&nbsp;&nbsp;\n          <input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10"\n            style="width:20%;" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp;\n          <button class="btn btn-success req-btn" id="people_in_slog">Search</button>\n          <button type="button" class="btn btn-warning req-btn" id="people_in_sl_clr">Clear</button>\n        </div>\n        <button class="btn purple-bg pull-right addperson_btn" (click)="addPerson()">\n          <i class="fa fa-user-plus" style="margin-right: 5px;"></i>Add a Person</button>\n        <div id="wl_screening_admission1_wrapper" class="dataTables_wrapper no-footer">\n          <div class="dt-buttons">\n            <button class="dt-button buttons-excel" tabindex="0" aria-controls="wl_screening_admission1" type="button" (click)="export();">\n              <span>Export report for last 30 days</span>\n            </button>\n          </div>\n          <table id="wl_screening_admission1" class="table table-bordered table-sm psd_agency_program_box table_manage_users dataTable ">\n            <thead>\n              <tr>\n                <th class="mytooltip">Placement on log</th>\n                <th class="mytooltip">Full Name</th>\n                <th class="mytooltip">Date of Birth</th>\n                <th class="mytooltip">Date Added</th>\n                <th class="mytooltipexp"># of days waiting</th>\n                <th class="mytooltipexp">Date Updated</th>\n                <th class="mytooltipexp">Actions</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr class="psd_tr odd" role="row">\n                <td class="psd_col_td11 text-center" style="width: 12%;">1</td>\n                <td class="psd_col_td11" style="width: 12%;">\n                  <p data-toggle="modal" data-cwlid="" data-cid="21412" href="javascript:void(0);">DONNA LONNA</p>\n                </td>\n                <td class="psd_col_td11 text-center" style="width: 11%;">01/01/2001</td>\n                <td class="psd_col_td11 text-center sorting_1" style="width: 10%;">11/20/2020</td>\n                <td class="psd_col_td11 text-center" style="width: 15%;">10</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11/20/2020</td>\n                <td class="psd_col_td11 text-center" style="width:12%;">\n                  <button class="btn btn-sm bg-secondary">Added to waitlist</button>\n                </td>\n              </tr>\n              <tr class="psd_tr odd" role="row">\n                <td class="psd_col_td11 text-center" style="width: 12%;">2</td>\n                <td class="psd_col_td11" style="width: 12%;">\n                  <p data-toggle="modal" data-cwlid="" data-cid="21412" href="javascript:void(0);">DONNA LONNA</p>\n                </td>\n                <td class="psd_col_td11 text-center" style="width: 11%;">01/01/2001</td>\n                <td class="psd_col_td11 text-center sorting_1" style="width: 10%;">11/20/2020</td>\n                <td class="psd_col_td11 text-center" style="width: 15%;">10</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11/20/2020</td>\n                <td class="psd_col_td11 text-center" style="width:12%;">\n                  <button class="btn btn-sm green-bg move_to_wl" (click)="addWaitlist();">Added to waitlist</button>\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n        <div style="display: none" id="all_slog_data">\n          <div>Table</div>\n        </div>\n      </div>\n      <div id="peoplewaitlist" class="tabcontent" style="display: none;">\n        <button class="btn purple-bg pull-right addperson_waitlistbtn" (click)="addPerson2();">\n          <i class="fa fa-user-plus" style="margin-right: 5px;"></i>Add a Person</button>\n        \x3c!-- <span style="margin-left: 40%">Note :Records defaulted to 30 days</span>  --\x3e\n        <div class="dataTables_wrapper no-footer">\n          <table id="wl_pending_admission" class="table table-bordered table-sm psd_agency_program_box table_manage_users dataTable no-footer"\n            role="grid">\n            <thead>\n              <tr role="row">\n                <th class="mytooltip sorting_asc" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-sort="ascending"\n                  aria-label="Placement on wailtlist: activate to sort column descending" style="width:12%;">Placement on wailtlist</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Full Name: activate to sort column ascending"\n                  style="width: 0px;">Full Name</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Date of Birth: activate to sort column ascending"\n                  style="width: 0px;">Date of Birth</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Priority Population: activate to sort column ascending"\n                  style="width: 0px;">Priority Population</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Bed Option: activate to sort column ascending"\n                  style="width: 0px;">Bed Option</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Status: activate to sort column ascending"\n                  style="width: 0px;">Status</th>\n                <th class="mytooltipexp sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Date Added: activate to sort column ascending"\n                  style="width: 0px;">Date Added</th>\n                <th class="mytooltipexp sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="# of days waiting: activate to sort column ascending"\n                  style="width: 0px;"># of days waiting</th>\n                <th class="mytooltipexp sorting" tabindex="0" aria-controls="wl_pending_admission" rowspan="1" colspan="1" aria-label="Date Updated: activate to sort column ascending"\n                  style="width: 0px;">Date Updated</th>\n                <th class="mytooltipexp sorting_disabled" rowspan="1" colspan="1" aria-label="Actions" style="width: 10%;">Actions</th>\n              </tr>\n            </thead>\n            <tbody id="sortable_pending_admission">\n              <tr class="psd_tr clearfix1 ui-sortable-handle odd" data-priority="5" role="row">\n                <td class="psd_col_td11 text-center sorting_1" style="width: 5%;">1</td>\n                <td class="psd_col_td11" style="width: 12%;">\n                  <a (click)="waitlistInfo();" data-cwlid="11569" data-cid="21404" href="javascript:void(0)" class="mytooltip2">ANA FIELD</a>\n                </td>\n                <td class="psd_col_td11 text-center" style="width: 11%;">05/06/1976</td>\n                <td class="psd_col_td11 text-center is_pp_single" style="width: 10%;">Pregnant woman</td>\n                <td class="psd_col_td11 text-center" style="width: 9%;">Medicaid</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">Waiting</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11/19/2020</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11/20/2020</td>\n                <td class="psd_col_td11" style="width: 10%;">\n                  <button data-wlid="163" data-name="ANA FIELD" data-cid="21404" data-cwlid="11569" class="btn btn-sm green-bg wl_admit updown_caret_sibling">Admit</button>&nbsp;\n                  <button data-wlid="163" data-admission="4" data-name="ANA FIELD" data-cid="21404" data-cwlid="11569" (click)="removePerson();"\n                    class="btn btn-sm btn-danger wl_remove">Remove</button>\n                </td>\n              </tr>\n              <tr class="psd_tr clearfix1 ui-sortable-handle odd" data-priority="5" role="row">\n                <td class="psd_col_td11 text-center sorting_1" style="width: 5%;">2</td>\n                <td class="psd_col_td11" style="width: 12%;">\n                  <a (click)="waitlistInfo();" data-cwlid="11569" data-cid="21404" href="javascript:void(0)" class="mytooltip2">ANA FIELD</a>\n                </td>\n                <td class="psd_col_td11 text-center" style="width: 11%;">05/06/1976</td>\n                <td class="psd_col_td11 text-center is_pp_single" style="width: 10%;">Pregnant woman</td>\n                <td class="psd_col_td11 text-center" style="width: 9%;">Medicaid</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">Waiting</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11/19/2020</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11</td>\n                <td class="psd_col_td11 text-center" style="width: 10%;">11/20/2020</td>\n                <td class="psd_col_td11" style="width: 10%;">\n                  <button data-wlid="163" data-name="ANA FIELD" data-cid="21404" data-cwlid="11569" class="btn btn-sm green-bg wl_admit updown_caret_sibling">Admit</button>&nbsp;\n                  <button data-wlid="163" data-admission="4" data-name="CARLA MORENO" data-cid="21409" data-cwlid="11573" class="btn btn-sm btn-danger wl_remove">Remove</button>\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n      </div>\n      <div id="peopleadmitted" class="tabcontent" style="display: none;">\n        <p style="padding: 2px 230px;">Search by date admitted</p>\n        <div align="center" style="margin-top:15px;">\n          From:&nbsp;&nbsp;\n          <input type="text" name="fromDate" id="fromDate" class="date-picker-min hasDatepicker" style="width:20%;" (keypress)="keyPress($event)"\n            maxlength="10" placeholder="MM/DD/YYYY" bsDatepicker> To:&nbsp;&nbsp;\n          <input type="text" name="toDate" id="toDate" class="date-picker-max hasDatepicker" style="width:20%;" (keypress)="keyPress($event)"\n            maxlength="10" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp;\n          <button class="btn btn-success req-btn" id="people_in_admit">Search</button>\n          <button type="button" class="btn btn-warning req-btn" id="people_in_admit_clr" (click)="cleardates()">Clear</button>\n        </div>\n        \x3c!-- <span class="notes-text t-116">Note : Use the arrows next to the fields below to sort the data</span> --\x3e\n        <div id="wl_admitted_wrapper" class="dataTables_wrapper no-footer">\n          <div class="dt-buttons">\n            <button class="dt-button buttons-excel" tabindex="0" aria-controls="wl_admitted" type="button">\n              <span>Export to Excel</span>\n            </button>\n          </div>\n          <table id="wl_admitted" class="table table-bordered table-sm psd_agency_program_box table_manage_users dataTable no-footer"\n            role="grid">\n            <thead>\n              <tr role="row">\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_admitted" rowspan="1" colspan="1" aria-label="Full Name: activate to sort column ascending"\n                  style="width: 0px;">Full Name</th>\n                <th class="mytooltip sorting_desc" tabindex="0" aria-controls="wl_admitted" rowspan="1" colspan="1" aria-label="Date of Birth: activate to sort column ascending"\n                  style="width: 0px;" aria-sort="descending">Date of Birth</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_admitted" rowspan="1" colspan="1" aria-label="Priority Population: activate to sort column ascending"\n                  style="width: 0px;">Priority Population</th>\n                <th class="mytooltipexp sorting" tabindex="0" aria-controls="wl_admitted" rowspan="1" colspan="1" aria-label="Date Admitted: activate to sort column ascending"\n                  style="width: 0px;">Date Admitted</th>\n                <th class="mytooltipexp sorting_disabled" rowspan="1" colspan="1" aria-label="Actions" style="width: 0px;">Actions</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr class="psd_tr odd" role="row">\n                <td class="psd_col_td11" style="width:15%;">\n                  <a href="javascript:void(0);" (click)="waitlistInfo();" class="mytooltip2">BILL FLEMING</a>\n                </td>\n                <td class="psd_col_td11 text-center sorting_1" style="width:15%;">09/23/1990</td>\n                <td class="psd_col_td11 text-center is_pp_single" style="width:20%;"></td>\n                <td class="psd_col_td11 text-center" style="width:15%;">11/19/2020 12:42</td>\n                <td class="psd_col_td11 text-center" style="width:20%;">\n                  <button data-wlid="163" data-name="BILL FLEMING" data-cid="21406" data-cwlid="11571" class="btn btn-sm green-bg wl_admit_again">Move to Waitlist</button>\n                </td>\n              </tr>\n              <tr class="psd_tr even" role="row">\n                <td class="psd_col_td11" style="width:15%;">\n                  <a (click)="waitlistInfo();" href="javascript:void(0);" class="mytooltip2">FRAN DAWSON</a>\n                </td>\n                <td class="psd_col_td11 text-center sorting_1" style="width:15%;">06/09/1976</td>\n                <td class="psd_col_td11 text-center is_pp_single" style="width:20%;">None of these</td>\n                <td class="psd_col_td11 text-center" style="width:15%;">11/20/2020 10:09</td>\n                <td class="psd_col_td11 text-center" style="width:20%;">\n                  <button data-wlid="163" data-name="FRAN DAWSON" data-cid="21408" data-cwlid="11572" class="btn btn-sm green-bg wl_admit_again">Move to Waitlist</button>\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n        <div class="modal fade" id="show_full_admitted_details" tabindex="-1">\n          <div class="modal-dialog" style="width: 50%">\n            <div class="modal-content">\n              <div class="modal-header">\n                <button type="button" class="close" data-dismiss="modal">\n                  <span>\xd7</span>\n                </button>\n                <h4 class="modal-title">People Admitted</h4>\n              </div>\n              <div class="modal-body">\n                <div>Table</div>\n              </div>\n              <div class="modal-footer" style="text-align:center;">\n                <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div style="display: none" id="all_admit_data">\n          <div>Table</div>\n        </div>\n      </div>\n      <div id="peopleremoved" class="tabcontent" style="display: none;">\n        <div align="center" style="margin-top:15px;">\n          From:&nbsp;&nbsp;\n          <input type="text" name="fromDate_rmv" id="fromDate_rmv" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"\n            maxlength="10" style="width:20%;" placeholder="MM/DD/YYYY" bsDatepicker> To:&nbsp;&nbsp;\n          <input type="text" name="toDate_rmv" id="toDate_rmv" class="date-picker-max hasDatepicker" style="width:20%;" (keypress)="keyPress($event)"\n            maxlength="10" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp;\n          <button class="btn btn-success req-btn" id="people_in_removelist">Search</button>\n          <button type="button" class="btn btn-warning req-btn" id="people_in_removelist_clr">Clear</button>\n        </div>\n        \x3c!-- <span class="notes-text t-116">Note : Use the arrows next to the fields below to sort the data</span> --\x3e\n        <div id="wl_removed_wrapper" class="dataTables_wrapper no-footer">\n          <div class="dt-buttons">\n            <button class="dt-button buttons-excel" tabindex="0" aria-controls="wl_removed" type="button">\n              <span>Export to Excel</span>\n            </button>\n          </div>\n          <table id="wl_removed" class="table table-bordered table-sm psd_agency_program_box table_manage_users dataTable no-footer"\n            role="grid">\n            <thead>\n              <tr role="row">\n                <th class="mytooltip sorting_asc" tabindex="0" aria-controls="wl_removed" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Full Name: activate to sort column descending"\n                  style="width: 0px;">Full Name</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_removed" rowspan="1" colspan="1" aria-label="Date of Birth: activate to sort column ascending"\n                  style="width: 0px;">Date of Birth</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_removed" rowspan="1" colspan="1" aria-label="Priority Population: activate to sort column ascending"\n                  style="width: 0px;">Priority Population</th>\n                <th class="mytooltip sorting" tabindex="0" aria-controls="wl_removed" rowspan="1" colspan="1" aria-label="Removal Reason: activate to sort column ascending"\n                  style="width: 0px;">Removal Reason</th>\n                <th class="mytooltipexp sorting" tabindex="0" aria-controls="wl_removed" rowspan="1" colspan="1" aria-label="Date Removed: activate to sort column ascending"\n                  style="width: 0px;">Date Removed</th>\n                <th class="mytooltipexp sorting_disabled" rowspan="1" colspan="1" aria-label="Actions" style="width: 0px;">Actions</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr class="psd_tr odd" role="row">\n                <td class="psd_col_td11 sorting_1" style="width:15%;">\n                  <a (click)="waitlistInfo();" href="javascript:void(0);" class="mytooltip2">MARY BLUES</a>\n                </td>\n                <td class="psd_col_td11 text-center" style="width:15%;">09/15/1983</td>\n                <td class="psd_col_td11 text-center is_pp_single" style="width:20%;"></td>\n                <td class="psd_col_td11 text-center" style="width:15%;">Admitted at another provider</td>\n                <td class="psd_col_td11 text-center" style="width:15%;">11/12/2020 13:36</td>\n                <td class="psd_col_td11 text-center" style="width:20%;">\n                  <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" class="btn btn-sm green-bg wl_admit_again">Add to Waitlist</button>\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </div>\n        <div class="modal fade" id="show_full_removed_details" tabindex="-1">\n          <div class="modal-dialog" style="width:75%;">\n            <div class="modal-content">\n              <div class="modal-header">\n                <button type="button" class="close" data-dismiss="modal">\n                  <span>\xd7</span>\n                </button>\n                <h4 class="modal-title">People Removed</h4>\n              </div>\n              <div class="modal-body">\n                <div>Table</div>\n              </div>\n              <div class="modal-footer" style="text-align:center;">\n                <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div class="clearfix" *ngIf="citizen">\n    <div class="col-sm-12" style="margin-top: 5px;">\n      <div class="page_heading col mb-10" style="padding-left: 0px; font-size: 48px;"> Saved Searches</div>\n      <div class="line-vt"></div>\n      <div id="requests_tab" class="clearfix">\n        \x3c!-- <ul class="nav nav-tabs" style="float:none;">\n\t\t\t\t\t<li class="active"><a href="#sr_content" data-toggle="tab">Submitted Requests</a></li>\n\t\t\t\t\t<li><a href="#ss_content" data-toggle="tab">Saved Searches</a></li>\n\t\t\t\t</ul> --\x3e\n        <p class="proxima-regular" style="font-size: 18px;">Click on a panel to see more details.</p>\n        <div class="tab-content">\n          <div class="tab-pane active" id="ss_content">\n            \x3c!--<rn:widget path="/custom/hria/citizen_landing" />--\x3e\n            <div class=\'nl-accordion-container\'>\n              <div class="nl-panel-container" *ngIf="savedRequestList">\n                <div *ngFor="let savedRequest of savedRequestList |keyvalue " class="accordion-container">\n                  \x3c!-- <div class="nl-panel-heading" (click)="savedSearch = !savedSearch"> --\x3e\n                  <div class="nl-panel-heading">\n                    Reference Number:{{savedRequest.value[0].referencenumber}} | City: {{savedRequest.value[0].city}}| Radius:{{savedRequest.value[0].radius}}\n                  </div>\n                  \x3c!-- .nl-panel-heading --\x3e\n                  \x3c!-- <div *ngIf="savedSearch"> --\x3e\n                  <div class="nl-container">\n                    <div class="text-right">\n                      <a href="/spa_result/incident_id/{{savedRequest.value[0].incidentid}}" target="_blank">\n                        <i class="fa fa-eye">&nbsp;</i>View Results</a>\n                    </div>\n                    <div class="psd_agency_program_box">\n                      <div class="psd_program_column_box">\n                        <div class="psd_th clearfix">\n                          <div style="width:50%;" class="psd_col_th">Selection Criteria</div>\n                          <div style="width:50%;" class="psd_col_th">Values</div>\n                        </div>\n                      </div>\n                      \x3c!-- .psd_program_column_box --\x3e\n                      <div class="psd_tr clearfix td-font-size" *ngFor="let  sRequest of savedRequest.value">\n                        <div style="width:50%;" class="psd_col_td text-center">\n                          <strong>{{sRequest.recordtype}}</strong>\n                        </div>\n                        <div style="width:50%;" class="psd_col_td text-center">\n                          {{sRequest.attributename}}</div>\n                      </div>\n                    </div>\n                    \x3c!-- .psd_agency_program_box --\x3e\n                  </div>\n                  \x3c!-- .nl-panel-body --\x3e\n                </div>\n              </div>\n            </div>\n          </div>\n          \x3c!-- .tab-pane --\x3e\n        </div>\n        \x3c!-- .tab-content --\x3e\n      </div>\n    </div>\n  </div>\n</div>\n<ng-template #completecontent let-modal>\n  <form [formGroup]="actionform" (ngSubmit)="actionFormSubmit(schedule,complete,incomplete,editlog,cancellog)">\n    <div class="modal-header">\n      <h4 class="modal-title">Ride Information</h4>\n      <button type="button" class="close" aria-label="Close" (click)="closevalidation()"  (click)="modal.dismiss(\'Cross click\')">\n        <span aria-hidden="true">&times;</span>\n      </button>\n    </div>\n    <div class="modal-body">\n      <div class="row"  *ngIf="submitted &&  actionform.invalid">\n        <div class="col-sm-12">\n          <div id="ride_err_location" ><div class="alert alert-danger" >\n            <div  *ngIf="submitted && f.psngrname.invalid">Passenger Name is required</div>\n            <div *ngIf="submitted && f.nameofdriver.invalid">Driver Name is required</div>\n            <div *ngIf="submitted && f.pckuploc.invalid">Pickup Location is required</div>\n            <div *ngIf="submitted && f.pckupdate_time.invalid">Pickup Date Time is required</div>\n            <div *ngIf="submitted && f.drop_of_loc.invalid">Drop-off Location is required</div>\n            <div *ngIf="submitted && f.travelstatus.invalid">Status is required</div>\n            <div *ngIf="submitted && f.mileage.invalid">Mileage is required</div>\n            <div *ngIf="submitted && f.fromDate_rmv.invalid">Drop off Time is required</div>\n          </div>\n        </div>\n        </div>\n      </div>\n      <div class="row form-group">\n\n        <label class="col-md-4 col-form-label" for="programname">Program Name: </label>\n        <div class="col-md-8">\n          <input type="text" id="programname" name="programname" class="form-control" formControlName="programname" readonly="readonly">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="nameofdriver">Name of the Driver:&nbsp;<span *ngIf="complete" class="red ">*</span></label>\n        <div class="col-md-8">\n          <input type="text" id="nameofdriver" name="nameofdriver" class="form-control" formControlName="nameofdriver" [ngClass]="{ \'is-invalid\': submitted && f.nameofdriver.errors }">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="psngrname">Passenger Name:&nbsp;<span class="red ">*</span> </label>\n        <div class="col-md-8">\n          <input type="text" id="psngrname" name="psngrname" class="form-control" formControlName="psngrname" [ngClass]="{ \'is-invalid\': submitted && f.psngrname.errors }">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true || (schedule || editlog) == false ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="callerphone">Passenger Phone#: </label>\n        <div class="col-md-8">\n          <input type="text" id="callerphone" name="callerphone" class="form-control" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="callerphone" [showMaskTyped]="true" [dropSpecialCharacters]="false">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog==true?\'hidden\':\'\'">\n\n        <label class="col-md-4 col-form-label" for="primarysubst">Primary Substance/Concern: </label>\n        <div class="col-md-8">\n          <textarea type="text" id="primarysubst" name="primarysubst" class="form-control" formControlName="primarysubst" readonly></textarea>\n        </div>\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true || (schedule || editlog) == false ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="pckuploc">Pickup Location:&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n          <input type="text" id="pckuploc" name="pckuploc" class="form-control" formControlName="pckuploc" [ngClass]="{ \'is-invalid\': submitted && f.pckuploc.errors }">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true || (schedule || editlog) == false ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="pckupcity">Pickup City: </label>\n        <div class="col-md-8">\n          <input type="text" id="pckupcity" name="pckupcity" class="form-control" formControlName="pckupcity">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true || (schedule || editlog || complete) == false ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="pckupdate_time">Pickup Date Time:&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n          <input [owlDateTimeTrigger]="dt" [owlDateTime]="dt"  formControlName="pckupdate_time"  [ngClass]="{ \'is-invalid\': submitted && f.pckupdate_time.errors }">\n          <owl-date-time #dt [hour12Timer] = "true"></owl-date-time>\n          \x3c!-- <ejs-datetimepicker></ejs-datetimepicker> --\x3e\n          \x3c!-- <mat-form-field>\n            <input matInput type="datetime-local" name="pckupdate_time" formControlName="pckupdate_time">\n          </mat-form-field> --\x3e\n          \x3c!-- <input type="datetime-local"  autocomplete="off" name="fromDate_rmv" id="fromDate_rmv" data-date-start-date="-1w" class="date-picker-min hasDatepicker"  formControlName="pckupdate_time" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog || schedule == true ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="drop_of_loc">Drop off Location:&nbsp;<span *ngIf="complete || incomplete" class="red ">*</span> </label>\n        <div class="col-md-8">\n          <input type="text" id="drop_of_loc" name="drop_of_loc" class="form-control" formControlName="drop_of_loc" [ngClass]="{ \'is-invalid\': submitted && f.drop_of_loc.errors }">\n        </div>\n\n      </div>\n      <div class="row form-group">\n\n        <label class="col-md-4 col-form-label" for="createddate">Created Date: </label>\n        <div class="col-md-8">\n          <input type="text" name="fromDate_rmv" id="fromDate_rmv" class="date-picker-min hasDatepicker" formControlName="createddate"\n            readonly="readonly">\n        </div>\n      </div>\n      <div class="row form-group" [ngClass]="schedule == true ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="travelstatus">Status:&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n          <select class="col-md-5" name="travelstatus" id="travelstatus" class="form-control" formControlName="travelstatus" [ngClass]="{ \'is-invalid\': submitted && f.travelstatus.errors }">\n            <option value="">Select One</option>\n            <option value="1">New</option>\n            <option value="2">Scheduled</option>\n            <option value="4">Completed</option>\n            <option value="1457">Incomplete</option>\n            <option value="3">Cancelled</option>\n            \x3c!-- <option value="1">New</option>\n            <option value="2">Scheduled</option>\n            <option value="4">Completed</option>\n            <option value="5">Incomplete</option>\n            <option value="3">Cancelled</option> --\x3e\n            \x3c!-- <option value="6">Duplicate</option>             --\x3e\n          </select>\n\n        </div>\n      </div>\n      <div class="row form-group" [ngClass]="(cancellog || schedule ) ==true ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="fromDate_rmv">Drop off Date Time:<span *ngIf="complete" class="red ">*</span> </label>\n        <div class="col-md-8">\n          <input [owlDateTimeTrigger]="dt1" [owlDateTime]="dt1" formControlName="fromDate_rmv" [ngClass]="{ \'is-invalid\': submitted && f.fromDate_rmv.errors }">\n          <owl-date-time #dt1 [hour12Timer] = "true"></owl-date-time>\n          \x3c!-- <mat-form-field>\n            <input matInput type="datetime-local" name="fromDate_rmv" formControlName="fromDate_rmv" >\n          </mat-form-field> --\x3e\n          \x3c!-- <input type="text"  autocomplete="off" name="fromDate_rmv" data-date-start-date="-1w" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="fromDate_rmv" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="(cancellog || schedule ) == true ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="mileage">Mileage:&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n          <input type="text"  id="mileage"  name="mileage" class="form-control"  formControlName="mileage" [ngClass]="{ \'is-invalid\': submitted && f.mileage.errors }" (keypress)="numberOnly($event)">\n          <br>\n          <div>\n            <input type="checkbox" id="flat_matride" formControlName="flat_matride" value="yes" name="flat_matride" class="w-chk">\n            <label for="flat_matride" class="w-chk">Flat Rate \u2013 MAT Ride</label>\n            <br>\n          </div>\n          <div>\n            <input type="checkbox" id="flat_noshow" value="yes" formControlName="flat_noshow" name="flat_noshow" class="w-chk">\n            <label for="flat_noshow" class="w-chk">Flat Rate \u2013 No Show</label>\n            <br>\n          </div>\n          <div>\n            <input type="checkbox" id="flat_interruptedride" formControlName="flat_interruptedride" value="yes" name="flat_interruptedride"\n              class="w-chk">\n            <label for="flat_interruptedride" class="w-chk">Flat Rate \u2013 Ride Interrupted</label>\n          </div>\n        </div>\n\n      </div>\n      \x3c!-- <div class="row form-group" >\n\t\t\t\t\t\t\n  <label class="col-md-3 col-form-label" for="funding_source">Funding Source (HRIA Only): </label>\n  <div class="col-md-9">\n    <select  class="col-md-9" name="funding_source" id="funding_source"  class="form-control" formControlName="funding_source" >\n      <option value="">Select One</option>\n      <option value="3">COOCLI</option>\n      <option value="2">GLCF</option>\n      <option value="1">HCS</option>\n    </select>  \n</div> --\x3e\n      \x3c!--             \n</div> --\x3e\n      <div class="row form-group" [ngClass]="cancellog || schedule == true ? \'hidden\' : \'\'">\n\n        <label class="col-md-4 col-form-label" for="cmnts">Comments: </label>\n        <div class="col-md-8">\n          <input type="text" id="cmnts" name="cmnts" class="form-control" formControlName="cmnts">\n        </div>\n\n      </div>\n      <div class="row form-group" [ngClass]="cancellog == true ? \'\' : \'hidden\'">\n\n        <label class="col-md-4 col-form-label" for="creason">Reason: </label>\n        <div class="col-md-8">\n          <input type="text" id="creason" name="creason" class="form-control" formControlName="creason">\n        </div>\n\n      </div>\n      <div class="row form-group">\n\n        <label class="col-md-4 col-form-label" for="submittedby">Submitted by: </label>\n        <div class="col-md-8">\n          <input type="text" id="submittedby" name="submittedby" class="form-control" formControlName="submittedby" readonly="readonly">\n        </div>\n\n      </div>\n\n\n    </div>\n    <div class="modal-footer">\n      <button type="button" class="button button_medium" (click)="closevalidation()" (click)="modal.dismiss(\'Cross click\')">\n        <i class="fa fa-close">&nbsp;</i>Close</button>\n      <button type="submit" class="button button_medium" value="submit">\n        <i class="fa fa-save">&nbsp;</i>Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\n    </div>\n  </form>\n</ng-template>\n\n\n<ng-template #deletecontent let-modal>\n  <form  [formGroup]="deletedata" class="form-group" (ngSubmit)="onClickSubmit(deletedata)">\n    <div class="modal-header">\n      <h3 class="modal-title" style="margin-left: 146px;">Delete Record</h3>\n      <button type="button" class="close" aria-label="Close" (click)="modal.dismiss(\'Cross click\')">\n        <span aria-hidden="true">&times;</span>\n      </button>\n    </div>\n    <div class="modal-body">\n      <div class="row">\n        <div class="col-sm-12">\n          <div id="delride_err_location">\n          </div>\n        </div>\n      </div>\n      <p for="delrecord" class="control-label" style="text-align: center;">Are you sure you want to delete this record? </p>\n      <div class="form-group">\n        <div class="col-sm-12">\n          <div class="col-sm-3">\n            <label for="reason" style="margin-left: -19px;">Reason:\n              <span style="color:red">*</span>\n            </label>\n          </div>\n          <div class="col-sm-9">\n           \x3c!-- <textarea name="delreason" class="form-control" [(ngModel)]="deleteval" cols="50" style="margin-left: -26px;" #delreason="ngModel"\n              required [class.is-invalid]="delreason.invalid"></textarea> --\x3e\n\n              <textarea name="dreason" class="form-control" formControlName="dreason" cols="50" style="margin-left: -49px;"\n              [ngClass]="{ \'is-invalid\': submitted && d.dreason.errors }"></textarea>\n              \x3c!-- <div name="dreasontext" class="form-control" ngDefaultControl  formControlName="dreasontext" [ngClass]="{ \'is-invalid\': submitted && d.dreason.errors }">\n                Reason is required.\n              </div> --\x3e\n\n            \x3c!-- <div [ngClass]="{ \'is-invalid\': submitted && deletedata.dreason.errors }"\n    class="alert alert-danger">\n  \n            </div> --\x3e\n\n            \x3c!-- <input type="text" id="del_reason" name="del_reason" class="form-control" /> --\x3e\n          </div>\n        </div>\n      </div>\n\n      <div class="clearfix"></div>\n      \x3c!-- <mat-form-field>\n        <input matInput [ngxMatDatetimePicker]="picker" placeholder="Choose a date & time" [(ngModel)]="myDatePicker">\n        \n        <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>\n    </mat-form-field> --\x3e\n    </div>\n    <div class="modal-footer">\n      <button type="button" style="background-color: grey;" class="button button_medium" (click)="modal.close(\'Close click\')">\n        <i class="fa fa-close">&nbsp;</i>Close</button>\n      <button type="submit" class="button button_medium" value="submit">\n        <i class="fa fa-save">&nbsp;</i>Yes</button>\n\n    </div>\n  </form>\n</ng-template>',styles:['.table > tbody > tr > td {\n  vertical-align: middle;\n}\n\n.no_organization {\n  min-height: 124px;\n}\n\niframe {\n  width: 100%;\n  border: 0;\n}\n\n#transportation_table_filter input[type=search], #completed_rides_filter input[type=search] {\n  border: solid 1px #c3c3c3;\n  border-radius: 2px;\n  padding: 2px 5px;\n}\n\n#transportation_table .btn {\n  margin: 2px;\n  min-width: 83px;\n  padding: 4px 0;\n}\n\n#target .tablinks.active {\n  padding: 10px;\n  background: #a770a1;\n  color: white;\n  border: none;\n}\n\n#target .tablinks {\n  width: 50%;\n  border: #bebebe 1px solid;\n  border-bottom: none;\n}\n\n.contain-target {\n  Padding: 10px;\n  border: solid 1px #a770a1;\n  border-radius: 0 0 10px 10px;\n  border-top: 2px solid #a770a1;\n}\n\n.contain-target table td, .contain-target table th {\n  text-align: center;\n  padding: 10px 5px !important;\n  font-size: 14px;\n}\n\n#travellogedit label {\n  width: 30%;\n}\n\n#travellogedit input {\n  width: 69% !important;\n}\n\n#travellogedit input.w-100 {\n  width: 100% !important;\n}\n\n.bootstrap-datetimepicker-widget td, .bootstrap-datetimepicker-widget th {\n  border: none;\n}\n\ndiv.dt-buttons {\n  float: right;\n}\n\nbutton.dt-button {\n  padding: 3px 10px;\n  background: #4D5E80 !important;\n  color: #fff !important;\n  margin-left: 10px;\n}\n\n.dataTables_wrapper .dataTables_paginate .paginate_button {\n  margin-top: 5px;\n  padding: 0 0.5em;\n}\n\ntable.dataTable.no-footer, table.dataTable thead th {\n  border-bottom: none;\n}\n\n.container {\n  max-width: 1170px !important;\n}\n\n.btn {\n  margin: 2px !important;\n}\n\n.agency {\n  background-color: #7f5081;\n  color: white;\n  font-size: 21.3px;\n  padding-left: 25px;\n  padding-right: 25px;\n  padding-top: 10px;\n  padding-bottom: 10px;\n}\n\n.agency_heading {\n  font-size: 22.6667px;\n}\n\n.agency_list {\n  background-color: #f7f6f3;\n  padding: 0px;\n}\n\n.bg-navy {\n  background-color: #5bc0de;\n  color: white;\n}\n\n#actionbtns .btn {\n  margin: 2px;\n  min-width: 83px;\n  padding: 4px 0;\n  font-size: 14px;\n}\n\n.hidden {\n  display: none;\n}\n\n::ng-deep .mat-cell {\n  text-align: center;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\n.mat-header-row th:last-child {\n  width: 11%;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}\n\n::ng-deep .xlModal > .modal-dialog {\n  max-width: 500px !important;\n}\n\n#requests_tab .nav {\n  text-transform: uppercase;\n}\n\n#requests_tab .nav li a {\n  color: #333;\n  background-color: #DFDBD6;\n  opacity: 0.75;\n  outline: 0;\n  padding: 10px 15px;\n  position: relative;\n  display: block;\n  margin-right: 2px;\n  line-height: 1.42857143;\n  border-radius: 4px 4px 0 0;\n}\n\n#requests_tab .nav li.active a {\n  background-color: #7F5081;\n  color: #fff;\n  opacity: 1;\n  border: 0;\n  outline: 0;\n  top: 1px;\n}\n\n#requests_tab .table {\n  margin-top: 0;\n}\n\n#requests_tab .tab-content {\n  border: 1px solid #ccc;\n  padding: 5px;\n}\n\n.nav:after {\n  display: table;\n  content: " ";\n}\n\n.proxima-regular {\n  color: #5b6d80;\n  font-size: 18pt;\n  line-height: 24pt;\n  font-weight: normal;\n  margin-bottom: 0;\n}\n\n.container {\n  max-width: 1170px !important;\n}\n\nul.nav-tabs li a {\n  font-weight: 100;\n}\n\n.nl-container {\n  display: none;\n}\n\n.accordion-container {\n  border: 1px solid #ccc;\n  margin-bottom: 5px;\n}\n\n.line-vt {\n  height: 2px;\n  width: 70px;\n  background: #263c49;\n  display: block;\n  margin: 10px 0;\n}\n\n.is-invalid {\n  border: 1px solid red !important;\n}\n\n.overview-agency-heading {\n  margin-top: 0px;\n}\n\n.overview-tr {\n  padding: 5px 0 20px 0;\n}\n\n.cdk-overlay-container {\n  position: fixed;\n  pointer-events: none;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  display: flex;\n  position: absolute;\n  z-index: 9999999 !important;\n}\n\n.cdk-global-overlay-wrapper, .cdk-overlay-container {\n  pointer-events: none;\n  top: 0;\n  left: 0;\n  height: 100%;\n  width: 100%;\n  display: flex;\n  position: absolute;\n  z-index: 9999999 !important;\n}\n\n.psd_program_column_box .psd_th + .psd_tr .d-count-wl span:first-child,\n.psd_program_column_box .psd_th + .psd_tr .d-count-wl span:nth-child(2) {\n  padding-bottom: 32px;\n  display: block;\n}\n\nh5 {\n  margin-top: 3px !important;\n  margin-bottom: 5px !important;\n}\n\nh5.video-head {\n  color: #f7f6f3 !important;\n  font-size: 12px;\n  font-weight: 800;\n  cursor: pointer;\n  text-transform: uppercase;\n  font-family: brandon-grotesque, Arial;\n}\n\n#video-header {\n  font-size: 14px;\n  color: #f7f6f3;\n  font-family: brandon-grotesque, Arial;\n  margin-bottom: 0px !important;\n}\n\nh5.video-head:hover {\n  text-decoration: underline;\n}\n\n#loaderDiv {\n  margin: auto;\n  width: 30%;\n  padding: 10px;\n}\n\n@media (max-width: 768px) {\n  .psd_home_left {\n    float: none !important;\n    margin-right: 0px !important;\n    width: 100% !important;\n  }\n\n  .psd_home_right {\n    width: 100% !important;\n    float: none !important;\n  }\n\n  .psd_program_status_td, .psd_program_waitlist_name_td, .psd_program_waitlist_num_td, .psd_program_name a, .psd_program_address {\n    font-size: 12pt !important;\n  }\n\n  .f-20 {\n    font-size: 15px !important;\n  }\n}']})],rV);const aV={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let oV=class{constructor(t){this.http=t,this.backendUrl=Xf}newprogram(t){return this.http.post(this.backendUrl+"/v1/secure/program",t,aV)}existingprogram(t){return this.http.post(this.backendUrl+"/v1/secure/existingprogram",t,aV)}portalrequest(t){return this.http.post(this.backendUrl+"/v1/secure/portalproblem",t,aV)}otherrequest(t){return this.http.post(this.backendUrl+"/v1/secure/makerequestother",t,aV)}getAgencydata(){return this.http.get(this.backendUrl+"/v1/open/agencies",aV)}getpregNames(){return this.http.get(this.backendUrl+"/v1/secure/getloginorgnames",aV)}getexpregNames(){return this.http.get(this.backendUrl+"/v1/secure/programpermissioninfo/",aV)}getmrCities(){return this.http.get(this.backendUrl+"/v1/open/cities",aV)}addwaitlist(t){return this.http.post(this.backendUrl+"/v1/secure/addwaitlist",t,{responseType:"text"})}sharewaitlistNames(){return this.http.get(this.backendUrl+"/v1/secure/sharewaitlistnames",aV)}extWaitlistaccess(t){return this.http.post(this.backendUrl+"/v1/secure/existingwaitlistaccess",t,{responseType:"text"})}shareexistingWaitlist(t){return this.http.post(this.backendUrl+"/v1/secure/shareexistingwaitlist",t,{responseType:"text"})}handleError(t){let e,n;return t instanceof Yf.HttpErrorResponse&&(!1===t.ok&&0===t.status?e="No internet connection or server might be unreachable. Please try again after sometime.":(n=t.error||"",e=n.message?n.message:n.error.message)),Object(O_.a)(e)}};oV.ctorParameters=()=>[{type:Yf.HttpClient}],oV=Hh([Object(s.Injectable)({providedIn:"root"})],oV);let lV=class{constructor(t,e,n,i,s,r,a){this.fb=t,this.findhelpService=e,this.route=n,this.makearequestservice=i,this.intakeService=s,this.httpService=r,this.router=a,this.select_agency=[],this.substances_treated=[],this.special_population=[],this.treatments_offered=[],this.payments_accepted=[],this.additional_services=[],this.allattrData=[],this.age_served=[],this.gender_served=[],this.selection=[],this.disabled=!1,this.Drug=[],this.AgeServed=[],this.AdditionalServices=[],this.ClientCharacteritics=[],this.GenderServed=[],this.Payment=[],this.Treatment=[],this.attributevalues=[],this.submitted=!1,this.treatmentsselected=!0,this.otherpregname=!1,this.attributes=[],this.baseurl=Xf,this.loader=!1,this.disable=!1,this.preg_names=[],this.expreg_names=[],this.waitlistNames=[],this.mk_cities=[],this.strip=!1,this.morlicence=[],this.morlicence2=[],this.cities=[{name:"Abington",id:1},{name:"Acoaxet",id:1227},{name:"Acton",id:870},{name:"Acushnet",id:871},{name:"Adams",id:872},{name:"Agawam",id:873},{name:"Alford",id:874},{name:"Allerton",id:1232},{name:"Allston",id:1234},{name:"Amesbury",id:875},{name:"Amherst",id:876},{name:"Andover",id:877},{name:"Aquinnah",id:878},{name:"Arlington",id:879},{name:"Ashburnham",id:880},{name:"Ashby",id:881},{name:"Ashfield",id:882},{name:"Ashland",id:883},{name:"Ashley Falls",id:1252},{name:"Assinippi",id:1287},{name:"Assonet",id:1222},{name:"Athol",id:884},{name:"Attleboro",id:885},{name:"Auburn",id:886},{name:"Auburnville",id:1276},{name:"Avon",id:887},{name:"Ayer",id:888},{name:"Back Bay (Boston)",id:1225},{name:"Baconsville",id:1298},{name:"Baldwinville",id:1282},{name:"Bancroft",id:1299},{name:"Barnstable",id:889},{name:"Barre",id:890},{name:"Bay Village (Boston)",id:1249},{name:"Beacon Hill (Boston)",id:1241},{name:"Becket",id:891},{name:"Bedford",id:892},{name:"Belchertown",id:893},{name:"Bellingham",id:894},{name:"Belmont",id:895},{name:"Berkley",id:896},{name:"Berkshire",id:1223},{name:"Berlin",id:897},{name:"Bernardston",id:898},{name:"Beverly",id:899},{name:"Billerica",id:900},{name:"Blackstone",id:901},{name:"Blandford",id:902},{name:"Bolton",id:903},{name:"Bondsville",id:1293},{name:"Boston",id:904},{name:"Bourne",id:905},{name:"Boxborough",id:906},{name:"Boxford",id:907},{name:"Boylston",id:908},{name:"Bradford",id:1261},{name:"Braintree",id:909},{name:"Brant Rock",id:1300},{name:"Brewster",id:910},{name:"Bridgewater",id:911},{name:"Briggsville",id:1266},{name:"Brighton",id:1229},{name:"Brimfield",id:912},{name:"Brockton",id:913},{name:"Brookfield",id:914},{name:"Brookline",id:915},{name:"Buckland",id:916},{name:"Burlington",id:917},{name:"Buzzards Bay",id:1233},{name:"Byfield",id:1301},{name:"Cambridge",id:918},{name:"Canton",id:919},{name:"Carlisle",id:920},{name:"Carver",id:921},{name:"Cataumet",id:1253},{name:"Cedarville",id:1258},{name:"Centerville",id:1240},{name:"Chaffinville",id:1302},{name:"Charlemont",id:922},{name:"Charlestown",id:1239},{name:"Charlton",id:923},{name:"Chatham",id:924},{name:"Chelmsford",id:925},{name:"Chelsea",id:926},{name:"Cheshire",id:927},{name:"Chester",id:928},{name:"Chesterfield",id:929},{name:"Chicopee",id:930},{name:"Chilmark",id:931},{name:"Chinatown (Boston)",id:1290},{name:"Clarksburg",id:932},{name:"Clayton",id:1295},{name:"Cliftondale",id:1303},{name:"Clinton",id:933},{name:"Cochituate",id:1274},{name:"Cohasset",id:934},{name:"Colrain",id:935},{name:"Concord",id:936},{name:"Conway",id:937},{name:"Cotuit",id:1267},{name:"Cummaquid",id:1304},{name:"Cummington",id:938},{name:"Cuttyhunk",id:1305},{name:"Dalton",id:939},{name:"Danvers",id:940},{name:"Dartmouth",id:941},{name:"Dedham",id:942},{name:"Deerfield",id:943},{name:"Dell",id:1306},{name:"Dennis",id:944},{name:"Dennisport",id:1254},{name:"Dighton",id:945},{name:"Dorchester",id:1220},{name:"Douglas",id:946},{name:"Dover",id:947},{name:"Dracut",id:948},{name:"Drury",id:1307},{name:"Dudley",id:949},{name:"Dunstable",id:950},{name:"Duxbury",id:951},{name:"Dwight",id:1308},{name:"East Boston",id:1226},{name:"East Bridgewater",id:952},{name:"East Brookfield",id:953},{name:"East Deerfield",id:1288},{name:"East Longmeadow",id:954},{name:"East Walpole",id:1236},{name:"Eastham",id:955},{name:"Easthampton",id:956},{name:"Easton",id:957},{name:"Eastville",id:1309},{name:"Edgartown",id:958},{name:"Egremont",id:959},{name:"Egypt",id:1310},{name:"Elmwood",id:1311},{name:"Erving",id:960},{name:"Essex",id:961},{name:"Everett",id:962},{name:"Fairhaven",id:963},{name:"Fall River",id:964},{name:"Falmouth",id:965},{name:"Farley",id:1312},{name:"Feeding Hills",id:1272},{name:"Fieldston",id:1313},{name:"Fiskdale",id:1281},{name:"Fitchburg",id:966},{name:"Florence",id:1268},{name:"Florida",id:967},{name:"Forestdale",id:1314},{name:"Foxborough",id:968},{name:"Framingham",id:969},{name:"Franklin",id:970},{name:"Freetown",id:971},{name:"Gardner",id:972},{name:"Georgetown",id:973},{name:"Gill",id:974},{name:"Glendale",id:1316},{name:"Gloucester",id:975},{name:"Goshen",id:976},{name:"Gosnold",id:977},{name:"Grafton",id:978},{name:"Granby",id:979},{name:"Granville",id:980},{name:"Great Barrington",id:981},{name:"Greenfield",id:982},{name:"Groton",id:983},{name:"Groveland",id:984},{name:"Hadley",id:985},{name:"Halifax",id:986},{name:"Hamilton",id:987},{name:"Hampden",id:988},{name:"Hancock",id:989},{name:"Hanover",id:990},{name:"Hanson",id:991},{name:"Hardwick",id:992},{name:"Harvard",id:993},{name:"Harwich",id:994},{name:"Harwich Port",id:1321},{name:"Hatfield",id:995},{name:"Haverhill",id:996},{name:"Hawley",id:997},{name:"Heath",id:998},{name:"Hingham",id:999},{name:"Hinsdale",id:1e3},{name:"Holbrook",id:1001},{name:"Holden",id:1002},{name:"Holland",id:1003},{name:"Holliston",id:1004},{name:"Holyoke",id:1005},{name:"Hopedale",id:1006},{name:"Hopkinton",id:1007},{name:"Hubbardston",id:1008},{name:"Hudson",id:1009},{name:"Hull",id:1010},{name:"Huntington",id:1011},{name:"Hyannis",id:1221},{name:"Hyde Park",id:1248},{name:"Indian Orchard",id:1279},{name:"Ipswich",id:1012},{name:"Jamaica Plain",id:1235},{name:"Jefferson",id:1273},{name:"Kingston",id:1013},{name:"Lakeville",id:1014},{name:"Lancaster",id:1015},{name:"Lanesborough",id:1016},{name:"Lawrence",id:1017},{name:"Lee",id:1018},{name:"Leeds",id:1296},{name:"Leicester",id:1019},{name:"Lenox",id:1020},{name:"Leominster",id:1021},{name:"Leverett",id:1022},{name:"Lexington",id:1023},{name:"Leyden",id:1024},{name:"Lincoln",id:1025},{name:"Littleton",id:1026},{name:"Longmeadow",id:1027},{name:"Loudville",id:1243},{name:"Lowell",id:1028},{name:"Ludlow",id:1029},{name:"Lunenburg",id:1030},{name:"Lynn",id:1031},{name:"Lynnfield",id:1032},{name:"Madaket",id:1329},{name:"Magnolia",id:1269},{name:"Malden",id:1033},{name:"Manchester by the Sea",id:1034},{name:"Mansfield",id:1035},{name:"Marblehead",id:1036},{name:"Marion",id:1037},{name:"Marlborough",id:1038},{name:"Marshfield",id:1039},{name:"Marstons Mills",id:1238},{name:"Mashpee",id:1040},{name:"Mattapan",id:1246},{name:"Mattapoisett",id:1041},{name:"Maynard",id:1042},{name:"Medfield",id:1043},{name:"Medford",id:1044},{name:"Medway",id:1045},{name:"Melrose",id:1046},{name:"Mendon",id:1047},{name:"Merrimac",id:1048},{name:"Methuen",id:1049},{name:"Middleborough",id:1050},{name:"Middlefield",id:1051},{name:"Middleton",id:1052},{name:"Milford",id:1053},{name:"Millbury",id:1054},{name:"Millis",id:1055},{name:"Millville",id:1056},{name:"Milton",id:1057},{name:"Mission Hill (Boston)",id:1318},{name:"Monroe",id:1058},{name:"Monson",id:1059},{name:"Montague",id:1060},{name:"Monterey",id:1061},{name:"Montgomery",id:1062},{name:"Mount Washington",id:1063},{name:"Nahant",id:1064},{name:"Nantucket",id:1065},{name:"Nashaquitsa",id:1323},{name:"Natick",id:1066},{name:"Needham",id:1067},{name:"New Ashford",id:1068},{name:"New Bedford",id:1069},{name:"New Boston",id:1286},{name:"New Braintree",id:1070},{name:"New Marlborough",id:1071},{name:"New Salem",id:1072},{name:"Newbury",id:1073},{name:"Newburyport",id:1074},{name:"Newton",id:1075},{name:"Newton Upper Falls",id:1284},{name:"Norfolk",id:1076},{name:"North Adams",id:1077},{name:"North Andover",id:1078},{name:"North Attleboro",id:1079},{name:"North Billerica",id:1294},{name:"North Brookfield",id:1080},{name:"North Dartmouth",id:1250},{name:"North Dighton",id:1230},{name:"North Grafton",id:1280},{name:"North Hadley",id:1278},{name:"North Reading",id:1081},{name:"North Weymouth",id:1289},{name:"Northampton",id:1082},{name:"Northborough",id:1083},{name:"Northbridge",id:1084},{name:"Northfield",id:1085},{name:"Norton",id:1086},{name:"Norwell",id:1087},{name:"Norwood",id:1088},{name:"Oak Bluffs",id:1089},{name:"Oakham",id:1090},{name:"Oakland",id:1325},{name:"Onset",id:1257},{name:"Orange",id:1091},{name:"Orleans",id:1092},{name:"Osterville",id:1322},{name:"Otis",id:1093},{name:"Oxford",id:1094},{name:"Palmer",id:1095},{name:"Paxton",id:1096},{name:"Peabody",id:1097},{name:"Pelham",id:1098},{name:"Pembroke",id:1099},{name:"Pepperell",id:1100},{name:"Peru",id:1101},{name:"Petersham",id:1102},{name:"Phillipston",id:1103},{name:"Pittsfield",id:1104},{name:"Plainfield",id:1105},{name:"Plainville",id:1106},{name:"Plymouth",id:1107},{name:"Plympton",id:1108},{name:"Pocasset",id:1270},{name:"Princeton",id:1109},{name:"Provincetown",id:1110},{name:"Quincy",id:1111},{name:"Randolph",id:1112},{name:"Raynham",id:1113},{name:"Raynham Center",id:1326},{name:"Reading",id:1114},{name:"Rehoboth",id:1115},{name:"Revere",id:1116},{name:"Richmond",id:1117},{name:"Riverside",id:1331},{name:"Rochester",id:1118},{name:"Rockland",id:1119},{name:"Rockport",id:1120},{name:"Roslindale",id:1242},{name:"Rowe",id:1121},{name:"Rowley",id:1122},{name:"Roxbury",id:1237},{name:"Royalston",id:1123},{name:"Russell",id:1124},{name:"Rutland",id:1125},{name:"Sagamore",id:1292},{name:"Salem",id:1126},{name:"Salisbury",id:1127},{name:"Sand Hills",id:1262},{name:"Sandisfield",id:1128},{name:"Sandwich",id:1129},{name:"Santuit",id:1277},{name:"Saugus",id:1130},{name:"Savoy",id:1131},{name:"Scituate",id:1132},{name:"Seekonk",id:1133},{name:"Sharon",id:1134},{name:"Sheffield",id:1135},{name:"Shelburne",id:1136},{name:"Shelburne Falls",id:1245},{name:"Sherborn",id:1137},{name:"Shirley",id:1138},{name:"Shrewsbury",id:1139},{name:"Shutesbury",id:1140},{name:"Somerset",id:1141},{name:"Somerville",id:1142},{name:"South Attleboro",id:1297},{name:"South Boston",id:1231},{name:"South Deerfield",id:1224},{name:"South Dennis",id:1319},{name:"South End (Boston)",id:1291},{name:"South Grafton",id:1275},{name:"South Hadley",id:1143},{name:"South Weymouth",id:1247},{name:"South Yarmouth",id:1263},{name:"Southampton",id:1144},{name:"Southborough",id:1145},{name:"Southbridge",id:1146},{name:"Southfield",id:1317},{name:"Southwick",id:1147},{name:"Spencer",id:1148},{name:"Springfield",id:1149},{name:"Stanley",id:1334},{name:"Sterling",id:1150},{name:"Still River",id:1330},{name:"Stockbridge",id:1151},{name:"Stoneham",id:1152},{name:"Stoughton",id:1153},{name:"Stow",id:1154},{name:"Sturbridge",id:1155},{name:"Sudbury",id:1156},{name:"Sunderland",id:1157},{name:"Sutton",id:1158},{name:"Swampscott",id:1159},{name:"Swansea",id:1160},{name:"Swift River",id:1256},{name:"Taunton",id:1161},{name:"Teaticket",id:1260},{name:"Templeton",id:1162},{name:"Tewksbury",id:1163},{name:"Tisbury",id:1164},{name:"Tolland",id:1165},{name:"Topsfield",id:1166},{name:"Townsend",id:1167},{name:"Truro",id:1168},{name:"Turners Falls",id:1265},{name:"Tyngsborough",id:1169},{name:"Tyringham",id:1170},{name:"Upton",id:1171},{name:"Uxbridge",id:1172},{name:"Vineyard Haven",id:1259},{name:"Waban",id:1285},{name:"Wakefield",id:1173},{name:"Wales",id:1174},{name:"Walpole",id:1175},{name:"Waltham",id:1176},{name:"Ware",id:1177},{name:"Wareham",id:1178},{name:"Warren",id:1179},{name:"Warwick",id:1180},{name:"Washington",id:1181},{name:"Watertown",id:1182},{name:"Wauwinet",id:1327},{name:"Wayland",id:1183},{name:"Webster",id:1184},{name:"Wellesley",id:1185},{name:"Wellesley Hills",id:1315},{name:"Wellfleet",id:1186},{name:"Wendell",id:1187},{name:"Wenham",id:1188},{name:"West Boylston",id:1189},{name:"West Bridgewater",id:1190},{name:"West Brookfield",id:1191},{name:"West Harwich",id:1328},{name:"West Newbury",id:1192},{name:"West Roxbury",id:1228},{name:"West Springfield",id:1193},{name:"West Stockbridge",id:1194},{name:"West Tisbury",id:1195},{name:"West Wareham",id:1324},{name:"West Yarmouth",id:1332},{name:"Westborough",id:1196},{name:"Westfield",id:1197},{name:"Westford",id:1198},{name:"Westhampton",id:1199},{name:"Westminster",id:1200},{name:"Weston",id:1201},{name:"Westport",id:1202},{name:"Westwood",id:1203},{name:"Weymouth",id:1204},{name:"Whately",id:1205},{name:"Wheelwright",id:1251},{name:"Whitinsville",id:1264},{name:"Whitman",id:1206},{name:"Wilbraham",id:1207},{name:"Williamsburg",id:1208},{name:"Williamstown",id:1209},{name:"Wilmington",id:1210},{name:"Winchendon",id:1211},{name:"Winchester",id:1212},{name:"Windsor",id:1213},{name:"Winthrop",id:1214},{name:"Woburn",id:1215},{name:"Woods Hole",id:1320},{name:"Woodville",id:1271},{name:"Worcester",id:1216},{name:"Woronoco",id:1333},{name:"Worthington",id:1217},{name:"Worthington Center",id:1255},{name:"Wrentham",id:1218},{name:"Yarmouth",id:1219},{name:"Yarmouth Port",id:1283},{name:"Zoar",id:1244}],this.states=[{id:1,name:"AK"},{id:2,name:"AL"},{id:3,name:"AR"},{id:4,name:"AS"},{id:5,name:"AZ"},{id:6,name:"CA"},{id:7,name:"CO"},{id:8,name:"CT"},{id:9,name:"DC"},{id:10,name:"DE"},{id:11,name:"FL"},{id:12,name:"FM"},{id:13,name:"GA"},{id:14,name:"GU"},{id:15,name:"HI"},{id:16,name:"IA"},{id:17,name:"ID"},{id:18,name:"IL"},{id:19,name:"IN"},{id:20,name:"KS"},{id:21,name:"KY"},{id:22,name:"LA"},{id:23,name:"MA"},{id:24,name:"MD"},{id:25,name:"ME"},{id:26,name:"MH"},{id:27,name:"MI"},{id:28,name:"MN"},{id:29,name:"MO"},{id:30,name:"MP"},{id:31,name:"MS"},{id:32,name:"MT"},{id:33,name:"NC"},{id:34,name:"ND"},{id:35,name:"NE"},{id:36,name:"NH"},{id:37,name:"NJ"},{id:38,name:"NM"},{id:39,name:"NV"},{id:40,name:"NY"},{id:41,name:"OH"},{id:42,name:"OK"},{id:43,name:"OR"},{id:44,name:"PA"},{id:45,name:"PR"},{id:46,name:"PW"},{id:47,name:"RI"},{id:48,name:"SC"},{id:49,name:"SD"},{id:50,name:"TN"},{id:51,name:"TX"},{id:52,name:"UT"},{id:53,name:"VA"},{id:54,name:"VI"},{id:55,name:"VT"},{id:56,name:"WA"},{id:57,name:"WI"},{id:58,name:"WV"},{id:59,name:"WY"}]}ngOnInit(){this.httpService.get(this.baseurl+"/v1/open/attributesbytypemap/").subscribe(t=>{this.attrData=t,console.log(t)},t=>{console.log(t.message)}),this.intakeService.getattributes().subscribe(t=>{console.log(t),this.allattrData=t}),this.makearequestservice.getAgencydata().subscribe(t=>{console.log(this.select_agency=t)}),this.onSaveSubmitForm=this.fb.group({agchk:new ef("",im.required),ag_name:new ef("",im.required),ag_bsas:new ef("",im.required),ag_license:new ef(""),pag_addr1:new ef("",im.required),mag_addr1:new ef(""),mag_addr2:new ef(""),pag_addr2:new ef(""),pag_city:new ef("",im.required),mag_city:new ef(""),pag_state:new ef("",im.required),mag_state:new ef(""),pag_zip:new ef("",im.required),mag_zip:new ef(""),ag_ph:new ef("",im.required),ag_ph_ext:new ef(""),ag_fax:new ef(""),ag_desc:new ef(""),p_agency:new ef("",im.required),p_name:new ef("",im.required),p_license:new ef("",im.required),p_bsas:new ef("",im.required),p_addr1:new ef("",im.required),p_addr2:new ef(""),p_city:new ef("",im.required),p_state:new ef("",im.required),p_zip:new ef("",im.required),b_addr1:new ef(""),b_addr2:new ef(""),b_city:new ef(""),b_state:new ef(""),b_zip:new ef(""),p_ph:new ef("",im.required),p_ph_ext:new ef(""),p_fax:new ef(""),p_desc:new ef(""),waitlst_name:new ef("",im.required),program_name:new ef("",im.required),likewtchk:new ef("",im.required),otherprogname:new ef(""),wt_city:new ef(""),wt_helpline:new ef(""),share_waitlst_name:new ef("",im.required),share_program_name:new ef("",im.required),exwt_city:new ef("",im.required),notes_helpline:new ef(""),req_waitlst_name:new ef("",im.required),notes_reqwaitlist:new ef(""),req_program_name:new ef("",im.required),selAttribute_treatmentservices:new ef("",im.required),waitlist_form:new ef("",im.required),description:new ef(""),programName:new ef(""),programlocation:new ef("")}),this.myGroup=this.fb.group({selAttribute_substances:new ef(""),selAttribute_specialpopulation:new ef(""),selAttribute_treatmentservices:new ef(""),waitlist_form:new ef(""),selAttribute_payments:new ef(""),selAttribute_addtionalsvcs:new ef(""),selAttribute_ageserved:new ef(""),selAttribute_genderserved:new ef("")}),this.select_agency}ngAfterViewInit(){this.onSaveSubmitForm.patchValue({p_state:"23",b_state:"23",pag_state:"23",mag_state:"23"})}onItemChange(t){this.disabled=!0,console.log(t),this.requestitem=t,"Program"==this.requestitem&&(this.f.selAttribute_treatmentservices.setValidators([im.required]),this.f.selAttribute_treatmentservices.updateValueAndValidity()),"ExProgram"!=this.requestitem&&"Portal"!=this.requestitem&&"Other"!=this.requestitem||(this.f.selAttribute_treatmentservices.setValidators(null),this.f.selAttribute_treatmentservices.setValue(""),this.f.selAttribute_treatmentservices.updateValueAndValidity()),"waitlist"==this.requestitem&&(this.f.selAttribute_treatmentservices.setValidators(null),this.f.selAttribute_treatmentservices.setValue(""),this.f.selAttribute_treatmentservices.updateValueAndValidity(),this.f.waitlist_form.setValidators([im.required]),this.f.waitlist_form.updateValueAndValidity(),this.makearequestservice.getpregNames().subscribe(t=>{this.preg_names=t}),this.makearequestservice.getmrCities().subscribe(t=>{this.mk_cities=t})),"share_waitlist"==this.requestitem&&(this.f.selAttribute_treatmentservices.setValidators(null),this.f.selAttribute_treatmentservices.setValue(""),this.f.selAttribute_treatmentservices.updateValueAndValidity(),this.makearequestservice.sharewaitlistNames().subscribe(t=>{this.waitlistNames=t}),this.makearequestservice.getmrCities().subscribe(t=>{this.mk_cities=t})),"req_waitlist"==this.requestitem&&(this.f.selAttribute_treatmentservices.setValidators(null),this.f.selAttribute_treatmentservices.setValue(""),this.f.selAttribute_treatmentservices.updateValueAndValidity(),this.makearequestservice.getexpregNames().subscribe(t=>{this.expreg_names=t,this.strip=!0}))}onselectAll(t,e){const n=t.map(t=>t);this.myGroup.get(e).patchValue(n)}ondeselectAll(t,e){this.myGroup.get(e).patchValue([])}changeFn(t,e){console.log(e),"selAttribute_treatmentservices"==e&&(t.length>0?(this.f.selAttribute_treatmentservices.setValidators(null),this.f.selAttribute_treatmentservices.updateValueAndValidity(),console.log("selected")):(this.f.selAttribute_treatmentservices.setValidators([im.required]),this.f.selAttribute_treatmentservices.updateValueAndValidity(),console.log("notselected")));var n=[];null!=this.attrsubs&&n.push(this.attrsubs),console.log(this.attrpopul),null!=this.attrpopul&&n.push(this.attrpopul),null!=this.attrtreat&&n.push(this.attrtreat),null!=this.attrpayment&&n.push(this.attrpayment),null!=this.attraddserv&&n.push(this.attraddserv),null!=this.attrageserv&&n.push(this.attrageserv),null!=this.attrgenderserv&&n.push(this.attrgenderserv),console.log(n);var i=[];for(let s=0;s<n.length;s++)for(let t=0;t<n[s].length;t++)i.push(n[s][t].id);this.attributes=i}get f(){return this.onSaveSubmitForm.controls}onFormSubmit(t){const e=this.onSaveSubmitForm.controls;for(const o in e)e[o].invalid&&console.log("invalid field",o);if(void 0===this.requestitem)return this.submitted=!0,void(this.f.selAttribute_treatmentservices.invalid&&($("#collapsethree").collapse("show"),$("#paymentattributes").collapse("show"),this.getAttributesInfo2("Treatment"),$("#panel_content_3").collapse("show")));null==this.f.agchk.value&&$('input[name="agchk"]').css("outline","2px solid red");var n=[];let i={license:t.p_license,id:null};n.push(i),this.morlicence.forEach((t,e)=>{let i=document.querySelectorAll(".more_licence")[e];if(i.value){let t={license:i.value,id:null};n.push(t)}});var s=[];let r={license:t.ag_license,id:null};if(s.push(r),this.morlicence2.forEach((t,e)=>{let n=document.querySelectorAll(".more_licence2")[e];if(n.value){let t={license:n.value,id:null};s.push(t)}}),"Program"==this.requestitem){this.submitted=!0,this.onSaveSubmitForm.get("waitlst_name").clearValidators(),this.onSaveSubmitForm.get("program_name").clearValidators(),this.onSaveSubmitForm.get("likewtchk").clearValidators(),this.onSaveSubmitForm.get("share_waitlst_name").clearValidators(),this.onSaveSubmitForm.get("share_program_name").clearValidators(),this.onSaveSubmitForm.get("exwt_city").clearValidators(),this.onSaveSubmitForm.get("req_waitlst_name").clearValidators(),this.onSaveSubmitForm.get("req_program_name").clearValidators(),this.onSaveSubmitForm.get("waitlist_form").clearValidators(),this.onSaveSubmitForm.get("waitlst_name").updateValueAndValidity(),this.onSaveSubmitForm.get("program_name").updateValueAndValidity(),this.onSaveSubmitForm.get("likewtchk").updateValueAndValidity(),this.onSaveSubmitForm.get("share_waitlst_name").updateValueAndValidity(),this.onSaveSubmitForm.get("share_program_name").updateValueAndValidity(),this.onSaveSubmitForm.get("exwt_city").updateValueAndValidity(),this.onSaveSubmitForm.get("req_waitlst_name").updateValueAndValidity(),this.onSaveSubmitForm.get("req_program_name").updateValueAndValidity(),this.onSaveSubmitForm.get("waitlist_form").updateValueAndValidity(),"No"==this.agency_check?(this.onSaveSubmitForm.get("ag_bsas").setValidators([im.required]),this.onSaveSubmitForm.get("ag_name").setValidators([im.required]),this.onSaveSubmitForm.get("pag_state").setValidators([im.required]),this.onSaveSubmitForm.get("pag_addr1").setValidators([im.required]),this.onSaveSubmitForm.get("pag_city").setValidators([im.required]),this.onSaveSubmitForm.get("pag_zip").setValidators([im.required]),this.onSaveSubmitForm.get("ag_ph").setValidators([im.required]),this.onSaveSubmitForm.get("ag_bsas").updateValueAndValidity(),this.onSaveSubmitForm.get("ag_name").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_state").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_addr1").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_city").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_zip").updateValueAndValidity(),this.onSaveSubmitForm.get("ag_ph").updateValueAndValidity(),this.onSaveSubmitForm.get("p_agency").clearValidators(),this.onSaveSubmitForm.get("p_agency").updateValueAndValidity(),this.onSaveSubmitForm.invalid&&(this.f.ag_bsas.invalid||this.f.ag_name.invalid||this.f.mag_addr1.invalid||this.f.mag_city.invalid||this.f.mag_zip.invalid||this.f.mag_state.invalid||this.f.ag_ph.invalid?$("#collapseOne1").collapse("show"):(this.f.p_name.invalid||this.f.p_bsas.invalid||this.f.p_addr1.invalid||this.f.p_state.invalid||this.f.p_city.invalid||this.f.p_zip.invalid||this.f.p_ph.invalid||this.f.p_license.invalid)&&$("#collapsetwo").collapse("show")),a={existingAgency:!1,agency:{name:t.ag_name,bsasfunded:1==t.ag_bsas,licensenumber:s,active:!0,organizationtypeid:68,fax:t.ag_fax,phonenumber:t.ag_ph,externaldescription:t.ag_desc,ext:t.ag_ph_ext,orgaddress:[{addresstypeid:3,street:t.mag_addr1,postalcode:t.mag_zip,cityname:t.mag_city,stateid:t.mag_state,countryid:1},{addresstypeid:1,street:t.pag_addr1,postalcode:t.pag_zip,cityname:t.pag_city,stateid:t.pag_state,countryid:1}]},program:{name:t.p_name,agencyid:null,bsasfunded:1==t.p_bsas,licensenumber:n,active:!0,organizationtypeid:69,fax:t.p_fax,phonenumber:t.p_ph,externaldescription:t.p_desc,ext:t.p_ph_ext,orgaddress:[{addresstypeid:3,street:t.p_addr1,postalcode:t.p_zip,cityname:t.p_city,stateid:t.p_state,countryid:1},{addresstypeid:1,street:t.b_addr1,postalcode:t.b_zip,cityname:t.b_city,stateid:t.b_state,countryid:1}]},attributeList:this.attributes}):"Yes"==this.agency_check&&(this.onSaveSubmitForm.get("p_agency").setValidators([im.required]),this.onSaveSubmitForm.get("ag_bsas").clearValidators(),this.onSaveSubmitForm.get("ag_name").clearValidators(),this.onSaveSubmitForm.get("pag_addr1").clearValidators(),this.onSaveSubmitForm.get("pag_city").clearValidators(),this.onSaveSubmitForm.get("pag_state").clearValidators(),this.onSaveSubmitForm.get("pag_zip").clearValidators(),this.onSaveSubmitForm.get("ag_ph").clearValidators(),this.onSaveSubmitForm.get("p_agency").updateValueAndValidity(),this.onSaveSubmitForm.get("ag_bsas").updateValueAndValidity(),this.onSaveSubmitForm.get("ag_name").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_addr1").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_city").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_state").updateValueAndValidity(),this.onSaveSubmitForm.get("pag_zip").updateValueAndValidity(),this.onSaveSubmitForm.get("ag_ph").updateValueAndValidity(),this.onSaveSubmitForm.get("p_license").clearValidators(),this.onSaveSubmitForm.get("p_license").updateValueAndValidity(),this.onSaveSubmitForm.invalid&&(console.log("attributes"),(this.f.p_agency.invalid||this.f.p_name.invalid||this.f.p_bsas.invalid||this.f.b_addr1.invalid||this.f.b_state.invalid||this.f.b_city.invalid||this.f.b_zip.invalid||this.f.p_ph.invalid||this.f.p_license.invalid)&&$("#collapsetwo").collapse("show")),a={existingAgency:!0,program:{name:t.p_name,agencyid:t.p_agency?t.p_agency[0].id:"",bsasfunded:1==t.p_bsas,licensenumber:n,active:!0,organizationtypeid:69,fax:t.p_fax,phonenumber:t.p_ph,externaldescription:t.p_desc,ext:t.p_ph_ext,orgaddress:[{addresstypeid:3,street:t.b_addr1,postalcode:t.b_zip,cityname:t.b_city,stateid:t.b_state,countryid:1},{addresstypeid:1,street:t.p_addr1,postalcode:t.p_zip,cityname:t.p_city,stateid:t.p_state,countryid:1}]},attributeList:this.attributes}),console.log(a),console.log(this.onSaveSubmitForm.invalid);for(let t in this.onSaveSubmitForm.controls)this.onSaveSubmitForm.controls[t].errors;1!=this.onSaveSubmitForm.invalid&&(this.loader=!0,this.disable=!0,this.makearequestservice.newprogram(a).subscribe(t=>{this.loader=!1,this.disable=!1,console.log(t),this.newprog=t,console.log(t),this.route.navigate(["makearequest-confirm",this.newprog.incidentrefno])}))}else if("ExProgram"==this.requestitem){if(""==this.onSaveSubmitForm.value.programName||""==this.onSaveSubmitForm.value.programlocation)return console.log("..."),""==this.onSaveSubmitForm.value.programlocation?$("#ex_program_location").css({border:"1px solid #a94442"}):$("#ex_program_location").css({border:"1px solid #ccc"}),void(""==this.onSaveSubmitForm.value.programName?$("#ex_program_name").css({border:"1px solid #a94442"}):$("#ex_program_name").css({border:"1px solid #ccc"}));a={programName:t.programName,programLocation:t.programlocation,description:t.description},console.log(a),this.loader=!0,this.disable=!0,this.makearequestservice.existingprogram(a).subscribe(t=>{this.loader=!1,this.disable=!1,console.log(t),this.exprog=t,this.route.navigate(["makearequest-confirm",this.exprog.incidentrefno])})}else if("Portal"==this.requestitem){this.submitted=!1,this.loader=!0,a={description:t.description},this.disable=!0,this.makearequestservice.portalrequest(a).subscribe(t=>{console.log(t),this.disable=!1,this.loader=!1,this.portalprob=t,this.route.navigate(["makearequest-confirm",this.portalprob.incidentrefno])})}else if("Other"==this.requestitem){var a;this.submitted=!1,a={description:t.description},this.loader=!0,this.disable=!0,this.makearequestservice.otherrequest(a).subscribe(t=>{console.log(t),this.disable=!1,this.loader=!1,this.otherresp=t,this.route.navigate(["makearequest-confirm",this.otherresp.incidentrefno])})}else if("waitlist"==this.requestitem){if(this.submitted=!0,""==t.waitlst_name||""==t.program_name||""==t.likewtchk||void 0===t.likewtchk)return!1;if("Yes"==t.likewtchk&&(""==t.otherprogname||""==t.wt_city))return!1;let e=t.program_name.split("-"),n={waitlistname:t.waitlst_name,orgname:e[1],orgid:e[0],sharewithother:"Yes"==t.likewtchk,otherprogramname:t.otherprogname,city:t.wt_city,notes:t.wt_helpline};this.loader=!0,this.disable=!0,this.makearequestservice.addwaitlist(n).subscribe(t=>{console.log(t),this.disable=!1,this.loader=!1,this.otherresp=t,this.route.navigate(["makearequest-confirm",this.otherresp])})}else if("share_waitlist"==this.requestitem){if(this.onSaveSubmitForm.get("share_waitlst_name").setValidators([im.required]),this.onSaveSubmitForm.get("share_program_name").setValidators([im.required]),this.onSaveSubmitForm.get("exwt_city").setValidators([im.required]),this.onSaveSubmitForm.get("share_waitlst_name").updateValueAndValidity(),this.onSaveSubmitForm.get("share_program_name").updateValueAndValidity(),this.onSaveSubmitForm.get("exwt_city").updateValueAndValidity(),this.submitted=!0,""==t.share_waitlst_name||""==t.share_program_name||""==t.exwt_city)return!1;let e=t.share_waitlst_name.split("--"),n={waitlistname:e[2],orgname:e[1],orgid:e[0],sharingprogramname:t.share_program_name,notes:t.notes_helpline,city:t.exwt_city};this.loader=!0,this.disable=!0,this.makearequestservice.shareexistingWaitlist(n).subscribe(t=>{console.log(t),this.disable=!1,this.loader=!1,this.otherresp=t,this.route.navigate(["makearequest-confirm",this.otherresp])})}else if("req_waitlist"==this.requestitem){if(this.submitted=!0,""==t.req_waitlst_name||""==t.req_program_name)return!1;let e=t.req_program_name.split("-"),n={programlocation:t.req_waitlst_name,orgname:e[1],orgid:e[0],notes:t.notes_reqwaitlist};this.loader=!0,this.disable=!0,this.makearequestservice.extWaitlistaccess(n).subscribe(t=>{console.log(t),this.disable=!1,this.loader=!1,this.otherresp=t,this.route.navigate(["makearequest-confirm",this.otherresp])})}else if(this.onSaveSubmitForm.invalid)return this.f.selAttribute_treatmentservices.invalid&&($("#collapsethree").collapse("show"),$("#paymentattributes").collapse("show"),this.getAttributesInfo2("Treatment"),$("#panel_content_3").collapse("show"),console.log("attributes")),!0}changeagnc(){this.f.p_agency.setValidators(null),this.f.p_agency.updateValueAndValidity()}changechkboxyesno(t){console.log(t.target.value),this.agency_check=t.target.value,t.target.value,console.log("checkedtes"),$('input[name="agchk"]').css("outline","")}sharewt(t){"Yes"==t.target.value?(this.onSaveSubmitForm.get("otherprogname").setValue(""),this.onSaveSubmitForm.get("wt_city").setValue(""),this.otherpregname=!0,this.onSaveSubmitForm.get("otherprogname").setValidators([im.required]),this.onSaveSubmitForm.get("otherprogname").updateValueAndValidity(),this.onSaveSubmitForm.get("wt_city").setValidators([im.required]),this.onSaveSubmitForm.get("wt_city").updateValueAndValidity()):(this.otherpregname=!1,this.onSaveSubmitForm.get("otherprogname").clearValidators(),this.onSaveSubmitForm.get("otherprogname").updateValueAndValidity(),this.onSaveSubmitForm.get("wt_city").clearValidators(),this.onSaveSubmitForm.get("wt_city").updateValueAndValidity()),t.target.value,$('input[name="likewtchk"]').css("outline","")}getAttributesInfo2(t){console.log(this.allattrData.AgeServed),console.log(t),"AgeServed"==t&&(this.AgeServed=this.allattrData["Age Served"],console.log(this.AgeServed)),"GenderServed"==t&&(this.GenderServed=this.allattrData["Gender  Served"],console.log(this.GenderServed)),"Drug"==t&&(console.log(this.allattrData.Drug),console.log(this.attrData.Drug),this.Drug=this.attrData.Drug,console.log(this.Drug)),"Payment"==t&&(this.Payment=this.attrData.Payment,console.log(this.Payment)),"Treatment"==t&&(this.Treatment=this.attrData?this.attrData.Treatment:"",console.log(this.Treatment)),"AdditionalServices"==t&&(this.AdditionalServices=this.allattrData["Additional Services"],console.log(this.AdditionalServices)),"ClientCharacteristics"==t&&(this.ClientCharacteritics=this.allattrData["Special Populations"],console.log(this.ClientCharacteritics))}checkAgencyValue(t){console.log(t.target.checked),this.onSaveSubmitForm.get("pag_addr1").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("pag_addr2").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("pag_city").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("pag_state").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("pag_zip").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),t.target.checked?(this.onSaveSubmitForm.patchValue({mag_addr1:this.onSaveSubmitForm.get("pag_addr1").value,mag_addr2:this.onSaveSubmitForm.get("pag_addr2").value,mag_city:this.onSaveSubmitForm.get("pag_city").value,mag_state:this.onSaveSubmitForm.get("pag_state").value,mag_zip:this.onSaveSubmitForm.get("pag_zip").value}),console.log(this.onSaveSubmitForm.value.p_street1)):this.onSaveSubmitForm.patchValue({mag_addr1:"",mag_addr2:"",mag_city:"",mag_state:"",mag_zip:""})}checkProgramValue(t){this.onSaveSubmitForm.get("p_addr1").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("p_addr2").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("p_city").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("p_state").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),this.onSaveSubmitForm.get("p_zip").valueChanges.subscribe(e=>{e&&(t.target.checked=!1)}),t.target.checked?this.onSaveSubmitForm.patchValue({b_addr1:this.onSaveSubmitForm.get("p_addr1").value,b_addr2:this.onSaveSubmitForm.get("p_addr2").value,b_city:this.onSaveSubmitForm.get("p_city").value,b_state:this.onSaveSubmitForm.get("p_state").value,b_zip:this.onSaveSubmitForm.get("p_zip").value}):this.onSaveSubmitForm.patchValue({b_addr1:"",b_addr2:"",b_city:"",b_state:"",b_zip:""})}changeprog(){let t=this.onSaveSubmitForm.controls.program_name.value;this.onSaveSubmitForm.get("waitlst_name").setValue(t.split("-")[1])}moreLicence(t,e){let n=document.getElementById(t);if("p_license"==t){let t=this.morlicence.length+1;this.morlicence.push(t)}else{let t=this.morlicence2.length+1;this.morlicence2.push(t)}return setTimeout(()=>{if("p_license"==t){let t=document.querySelectorAll("."+e)[this.morlicence.length-1];console.log("input",t),t.value=n.value,n.value=""}else{document.querySelectorAll("."+e)[this.morlicence2.length-1].value=n.value,n.value=""}},200),!1}removeLicence(t){let e=this.morlicence.indexOf(t);this.morlicence.splice(e,1)}removeLicence2(t){let e=this.morlicence2.indexOf(t);this.morlicence2.splice(e,1)}};lV.ctorParameters=()=>[{type:Uf},{type:F_},{type:Wf.Router},{type:oV},{type:V_},{type:Yf.HttpClient},{type:Wf.Router}],lV.propDecorators={group:[{type:s.Input}]},lV=Hh([Object(s.Component)({selector:"app-makearequest",template:'<div class="container body">\n\t<div class="row" style="margin-top:-9px;">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="page_heading">Make a Request</div>\n\t\t</div>\n\t\n\t\n\t<div class="row">\n\t\t<div class="col-sm-12">\n\t\t\t\x3c!--<em>Fields that are mandatory have been marked and cannot be left blank/empty</em>--\x3e\n\t\t</div>\n\t</div>\n\t\n\t<form id="make_request"  [formGroup]="onSaveSubmitForm" (ngSubmit)="onFormSubmit(onSaveSubmitForm.value)" style="width: 100%;">\n\t<div class="row top10">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="form-group">\n\t\t\t\t<label>Select Request Type: </label>&nbsp;<span class="red">*</span>\n\t\t\t\t<div class="radio" style="margin-top:0;">\n\t\t\t\t\t\x3c!-- <label><input type="radio" name="rt" id="rt1" value="Agency" />New Agency - <em>I am with a new agency and program, not affiliated with any existing agency/organization</em></label><br /> --\x3e\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt2" value="Program" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>New Program</strong> - <em>I am a new program and want to be added to the Helpline.</em></label><br />\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt7" value="ExProgram" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>Existing Program</strong> - <em>I am with an existing program and the Helpline already has my program listed</em></label><br />\n\t\t\t\t\t\x3c!-- <?php /*\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt3" value="Public" /> Public Attachment - <em>I would like to submit a brochure or other document to be shown with my program\'s information on the Helpline website</em></label><br />\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt4" value="Private" />Private Attachment - <em>I would like to submit a document about my program (ex: license) only for Helpline staff to view</em></label><br />\n\t\t\t\t\t*/\t?> --\x3e\n\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt5" value="Portal" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>Portal Problem</strong> - <em>I am having problems updating my agency or program information</em></label><br />\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt7" value="waitlist" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>Add a new waitlist</strong> - <em>I am with an existing program and need to create a new waitlist</em></label><br/>\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt8" value="share_waitlist" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>Share an existing waitlist</strong> - <em>I am with an existing program and need to share a waitlist</em></label><br/>\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt9" value="req_waitlist" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>Request access to an existing waitlist</strong> - <em>I am an existing program and need to access a waitlist</em></label><br/>\n\t\t\t\t\t<label><input type="radio" name="rt" id="rt6" value="Other" [(ngModel)]="requestlist" [ngModelOptions]="{standalone: true}" (change)="onItemChange($event.target.value)"/><strong>Other</strong></label>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n\t<div class="row" [ngClass]="(requestlist==\'Program\')? \'\': \'hide\'" id="new_agency_or_program_div">\n\t\t<div class="d-flex w-100 mb-2 p-2" style="background-color: #ac9fc81c!important" >\n\t\t\t<div class="col">\n\t\t\t\t<div class="form-group m-0" >\n\t\t\t\tIs your agency already registered with helpline\n\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="col" >\n\t\t\t\t<div class="form-group m-0" >\n\t\t\t<div id="agency_pgm_chk" >\n\t\t\t\t<input type="radio" id="agchk" formControlName="agchk"  name="agchk" value="Yes" [(ngModel)]=\'agency_check\'\n\t\t\t\t[ngClass]="{ \'is-invalid\': submitted && f.agchk.errors }" (change)="changechkboxyesno($event)" required/> Yes\n\t\t\t\t<input type="radio" id="agchk"  name ="agchk" formControlName="agchk" value="No" class="ml-3" [(ngModel)]=\'agency_check\' \n\t\t\t\t[ngClass]="{ \'is-invalid\': submitted && f.agchk.errors }" (change)="changechkboxyesno($event)" required/> No\n\t\t\t\t\x3c!-- <span style="color:red"\n\t\t\t\t*ngIf=\'submitted && f.agchk.errors\'>*</span>\n\t\t\t\t<span class="error-msg" *ngIf=\'submitted && f.agchk.errors\'>\n\t\t\t\t\tPlease select any one\n\t\t\t\t  </span> --\x3e\n\t\t\t</div>\n\t\t</div>\n\t\t</div>\n\t\t</div>\n\t\t\x3c!--- Agency details--\x3e\n\t\n\t<div class="accordion w-100" id="agencyaccordion">\n\t\t<div class="card" [ngClass]="(agency_check==\'No\')?\'\':\'hide\'">\n\t\t\t<div class="card-header" id="headingOne">\n\t\t\t  <h2 class="mb-0">\n\t\t\t\t<a class="btn col1-one btn-link w-100 text-left"  [ngClass]="(agency_check==\'No\')?\'\':\'collapsed\'" type="button" data-toggle="collapse" data-target="#collapseOne1" aria-expanded="true" aria-controls="collapseOne1">\n\t\t\t\t <i class="fa fa-plus">&nbsp;</i>\n\t\t\t\t <i class="fa fa-minus">&nbsp;</i>\n\t\t\t\t   Agency Details\n\t\t\t\t</a>\n\t\t\t  </h2>\n\t\t   </div>\n\t\t   <div id="collapseOne1"  class="collapse" [ngClass]="(agency_check==\'No\')?\'show\':\'\'" aria-labelledby="headingOne" data-parent="#agencyaccordion">\n\t\t\t   <div class="card-body">\n\t\t\t\t   <div class="col-sm-12">\n\t\t\t\t\t   <div class="row">\n\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="ag_name" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.ag_name.errors }"><span id="set_a_a"></span> Name: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t<input type="text" name="ag_name" id="ag_name" class="form-control" formControlName="ag_name" [ngClass]="{ \'is-invalid\': submitted && f.ag_name.errors }"/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="ag_license" class="control-label">License No#: </label>\n\t\t\t\t\t\t\t\t<p *ngFor="let itm of morlicence2">\n\t\t\t\t\t\t\t\t\t<input type="text" style="width: 88%;" class="form-control more_licence2"/>\t<button (click)="removeLicence2(itm)" class="button button_medium" title="Delete" style="float: right;margin-top: -32px;"><i class="fa fa-minus">&nbsp;</i></button>\n\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t<input type="text" name="ag_license" style="margin-bottom: 8px;width: 88%; float: left;" id="ag_license" class="form-control" formControlName="ag_license" />\n\t\t\t\t\t\t\t\t<button (click)="moreLicence(\'ag_license\',\'more_licence2\')" class="button button_medium" title="Add More" style="float: right;padding: 4px 12px;"><i style="margin-right: -2px;margin-top: 6px;" class="fa fa-plus">&nbsp;</i></button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<label for="ag_bsas" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.ag_bsas.errors }">BSAS Funded? </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t<select name="ag_bsas" id="ag_bsas"  class="form-control" formControlName="ag_bsas" [ngClass]="{ \'is-invalid\': submitted && f.ag_bsas.errors }">\n\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div class="head02" style="font-size: 18px;margin-top: 10px;font-weight: 600">Address Details</div>\n\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t<div><u><em>Physical Address</em></u></div>\n\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t<div>Note: For public display</div>\n\t\t\t\t\t\t\t</div>\t\t\t\t\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="pag_addr1" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.pag_addr1.errors }">Address Line 1:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t<input type="text" name="pag_addr1" id="pag_addr1" formControlName="pag_addr1" class="form-control" [ngClass]="{ \'is-invalid\': submitted && f.pag_addr1.errors }" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="pag_addr2" class="control-label">Address Line 2:</label>\n\t\t\t\t\t\t\t\t<input type="text" name="pag_addr2" id="pag_addr2" class="form-control" formControlName="pag_addr2" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="pag_city" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.pag_city.errors }">City:</label>&nbsp;<span class="red ">*</span>\t\t\t\t\t\n\t\t\t\t\t\t\t\t<select name="pag_city" id="pag_city" class="form-control" formControlName="pag_city" [ngClass]="{ \'is-invalid\': submitted && f.pag_city.errors }">\n\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <option value="1">Boston</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="2">Salem</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="3">Worester</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="4">Cambridge</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="5">Plymouth</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="6">Brockton</option> --\x3e\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<input type="text" name="tb_pag_city" id="tb_pag_city" class="form-control hide" />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t<label for="pag_state" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.mag_state.errors }">State:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t<select name="pag_state" id="pag_state" class="form-control" formControlName="pag_state" [ngClass]="{ \'is-invalid\': submitted && f.pag_state.errors }">\n\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="pag_zip" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.pag_zip.errors }">ZIP:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<input type="text" name="pag_zip" id="pag_zip"  formControlName="pag_zip" maxlength="5" class="form-control geocode" [ngClass]="{ \'is-invalid\': submitted && f.pag_zip.errors }" />\n\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div><u><em>Mailing Address</em></u></div>\n\t\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t\t<label><input type="checkbox" (change)="checkAgencyValue($event)" id="pag_same" /> Same as Physical Address</label>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="mag_addr1" class="control-label">Address Line 1 :</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="mag_addr1" id="mag_addr1" class="form-control geocode" formControlName="mag_addr1"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="mag_addr2" class="control-label">Address Line 2:</label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="mag_addr2" id="mag_addr2" class="form-control" formControlName="mag_addr2" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="mag_city" class="control-label" >City: </label>\n\t\t\t\t\t\t\t\t\t<select name="mag_city" id="mag_city" class="geocode form-control" formControlName="mag_city">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\t\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <option value="1">Boston</option>\n\t\t\t\t\t\t\t\t\t\t<option value="2">Salem</option>\n\t\t\t\t\t\t\t\t\t\t<option value="3">Worester</option>\n\t\t\t\t\t\t\t\t\t\t<option value="4">Cambridge</option>\n\t\t\t\t\t\t\t\t\t\t<option value="5">Plymouth</option>\n\t\t\t\t\t\t\t\t\t\t<option value="6">Brockton</option> --\x3e\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t<input type="text" name="tb_mag_city" id="tb_mag_city" class="form-control geocode hide" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="mag_state" class="control-label">State: </label>\n\t\t\t\t\t\t\t\t\t<select name="mag_state" id="mag_state" class="geocode form-control" formControlName="mag_state">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\n\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="mag_zip" class="control-label">ZIP: </label>\n\t\t\t\t\t\t\t\t\t<input type="text" name="mag_zip" id="mag_zip" formControlName="mag_zip" maxlength="5" class="form-control geocode" />\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<input type="hidden" id="mag_lat" name="mag_lat" />\n\t\t\t\t\t\t\t\t<input type="hidden" id="mag_lng" name="mag_lng" />\n\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4 hide">\n\t\t\t\t\t<p><u><em>Billing Address</em></u></p>\n\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t<label><input type="checkbox" id="bag_same"  /> Same as Mailing Address</label>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="bag_addr1" class="control-label">Address Line 1:</label>\n\t\t\t\t\t\t<input type="text" name="bag_addr1" id="bag_addr1" class="form-control" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="bag_addr2" class="control-label">Address Line 2:</label>\n\t\t\t\t\t\t<input type="text" name="bag_addr2" id="bag_addr2" class="form-control" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="bag_city" class="control-label">City:</label>\n\t\t\t\t\t\t<select name="bag_city" id="bag_city" class="form-control" >\n\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\x3c!-- <?php\n\t\t\t\t\t\t\t\tforeach($this->data[\'cities\'] as $city)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\techo \'<option value="\'.$city.\'">\'.$city.\'</option>\';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?> --\x3e\n\t\t\t\t\t\t</select>\t\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="bag_state" class="control-label">State:</label>\n\t\t\t\t\t\t<select name="bag_state" id="bag_state" class="form-control" >\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option value="AK">AK</option><option value="AL">AL</option><option value="AR">AR</option><option value="AS">AS</option><option value="AZ">AZ</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DC">DC</option><option value="DE">DE</option><option value="FL">FL</option><option value="FM">FM</option><option value="GA">GA</option><option value="GU">GU</option><option value="HI">HI</option><option value="IA">IA</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option selected="selected" value="MA">MA</option><option value="MD">MD</option><option value="ME">ME</option><option value="MH">MH</option><option value="MI">MI</option><option value="MN">MN</option><option value="MO">MO</option><option value="MP">MP</option><option value="MS">MS</option><option value="MT">MT</option><option value="NC">NC</option><option value="ND">ND</option><option value="NE">NE</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><option value="NV">NV</option><option value="NY">NY</option><option value="OH">OH</option><option value="OK">OK</option><option value="OR">OR</option><option value="PA">PA</option><option value="PR">PR</option><option value="PW">PW</option><option value="RI">RI</option><option value="SC">SC</option><option value="SD">SD</option><option value="TN">TN</option><option value="TX">TX</option><option value="UT">UT</option><option value="VA">VA</option><option value="VI">VI</option><option value="VT">VT</option><option value="WA">WA</option><option value="WI">WI</option><option value="WV">WV</option><option value="WY">WY</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="bag_zip" class="control-label">ZIP:</label>\n\t\t\t\t\t\t<input type="text" name="bag_zip" id="bag_zip" maxlength="5"  class="form-control" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\n\t\t\t</div>\n\t\t\t<div class="head02" style="font-size: 20px;margin-top: 10px;">Other Details</div>\t\t\t\t\t\t\t\n\t\t\t<div class="row" style="margin-top: 10px;">\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<label for="ag_ph" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.ag_ph.errors }">Phone Number: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<input type="text" name="ag_ph" id="ag_ph" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" class="form-control" formControlName="ag_ph" [showMaskTyped]="true" [dropSpecialCharacters]="false" [ngClass]="{ \'is-invalid\': submitted && f.ag_ph.errors }" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t<label for="ag_ph_ext">Ext:</label>\n\t\t\t\t\t\t<input type="text" name="ag_ph_ext" id="ag_ph_ext" class="form-control" formControlName="ag_ph_ext" />\t\t\t\t\t\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="ag_fax" class="control-label">Fax:</label>\n\t\t\t\t\t\t<input type="text" name="ag_fax" id="ag_fax" class="form-control"  formControlName="ag_fax"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\t\t\t\t\n\t\t\t</div>\t\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\n\t\t\t\t\t\t\t<div class="col-sm-4 hide">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="ag_dph" class="control-label">DPH Approved? </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t<select name="ag_dph" id="ag_dph" class="form-control">\n\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="ag_desc" class="control-label">Note to Helpline Administrator: </label>\n\t\t\t\t\t\t\t\t\t<textarea name="ag_desc" id="ag_desc" class="form-control" formControlName="ag_desc"></textarea>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t   </div>\n\t\t\t   </div>\n\t\t   </div>\n\t\n\t\t   <div class="card">\n\t\t\t   <div class="card-header" id="headingtwo">\n\t\t\t  <h2 class="mb-0">\n\t\t\t\t<a class="btn btn-link w-100 text-left" [ngClass]="(agency_check==\'Yes\')?\'\':\'collapsed\'" type="button" data-toggle="collapse" data-target="#collapsetwo" aria-expanded="false" aria-controls="collapsetwo">\n\t\t\t\t <i class="fa fa-plus" >&nbsp;</i>\n\t\t\t\t <i class="fa fa-minus" >&nbsp;</i>\n\t\t\t\t   Provider Details\n\t\t\t\t</a>\n\t\t\t  </h2>\n\t\t\t</div>\n\t\t\t<div id="collapsetwo" class="collapse"  [ngClass]="(agency_check==\'Yes\')?\'show\':\'\'" aria-labelledby="headingtwo" data-parent="#agencyaccordion">\n\t\t\t\t<div class="card-body">\n\t\t\t\t\t  <div class="col-sm-12">\n\t\t\t\t\t\t  <div class="row">\n\t\t\t\t\t\t\t  <div class="col-sm-4" *ngIf="agency_check==\'Yes\'">\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="form-group" id="agncy">\n\t\t\t\t\t\t\t\t\t<label for="p_agency" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_agency.errors }">Select Agency: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t<div id="magicsuggest_agencyserved" [ngClass]="{ \'is-invalid\': submitted && f.p_agency.errors }">\n\t\t\t\t\t\t\t\t\t\t<ng-select [items]="select_agency"\n\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\tappendTo="body"\n\t\t\t\t\t\t\t\t\t\tmultiple="false"\n\t\t\t\t\t\t\t\t\t\tformControlName="p_agency"\n\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t(change)="changeagnc()"\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="p_agency" id="selAttribute_agencyserved" />\n\t\t\t\t\t\t\t\t\t\x3c!-- <select name="p_agency" id="p_agency" >\n\t\t\t\t\t\t\t\t\t\t<option>Type or click here</option>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of select_agency" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_name" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_name.errors }"><span id="set_a_p" style="display:none;"></span> Program Name: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_name" id="p_name" class="form-control" formControlName="p_name" [ngClass]="{ \'is-invalid\': submitted && f.p_name.errors }"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t<label for="p_license" class="control-label" >License No#: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t<p *ngFor="let itm of morlicence">\n\t\t\t\t\t\t\t\t\t\t<input type="text" style="width: 88%;" class="form-control more_licence"/><button (click)="removeLicence(itm)" class="button button_medium" title="Delete" style="float: right;margin-top: -32px;"><i class="fa fa-minus">&nbsp;</i></button>\n\t\t\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t\t\t<input type="text" name="p_license" style="margin-bottom: 8px;width: 88%; float: left;" formControlName="p_license" id="p_license" class="form-control" [ngClass]="{ \'is-invalid\': submitted && f.p_license.errors }"/>\n\t\t\t\t\t\t\t\t\t<button (click)="moreLicence(\'p_license\',\'more_licence\')" class="button button_medium" title="Add More" style="float: right;padding: 4px 12px;"><i style="margin-right: -2px;margin-top: 6px;" class="fa fa-plus">&nbsp;</i></button>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_bsas" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_bsas.errors }">BSAS Funded? </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t<select name="p_bsas" id="p_bsas"  formControlName="p_bsas" class="form-control" [ngClass]="{ \'is-invalid\': submitted && f.p_bsas.errors }">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t<div class="head02" style="font-size: 19px;margin-top: 10px;">Address Details</div>\n\t\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t\t\t<p><u><em>Physical Address</em></u></p>\n\t\t\t\t\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t\t\t\t\t<p>Note: For public display</p>\n\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="p_addr1" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_addr1.errors }">Address Line 1:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" formControlName="p_addr1" name="p_addr1" id="p_addr1" class="form-control geocode" [ngClass]="{ \'is-invalid\': submitted && f.b_addr1.errors }"/>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="p_addr2" class="control-label">Address Line 2:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" formControlName="p_addr2" name="p_addr2" id="p_addr2" class="form-control" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="p_city" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_city.errors }">City:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="p_city" id="p_city" formControlName="p_city" [ngClass]="{ \'is-invalid\': submitted && f.p_city.errors }">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}} >{{item.name}}</option>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <option value="1">Boston</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="2">Salem</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="3">Worester</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="4">Cambridge</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="5">Plymouth</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="6">Brockton</option> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="tb_p_city"  id="tb_p_city" class="form-control hide" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="p_state" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_state.errors }">State:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="p_state" id="p_state" formControlName="p_state" [ngClass]="{ \'is-invalid\': submitted && f.p_state.errors }">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="p_zip" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_zip.errors }">ZIP:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_zip" id="p_zip" formControlName="p_zip" maxlength="5" class="form-control" [ngClass]="{ \'is-invalid\': submitted && f.p_zip.errors }" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t\t\t<p><u><em>Mailing Address</em></u></p>\n\t\t\t\t\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t\t\t\t\t<label><input type="checkbox" (change)="checkProgramValue($event)" id="p_same" /> Same as Physical Address</label>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="b_addr1" class="control-label">Address Line 1 : </label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" formControlName="b_addr1" name="b_addr1" id="b_addr1" class="form-control"/>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="b_addr2" class="control-label">Address Line 2:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="b_addr2" formControlName="b_addr2" id="b_addr2" class="form-control" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="b_city" class="control-label">City: </label>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="b_city" id="b_city" class="geocode" formControlName="b_city">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let item of cities" value={{item.name}}>{{item.name}}</option>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <option value="1">Boston</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="2">Salem</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="3">Worester</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="4">Cambridge</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="5">Plymouth</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="6">Brockton</option> --\x3e\n\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <?php\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tforeach($this->data[\'cities\'] as $city)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\techo \'<option value="\'.$city.\'">\'.$city.\'</option>\';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t?> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="tb_b_city" id="tb_b_city" class="form-control geocode hide" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="b_state" class="control-label">State: </label>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="b_state" id="b_state" class="geocode" formControlName="b_state">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let state of states" value={{state.id}}>{{state.name}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="b_zip" class="control-label">ZIP: </label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" formControlName="b_zip" name="b_zip" id="b_zip" maxlength="5" class="form-control geocode"/>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" id="b_lat" name="b_lat" />\n\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" id="b_lng" name="b_lng" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div class="col-sm-4 hide">\n\t\t\t\t\t\t\t\t\t\t\t<p><u><em>Billing Address</em></u></p>\n\t\t\t\t\t\t\t\t\t\t\t<div class="checkbox">\n\t\t\t\t\t\t\t\t\t\t\t\t<label><input type="checkbox" id="m_same" /> Same as Mailing Address</label>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="m_addr1" class="control-label">Address Line 1:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="m_addr1" id="m_addr1"  class="form-control" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="m_addr2" class="control-label">Address Line 2:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="m_addr2" id="m_addr2"  class="form-control" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="m_city" class="control-label">City:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="m_city" id="m_city" >\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t</select>\t\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="m_state" class="control-label">State:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<select name="m_state" id="m_state" >\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value="AK">AK</option><option value="AL">AL</option><option value="AR">AR</option><option value="AS">AS</option><option value="AZ">AZ</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DC">DC</option><option value="DE">DE</option><option value="FL">FL</option><option value="FM">FM</option><option value="GA">GA</option><option value="GU">GU</option><option value="HI">HI</option><option value="IA">IA</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option selected="selected" value="MA">MA</option><option value="MD">MD</option><option value="ME">ME</option><option value="MH">MH</option><option value="MI">MI</option><option value="MN">MN</option><option value="MO">MO</option><option value="MP">MP</option><option value="MS">MS</option><option value="MT">MT</option><option value="NC">NC</option><option value="ND">ND</option><option value="NE">NE</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><option value="NV">NV</option><option value="NY">NY</option><option value="OH">OH</option><option value="OK">OK</option><option value="OR">OR</option><option value="PA">PA</option><option value="PR">PR</option><option value="PW">PW</option><option value="RI">RI</option><option value="SC">SC</option><option value="SD">SD</option><option value="TN">TN</option><option value="TX">TX</option><option value="UT">UT</option><option value="VA">VA</option><option value="VI">VI</option><option value="VT">VT</option><option value="WA">WA</option><option value="WI">WI</option><option value="WV">WV</option><option value="WY">WY</option>\n\t\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for="m_zip" class="control-label">ZIP:</label>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="m_zip" id="m_zip"  maxlength="5" class="form-control" />\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="head02" style="font-size: 20px;margin-top: 10px;">Other Details</div>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="row" style="margin-top: 10px;">\n\t\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_ph" class="control-label" [ngClass]="{ \'is-invalid-label\': submitted && f.p_ph.errors }">Phone Number: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_ph" id="p_ph" shownMaskExpression="(   ) ___-____" mask="(000) 000-0000" formControlName="p_ph" class="form-control" [showMaskTyped]="true" [dropSpecialCharacters]="false" [ngClass]="{ \'is-invalid\': submitted && f.p_ph.errors }"/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_ph_ext">Ext:</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_ph_ext" id="p_ph_ext" formControlName="p_ph_ext" class="form-control" />\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_fax" class="control-label">Fax:</label>\n\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="p_fax" id="p_fax"  formControlName="p_fax" class="form-control" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class="col-sm-4 hide">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_dph" class="control-label">DPH Approved? </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t\t\t\t\t\t<select name="p_dph" id="p_dph">\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="1">Yes</option>\n\t\t\t\t\t\t\t\t\t\t\t\t<option value="0">No</option>\n\t\t\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label for="p_desc" class="control-label">Note to Helpline Administrator: </label>\n\t\t\t\t\t\t\t\t\t\t\t<textarea name="p_desc" id="p_desc" class="form-control" formControlName="p_desc"></textarea>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t  </div>\n\t\t\t\t  </div>\n\t\t\t</div>\n\t\t   </div>\n\t\n\t\t\t<div [formGroup]="myGroup" class="card">\n\t\t\t\t<div class="card-header" id="headingthree">\n\t\t\t\t  <h2 class="mb-0">\n\t\t\t\t\t<a class="btn btn-link w-100 text-left collapsed" type="button" data-toggle="collapse" data-target="#collapsethree" aria-expanded="false" aria-controls="collapsethree">\n\t\t\t\t\t <i class="fa fa-plus" >&nbsp;</i>\n\t\t\t\t\t <i class="fa fa-minus" >&nbsp;</i>\n\t\t\t\t\t   Attributes\n\t\t\t\t\t</a>\n\t\t\t\t  </h2>\n\t\t\t\t</div>\n\t\t\t\t<div id="collapsethree" class="collapse" aria-labelledby="headingthree" data-parent="#agencyaccordion">\n\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t<div id="attribute_accordion">\n\t\t\t\t\t\t\t\t<div class="card-set">\n\t\t\t\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t\t\t\t<a class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'Drug\')" data-toggle="collapse" data-target="#panel_content_1" data-record="Drug">\n\t\t\t\t\t\t\t\t\t\t\t\t\tSubstances Treated \n\t\t\t\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<div id="panel_content_1" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t\t\t\t<div id="some_attributes_left_substances">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:</label><span class="select_all_span_substances">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a  (click)="onselectAll(Drug,\'selAttribute_substances\')">Select All</a></span> | <span class="deselect_all_span_substances"><a (click)="ondeselectAll(substances_treated,\'selAttribute_substances\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div  id="magicsuggest_substances">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="Drug"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tappendTo="body"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attrsubs"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attrsubs,\'selAttribute_substances\')"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_substances"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_substances" id="selAttribute_substances" />\n\t\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_substances" id="attributeType_substances" />\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_substances" id="selAttribute_substances">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of substances_treated" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t\t<a class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'ClientCharacteristics\')"  data-toggle="collapse" data-target="#panel_content_2" data-record="Special Population">\n\t\t\t\t\t\t\t\t\t\t\tSpecial Population \n\t\n\t\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t\t<div id="panel_content_2" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t\t<div id="some_attributes_left_splpopulation">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:&nbsp;</label><span class="select_all_span_specialpopulation">\n\t\t\t\t\t\t\t\t\t\t\t\t<a (click)="onselectAll(ClientCharacteritics,\'selAttribute_specialpopulation\')">Select All</a></span> | <span class="deselect_all_span_specialpopulation"><a (click)="ondeselectAll(special_population,\'selAttribute_specialpopulation\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_specialpopulation">\n\t\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="ClientCharacteritics"\n\t\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\t\tappendTo="body"\n\t\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attrpopul"\n\t\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attrpopul,\'selAttribute_specialpopulation\')"\n\t\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_specialpopulation"\n\t\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_specialpopulation" id="selAttribute_specialpopulation" />\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_specialpopulation" id="attributeType_specialpopulation" />\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_specialpopulation" id="selAttribute_specialpopulation">\n\t\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of special_population" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t\t<a id="paymentattributes" class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'Treatment\')" data-toggle="collapse" data-target="#panel_content_3" data-record="Treatment">\n\t\t\t\t\t\t\t\t\t\t\tTreatments and Services offered \n\t\n\t\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t\t<div id="panel_content_3" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t\t<div id="some_attributes_left_trmtsvcs">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:&nbsp;</label><span class="select_all_span_treatmentservices">\n\t\t\t\t\t\t\t\t\t\t\t\t<a (click)="onselectAll(Treatment,\'selAttribute_treatmentservices\')">Select All</a></span> | <span class="deselect_all_span_treatmentservices"><a (click)="ondeselectAll(treatments_offered,\'selAttribute_treatmentservices\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_treatmentservices">\n\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="Treatment"\n\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\tappendTo="body"\n\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attrtreat,\'selAttribute_treatmentservices\')"\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attrtreat"\n\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_treatmentservices"\n\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t[ngClass]="{\'is-invalid\': submitted && f.selAttribute_treatmentservices.invalid}" >\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_treatmentservices" id="selAttribute_treatmentservices" />\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_treatmentservices" id="attributeType_treatmentservices" />\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_treatmentservices" id="selAttribute_treatmentservices">\n\t\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of treatments_offered" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t\t<a  class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'Payment\')" data-toggle="collapse" data-target="#panel_content_4" data-record="Payment">\n\t\t\t\t\t\t\t\t\t\t\tPayments Accepted\n\t\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t\t<div id="panel_content_4" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t\t<div id="some_attributes_left_paymtsaccptd">\n\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:&nbsp;</label><span class="select_all_span_payments"><a (click)="onselectAll(Payment,\'selAttribute_payments\')">Select All</a></span> | <span class="deselect_all_span_payments">\n\t\t\t\t\t\t\t\t\t\t\t\t<a (click)="ondeselectAll(payments_accepted,\'selAttribute_payments\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_payments">\n\t\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="Payment"\n\t\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\t\tappendTo="body"\n\t\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attrpayment,\'selAttribute_payments\')"\n\t\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attrpayment"\n\t\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_payments"\n\t\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_payments" id="selAttribute_payments" />\n\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_payments" id="attributeType_payments" />\n\t\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_payments" id="selAttribute_payments">\n\t\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of payments_accepted" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t<div class="card-set">\n\t\t\t\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t<a class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'AdditionalServices\')" data-toggle="collapse" data-target="#panel_content_5" data-record="Additional Services">\n\t\t\t\t\t\t\t\t\t\tAdditional Services\n\t\n\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t<div id="panel_content_5" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div id="some_attributes_left_additionalsvcs">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:&nbsp;</label><span class="select_all_span_addtionalsvcs">\n\t\t\t\t\t\t\t\t\t\t\t<a (click)="onselectAll(AdditionalServices,\'selAttribute_addtionalsvcs\')">Select All</a></span> | <span class="deselect_all_span_addtionalsvcs"><a (click)="ondeselectAll(additional_services,\'selAttribute_addtionalsvcs\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_addtionalsvcs">\n\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="AdditionalServices"\n\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attraddserv,\'selAttribute_addtionalsvcs\')"\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attraddserv"\n\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_addtionalsvcs"\n\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_addtionalsvcs" id="selAttribute_addtionalsvcs" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_addtionalsvcs" id="attributeType_addtionalsvcs" />\n\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_addtionalsvcs" id="selAttribute_addtionalsvcs">\n\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of additional_services" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\n\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t<a class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'AgeServed\')" data-toggle="collapse" data-target="#panel_content_6" data-record="Age">\n\t\t\t\t\t\t\t\t\t\tAges Served\n\t\n\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t<div id="panel_content_6" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div id="some_attributes_left_ageserved">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:&nbsp;</label><span class="select_all_span_ageserved">\n\t\t\t\t\t\t\t\t\t\t\t<a (click)="onselectAll(AgeServed,\'selAttribute_ageserved\')">Select All</a></span> | <span class="deselect_all_span_ageserved"><a (click)="ondeselectAll(age_served,\'selAttribute_ageserved\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_ageserved">\n\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="AgeServed"\n\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attrageserv,\'selAttribute_ageserved\')"\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attrageserv"\n\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_ageserved"\n\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_ageserved" id="selAttribute_ageserved" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_ageserved" id="attributeType_ageserved" />\n\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_addtionalsvcs" id="selAttribute_addtionalsvcs">\n\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t<option *ngFor="let data of age_served" value="{{data}}">{{data}}</option>\n\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\n\t\t\t\t\t<div class="card">\n\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t<a class="btn btn-link panel_plus" (click)="getAttributesInfo2(\'GenderServed\')" data-toggle="collapse" data-target="#panel_content_7" data-record="Gender">\n\t\t\t\t\t\t\t\t\t\tGenders served\n\t\n\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t<div id="panel_content_7" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t<div id="some_attributes_left_genderserved">\n\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:&nbsp;</label><span class="select_all_span_genderserved">\n\t\t\t\t\t\t\t\t\t\t\t<a (click)="onselectAll(GenderServed,\'selAttribute_genderserved\')">Select All</a></span> | <span class="deselect_all_span_genderserved"><a (click)="ondeselectAll(gender_served,\'selAttribute_genderserved\')">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_genderserved">\n\t\t\t\t\t\t\t\t\t\t\t<ng-select [items]="GenderServed"\n\t\t\t\t\t\t\t\t\t\t\tdropdownPosition="bottom"\n\t\t\t\t\t\t\t\t\t\t\tbindLabel="name"\n\t\t\t\t\t\t\t\t\t\t\tplaceholder=""\n\t\t\t\t\t\t\t\t\t\t\tmultiple="true"\n\t\t\t\t\t\t\t\t\t\t\t(change)="changeFn(attrgenderserv,\'selAttribute_genderserved\')"\n\t\t\t\t\t\t\t\t\t\t\t[(ngModel)]="attrgenderserv"\n\t\t\t\t\t\t\t\t\t\t\tformControlName="selAttribute_genderserved"\n\t\t\t\t\t\t\t\t\t\t\t[closeOnSelect]="true"\n\t\t\t\t\t\t\t\t\t\t\t[hideSelected]="true"\n\t\t\t\t\t\t\t\t\t\t\t[clearable]="false"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t<ng-template ng-label-tmp let-item="item" let-clear="clear">\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-label"> {{item.name}}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n\t\t\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t\t\t\t</ng-select>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_genderserved" id="selAttribute_genderserved" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_genderserved" id="attributeType_genderserved" />\n\t\t\t\t\t\t\t\t\t\x3c!-- <select  name="selAttribute_genderserved" id="selAttribute_genderserved">\n\t\t\t\t\t\t\t\t\t\t<option value=""></option>\n\t\t\t\t\t\t\t\t\t\t<option value="1">Men</option>\n\t\t\t\t\t\t\t\t\t\t<option value="2">Women</option>\n\t\t\t\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- <div class="card">\n\t\t\t\t\t\t\t\t<div class="card-header">\n\t\t\t\t\t\t\t\t\t<h6 class="panel-title ">\n\t\t\t\t\t\t\t\t\t\t<a class="btn btn-link panel_plus" data-toggle="collapse" data-target="#panel_content_8" data-record="Language">\n\t\t\t\t\t\t\t\t\t\t\tLanguage Specialities\n\t\n\t\t\t\t\t\t\t\t\t\t<span  class="pull-right color-ill"><i class="fa fa-plus" title="Add New">&nbsp;</i>Add New</span>\n\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</h6>\n\t\t\t\t\t\t\t\t</div>\n\t\n\t\t\t\t\t\t\t\t\t<div id="panel_content_8" class="collapse"  data-parent="#attribute_accordion">\n\t\t\t\t\t\t\t\t\t\t<div class="card-body">\n\t\t\t\t\t\t\t\t\t<div id="some_attributes_left_language">\n\t\t\t\t\t\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<label>Choose or type a name:</label><span class="select_all_span_language">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href="#">Select All</a></span> | <span class="deselect_all_span_language"><a href="#">Deselect All</a></span>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id="magicsuggest_language"></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="selAttribute_language" id="selAttribute_language" />\n\t\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="attributeType_language" id="attributeType_language" />\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div> --\x3e\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\x3c!-- #attribute_accordion --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n\t\n\t\n\t</div>\n\t\n\t<div class="row" [ngClass]="(requestlist==\'ExProgram\')? \'\': \'hide\'"  id="existing_program_div">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-12">\n\t\t\t\t\t\x3c!-- <p>Please provide the program details below so that your account may be associated with an existing program. Your request will be reviewed as soon as possible. A Helpline staff member may contact you if additional information is required. You will receive an email when your request is approved.<br />\n\t\t\t\t\tAlternatively, if there is a staff member at your program with administrator rights to the program\xe2\u20ac\u2122s Helpline profile, they can add you to the program immediately.</p> --\x3e\n\t\t\t\t\t<strong style="font-weight: 600">Please provide the program details below so that your account may be associated with an existing program within our database.</strong>\n\t\t\t\t\t&nbsp;&nbsp;<p>Not sure if your program is already listed with us? <a target="_blank" href="/app/account/opa_interview" style="font-weight: 600"><b>Click here</b></a> to search our database. <br/>Alternatively, if there is a staff member at your program with administrator rights to your program\'s profile, they can quickly and easily add you to the program via the <a target="_blank" href="/app/account/manage_users" style="font-weight: 600"><b>Manage Users</b></a> tab and select Add User.</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t<label for="ex_program_name">Program Name: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t<input type="text" name="ex_program_name" id="ex_program_name" class="form-control" formControlName="programName"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t<label for="ex_program_location">Program Location: </label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t<textarea name="ex_program_location" id="ex_program_location" rows="2" class="form-control" formControlName="programlocation"></textarea>\n\t\t\t\t</div>\n\t\t\t</div>\t\t\t\t\n\t\t</div>\n\t</div>\n\t\n\t<div class="row" [ngClass]="(requestlist==\'Portal\' || requestlist==\'Other\' || requestlist==\'ExProgram\')? \'\':\'hide\'" id="desc_attachment_div">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="row">\n\t\t\x3c!-- \t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="upload" class="control-label">Attachment <span class="hide" id="if_any">(if any)</span>:</label>&nbsp;<span class="red hide" id="attach_required">*</span>\n\t\t\t\t\t\t<input type="file" style="display:none;" name="upload[]" id="upload" multiple="multiple" />\n\t\t\t\t\t\t<div class="file_fake">Choose a file</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div> --\x3e\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group hide">\n\t\t\t\t\t\t<label for="program_attach" class="control-label">Select Program:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<select id="program_attach" name="program_attach">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t\x3c!-- <?php\n\t\t\t\t\t\t\t\tif($this->data[\'programs\'][\'status\'] == \'OK\' && count($this->data[\'programs\'][\'programs\'] > 0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tforeach($this->data[\'programs\'][\'programs\'] as $programID => $programName)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\techo \'<option value="\'.$programID.\'">\'.$programName.\'</option>\';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t?> --\x3e\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="description">Description / Note to Helpline Administrator:</label>\n\t\t\t\t\t\t<textarea name="description" id="description" rows="5" class="form-control" formControlName="description"></textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class="row" [ngClass]="(requestlist==\'waitlist\')? \'\':\'hide\'" id="desc_attachment_div">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="program_name" class="control-label">Program Name:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<select id="program_name" name="program_name" formControlName="program_name" (change)="changeprog()">\n\t\t\t\t\t\t\t<option value="">--Select One--</option>\n\t\t\t\t\t\t\t<option *ngFor="let item of preg_names" value={{item.providerid}}-{{item.providername}}>{{item.providername}}</option>\t\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<div  *ngIf="submitted && f.program_name.errors"  style="color:red;">Please select program name</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="waitlst_name" class="control-label">Waitlist Name:</label>&nbsp;<span class="red ">*</span>&nbsp;<i class="fa fa-edit"></i>\n\t\t\t\t\t\t<input type="text" name="waitlst_name" id="waitlst_name" class="form-control" formControlName="waitlst_name" />\n\t\t\t\t\t\t<div  *ngIf="submitted && f.waitlst_name.errors"  style="color:red;">Please enter waitlist name</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t\t<div class="col-md-6">\n\t\t\t\t\t\t<label class="control-label" style="font-size: 14px;float: left;">\n\t\t\t\t\t\tWould you like to share this waitlist with another program?&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<div class="" style="float: left;padding-left: 4px;">\n\t\t\t\t\t\t<div class="form-group m-0" >\n\t\t\t\t\t\t<div id="agency_pgm_chk" >\n\t\t\t\t\t\t\t<input type="radio" id="likewtchk" formControlName="likewtchk"  name="likewtchk" value="Yes" [(ngModel)]=\'share_check\'\n\t\t\t\t\t\t\t[ngClass]="{ \'is-invalid\': submitted && f.agchk.errors }" (change)="sharewt($event)" required/> Yes\n\t\t\t\t\t\t\t<input type="radio" id="likewtchk"  name ="likewtchk" formControlName="likewtchk" value="No" class="ml-3" [(ngModel)]=\'share_check\' \n\t\t\t\t\t\t\t[ngClass]="{ \'is-invalid\': submitted && f.likewtchk.errors }" (change)="sharewt($event)" required/> No\n\t\t\t\t\t\t\t<div  *ngIf="submitted && f.likewtchk.errors"  style="color:red;font-size: 12px;">This field is required</div>\n\t\t\t\t\t\t\t\x3c!-- <span style="color:red"\n\t\t\t\t\t\t\t*ngIf=\'submitted && f.agchk.errors\'>*</span>\n\t\t\t\t\t\t\t<span class="error-msg" *ngIf=\'submitted && f.agchk.errors\'>\n\t\t\t\t\t\t\t\tPlease select any one\n\t\t\t\t\t\t\t  </span> --\x3e\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t<div class="col-md-6" style="padding: 0px;">\n\t\t\t\t<div class="col-md-6" [ngClass]="(otherpregname)? \'\':\'hide\'"><input type="text" class="form-group" placeholder="Enter program name" formControlName="otherprogname" />\n\t\t\t\t<div  *ngIf="submitted && f.otherprogname.errors"  style="color:red;">Please enter program name</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-6" [ngClass]="(otherpregname)? \'\':\'hide\'">\n\t\t\t\t\t\t<select name="wt_city" id="wt_city" class="form-control" formControlName="wt_city">\n\t\t\t\t\t\t\t<option value="">--Select City/Town--</option>\n\t\t\t\t\t\t\t<option *ngFor="let item of mk_cities" value={{item.value}}>{{item.value}}</option>\t\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<div *ngIf="submitted && f.wt_city.errors"  style="color:red;">Please select city/town</div>\n\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="description">Notes to Helpline:</label>\n\t\t\t\t\t\t<textarea name="description" id="wt_helpline" rows="5" class="form-control" formControlName="wt_helpline"></textarea>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class="row" [ngClass]="(requestlist==\'share_waitlist\')? \'\':\'hide\'" id="desc_attachment_div">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="share_waitlst_name" class="control-label">Waitlist Name:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<select name="share_waitlst_name" id="share_waitlst_name" class="form-control" formControlName="share_waitlst_name">\n\t\t\t\t\t\t\t<option value="">--Select One--</option>\n\t\t\t\t\t\t\t<option *ngFor="let item of waitlistNames" value={{item.orgid}}--{{item.orgname}}--{{item.waitlistname}}>{{item.waitlistname}} - {{item.orgname}}</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\x3c!-- <input type="text" name="share_waitlst_name" id="share_waitlst_name" class="form-control" formControlName="share_waitlst_name" /> --\x3e\n\t\t\t\t\t\t<div  *ngIf="submitted && f.share_waitlst_name.errors"  style="color:red;">Please select waitlist name</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-4">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="share_program_name" class="control-label">Program Name:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<input type="text" id="share_program_name" name="share_program_name" formControlName="share_program_name" placeholder="Enter program name" />\n\t\t\t\t\t\t\x3c!-- <select id="share_program_name" name="share_program_name" formControlName="share_program_name">\n\t\t\t\t\t\t\t<option value="">Select One</option>\n\t\t\t\t\t\t\t<option *ngFor="let item of preg_names" value={{item.providerid}}-{{item.providername}}>{{item.providername}}</option>\t\n\t\t\t\t\t\t</select> --\x3e\n\t\t\t\t\t\t<div  *ngIf="submitted && f.share_program_name.errors"  style="color:red;">Please select program name</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-md-4">\n\t\t\t\t\t\t<label for="share_waitlst_name" class="control-label">City/Town:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<select name="exwt_city" id="exwt_city" class="form-control" formControlName="exwt_city">\n\t\t\t\t\t\t\t<option value="">--Select City/Town--</option>\n\t\t\t\t\t\t\t<option *ngFor="let item of mk_cities" value={{item.value}}>{{item.value}}</option>\t\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<div *ngIf="submitted && f.exwt_city.errors"  style="color:red;">Please select city/town</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="description">Notes to Helpline:</label>\n\t\t\t\t\t\t<textarea name="description" id="notes_helpline" rows="5" class="form-control" formControlName="notes_helpline"></textarea>\n\t\t\t\t\t\t\x3c!-- <div  *ngIf="submitted && f.notes_helpline.errors"  style="color:red;">Please enter notes</div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t<div class="row" [ngClass]="(requestlist==\'req_waitlist\')? \'\':\'hide\'" id="desc_attachment_div">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="row" *ngIf="expreg_names.length==0 && strip"><div class="alert alert-danger" style="width:100%;text-align:center;font-weight: bold;">In order to gain access to another program\'s waitlist, please use the Existing Program option above. Indicate which program you need access to, use the note box to indicate that you would like access to the waitlist.</div>\n\t\t\t</div>\n\t\t\t<div class="row" *ngIf="expreg_names.length>0">\n\t\t\t\t<p style="font-size: 16px; font-weight:600;padding-left: 15px;">To access a program\u2019s waitlist with the Helpline, enter your program name and location below. You can also contact your program\u2019s administrator to gain access to an existing waitlist.</p>\n\t\t\t\t<p style="font-weight: 500 !important;font-size: 14px;width: 100%;padding-left: 15px;">Add the fields below to the request:</p>\n\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="req_program_name" class="control-label">Program Name:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<select id="req_program_name" name="req_program_name" formControlName="req_program_name">\n\t\t\t\t\t\t\t<option value="">--Select One--</option>\n\t\t\t\t\t\t\t<option *ngFor="let item of expreg_names" value={{item.providerid}}-{{item.providername}}>{{item.providername}}</option>\t\n\t\t\t\t\t\t</select>\n\t\t\t\t\t\t<div class="red"  *ngIf="submitted && f.req_program_name.errors">Please select program name</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="col-sm-6">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="req_waitlst_name" class="control-label">Program Location:</label>&nbsp;<span class="red ">*</span>\n\t\t\t\t\t\t<input type="text" name="req_waitlst_name" id="req_waitlst_name" class="form-control" formControlName="req_waitlst_name" />\n\t\t\t\t\t\t<div  *ngIf="submitted && f.req_waitlst_name.errors"  style="color:red;">Please enter program location</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="row" *ngIf="expreg_names.length>0">\n\t\t\t\t<div class="col-sm-8">\n\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t<label for="description">Description/Note to Helpline Administrator:</label>\n\t\t\t\t\t\t<textarea name="notes_reqwaitlist" id="notes_reqwaitlist" rows="5" class="form-control" formControlName="notes_reqwaitlist"></textarea>\n\t\t\t\t\t\t\x3c!-- <div  *ngIf="submitted && f.notes_helpline.errors"  style="color:red;">Please enter notes</div> --\x3e\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\x3c!-- <small *ngIf="myGroup.hasError(\'atLeastOneRequired\')" class="mat-text-warn data_light">{{myGroup.getError(\'atLeastOneRequired\')}}\n\t</small>*ngIf="!treatmentsselected" --\x3e\n\t<div  *ngIf="submitted && f.selAttribute_treatmentservices.errors" id="attribute_error"  style="color:red;">\n\t\tPlease select Treatments and Services offered</div>\n\t<div class="row">\n\t\t<div class="col-sm-12">\n\t\t\t<div class="form-group text-center">\n\t\t\t\t<button class="button button_medium" [ngClass]="(requestlist==\'req_waitlist\' && expreg_names.length==0)? \'hide\':\'\'" id="make_request_submit_button" [disabled]="disable ? true : null" type="submit">Submit</button>&nbsp;<img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t</form>\n\t</div>\n\t</div>',styles:[".card-set {\n  margin-bottom: 5px;\n  width: 48%;\n  float: left;\n  margin-right: 2%;\n}\n\n.card {\n  margin-bottom: 5px;\n}\n\n.card-header {\n  padding: 5px;\n}\n\n.color-ill {\n  color: #9c6b9e;\n  font-weight: bold;\n}\n\n.panel-title a {\n  text-align: left;\n  width: 100%;\n}\n\n.panel_plus {\n  position: relative;\n}\n\n#agencyaccordion a.btn.collapsed i.fa-minus {\n  display: none;\n}\n\n#agencyaccordion a.btn i.fa-minus {\n  display: inline-block;\n}\n\n#agencyaccordion a.btn.collapsed i.fa-plus, #agencyaccordion a.btn .color-ill i.fa-plus {\n  display: inline-block;\n}\n\n#agencyaccordion a.btn i.fa-plus {\n  display: none;\n}\n\n#attribute_accordion .card.hide {\n  display: block !important;\n}\n\n.has-error input[type=radio] {\n  outline: 1px solid red;\n}\n\n.checkbox label, .radio label {\n  min-height: 25px;\n}\n\n.container {\n  margin-top: -9px;\n}\n\n.page_heading {\n  font-size: 2.3em !important;\n  margin-left: -16px !important;\n}\n\nlabel {\n  font-size: 16px !important;\n}\n\n.is-invalid {\n  border: 1px solid #a94442 !important;\n}\n\n.is-invalid-label {\n  color: #a94442 !important;\n}\n\n@media (max-width: 678px) {\n  #make_request {\n    padding-left: 2px !important;\n  }\n\n  .card-set {\n    width: 100% !important;\n  }\n}"]})],lV);let cV=class{constructor(t){this.titleService=t,this.titleService.setTitle("Page Not Found - Massachusetts Substance Use Helpline")}ngOnInit(){}};cV.ctorParameters=()=>[{type:wh}],cV=Hh([Object(s.Component)({selector:"app-page-not-found",template:'<div class="container body">\n    <div id="content">\n    <div id="inner-content" class="wrap cf">\n    <main id="main" class="m-all t-2of3 d-5of7 cf" role="main" itemscope="" itemprop="mainContentOfPage" itemtype="http://schema.org/Blog">\n    <article id="post-not-found" class="hentry cf">\n    <header class="article-header">\n    <h1>404 - Page Not Found</h1>\n    </header>\n    <section class="entry-content">\n    <p>The page you were looking for was not found or the URL has changed. If you are trying to perform a treatment search<a href="/findhelp">click here</a> or call 800 327-5050</p>\n    <p>To search for content on the Massachusetts Substance Use Helpline website please use the search field below.</p>\n    </section>\n    <section class="search">\n    <p></p><form role="search" method="get" id="searchform" class="searchform" action="">\n    <div>\n    <label for="s" class="screen-reader-text">Search for:</label>\n    <input type="search" id="s" name="s" value="">\n    <button type="submit" id="searchsubmit">Search</button>\n    </div>\n    <input type="hidden" name="lang" value="en"></form><p></p>\n    </section>\n    <footer class="article-footer">\n    </footer>\n    </article>\n    </main>\n    </div>\n    </div>\n    </div>',styles:[""]})],cV);let dV=class{constructor(t,e){this.fb=t,this.manageusers=e,this.formSubmited=!1,this.pwdfrmSubmited=!1,this.profloader=!1,this.pwdloader=!1}get FC(){return this.changeProfile.controls}get PC(){return this.changePWD.controls}ngOnInit(){this.changeProfile=this.fb.group({firstname:[null,[im.required]],lastname:[null,[im.required]]}),this.changePWD=this.fb.group({newpwd:[null,[im.required]],cnfpwd:[null,[im.required]]},{validators:this.MustMatch("newpwd","cnfpwd")})}ngAfterViewInit(){this.changeProfile.controls.firstname.setValue(localStorage.getItem("firstname")),this.changeProfile.controls.lastname.setValue(localStorage.getItem("lastname"))}profileSubmit(){if(this.formSubmited=!0,this.changeProfile.valid){this.profloader=!0;let t=this.changeProfile.controls.firstname.value,e=this.changeProfile.controls.lastname.value,n={objectid:localStorage.getItem("objectid"),firstname:t,lastname:e};this.manageusers.updateProfile(n).subscribe(t=>{console.log(t),window.location.reload()})}else console.log(this.changeProfile.getError)}pwdSubmit(){if(this.pwdfrmSubmited=!0,this.changePWD.valid){this.pwdloader=!0;let t=this.changePWD.controls.newpwd.value,e={objectid:localStorage.getItem("objectid"),newpassword:t};this.manageusers.updatePWD(e).subscribe(t=>{console.log(t),window.location.reload()})}else console.log(this.changePWD.getError)}MustMatch(t,e){return n=>{const i=n.controls[t],s=n.controls[e];s.errors&&!s.errors.mustMatch||(i.value!==s.value?s.setErrors({mustMatch:!0}):s.setErrors(null))}}};dV.ctorParameters=()=>[{type:Uf},{type:$j}],dV=Hh([Object(s.Component)({selector:"app-myaccount",template:'\n  <div class="container">\n  <div class="row">\n      <div class="col-md-6">\n        <div class="psd_form_section_heading">My Profile</div>\n        <form id="rn_ChangeProfile" [formGroup]="changeProfile" (ngSubmit)="profileSubmit();">\n            <div class="form-group">\n                <label for="fn" class="control-label">First Name</label>\n                <input type="text" class="form-control" placeholder="First Name" formControlName="firstname" name="fn" id="fn" value="" />\n                <div class="" *ngIf="formSubmited && FC.firstname?.errors">\n                    <small class="text-danger" *ngIf="FC.firstname.errors.required">Please enter first name</small>\n                </div>\n            </div>\n            <div class="form-group">\n                <label for="ln" class="control-label">Last Name</label>\n                <input type="text" class="form-control" placeholder="Last Name" formControlName="lastname" name="ln" id="ln" value="" />\n                <div class="" *ngIf="formSubmited && FC.lastname?.errors">\n                    <small class="text-danger" *ngIf="FC.lastname.errors.required">Please enter last name</small>\n                </div>\n            </div>\n            <div class="form-group text-center">\n                <button type="submit" [disabled]="profloader" class="button button-medium">Update</button>&nbsp; <img\n                *ngIf="profloader" src="assets/images/loader.gif"\n                style="padding-right: 6px; height:20px;" />\n            </div>\n        </form>\n      </div>\n      <div class="col-md-6">\n        <div class="psd_form_section_heading">Change Your Password</div>    \n          <div id="rn_ErrorLocation"></div>\n          <form id="rn_ChangePassword" [formGroup]="changePWD" (ngSubmit)="pwdSubmit();">\n            \x3c!-- <div class="form-group">\n                <label for="cp" class="control-label">Current Password</label>\n                <input type="text" class="form-control" name="cp" id="cp" value="" />\n            </div> --\x3e\n            <div class="form-group">\n                <label for="np" class="control-label">New Password</label>\n                <input type="password" class="form-control" placeholder="New Password" formControlName="newpwd" name="np" id="np" value="" />\n                <div class="" *ngIf="pwdfrmSubmited && PC.newpwd?.errors">\n                    <small class="text-danger" *ngIf="PC.newpwd.errors.required">Please enter new password</small>\n                </div>\n            </div>\n            <div class="form-group">\n                <label for="vp" class="control-label">Confirm Password</label>\n                <input type="password" class="form-control" placeholder="Confirm Password" formControlName="cnfpwd"  name="vp" id="vp" value="" />\n                <div class="" *ngIf="pwdfrmSubmited && PC.cnfpwd?.errors">\n                    <small class="text-danger" *ngIf="PC.cnfpwd.errors.required">Please enter Confirm Password</small>\n                    <small class="text-danger" *ngIf="PC.cnfpwd.errors.mustMatch">Password and Confirm password must match</small>\n                </div>\n            </div>\n            <div class="form-group text-center">\n                <button type="submit" [disabled]="pwdloader" class="button button-medium">Submit</button>&nbsp; <img\n                *ngIf="pwdloader" src="assets/images/loader.gif"\n                style="padding-right: 6px; height:20px;" />\n            </div>\n              \x3c!-- <rn:widget path="input/PasswordInput" name="Contact.NewPassword"\n               require_validation="true" require_current_password="true" \n               label_input="New Password" label_validation="#rn:msg:VERIFY_PASSWD_LBL#" \n               initial_focus="true"/>\n              <div class="text-center">\n                <rn:widget path="input/FormSubmit" \non_success_url="php:\'/app/account/change_password/msg/\' . \nurlencode(\\RightNow\\Utils\\Config::getMessage(YOUR_PASSWORD_HAS_BEEN_CHANGED_MSG))#" \nerror_location="rn_ErrorLocation" /> \n              </div>--\x3e\n          </form>\n      </div>\n    </div>\n</div>\n    ',styles:['.rn_PasswordInput {\n  clear: both;\n  margin-bottom: 8px;\n}\n\n.rn_PasswordInput .rn_Label {\n  display: block;\n  font-weight: bold;\n  margin-bottom: 2px;\n}\n\n.rn_PasswordInput .rn_PasswordLength {\n  color: #646464;\n  display: block;\n  font-weight: normal;\n  margin-top: 4px;\n}\n\n.rn_PasswordInput .rn_Password {\n  /*width: 60%; */\n}\n\n.rn_PasswordInput .rn_PasswordInputCurrent {\n  margin-bottom: 10px;\n}\n\n.rn_PasswordInput .rn_PasswordInputValidate {\n  margin-top: 10px;\n}\n\n.rn_PasswordInput .yui3-overlay {\n  margin-left: 50px;\n  background-color: #ccc;\n  background: linear, top, rgba(204, 204, 204, 0.28), rgba(180, 184, 184, 0.46);\n  border-radius: 6px;\n  border: 2px solid #fff;\n  box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);\n  padding: 1em;\n  max-width: 260px;\n}\n\n.rn_PasswordInput .rn_Intro {\n  font-weight: bold;\n  font-size: 1.3em;\n  text-shadow: 0 1px 0 #fff;\n}\n\n.rn_PasswordInput .rn_Heading {\n  margin-bottom: 10px;\n}\n\n.rn_PasswordInput .rn_Meter {\n  border: 1px solid #999;\n  height: 12px;\n  padding: 0;\n  width: 100px;\n  float: left;\n  position: relative;\n  margin-right: 8px;\n}\n\n.rn_PasswordInput .rn_Meter div {\n  border-top: 1px solid #FFF;\n  height: 11px;\n}\n\n.rn_HighContrastMode .rn_PasswordInput .rn_Meter div {\n  border-top: 12px solid #FFF;\n  height: 0;\n}\n\n.rn_PasswordInput .rn_Strength {\n  margin: 4px 0;\n  overflow: hidden;\n}\n\n.rn_PasswordInput .rn_Meter .rn_NoValidations {\n  background: #F00;\n  width: 25%;\n}\n\n.rn_PasswordInput .rn_Meter .rn_SomeValidations {\n  background: #FF0;\n  width: 75%;\n}\n\n.rn_PasswordInput .rn_Meter .rn_AllValidations {\n  background: #008000;\n}\n\n.rn_PasswordInput ul {\n  padding-left: 13px;\n}\n\n.rn_PasswordInput li {\n  list-style-type: circle;\n  padding-bottom: 3px;\n}\n\n.rn_PasswordInput .rn_Fail {\n  color: #B10101;\n  list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA6ElEQVR42pWRwUrDQBRFb/VH8gNV23/p/3RXaHCh4KIWoboo6q5dlboQFTEZKSRfNJ4LQ2jHbho4zJ133kwyE8UYT6ILI+k8l7nrFkykopTKa2mQN7tm5x7PNZbObqUpxBspMF5aGGcIdu5xryzupKsZ4h4BNblv5mSIdu45OMMDuy0Qj5SepCbhHOz+HdrQfPEstS+UXw15Sc3u6IIVEto1ZeMMxxdseO1WChDJjXGGsMk/6Z0DfSA+mTLWbxzYOKda+Kanu9ZKmtYICF97uzm7FnDV/rX+SMVOKn/Tj+PpmeSGdu7x/A+N9hV+nr/dEgAAAABJRU5ErkJggg==");\n}\n\n.rn_PasswordInput .rn_Pass {\n  color: #015301;\n  list-style-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABQUlEQVQoz2P4//8/AymYgeoaVHIZ2EOrZaQZGhiYCGpg0GZgK5tnmdO8zv1QwWyTEAYGBiacio2NGVjzphlmdGz0ezn1YPT/xlWuN6Ma5R3Bkv7VQrKJPUqRoQ2iEmCTgYrTJ2hm1a1wft252f9/6waf/6XzrI9FNEiaMHgX8itlTtZZXDrf4lPmZK2ZHhkCCkmdShmlcy1e1S53/F+12P5/7jSjQ6ENEmZgw8JrJYuyJ+l+KZpt+j93qv6P5C7lI5mTdF4WzjT5nzfN6H9Kt/qRgAoRY7i/fMsF5aIaZeckdaj8TO1R+58Cxqr/k7tU/sc0yx32LeYzxQhWtwwGsYAK4akRNeK/Ihsl/0fUS/wPrhQ95FfEZYgzHmwTGUR9C3lm+pfyf/Mp4jnklsdqTDDiXJMYpDyy2Us9slhNcQU3AOCKTBgpozkYAAAAAElFTkSuQmCC");\n}\n\n.rn_InfoMessage, .rn_ErrorMessage {\n  background: #E6EFC2;\n  color: #333c10;\n  font-weight: bold;\n  margin-bottom: 0.75em;\n  padding: 0.75em;\n}']})],dV);let pV=class{constructor(t,e,n){this.router=t,this.myrequestsService=e,this.serviceTitle=n,this.referenceNumber="",this.serviceTitle.setTitle("Request Details - Massachusetts Substance Use Helpline"),this.referenceNumber=this.router.url.replace("/requestdetail/","")}ngOnInit(){this.myrequestsService.getSubmittedRequestsByReference(this.referenceNumber).subscribe(t=>{this.submittedRequestList=t})}};pV.ctorParameters=()=>[{type:Wf.Router},{type:zj},{type:wh}],pV=Hh([Object(s.Component)({selector:"app-requestdetail",template:'<div class="container body" *ngIf=submittedRequestList>\n  \n    <div class="row">\n        <div class="col-sm-12">\n            <div class="page_heading">Request Details</div>\n        </div>\n    </div>\n    <div class="row">\n        <div class="col-sm-12">\n        <div class="form_section_heading">Contact Details</div>\n    </div>\n    <div class="col-sm-4">\n        <strong>First Name: </strong>\n        {{submittedRequestList.Contact.firstname}}</div>\n    <div class="col-sm-4">\n        <strong>Last Name: </strong>\n        {{submittedRequestList.Contact.lastname}}</div>\n    <div class="col-sm-4">\n        <strong>Email Address: </strong>\n        {{submittedRequestList.Contact.email}}</div>\n    <div class="col-sm-12 top20">\n        <div class="form_section_heading">Incident Details</div>\n    </div>\n    <div class="col-sm-4">\n        <strong>Reference Number: </strong>\n        <strong style="color:#9C6B9D;">{{submittedRequestList.Incident.incidentrefno}}</strong>\n    </div>\n    <div class="col-sm-4">\n        <strong>Last Update: </strong>\n        {{submittedRequestList.Incident.updatedtime | date:\'MM/dd/yyyy h:mm:s \'}}</div>\n        <div class="col-sm-4" >\n            <strong>Status: </strong>\n            <label [ngClass]="{\'label-danger\':submittedRequestList.Incident.incidentstatusname === \'Unresolved\',\n                                        \'label-success-approved\':submittedRequestList.Incident.incidentstatusname === \'Approved\',                                   \n                                        \'label-success\':submittedRequestList.Incident.incidentstatusname === \'Closed\',\n                                        \'label-warning\':submittedRequestList.Incident.incidentstatusname===\'Rejected\' }" class="label_width label">\n                                        {{submittedRequestList.Incident.incidentstatusname}}</label>\n        </div>\n    <div class="col-sm-4">\n        <strong>Incident Type: </strong>\n        {{submittedRequestList.Incident.incidenttypename}}</div>\n    <div class="col-sm-4">\n        <strong>Subject: </strong>\n        {{submittedRequestList.Incident.subject}}</div>\n    <div class="col-sm-4">\n        <strong>Creation Date: </strong>\n        {{submittedRequestList.Incident.createdtime | date:\'MM/dd/yyyy h:mm:s\'}}</div>\n    <div class="col-sm-4">\n        <strong>Provider: </strong>\n        {{submittedRequestList.Incident.providertype}}</div>\n    <div class="col-sm-4">\n        <strong>Provider License#: </strong>\n        {{submittedRequestList.Incident.licensenumber}} </div>\n    </div>\n    </div>',styles:[""]})],pV);let uV=class{constructor(t,e,n,i,s,r){this.fb=t,this.el=e,this.findhelpService=n,this.router=i,this.route=s,this.titleService=r,this.selection=[],this.submitted=!1,this.concern_error=!1,this.insurance_error=!1,this.pageredirecting=!1,this.frm_submit=!1,this.selectedRaceEthnicities=[],this.substance_text="Have you used",this.do_you="do you",this.do_you_ref="your",this.do_you_have="Do you have",this.you="you",this.i_am="I am",this.myself="I",this.your="your",this.have_you="have you",this.have_children="I have children that I want to take into treatment with me",this.apply_to_you="apply to you",this.you_ref="you",this.clearFormArray=t=>{for(;0!==t.length;)t.removeAt(0)},this.isEqual=function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(let s of n)if(t[s]!==e[s]){if("object"!=typeof t[s]||"object"!=typeof e[s])return!1;if(!this.isEqual(t[s],e[s]))return!1}return!0},this.titleService.setTitle("Assessment - Massachusetts Substance Use Helpline")}ngOnInit(){if(setTimeout(()=>{initializegtag()},200),this.otherNeeds=[{id:"1",key:"infacility",incidentKey:"mentalhealthcondition",label:"I am currently in or need treatment for a mental health condition",isChecked:!1},{id:"2",key:"homeless",incidentKey:"homeless",label:"I am experiencing homelessness",isChecked:!1},{id:"3",key:"pregnancy",incidentKey:"pregnant",label:"I am pregnant",isChecked:!1},{id:"4",key:"families",incidentKey:"treatmentwithmefamily",label:"I have children that I want to take into treatment with me",isChecked:!1},{id:"5",key:"veteran",incidentKey:"veteran",label:"I have served in the U.S. military",isChecked:!1}],this.raceEthnicity=[{id:"2",key:"american",label:"American Indian/Alaska Native",isChecked:!1},{id:"1",key:"asian",label:"Asian",isChecked:!1},{id:"3",key:"african",label:"Black/African American",isChecked:!1},{id:"4",key:"latino",label:"Latino",isChecked:!1},{id:"5",key:"hawaiian",label:"Native Hawaiian/Pacific Islander",isChecked:!1},{id:"6",key:"white",label:"white",isChecked:!1}],this.submittedAssessmentData=JSON.parse(sessionStorage.getItem("assessment")),console.log("previous assessment data ",this.submittedAssessmentData),null!=this.submittedAssessmentData){this.radii=JSON.parse(sessionStorage.getItem("radii")),this.cities=JSON.parse(sessionStorage.getItem("cities")),this.insurances=JSON.parse(sessionStorage.getItem("insurances"));let t=this.radii.filter(t=>t.id==this.submittedAssessmentData.radius.id)[0],e=this.cities.filter(t=>t.id==this.submittedAssessmentData.city.id)[0],n=[];this.insurances.forEach(t=>{this.submittedAssessmentData.healthInsurances.find(e=>e==t.id)&&n.push(t)}),console.log(n),this.selfAssesmentForm=this.fb.group({relation_to_person:[this.submittedAssessmentData.id],to_whom:[this.submittedAssessmentData.meorsomeone.id,[im.required]],substance:[this.submittedAssessmentData.isSubstanceUsed.toString(),[im.required]],concern:[null],concernItems:new sf([]),gender:[this.submittedAssessmentData.gender,[im.required]],health_coverage:[this.submittedAssessmentData.healthCoverage+""],age:[this.submittedAssessmentData.age,[im.required]],city:[e,[im.required]],distance:[t,[im.required]],health_insurance:[n],no_of_treatment_attempts:[this.submittedAssessmentData.nooftreatmentattempts],employed:[this.submittedAssessmentData.employed.id],preferredLanguage:[this.submittedAssessmentData.preferredLanguage]}),this.otherNeeds.forEach(t=>{t.isChecked=this.submittedAssessmentData[t.incidentKey]}),this.raceEthnicity.forEach(t=>{this.submittedAssessmentData.raceEthnicity.find(e=>e==t.id)&&(t.isChecked=!0)})}else this.selfAssesmentForm=this.fb.group({relation_to_person:[],to_whom:[null,[im.required]],substance:[null,[im.required]],concern:[null],concernItems:new sf([]),gender:[null,[im.required]],health_coverage:[null],age:[null,[im.required]],city:[null,[im.required]],distance:[null,[im.required]],health_insurance:[null],no_of_treatment_attempts:[],employed:[],preferredLanguage:[]});console.log(this.selfAssesmentForm)}onMeChange(t){this.substance_text="Have you used",this.do_you="do you",this.do_you_have="Do you have",this.you="you",this.i_am="I am",this.myself="I",this.your="your",this.do_you_ref="your",this.have_you="have you",this.have_children="I have children that I want to take into treatment with me",this.apply_to_you="apply to you",this.you_ref="you",this.otherNeeds.forEach(t=>{let e=t.label;console.log(t.label),e.startsWith("They are")?t.label=e.replace("They are","I am"):e.startsWith("They have children")?t.label=e.replace("They have children they would like to bring into treatment with them","I have children that I want to take into treatment with me"):e.startsWith("They have")&&(t.label=e.replace("They have","I have"))})}onSomeoneChange(t){this.substance_text="Have they used",this.do_you="do they",this.do_you_ref="their",this.do_you_have="Do they have",this.you="they",this.i_am="They are",this.myself="They",this.your="their",this.have_you="have they",this.have_children="They have children they would like to bring into treatment with them",this.apply_to_you="apply to them",this.you_ref="them",this.otherNeeds.forEach(t=>{let e=t.label;console.log(e,typeof e),e.startsWith("I am")?t.label=e.replace("I am","They are"):e.startsWith("I have children")?t.label=e.replace("I have children that I want to take into treatment with me","They have children they would like to bring into treatment with them"):e.startsWith("I have")&&(t.label=e.replace("I have","They have"))})}onCheckBoxChange(t){if("pregnant"==t.incidentKey&&1==t.isChecked){let t=this.gender.find(t=>"Female"==t.value);this.selfAssesmentFormData.gender.setValue(t.id)}}ngAfterContentInit(){null==sessionStorage.getItem("radii")&&(this.radii=[{id:"2",value:"5 miles"},{id:"3",value:"10 miles"},{id:"4",value:"15 miles"},{id:"5",value:"20 miles"},{id:"6",value:"30 miles"},{id:"7",value:"40 miles"},{id:"8",value:"50 miles"},{id:"9",value:"60 miles"},{id:"10",value:"70 miles"},{id:"11",value:"80 miles"},{id:"12",value:"90 miles"},{id:"13",value:"100 miles"},{id:"1",value:"All of Massachusetts"}]),this.lastUsed=[{id:"1",value:"Within the past 3 days"},{id:"2",value:"More than 3 days ago, but within the past month"},{id:"3",value:"Within the past 1-3 months"},{id:"4",value:"More than 3 months ago"}],this.howOftenUsed=[{id:"1",value:"Daily or more often"},{id:"2",value:"4-6 days most weeks"},{id:"3",value:"3 days or fewer most weeks"}],this.employed=[{id:"466",value:"Yes, full time"},{id:"59",value:"Yes, part time"},{id:"58",value:"No"}],this.languages=[{id:"429",value:"English"},{id:"827",value:"Spanish"},{id:"799",value:"Albanian"},{id:"800",value:"Arabic"},{id:"1052",value:"ASL (Hearing Impaired)"},{id:"825",value:"Polish"},{id:"810",value:"French"},{id:"801",value:"Bosnian"},{id:"813",value:"German"},{id:"824",value:"Portuguese"},{id:"812",value:"Greek"},{id:"805",value:"Creole"},{id:"802",value:"Cambodian"},{id:"826",value:"Russian"},{id:"807",value:"Danish"},{id:"803",value:"Cantonese"},{id:"828",value:"Somali"},{id:"808",value:"Egyptian"},{id:"806",value:"Cape Verdean"},{id:"814",value:"Haitian Creole"},{id:"818",value:"Japanese"},{id:"815",value:"Hebrew"},{id:"829",value:"Swahili"},{id:"809",value:"Farsi"},{id:"817",value:"Indian"},{id:"816",value:"Italian"},{id:"819",value:"Khmer"},{id:"811",value:"Finnish"},{id:"830",value:"Vietnamese"},{id:"820",value:"Korean"},{id:"821",value:"Laotian"},{id:"822",value:"Mandarin"},{id:"823",value:"Nigerian"},{id:"1027",value:"Other"}],this.gender=[{id:"24",value:"Male"},{id:"25",value:"Female"},{id:"26",value:"Transgender Man"},{id:"27",value:"Transgender Woman"}],this.findhelpService.getSubstances().subscribe(t=>{this.substances=t,console.log(this.substances)}),null==sessionStorage.getItem("insurances")&&this.findhelpService.getPayments().subscribe(t=>{console.log(t),this.insurances=t}),null==sessionStorage.getItem("cities")&&this.findhelpService.getCities().subscribe(t=>{console.log(t),this.cities=t})}ngAfterViewInit(){this.myCipher=(t=>{const e=t=>t.split("").map(t=>t.charCodeAt(0)),n=t=>("0"+Number(t).toString(16)).substr(-2),i=n=>e(t).reduce((t,e)=>t^e,n);return t=>t.split("").map(e).map(i).map(n).join("")})("39383828696a286364286566286778287072abcdefhjklmnopxyz@!=-()")}get selfAssesmentFormData(){return this.selfAssesmentForm.controls}createConcernItem(t){return new nf({id:new ef(null!=t?t.id:""),name:new ef(null!=t?t.name:""),category:new ef(null!=t?t.drugcategory:""),lastUse:new ef("",im.required),howOften:new ef("",im.required)})}get concernDetailsArray(){return this.selfAssesmentForm.get("concernItems")}onAdd(t){console.log("added ",t),console.log("array ",this.concernDetailsArray),this.concernDetailsArray.push(this.createConcernItem(t))}onRemove(t){console.log("removed ",t),this.concernDetailsArray.removeAt(this.concernDetailsArray.value.findIndex(e=>e.id==t.value.id)),console.log(this.concernDetailsArray)}onConcernChange(t){this.concern_error=!1,0==t.length&&(this.concern_error=!0)}onInsuranceChange(t){this.insurance_error=!1,0==t.length&&(this.insurance_error=!0)}getHelpPayload(){this.selfAssesmentFormData;return{}}getOpaResultPayload(){let t=[];return this.concernDetailsArray.controls.forEach(e=>{const n={attrid:e.value.id,drugcategory:e.value.category?e.value.category:"",drug:e.value.name?e.value.name:"",timeoflastuseid:e.value.lastUse?e.value.lastUse:"",frequencyid:e.value.howOften?e.value.howOften:"",age:this.selfAssesmentFormData.age.value?this.selfAssesmentFormData.age.value:""};this.otherNeeds.forEach(t=>{"infacility"==t.key?n[t.key]=!1:n[t.key]=t.isChecked}),t.push(n)}),t}getDrugList(){let t=[];return this.selfAssesmentFormData.concernItems.value.forEach(e=>{let n={attrid:e.id,drugname:e.name,lastusage:e.lastUse,oftenusage:e.howOften};t.push(n)}),t}getInsurances(){let t=[];return this.selfAssesmentFormData.health_insurance.value.forEach(e=>{t.push(e.id)}),t}getSelfAssessmentPayload(){let t=this.selfAssesmentFormData.age.value;console.log(this.selfAssesmentFormData);let e={meorsomeone:{id:null!=this.selfAssesmentFormData.to_whom.value?this.selfAssesmentFormData.to_whom.value:""},relationship:{id:null!=this.selfAssesmentFormData.relation_to_person.value?this.selfAssesmentFormData.relation_to_person.value:""},isSubstanceUsed:null!=this.selfAssesmentFormData.substance.value?parseInt(this.selfAssesmentFormData.substance.value):"",primarydruglist:null!=this.selfAssesmentFormData.concern.value?this.getDrugList():[],gender:null!=this.selfAssesmentFormData.gender.value?this.selfAssesmentFormData.gender.value:"",age:null!=t?t:"",city:{id:null!=this.selfAssesmentFormData.city.value?this.selfAssesmentFormData.city.value.id:"",valueen:null!=this.selfAssesmentFormData.city.value?this.selfAssesmentFormData.city.value.value:""},radius:{id:null!=this.selfAssesmentFormData.distance.value?this.selfAssesmentFormData.distance.value.id:"",valueen:null!=this.selfAssesmentFormData.distance.value?this.selfAssesmentFormData.distance.value.value:""},healthCoverage:null!=this.selfAssesmentFormData.health_coverage.value?parseInt(this.selfAssesmentFormData.health_coverage.value):"",healthInsurances:null!=this.selfAssesmentFormData.health_insurance.value?this.getInsurances():[],nooftreatmentattempts:null!=this.selfAssesmentFormData.no_of_treatment_attempts.value?this.selfAssesmentFormData.no_of_treatment_attempts.value:"",employed:{id:null!=this.selfAssesmentFormData.employed.value?this.selfAssesmentFormData.employed.value:""},preferredLanguage:null!=this.selfAssesmentFormData.preferredLanguage.value?this.selfAssesmentFormData.preferredLanguage.value:"",langid:429};return this.otherNeeds.forEach(t=>{e[t.incidentKey]=t.isChecked}),this.selectedRaceEthnicities=[],this.raceEthnicity.forEach(t=>{t.isChecked&&this.selectedRaceEthnicities.push(t.id)}),console.log(this.selectedRaceEthnicities),e.raceEthnicity=this.selectedRaceEthnicities,e}scrollToErrorControl(){console.log(this.selfAssesmentForm.controls);for(let t of Object.keys(this.selfAssesmentForm.controls)){if(null!=this.selfAssesmentForm.get(t).errors){let e=document.getElementsByName(t);0!=e.length&&(console.log(t," -> elements ",e),e[0].closest(".row").scrollIntoView({behavior:"smooth"}));break}}}clearForm(){console.log("clear form"),this.clearFormArray(this.concernDetailsArray),sessionStorage.clear()}submitHelpfrm(){if(this.submitted=!0,this.selfAssesmentForm.invalid){0==this.selfAssesmentFormData.substance.value&&(console.log("no primary drugs"),this.clearFormArray(this.concernDetailsArray),console.log(this.concernDetailsArray));let t={oparequest:this.getOpaResultPayload(),assessment:this.getSelfAssessmentPayload()};return console.log(t),this.scrollToErrorControl(),void console.log("invalid form")}{if(console.log(this.selfAssesmentFormData),1==this.selfAssesmentFormData.health_coverage.value){if(null==this.selfAssesmentFormData.health_insurance.value)return this.insurance_error=!0,console.log("insurance_error ",this.insurance_error),setTimeout(function(){$("body").find(".ng-input").find("input").focus()},1e3),!1}else 0==this.selfAssesmentFormData.health_coverage.value&&(this.insurance_error=!1,this.selfAssesmentFormData.health_insurance.setValue(null));if(1==this.selfAssesmentFormData.substance.value){if(null==this.selfAssesmentFormData.concern.value)return this.concern_error=!0,console.log("concern_error",this.concern_error),setTimeout(function(){$("body").find(".ng-input").find("input").focus()},1e3),!1}else 0==this.selfAssesmentFormData.substance.value&&(this.concern_error=!1,console.log("no primary drugs"),this.clearFormArray(this.concernDetailsArray),console.log(this.concernDetailsArray));this.pageredirecting=!0,this.frm_submit=!0;let t=this.getSelfAssessmentPayload(),e={oparequest:this.getOpaResultPayload(),assessment:t};console.log(e),console.log(this.submittedAssessmentData),null!=this.submittedAssessmentData&&1==this.isEqual(t,this.submittedAssessmentData)?this.router.navigate(["/spa_result/incident_id/",this.myCipher(sessionStorage.getItem("incidentId").toString())]):(sessionStorage.setItem("assessment",JSON.stringify(t)),sessionStorage.setItem("radii",JSON.stringify(this.radii)),sessionStorage.setItem("cities",JSON.stringify(this.cities)),sessionStorage.setItem("insurances",JSON.stringify(this.insurances)),console.log(this.concernDetailsArray),this.findhelpService.doSelfAssessment(e).subscribe(t=>{console.log(t),this.router.navigate(["/spa_result/incident_id/",t.ref]),sessionStorage.setItem("incidentId",t.ref)}))}}numberOnly(t){const e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}};uV.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:F_},{type:Wf.Router},{type:Wf.ActivatedRoute},{type:wh}],uV=Hh([Object(s.Component)({selector:"app-findhelp",template:'<div class="container" id="div1">\n    <form [formGroup]="selfAssesmentForm" (ngSubmit)="submitHelpfrm()" id="interview_form">\n        <div class="row mt10">\n            <div class="col-md-12">\n                <h1 class="heading">Search for treatment</h1>\n            </div>\n            <div class="col-md-12">\n                <p class="mt10">Tell us about you or the person you care about. Instantly get a list of programs or\n                    services that are the best fit, in your area.</p>\n                <p>If you already know what you are looking for, <a href="/spa_result" class="click-here">click here</a>\n                    to search for services on your own.</p>\n            </div>\n        </div>\n\n        <hr class="mb0">\n        <div class="row">\n            <div class="form-group">\n                <div class="col-md-12"><span class="h4">Is this for you or someone else?</span></div>\n                <div class="col-md-3">\n                    <label class="control control--radio">Me\n                        <input type="radio" name="to_whom" (change)="onMeChange($event)" formControlName="to_whom" value="1"/>\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n                <div class="col-md-4">\n                    <label class="control control--radio">Someone else\n                        <input type="radio" name="to_whom" (change)="onSomeoneChange($event)" formControlName="to_whom" value="2"/>\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n                <div class="col-md-6"></div>\n                <div style="width: 100%;padding-left:2%; display:inline-block;"\n                    *ngIf="submitted && selfAssesmentFormData.to_whom?.errors">\n                    <small class="text-danger" *ngIf="selfAssesmentFormData.to_whom.errors.required">Please select an\n                        option</small>\n                </div>\n            </div>\n            <div class="col-md-12" *ngIf="selfAssesmentFormData.to_whom.value==\'2\'">\n                <p class="alert light-gray-bg black-text">Most substance use treatment is voluntary, meaning a person\n                    must want treatment to get services. This assessment suggests services for people who want\n                    treatment. For those who do not want treatment, other options may be available. Call the Helpline at\n                    800.327.5050 to learn more.</p>\n            </div>\n        </div>\n\n        <div class="row" *ngIf="selfAssesmentFormData.to_whom.value==\'2\'">\n            <div class="form-group">\n                <div class="col-md-12">\n                    <span class="h4">Relationship to the person seeking help? (optional)</span>\n                    <select class="" formControlName="relation_to_person">\n                        <option [ngValue]="null">-- select --</option>\n                        <option value="1086">My child</option>\n                        <option value="1030">My parent</option>\n                        <option value="1031">My sibling</option>\n                        <option value="1032">My spouse/partner/fiance</option>\n                        <option value="1033">Another relative</option>\n                        <option value="1034">My Friend</option>\n                        <option value="1035">My Co-worker</option>\n                        <option value="1036">My client/patient</option>\n                        <option value="1037">Other</option>\n                    </select>\n                </div>\n\n            </div>\n        </div>\n\n        <div class="row">\n            <div class="form-group">\n                <div class="col-md-12">\n                    <span class="h4">{{substance_text}} any substances in the past 6 months?</span>\n                </div>\n                <div class="col-md-2">\n                    <label class="control control--radio">Yes\n                        <input type="radio" name="substance" formControlName="substance" value="1"/>\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n                <div class="col-md-2" style="margin-right:142px;">\n                    <label class="control control--radio">No\n                        <input type="radio" name="substance" formControlName="substance" value="0"/>\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n                <div class="col-md-10"></div>\n                <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.substance?.errors">\n                    <small class="text-danger" *ngIf="selfAssesmentFormData.substance.errors.required">Please select an\n                        option</small>\n                </div>\n            </div>\n        </div>\n\n        <div class="row" *ngIf="selfAssesmentFormData.substance.value==1">\n            <div class="col-md-6">\n                <div class="form-group">\n                    <div class="" *ngIf="substances != undefined">\n                        <span class="h4 ng-binding">What is {{do_you_ref}} primary concern?</span>\n                        \x3c!-- <div id="substances" class="form-control"></div> --\x3e\n                        <div>\n                            <ng-select [items]="substances" dropdownPosition="bottom" bindLabel="name" placeholder="Select an option" appendTo="body"\n                                multiple="true" (add)="onAdd($event)" (remove)="onRemove($event)" \n                                (change)="onConcernChange($event)" formControlName="concern"\n                                [closeOnSelect]="true" [hideSelected]="true" [clearable]="false">\n                                \x3c!-- [(ngModel)]="selection"--\x3e\n                                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                    <span class="ng-value-label"> {{item.name}}</span>\n                                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                                </ng-template>\n                            </ng-select>\n                            <div class="col-md-12" style="margin-left: -12px;" *ngIf="submitted && concern_error==true">\n                                <small class="text-danger">Please select atlest one substance</small>\n                            </div>\n                        </div>\n                        <div>\n                        </div>  \n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class="row" *ngIf="selfAssesmentFormData.substance.value==1">\x3c!--*ngIf="concernDetailsArray.length>0"--\x3e\n            <div formArrayName="concernItems"\n                *ngFor="let list of concernDetailsArray.controls; let i = index;">\n                <div class="form-group" [formGroupName]="i">\n                    <div class="col-md-6">\n                        <span class="h4 ng-binding">When did {{you}} last use {{list.value.name}}?</span>\n                        <select formControlName="lastUse" name="lastUse" class="validate[required] ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched"> --\x3e\n                            <option [ngValue]="null">-- select --</option>\n                            <option *ngFor="let item of lastUsed" [value]="item.id">{{item.value}}</option>\n                        </select>\n                        <div class="col-md-12" *ngIf="submitted && list.controls.lastUse?.errors">\n                            <small class="text-danger" *ngIf="list.controls.lastUse.errors.required">\n                                This field is required\n                            </small>\n                        </div>\n                    </div>\n                    <div class="col-md-6">\n                        <span class="h4 ng-binding">How often do/did {{you}} use {{list.value.name}}?</span>\n                        <select formControlName="howOften" name="howOften" class="validate[required] ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched"> \n                            <option [ngValue]="null">-- select --</option>\n                            <option *ngFor="let item of howOftenUsed" [value]="item.id">{{item.value}}</option>\n                        </select>\n                        <div class="col-md-12" *ngIf="submitted && list.controls.howOften?.errors">\n                            <small class="text-danger" *ngIf="list.controls.howOften.errors.required">\n                                This field is required\n                            </small>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <hr class="mb0" style="margin-top: 5px;">\n        <div class="row mt-10">\n            <div class="col-md-12">\n                <span class="h4 ng-binding">What is {{your}} gender?</span>\n            </div>\n            <div class="col-md-12" *ngFor="let item of gender">\n                <label class="control control--radio">{{item.value}}\n                    <input type="radio" name="gender" [value]="item.id" formControlName="gender"\n                        id="form-validation-field-4">\n                    <div class="control__indicator"></div>\n                </label>\n            </div>\n            <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.gender?.errors">\n                <small class="text-danger" *ngIf="selfAssesmentFormData.gender.errors.required">Please select an\n                    option</small>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-4">\n                <div class="">\n                    <span class="h4 ng-binding">What is {{your}} age?</span>\n                    \x3c!-- <input type="text" (keypress)="numberOnly($event)" maxlength="2" name="age" formControlName="age" /> --\x3e\n                    <input type="text" (keypress)="numberOnly($event)" maxlength="2" name="age" formControlName="age" />\n                </div>\n            </div>\n            <div class="col-md-8">\n            </div>\n            <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.age?.errors">\n                <small class="text-danger" *ngIf="selfAssesmentFormData.age.errors.required">This is field is\n                    required</small>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-4">\n                <span class="h4 ng-binding">In which town {{do_you}} live?</span>\n                <select name="city" formControlName="city">\n                    <option [ngValue]="null">-- select city --</option>\n                    <option *ngFor="let item of cities" [ngValue]="item">{{item.value}}</option>\n                </select>\n            </div>\n            <div class="col-md-8">\n            </div>\n            <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.city?.errors">\n                <small class="text-danger" *ngIf="selfAssesmentFormData.city.errors.required">This is field is\n                    required</small>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-4">\n                <span class="h4 ng-binding">How far can {{you}} travel for help?</span>\n                <select name="distance" formControlName="distance">\n                    <option [ngValue]="null">-- select distance --</option>\n                    <option *ngFor="let item of radii" [ngValue]="item">{{item.value}}</option>\n                </select>\n            </div>\n            <div class="col-md-8">\n            </div>\n            <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.distance?.errors">\n                <small class="text-danger" *ngIf="selfAssesmentFormData.distance.errors.required">This is field is\n                    required</small>\n            </div>\n        </div>\n        <div class="row mt-10">\n            <div class="col-md-12"><span class="h4">Tell us about any other needs {{you}} have. (Check any that apply to\n                    {{you_ref}})</span></div>\n            <div class="col-md-12">\n                <div *ngFor="let item of otherNeeds; let i = index;">\n                    <input id="checkbox-{{i}}" class="checkbox-custom" (change)="onCheckBoxChange(item)" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.isChecked">\n                    <label for="checkbox-{{i}}" class="checkbox-custom-label ng-binding">{{item.label}}</label>\n                </div>\n                \x3c!-- <div>\n                    <input id="checkbox-3" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                        type="checkbox" ng-model="data.homeless" value="yes">\n                    <label for="checkbox-3" class="checkbox-custom-label ng-binding">I am homeless</label>\n                </div>\n                <div>\n                    <input id="checkbox-4" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                        type="checkbox" ng-model="data.pregnancy" value="yes">\n                    <label for="checkbox-4" class="checkbox-custom-label ng-binding">I am pregnant</label>\n                </div>\n                <div>\n                    <input id="checkbox-5" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                        type="checkbox" ng-model="data.families" value="yes">\n                    <label for="checkbox-5" class="checkbox-custom-label ng-binding">I have children that I want to take\n                        into treatment with me</label>\n                </div>\n                <div>\n                    <input id="checkbox-6" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                        type="checkbox" ng-model="data.veteran" value="yes">\n                    <label for="checkbox-6" class="checkbox-custom-label ng-binding">I have served in the U.S.\n                        military</label>\n                </div> --\x3e\n            </div>\n        </div>\n        <div class="row mt-10">\n            <div class="form-group">\n                <div class="col-md-12">\n                    <span class="h4 ng-binding">Do {{you}} have health insurance / coverage?</span>\n                </div>\n                <div class="col-md-3">\n                    <label class="control control--radio">Yes\n                        <input type="radio" name="health_coverage"\n                            class="ng-valid ng-not-empty ng-dirty ng-touched ng-valid-parse"\n                            formControlName="health_coverage" value="1">\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n                <div class="col-md-2">\n                    <label class="control control--radio">No\n                        <input type="radio" name="health_coverage" \n                        formControlName="health_coverage" value="0">\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n            </div>\n        </div>\n        <div class="row" *ngIf="selfAssesmentFormData.health_coverage.value==1">\n            <div class="col-md-6">\n                <div class="form-group">\n                    <div class="">\n                        <span class="h4 ng-binding">What is {{your}} health insurance / coverage?</span>\n                        \x3c!-- <div id="substances" class="form-control"></div> --\x3e\n                        <div>\n                            <ng-select [items]="insurances" dropdownPosition="bottom" bindLabel="name" placeholder="Select an option"\n                                appendTo="body" multiple="true" (change)="onInsuranceChange($event)" \n                                formControlName="health_insurance" [closeOnSelect]="true"\n                                [hideSelected]="true" [clearable]="false">\n                                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                    <span class="ng-value-label"> {{item.name}}</span>\n                                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                                </ng-template>\n                            </ng-select>\n                        </div>\n                        <div class="col-md-12" style="margin-left: -13px;" *ngIf="submitted && insurance_error==true">\n                            <small class="text-danger">Select atlest one insurance</small>\n                        </div>\n                        <div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class="row" *ngIf="selfAssesmentFormData.health_coverage.value==0">\n            <div class="col-md-12">\n                <div class="alert light-gray-bg black-text">Residents of Massachusetts are entitled to substance use\n                    treatment, whether or not they have insurance or are able to pay. The Department of Public\n                    Health, Bureau of Substance Addiction Services funds treatment services for Massachusetts\n                    residents without healthcare coverage</div>\n            </div>\n        </div>\n        <hr class="mb0" style="margin-top: 6px;">\n        <div class="row">\n            <div class="col-md-12">\n                <span class="h4 highlight">Help us offer better services by answering these <b>optional</b>\n                    questions</span>\n            </div>\n        </div>\n        <div class="row">\n            <div class="form-group">\n                <div class="col-md-12">\n                    <span class="h4 ng-binding">What is {{your}} race/ethnicity? (Check any that apply to {{you_ref}})</span>\n                    \x3c!--   <label ng-repeat="role in roles">\n                    <input type="checkbox"  value="{{role.id}}" ng-click="change(role.id)"> {{role.name}}\n            </label> --\x3e\n                    <div *ngFor="let item of raceEthnicity; let i = index;">\n                        <input id="race-checkbox-{{i}}" class="checkbox-custom" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.isChecked">\n                        <label for="race-checkbox-{{i}}" class="checkbox-custom-label ng-binding">{{item.label}}</label>\n                    </div>\n                    \x3c!-- <div>\n                        <input id="checkbox-7" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                            type="checkbox" ng-model="data.americanindian" ng-true-value="true">\n                        <label for="checkbox-7" class="checkbox-custom-label">American Indian/Alaska Native</label>\n                    </div>\n                    <div>\n                        <input id="checkbox-8" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                            type="checkbox" ng-model="data.asian" ng-true-value="true">\n                        <label for="checkbox-8" class="checkbox-custom-label">Asian</label>\n                    </div>\n                    <div>\n                        <input id="checkbox-9" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                            type="checkbox" ng-model="data.african" ng-true-value="true">\n                        <label for="checkbox-9" class="checkbox-custom-label">Black/African American</label>\n                    </div>\n                    <div>\n                        <input id="checkbox-10" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                            type="checkbox" ng-model="data.latino" ng-true-value="true">\n                        <label for="checkbox-10" class="checkbox-custom-label">Latino</label>\n                    </div>\n                    <div>\n                        <input id="checkbox-11" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                            type="checkbox" ng-model="data.nativehawai" ng-true-value="true">\n                        <label for="checkbox-11" class="checkbox-custom-label">Native Hawaiian/Pacific Islander</label>\n                    </div>\n                    <div>\n                        <input id="checkbox-12" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty"\n                            type="checkbox" ng-model="data.white" ng-true-value="true">\n                        <label for="checkbox-12" class="checkbox-custom-label">White</label>\n                    </div> --\x3e\n                    \x3c!--  <div id="race" class="form-control"></div> --\x3e\n                </div>\n                <div class="col-md-8">\n                </div>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-6">\n                <span class="h4 ng-binding">How many times {{have_you}} tried to get treatment in {{your}} lifetime?</span>\n                <input class="form-control ng-pristine ng-untouched ng-valid ng-empty" type="text"\n                formControlName = "no_of_treatment_attempts">\n            </div>\n            <div class="col-md-6">\n            </div>\n        </div>\n        <div class="row">\n            <div class="form-group">\n                <div class="col-md-12">\n                    <span class="h4 ng-binding">Are {{you}} currently working?</span>\n                </div>\n                <div class="col-md-12" *ngFor="let item of employed">\n                    <label class="control control--radio">{{item.value}}\n                        <input type="radio" name="employed" [value]="item.id" formControlName = "employed">\n                        <div class="control__indicator"></div>\n                    </label>\n                </div>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-4">\n                <span class="h4 ng-binding">What is {{your}} preferred language?</span>\n                <select formControlName = "preferredLanguage">\n                    <option [ngValue]="null">-- select language --</option>\n                    <option *ngFor="let item of languages" [value]="item.id">{{item.value}}</option>\n                </select>\n            </div>\n            <div class="col-md-8">\n            </div>\n        </div>\n        <br />\n        <button class="btn btn-md purple-bg" [disabled]="frm_submit" ng-click="submit_interview()">Submit</button> &nbsp;<label class="label label-success" *ngIf="pageredirecting">Redirecting...</label>\n        &nbsp;<input type="reset" value="Clear Form" class="btn grey-bg _clearForm" (click)="clearForm()">\n    </form>\n</div>',styles:["#div1 {\n  margin-bottom: 10px;\n}\n\n.btn-md {\n  padding: 8px 20px;\n}\n\n.grey-bg {\n  background: grey;\n  color: white;\n  padding: 6px 6px;\n}\n\n::ng-deep #psd_agent_nav {\n  display: none !important;\n}\n\n::ng-deep #block-44 {\n  display: block !important;\n}\n\n::ng-deep .footerlang {\n  display: block !important;\n}\n\n.click-here, .click-here:hover {\n  color: #382F44 !important;\n}"]})],uV);var hV=n("cDf5"),mV=n.n(hV),fV=Uint8Array,gV=Uint16Array,bV=Uint32Array,vV=new fV([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),yV=new fV([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),_V=new fV([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wV=function(t,e){for(var n=new gV(31),i=0;i<31;++i)n[i]=e+=1<<t[i-1];var s=new bV(n[30]);for(i=1;i<30;++i)for(var r=n[i];r<n[i+1];++r)s[r]=r-n[i]<<5|i;return[n,s]},xV=wV(vV,2),CV=xV[0],SV=xV[1];CV[28]=258,SV[258]=28;for(var kV=wV(yV,0),EV=kV[0],IV=kV[1],AV=new gV(32768),DV=0;DV<32768;++DV){var TV=(43690&DV)>>>1|(21845&DV)<<1;TV=(61680&(TV=(52428&TV)>>>2|(13107&TV)<<2))>>>4|(3855&TV)<<4,AV[DV]=((65280&TV)>>>8|(255&TV)<<8)>>>1}var OV=function(t,e,n){for(var i=t.length,s=0,r=new gV(e);s<i;++s)++r[t[s]-1];var a,o=new gV(e);for(s=0;s<e;++s)o[s]=o[s-1]+r[s-1]<<1;if(n){a=new gV(1<<e);var l=15-e;for(s=0;s<i;++s)if(t[s])for(var c=s<<4|t[s],d=e-t[s],p=o[t[s]-1]++<<d,u=p|(1<<d)-1;p<=u;++p)a[AV[p]>>>l]=c}else for(a=new gV(i),s=0;s<i;++s)a[s]=AV[o[t[s]-1]++]>>>15-t[s];return a},PV=new fV(288);for(DV=0;DV<144;++DV)PV[DV]=8;for(DV=144;DV<256;++DV)PV[DV]=9;for(DV=256;DV<280;++DV)PV[DV]=7;for(DV=280;DV<288;++DV)PV[DV]=8;var NV=new fV(32);for(DV=0;DV<32;++DV)NV[DV]=5;var MV=OV(PV,9,0),RV=OV(PV,9,1),LV=OV(NV,5,0),FV=OV(NV,5,1),jV=function(t){for(var e=t[0],n=1;n<t.length;++n)t[n]>e&&(e=t[n]);return e},VV=function(t,e,n){var i=e/8>>0;return(t[i]|t[i+1]<<8)>>>(7&e)&n},BV=function(t,e){var n=e/8>>0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>>(7&e)},HV=function(t){return(t/8>>0)+(7&t&&1)},zV=function(t,e,n){(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length);var i=new(t instanceof gV?gV:t instanceof bV?bV:fV)(n-e);return i.set(t.subarray(e,n)),i},UV=function(t,e,n){var i=t.length,s=!e||n,r=!n||n.i;n||(n={}),e||(e=new fV(3*i));var a=function(t){var n=e.length;if(t>n){var i=new fV(Math.max(2*n,t));i.set(e),e=i}},o=n.f||0,l=n.p||0,c=n.b||0,d=n.l,p=n.d,u=n.m,h=n.n,m=8*i;do{if(!d){n.f=o=VV(t,l,1);var f=VV(t,l+1,3);if(l+=3,!f){var g=t[(I=HV(l)+4)-4]|t[I-3]<<8,b=I+g;if(b>i){if(r)throw"unexpected EOF";break}s&&a(c+g),e.set(t.subarray(I,b),c),n.b=c+=g,n.p=l=8*b;continue}if(1==f)d=RV,p=FV,u=9,h=5;else{if(2!=f)throw"invalid block type";var v=VV(t,l,31)+257,y=VV(t,l+10,15)+4,_=v+VV(t,l+5,31)+1;l+=14;for(var w=new fV(_),x=new fV(19),C=0;C<y;++C)x[_V[C]]=VV(t,l+3*C,7);l+=3*y;var S=jV(x),k=(1<<S)-1;if(!r&&l+_*(S+7)>m)break;var E=OV(x,S,1);for(C=0;C<_;){var I,A=E[VV(t,l,k)];if(l+=15&A,(I=A>>>4)<16)w[C++]=I;else{var D=0,T=0;for(16==I?(T=3+VV(t,l,3),l+=2,D=w[C-1]):17==I?(T=3+VV(t,l,7),l+=3):18==I&&(T=11+VV(t,l,127),l+=7);T--;)w[C++]=D}}var O=w.subarray(0,v),P=w.subarray(v);u=jV(O),h=jV(P),d=OV(O,u,1),p=OV(P,h,1)}if(l>m)throw"unexpected EOF"}s&&a(c+131072);for(var N=(1<<u)-1,M=(1<<h)-1,R=u+h+18;r||l+R<m;){var L=(D=d[BV(t,l)&N])>>>4;if((l+=15&D)>m)throw"unexpected EOF";if(!D)throw"invalid length/literal";if(L<256)e[c++]=L;else{if(256==L){d=null;break}var F=L-254;if(L>264){var j=vV[C=L-257];F=VV(t,l,(1<<j)-1)+CV[C],l+=j}var V=p[BV(t,l)&M],B=V>>>4;if(!V)throw"invalid distance";l+=15&V;P=EV[B];if(B>3){j=yV[B];P+=BV(t,l)&(1<<j)-1,l+=j}if(l>m)throw"unexpected EOF";s&&a(c+131072);for(var H=c+F;c<H;c+=4)e[c]=e[c-P],e[c+1]=e[c+1-P],e[c+2]=e[c+2-P],e[c+3]=e[c+3-P];c=H}}n.l=d,n.p=l,n.b=c,d&&(o=1,n.m=u,n.d=p,n.n=h)}while(!o);return c==e.length?e:zV(e,0,c)},qV=function(t,e,n){n<<=7&e;var i=e/8>>0;t[i]|=n,t[i+1]|=n>>>8},$V=function(t,e,n){n<<=7&e;var i=e/8>>0;t[i]|=n,t[i+1]|=n>>>8,t[i+2]|=n>>>16},WV=function(t,e){for(var n=[],i=0;i<t.length;++i)t[i]&&n.push({s:i,f:t[i]});var s=n.length,r=n.slice();if(!s)return[new fV(0),0];if(1==s){var a=new fV(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort(function(t,e){return t.f-e.f}),n.push({s:-1,f:25001});var o=n[0],l=n[1],c=0,d=1,p=2;for(n[0]={s:-1,f:o.f+l.f,l:o,r:l};d!=s-1;)o=n[n[c].f<n[p].f?c++:p++],l=n[c!=d&&n[c].f<n[p].f?c++:p++],n[d++]={s:-1,f:o.f+l.f,l:o,r:l};var u=r[0].s;for(i=1;i<s;++i)r[i].s>u&&(u=r[i].s);var h=new gV(u+1),m=YV(n[d-1],h,0);if(m>e){i=0;var f=0,g=m-e,b=1<<g;for(r.sort(function(t,e){return h[e.s]-h[t.s]||t.f-e.f});i<s;++i){var v=r[i].s;if(!(h[v]>e))break;f+=b-(1<<m-h[v]),h[v]=e}for(f>>>=g;f>0;){var y=r[i].s;h[y]<e?f-=1<<e-h[y]++-1:++i}for(;i>=0&&f;--i){var _=r[i].s;h[_]==e&&(--h[_],++f)}m=e}return[new fV(h),m]},YV=function(t,e,n){return-1==t.s?Math.max(YV(t.l,e,n+1),YV(t.r,e,n+1)):e[t.s]=n},GV=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new gV(++e),i=0,s=t[0],r=1,a=function(t){n[i++]=t},o=1;o<=e;++o)if(t[o]==s&&o!=e)++r;else{if(!s&&r>2){for(;r>138;r-=138)a(32754);r>2&&(a(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(a(s),--r;r>6;r-=6)a(8304);r>2&&(a(r-3<<5|8208),r=0)}for(;r--;)a(s);r=1,s=t[o]}return[n.subarray(0,i),e]},KV=function(t,e){for(var n=0,i=0;i<e.length;++i)n+=t[i]*e[i];return n},ZV=function(t,e,n){var i=n.length,s=HV(e+2);t[s]=255&i,t[s+1]=i>>>8,t[s+2]=255^t[s],t[s+3]=255^t[s+1];for(var r=0;r<i;++r)t[s+r+4]=n[r];return 8*(s+4+i)},XV=function(t,e,n,i,s,r,a,o,l,c,d){qV(e,d++,n),++s[256];for(var p=WV(s,15),u=p[0],h=p[1],m=WV(r,15),f=m[0],g=m[1],b=GV(u),v=b[0],y=b[1],_=GV(f),w=_[0],x=_[1],C=new gV(19),S=0;S<v.length;++S)C[31&v[S]]++;for(S=0;S<w.length;++S)C[31&w[S]]++;for(var k=WV(C,7),E=k[0],I=k[1],A=19;A>4&&!E[_V[A-1]];--A);var D,T,O,P,N=c+5<<3,M=KV(s,PV)+KV(r,NV)+a,R=KV(s,u)+KV(r,f)+a+14+3*A+KV(C,E)+(2*C[16]+3*C[17]+7*C[18]);if(N<=M&&N<=R)return ZV(e,d,t.subarray(l,l+c));if(qV(e,d,1+(R<M)),d+=2,R<M){D=OV(u,h,0),T=u,O=OV(f,g,0),P=f;var L=OV(E,I,0);qV(e,d,y-257),qV(e,d+5,x-1),qV(e,d+10,A-4),d+=14;for(S=0;S<A;++S)qV(e,d+3*S,E[_V[S]]);d+=3*A;for(var F=[v,w],j=0;j<2;++j){var V=F[j];for(S=0;S<V.length;++S){var B=31&V[S];qV(e,d,L[B]),d+=E[B],B>15&&(qV(e,d,V[S]>>>5&127),d+=V[S]>>>12)}}}else D=MV,T=PV,O=LV,P=NV;for(S=0;S<o;++S)if(i[S]>255){B=i[S]>>>18&31;$V(e,d,D[B+257]),d+=T[B+257],B>7&&(qV(e,d,i[S]>>>23&31),d+=vV[B]);var H=31&i[S];$V(e,d,O[H]),d+=P[H],H>3&&($V(e,d,i[S]>>>5&8191),d+=yV[H])}else $V(e,d,D[i[S]]),d+=T[i[S]];return $V(e,d,D[256]),d+T[256]},QV=new bV([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),JV=new fV(0),tB=function(t,e,n,i,s,r){var a=t.length,o=new fV(i+a+5*(1+Math.floor(a/7e3))+s),l=o.subarray(i,o.length-s),c=0;if(!e||a<8)for(var d=0;d<=a;d+=65535){var p=d+65535;p<a?c=ZV(l,c,t.subarray(d,p)):(l[d]=r,c=ZV(l,c,t.subarray(d,a)))}else{for(var u=QV[e-1],h=u>>>13,m=8191&u,f=(1<<n)-1,g=new gV(32768),b=new gV(f+1),v=Math.ceil(n/3),y=2*v,_=function(e){return(t[e]^t[e+1]<<v^t[e+2]<<y)&f},w=new bV(25e3),x=new gV(288),C=new gV(32),S=0,k=0,E=(d=0,0),I=0,A=0;d<a;++d){var D=_(d),T=32767&d,O=b[D];if(g[T]=O,b[D]=T,I<=d){var P=a-d;if((S>7e3||E>24576)&&P>423){c=XV(t,l,0,w,x,C,k,E,A,d-A,c),E=S=k=0,A=d;for(var N=0;N<286;++N)x[N]=0;for(N=0;N<30;++N)C[N]=0}var M=2,R=0,L=m,F=T-O&32767;if(P>2&&D==_(d-F))for(var j=Math.min(h,P)-1,V=Math.min(32767,d),B=Math.min(258,P);F<=V&&--L&&T!=O;){if(t[d+M]==t[d+M-F]){for(var H=0;H<B&&t[d+H]==t[d+H-F];++H);if(H>M){if(M=H,R=F,H>j)break;var z=Math.min(F,H-2),U=0;for(N=0;N<z;++N){var q=d-F+N+32768&32767,$=q-g[q]+32768&32767;$>U&&(U=$,O=q)}}}F+=(T=O)-(O=g[T])+32768&32767}if(R){w[E++]=268435456|SV[M]<<18|IV[R];var W=31&SV[M],Y=31&IV[R];k+=vV[W]+yV[Y],++x[257+W],++C[Y],I=d+M,++S}else w[E++]=t[d],++x[t[d]]}}c=XV(t,l,r,w,x,C,k,E,A,d-A,c),r||(c=ZV(l,c,JV))}return zV(o,0,i+HV(c)+s)},eB=function(){var t=1,e=0;return{p:function(n){for(var i=t,s=e,r=n.length,a=0;a!=r;){for(var o=Math.min(a+5552,r);a<o;++a)s+=i+=n[a];i%=65521,s%=65521}t=i,e=s},d:function(){return(t>>>8<<16|(255&e)<<8|e>>>8)+2*((255&t)<<23)}}},nB=function(t,e,n,i,s){return tB(t,null==e.level?6:e.level,null==e.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,n,i,!s)},iB=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},sB=function(t,e){var n=e.level,i=0==n?0:n<6?1:9==n?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},rB=function(t){if(8!=(15&t[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)throw"invalid zlib data";if(32&t[1])throw"invalid zlib data: preset dictionaries not supported"};function aB(t,e){void 0===e&&(e={});var n=eB();n.p(t);var i=nB(t,e,2,4);return sB(i,e),iB(i,i.length-4,n.d()),i}function oB(t,e){return UV((rB(t),t.subarray(2,-4)),e)}var lB=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function cB(){lB.console&&"function"==typeof lB.console.log&&lB.console.log.apply(lB.console,arguments)}var dB={log:cB,warn:function(t){lB.console&&("function"==typeof lB.console.warn?lB.console.warn.apply(lB.console,arguments):cB.call(null,arguments))},error:function(t){lB.console&&("function"==typeof lB.console.error?lB.console.error.apply(lB.console,arguments):cB(t))}};function pB(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){gB(i.response,e,n)},i.onerror=function(){dB.error("could not download file")},i.send()}function uB(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function hB(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var mB,fB,gB=lB.saveAs||("object"!==("undefined"==typeof window?"undefined":mV()(window))||window!==lB?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var i=lB.URL||lB.webkitURL,s=document.createElement("a");e=e||t.name||"download",s.download=e,s.rel="noopener","string"==typeof t?(s.href=t,s.origin!==location.origin?uB(s.href)?pB(t,e,n):hB(s,s.target="_blank"):hB(s)):(s.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(s.href)},4e4),setTimeout(function(){hB(s)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(uB(t))pB(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){hB(i)})}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!==mV()(e)&&(dB.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return pB(t,e,n);var s="application/octet-stream"===t.type,r=/constructor/i.test(lB.HTMLElement)||lB.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||s&&r)&&"object"===("undefined"==typeof FileReader?"undefined":mV()(FileReader))){var o=new FileReader;o.onloadend=function(){var t=o.result;t=a?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},o.readAsDataURL(t)}else{var l=lB.URL||lB.webkitURL,c=l.createObjectURL(t);i?i.location=c:location.href=c,i=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});function bB(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<n.length;i++){var s=n[i].re,r=n[i].process,a=s.exec(t);a&&(e=r(a),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}function vB(t,e){var n=t[0],i=t[1],s=t[2],r=t[3];n=_B(n,i,s,r,e[0],7,-680876936),r=_B(r,n,i,s,e[1],12,-389564586),s=_B(s,r,n,i,e[2],17,606105819),i=_B(i,s,r,n,e[3],22,-1044525330),n=_B(n,i,s,r,e[4],7,-176418897),r=_B(r,n,i,s,e[5],12,1200080426),s=_B(s,r,n,i,e[6],17,-1473231341),i=_B(i,s,r,n,e[7],22,-45705983),n=_B(n,i,s,r,e[8],7,1770035416),r=_B(r,n,i,s,e[9],12,-1958414417),s=_B(s,r,n,i,e[10],17,-42063),i=_B(i,s,r,n,e[11],22,-1990404162),n=_B(n,i,s,r,e[12],7,1804603682),r=_B(r,n,i,s,e[13],12,-40341101),s=_B(s,r,n,i,e[14],17,-1502002290),n=wB(n,i=_B(i,s,r,n,e[15],22,1236535329),s,r,e[1],5,-165796510),r=wB(r,n,i,s,e[6],9,-1069501632),s=wB(s,r,n,i,e[11],14,643717713),i=wB(i,s,r,n,e[0],20,-373897302),n=wB(n,i,s,r,e[5],5,-701558691),r=wB(r,n,i,s,e[10],9,38016083),s=wB(s,r,n,i,e[15],14,-660478335),i=wB(i,s,r,n,e[4],20,-405537848),n=wB(n,i,s,r,e[9],5,568446438),r=wB(r,n,i,s,e[14],9,-1019803690),s=wB(s,r,n,i,e[3],14,-187363961),i=wB(i,s,r,n,e[8],20,1163531501),n=wB(n,i,s,r,e[13],5,-1444681467),r=wB(r,n,i,s,e[2],9,-51403784),s=wB(s,r,n,i,e[7],14,1735328473),n=xB(n,i=wB(i,s,r,n,e[12],20,-1926607734),s,r,e[5],4,-378558),r=xB(r,n,i,s,e[8],11,-2022574463),s=xB(s,r,n,i,e[11],16,1839030562),i=xB(i,s,r,n,e[14],23,-35309556),n=xB(n,i,s,r,e[1],4,-1530992060),r=xB(r,n,i,s,e[4],11,1272893353),s=xB(s,r,n,i,e[7],16,-155497632),i=xB(i,s,r,n,e[10],23,-1094730640),n=xB(n,i,s,r,e[13],4,681279174),r=xB(r,n,i,s,e[0],11,-358537222),s=xB(s,r,n,i,e[3],16,-722521979),i=xB(i,s,r,n,e[6],23,76029189),n=xB(n,i,s,r,e[9],4,-640364487),r=xB(r,n,i,s,e[12],11,-421815835),s=xB(s,r,n,i,e[15],16,530742520),n=CB(n,i=xB(i,s,r,n,e[2],23,-995338651),s,r,e[0],6,-198630844),r=CB(r,n,i,s,e[7],10,1126891415),s=CB(s,r,n,i,e[14],15,-1416354905),i=CB(i,s,r,n,e[5],21,-57434055),n=CB(n,i,s,r,e[12],6,1700485571),r=CB(r,n,i,s,e[3],10,-1894986606),s=CB(s,r,n,i,e[10],15,-1051523),i=CB(i,s,r,n,e[1],21,-2054922799),n=CB(n,i,s,r,e[8],6,1873313359),r=CB(r,n,i,s,e[15],10,-30611744),s=CB(s,r,n,i,e[6],15,-1560198380),i=CB(i,s,r,n,e[13],21,1309151649),n=CB(n,i,s,r,e[4],6,-145523070),r=CB(r,n,i,s,e[11],10,-1120210379),s=CB(s,r,n,i,e[2],15,718787259),i=CB(i,s,r,n,e[9],21,-343485551),t[0]=OB(n,t[0]),t[1]=OB(i,t[1]),t[2]=OB(s,t[2]),t[3]=OB(r,t[3])}function yB(t,e,n,i,s,r){return e=OB(OB(e,t),OB(i,r)),OB(e<<s|e>>>32-s,n)}function _B(t,e,n,i,s,r,a){return yB(e&n|~e&i,t,e,s,r,a)}function wB(t,e,n,i,s,r,a){return yB(e&i|n&~i,t,e,s,r,a)}function xB(t,e,n,i,s,r,a){return yB(e^n^i,t,e,s,r,a)}function CB(t,e,n,i,s,r,a){return yB(n^(e|~i),t,e,s,r,a)}function SB(t){var e,n=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)vB(i,kB(t.substring(e-64,e)));t=t.substring(e-64);var s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)s[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(s[e>>2]|=128<<(e%4<<3),e>55)for(vB(i,s),e=0;e<16;e++)s[e]=0;return s[14]=8*n,vB(i,s),i}function kB(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}mB=lB.atob.bind(lB),fB=lB.btoa.bind(lB);var EB="0123456789abcdef".split("");function IB(t){for(var e="",n=0;n<4;n++)e+=EB[t>>8*n+4&15]+EB[t>>8*n&15];return e}function AB(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function DB(t){return SB(t).map(AB).join("")}var TB="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e<t.length;e++)t[e]=IB(t[e]);return t.join("")}(SB("hello"));function OB(t,e){if(TB){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}function PB(t,e){var n,i,s,r;if(t!==n){for(var a=(s=t,r=1+(256/t.length>>0),new Array(r+1).join(s)),o=[],l=0;l<256;l++)o[l]=l;var c=0;for(l=0;l<256;l++){var d=o[l];c=(c+d+a.charCodeAt(l))%256,o[l]=o[c],o[c]=d}n=t,i=o}else o=i;var p=e.length,u=0,h=0,m="";for(l=0;l<p;l++)h=(h+(d=o[u=(u+1)%256]))%256,o[u]=o[h],o[h]=d,a=o[(o[u]+o[h])%256],m+=String.fromCharCode(e.charCodeAt(l)^a);return m}var NB={print:4,modify:8,copy:16,"annot-forms":32};function MB(t,e,n,i){this.v=1,this.r=2;var s=192;t.forEach(function(t){if(void 0!==NB.perm)throw new Error("Invalid permission: "+t);s+=NB[t]}),this.padding="(\xbfN^Nu\x8aAd\0NV\xff\xfa\x01\b..\0\xb6\xd0h>\x80/\f\xa9\xfedSiz";var r=(e+this.padding).substr(0,32),a=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,a),this.P=-(1+(255^s)),this.encryptionKey=DB(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=PB(this.encryptionKey,this.padding)}function RB(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,i=0;i<n;i++){var s=t.charCodeAt(i);e+=s<33||35===s||37===s||40===s||41===s||47===s||60===s||62===s||91===s||93===s||123===s||125===s||s>126?"#"+("0"+s.toString(16)).slice(-2):t[i]}return e}function LB(t){if("object"!==mV()(t))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,i){if(i=i||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var s=Math.random().toString(35);return e[t][s]=[n,!!i],s},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),s=[];for(var r in e[n]){var a=e[n][r];try{a[0].apply(t,i)}catch(n){lB.console&&dB.error("jsPDF PubSub Error",n.message,n)}a[1]&&s.push(r)}s.length&&s.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function FB(t){if(!(this instanceof FB))return new FB(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function jB(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function VB(t,e,n,i,s){if(!(this instanceof VB))return new VB(t,e,n,i,s);this.type="axial"===t?2:3,this.coords=e,this.colors=n,jB.call(this,i,s)}function BB(t,e,n,i,s){if(!(this instanceof BB))return new BB(t,e,n,i,s);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,jB.call(this,i,s)}function HB(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],s=arguments[2],r=arguments[3],a=[],o=1,l=16,c="S",d=null;"object"===mV()(t=t||{})&&(n=t.orientation,i=t.unit||i,s=t.format||s,r=t.compress||t.compressPdf||r,null!==(d=t.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),o="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(l=t.floatPrecision),c=t.defaultPathOperation||"S"),a=t.filters||(!0===r?["FlateEncode"]:a),i=i||"mm",n=(""+(n||"P")).toLowerCase();var p=t.putOnlyUsedFonts||!1,u={},h={internal:{},__private__:{}};h.__private__.PubSub=LB;var m="1.3",f=h.__private__.getPdfVersion=function(){return m};h.__private__.setPdfVersion=function(t){m=t};var g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return g};var b=h.__private__.getPageFormat=function(t){return g[t]};s=s||"a4";var v={COMPAT:"compat",ADVANCED:"advanced"},y=v.COMPAT;function _(){this.saveGraphicsState(),Q(new Pt(ht,0,0,-ht,0,In()*ht).toString()+" cm"),this.setFontSize(this.getFontSize()/ht),c="n",y=v.ADVANCED}function w(){this.restoreGraphicsState(),c="S",y=v.COMPAT}var x=h.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw new Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};h.advancedAPI=function(t){var e=y===v.COMPAT;return e&&_.call(this),"function"!=typeof t||(t(this),e&&w.call(this)),this},h.compatAPI=function(t){var e=y===v.ADVANCED;return e&&w.call(this),"function"!=typeof t||(t(this),e&&_.call(this)),this},h.isAdvancedAPI=function(){return y===v.ADVANCED};var C,S=function(t){if(y!==v.ADVANCED)throw new Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},k=h.roundToPrecision=h.__private__.roundToPrecision=function(t,n){var i=e||n;if(isNaN(t)||isNaN(i))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(i).replace(/0+$/,"")};C=h.hpf=h.__private__.hpf="number"==typeof l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return k(t,l)}:"smart"===l?function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return k(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.hpf");return k(t,16)};var E=h.f2=h.__private__.f2=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f2");return k(t,2)},I=h.__private__.f3=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.f3");return k(t,3)},A=h.scale=h.__private__.scale=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.scale");return y===v.COMPAT?t*ht:y===v.ADVANCED?t:void 0},D=function(t){return y===v.COMPAT?In()-t:y===v.ADVANCED?t:void 0},T=function(t){return A(D(t))};h.__private__.setPrecision=h.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var O,P="00000000000000000000000000000000",N=h.__private__.getFileId=function(){return P},M=h.__private__.setFileId=function(t){return P=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():P.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==d&&(Me=new MB(d.userPermissions,d.userPassword,d.ownerPassword,P)),P};h.setFileId=function(t){return M(t),this},h.getFileId=function(){return N()};var R=h.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=e<0?"+":"-",i=Math.floor(Math.abs(e/60)),s=Math.abs(e%60),r=[n,B(i),"'",B(s),"'"].join("");return["D:",t.getFullYear(),B(t.getMonth()+1),B(t.getDate()),B(t.getHours()),B(t.getMinutes()),B(t.getSeconds()),r].join("")},L=h.__private__.convertPDFDateToDate=function(t){var e=parseInt(t.substr(2,4),10),n=parseInt(t.substr(6,2),10)-1,i=parseInt(t.substr(8,2),10),s=parseInt(t.substr(10,2),10),r=parseInt(t.substr(12,2),10),a=parseInt(t.substr(14,2),10);return new Date(e,n,i,s,r,a,0)},F=h.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=R(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw new Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return O=e},j=h.__private__.getCreationDate=function(t){var e=O;return"jsDate"===t&&(e=L(O)),e};h.setCreationDate=function(t){return F(t),this},h.getCreationDate=function(t){return j(t)};var V,B=h.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},H=h.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},z=0,U=[],q=[],$=0,W=[],Y=[],G=!1,K=q,Z=function(){z=0,$=0,q=[],U=[],W=[],Bt=Ft(),Ht=Ft()};h.__private__.setCustomOutputDestination=function(t){G=!0,K=t};var X=function(t){G||(K=t)};h.__private__.resetCustomOutputDestination=function(){G=!1,K=q};var Q=h.__private__.out=function(t){return t=t.toString(),$+=t.length+1,K.push(t),K},J=h.__private__.write=function(t){return Q(1===arguments.length?t.toString():Array.prototype.join.call(arguments," "))},tt=h.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),i=new Uint8Array(n);e--;)i[e]=t.charCodeAt(e);return n},et=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return et};var nt=t.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(t){return nt=y===v.ADVANCED?t/ht:t,this};var it,st=h.__private__.getFontSize=h.getFontSize=function(){return y===v.COMPAT?nt:nt*ht},rt=t.R2L||!1;h.__private__.setR2L=h.setR2L=function(t){return rt=t,this},h.__private__.getR2L=h.getR2L=function(){return rt};var at,ot=h.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))it=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');it=t}else it=parseInt(t,10)};h.__private__.getZoomMode=function(){return it};var lt,ct=h.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');at=t};h.__private__.getPageMode=function(){return at};var dt=h.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');lt=t};h.__private__.getLayoutMode=function(){return lt},h.__private__.setDisplayMode=h.setDisplayMode=function(t,e,n){return ot(t),dt(e),ct(n),this};var pt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(t){if(-1===Object.keys(pt).indexOf(t))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return pt[t]},h.__private__.getDocumentProperties=function(){return pt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(t){for(var e in pt)pt.hasOwnProperty(e)&&t[e]&&(pt[e]=t[e]);return this},h.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(pt).indexOf(t))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return pt[t]=e};var ut,ht,mt,ft,gt,bt={},vt={},yt=[],_t={},wt={},xt={},Ct={},St=null,kt=0,Et=[],It=new LB(h),At=t.hotfixes||[],Dt={},Tt={},Ot=[],Pt=function t(e,n,i,s,r,a){if(!(this instanceof t))return new t(e,n,i,s,r,a);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),isNaN(s)&&(s=1),isNaN(r)&&(r=0),isNaN(a)&&(a=0),this._matrix=[e,n,i,s,r,a]};Object.defineProperty(Pt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Pt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Pt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Pt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Pt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Pt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Pt.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(Pt.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(Pt.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(Pt.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(Pt.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(Pt.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(Pt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Pt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Pt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Pt.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Pt.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(C).join(t)},Pt.prototype.multiply=function(t){var e=t.sx*this.sx+t.shy*this.shx,n=t.sx*this.shy+t.shy*this.sy,i=t.shx*this.sx+t.sy*this.shx,s=t.shx*this.shy+t.sy*this.sy,r=t.tx*this.sx+t.ty*this.shx+this.tx,a=t.tx*this.shy+t.ty*this.sy+this.ty;return new Pt(e,n,i,s,r,a)},Pt.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,i=this.sy,s=this.tx,r=this.ty,a=Math.sqrt(t*t+e*e),o=(t/=a)*n+(e/=a)*i;n-=t*o,i-=e*o;var l=Math.sqrt(n*n+i*i);return o/=l,t*(i/=l)<e*(n/=l)&&(t=-t,e=-e,o=-o,a=-a),{scale:new Pt(a,0,0,l,0,0),translate:new Pt(1,0,0,1,s,r),rotate:new Pt(t,e,-e,t,0,0),skew:new Pt(1,0,o,1,0,0)}},Pt.prototype.toString=function(t){return this.join(" ")},Pt.prototype.inversed=function(){var t=this.sx,e=this.shy,n=this.shx,i=this.sy,s=this.tx,r=this.ty,a=1/(t*i-e*n),o=i*a,l=-e*a,c=-n*a,d=t*a;return new Pt(o,l,c,d,-o*s-c*r,-l*s-d*r)},Pt.prototype.applyToPoint=function(t){var e=t.x*this.sx+t.y*this.shx+this.tx,n=t.x*this.shy+t.y*this.sy+this.ty;return new yn(e,n)},Pt.prototype.applyToRectangle=function(t){var e=this.applyToPoint(t),n=this.applyToPoint(new yn(t.x+t.w,t.y+t.h));return new _n(e.x,e.y,n.x-e.x,n.y-e.y)},Pt.prototype.clone=function(){var t=this.sx,e=this.shy,n=this.shx,i=this.sy,s=this.tx,r=this.ty;return new Pt(t,e,n,i,s,r)},h.Matrix=Pt;var Nt=h.matrixMult=function(t,e){return e.multiply(t)},Mt=new Pt(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=Mt;var Rt=function(t,e){if(!wt[t]){var n=(e instanceof VB?"Sh":"P")+(Object.keys(_t).length+1).toString(10);e.id=n,wt[t]=n,_t[n]=e,It.publish("addPattern",e)}};h.ShadingPattern=VB,h.TilingPattern=BB,h.addShadingPattern=function(t,e){return S("addShadingPattern()"),Rt(t,e),this},h.beginTilingPattern=function(t){S("beginTilingPattern()"),xn(t.boundingBox[0],t.boundingBox[1],t.boundingBox[2]-t.boundingBox[0],t.boundingBox[3]-t.boundingBox[1],t.matrix)},h.endTilingPattern=function(t,e){S("endTilingPattern()"),e.stream=Y[V].join("\n"),Rt(t,e),It.publish("endTilingPattern",e),Ot.pop().restore()};var Lt=h.__private__.newObject=function(){var t=Ft();return jt(t,!0),t},Ft=h.__private__.newObjectDeferred=function(){return z++,U[z]=function(){return $},z},jt=function(t,e){return e="boolean"==typeof e&&e,U[t]=$,e&&Q(t+" 0 obj"),t},Vt=h.__private__.newAdditionalObject=function(){var t={objId:Ft(),content:""};return W.push(t),t},Bt=Ft(),Ht=Ft(),zt=h.__private__.decodeColorString=function(t){var e=t.split(" ");if(2!==e.length||"g"!==e[1]&&"G"!==e[1])5!==e.length||"k"!==e[4]&&"K"!==e[4]||(e=[(1-e[0])*(1-e[3]),(1-e[1])*(1-e[3]),(1-e[2])*(1-e[3]),"r"]);else{var n=parseFloat(e[0]);e=[n,n,n,"r"]}for(var i="#",s=0;s<3;s++)i+=("0"+Math.floor(255*parseFloat(e[s])).toString(16)).slice(-2);return i},Ut=h.__private__.encodeColorString=function(t){var e;"string"==typeof t&&(t={ch1:t});var n=t.ch1,i=t.ch2,s=t.ch3,r=t.ch4,a="draw"===t.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var o=new bB(n);if(o.ok)n=o.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,i=l>>8&255,s=255&l}if(void 0===i||void 0===r&&n===i&&i===s)if("string"==typeof n)e=n+" "+a[0];else switch(t.precision){case 2:e=E(n/255)+" "+a[0];break;case 3:default:e=I(n/255)+" "+a[0]}else if(void 0===r||"object"===mV()(r)){if(r&&!isNaN(r.a)&&0===r.a)return["1.","1.","1.",a[1]].join(" ");if("string"==typeof n)e=[n,i,s,a[1]].join(" ");else switch(t.precision){case 2:e=[E(n/255),E(i/255),E(s/255),a[1]].join(" ");break;default:case 3:e=[I(n/255),I(i/255),I(s/255),a[1]].join(" ")}}else if("string"==typeof n)e=[n,i,s,r,a[2]].join(" ");else switch(t.precision){case 2:e=[E(n),E(i),E(s),E(r),a[2]].join(" ");break;case 3:default:e=[I(n),I(i),I(s),I(r),a[2]].join(" ")}return e},qt=h.__private__.getFilters=function(){return a},$t=h.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||qt(),i=t.alreadyAppliedFilters||[],s=t.addLength1||!1,r=e.length,a=t.objectId,o=function(t){return t};if(null!==d&&void 0===a)throw new Error("ObjectId must be passed to putStream for file encryption");null!==d&&(o=Me.encryptor(a,0));var l={};!0===n&&(n=["FlateEncode"]);var c=t.additionalKeyValues||[],p=(l=void 0!==HB.API.processDataByFilters?HB.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===s&&c.push({key:"Length1",value:r})),0!=p.length)if(p.split("/").length-1==1)c.push({key:"Filter",value:p});else{c.push({key:"Filter",value:"["+p+"]"});for(var u=0;u<c.length;u+=1)if("DecodeParms"===c[u].key){for(var h=[],m=0;m<l.reverseChain.split("/").length-1;m+=1)h.push("null");h.push(c[u].value),c[u].value="["+h.join(" ")+"]"}}Q("<<");for(var f=0;f<c.length;f++)Q("/"+c[f].key+" "+c[f].value);Q(">>"),0!==l.data.length&&(Q("stream"),Q(o(l.data)),Q("endstream"))},Wt=h.__private__.putPage=function(t){var e=t.number,n=t.data,i=t.objId,s=t.contentsObjId;jt(i,!0),Q("<</Type /Page"),Q("/Parent "+t.rootDictionaryObjId+" 0 R"),Q("/Resources "+t.resourceDictionaryObjId+" 0 R"),Q("/MediaBox ["+parseFloat(C(t.mediaBox.bottomLeftX))+" "+parseFloat(C(t.mediaBox.bottomLeftY))+" "+C(t.mediaBox.topRightX)+" "+C(t.mediaBox.topRightY)+"]"),null!==t.cropBox&&Q("/CropBox ["+C(t.cropBox.bottomLeftX)+" "+C(t.cropBox.bottomLeftY)+" "+C(t.cropBox.topRightX)+" "+C(t.cropBox.topRightY)+"]"),null!==t.bleedBox&&Q("/BleedBox ["+C(t.bleedBox.bottomLeftX)+" "+C(t.bleedBox.bottomLeftY)+" "+C(t.bleedBox.topRightX)+" "+C(t.bleedBox.topRightY)+"]"),null!==t.trimBox&&Q("/TrimBox ["+C(t.trimBox.bottomLeftX)+" "+C(t.trimBox.bottomLeftY)+" "+C(t.trimBox.topRightX)+" "+C(t.trimBox.topRightY)+"]"),null!==t.artBox&&Q("/ArtBox ["+C(t.artBox.bottomLeftX)+" "+C(t.artBox.bottomLeftY)+" "+C(t.artBox.topRightX)+" "+C(t.artBox.topRightY)+"]"),"number"==typeof t.userUnit&&1!==t.userUnit&&Q("/UserUnit "+t.userUnit),It.publish("putPage",{objId:i,pageContext:Et[e],pageNumber:e,page:n}),Q("/Contents "+s+" 0 R"),Q(">>"),Q("endobj");var r=n.join("\n");return y===v.ADVANCED&&(r+="\nQ"),jt(s,!0),$t({data:r,filters:qt(),objectId:s}),Q("endobj"),i},Yt=h.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=kt;t++)Et[t].objId=Ft(),Et[t].contentsObjId=Ft();for(t=1;t<=kt;t++)n.push(Wt({number:t,data:Y[t],objId:Et[t].objId,contentsObjId:Et[t].contentsObjId,mediaBox:Et[t].mediaBox,cropBox:Et[t].cropBox,bleedBox:Et[t].bleedBox,trimBox:Et[t].trimBox,artBox:Et[t].artBox,userUnit:Et[t].userUnit,rootDictionaryObjId:Bt,resourceDictionaryObjId:Ht}));jt(Bt,!0),Q("<</Type /Pages");var i="/Kids [";for(e=0;e<kt;e++)i+=n[e]+" 0 R ";Q(i+"]"),Q("/Count "+kt),Q(">>"),Q("endobj"),It.publish("postPutPages")},Gt=function(t){It.publish("putFont",{font:t,out:Q,newObject:Lt,putStream:$t}),!0!==t.isAlreadyPutted&&(t.objectNumber=Lt(),Q("<<"),Q("/Type /Font"),Q("/BaseFont /"+RB(t.postScriptName)),Q("/Subtype /Type1"),"string"==typeof t.encoding&&Q("/Encoding /"+t.encoding),Q("/FirstChar 32"),Q("/LastChar 255"),Q(">>"),Q("endobj"))},Kt=function(){for(var t in bt)bt.hasOwnProperty(t)&&(!1===p||!0===p&&u.hasOwnProperty(t))&&Gt(bt[t])},Zt=function(t){t.objectNumber=Lt();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[C(t.x),C(t.y),C(t.x+t.width),C(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"});var n=t.pages[1].join("\n");$t({data:n,additionalKeyValues:e,objectId:t.objectNumber}),Q("endobj")},Xt=function(){for(var t in Dt)Dt.hasOwnProperty(t)&&Zt(Dt[t])},Qt=function(t,e){var n,i=[],s=1/(e-1);for(n=0;n<1;n+=s)i.push(n);if(i.push(1),0!=t[0].offset){var r={offset:0,color:t[0].color};t.unshift(r)}if(1!=t[t.length-1].offset){var a={offset:1,color:t[t.length-1].color};t.push(a)}for(var o="",l=0,c=0;c<i.length;c++){for(n=i[c];n>t[l+1].offset;)l++;var d=t[l].offset,p=(n-d)/(t[l+1].offset-d),u=t[l].color,h=t[l+1].color;o+=H(Math.round((1-p)*u[0]+p*h[0]).toString(16))+H(Math.round((1-p)*u[1]+p*h[1]).toString(16))+H(Math.round((1-p)*u[2]+p*h[2]).toString(16))}return o.trim()},Jt=function(t,e){e||(e=21);var n=Lt(),i=Qt(t.colors,e),s=[];s.push({key:"FunctionType",value:"0"}),s.push({key:"Domain",value:"[0.0 1.0]"}),s.push({key:"Size",value:"["+e+"]"}),s.push({key:"BitsPerSample",value:"8"}),s.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),s.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),$t({data:i,additionalKeyValues:s,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),Q("endobj"),t.objectNumber=Lt(),Q("<< /ShadingType "+t.type),Q("/ColorSpace /DeviceRGB");var r="/Coords ["+C(parseFloat(t.coords[0]))+" "+C(parseFloat(t.coords[1]))+" ";2===t.type?r+=C(parseFloat(t.coords[2]))+" "+C(parseFloat(t.coords[3])):r+=C(parseFloat(t.coords[2]))+" "+C(parseFloat(t.coords[3]))+" "+C(parseFloat(t.coords[4]))+" "+C(parseFloat(t.coords[5])),Q(r+="]"),t.matrix&&Q("/Matrix ["+t.matrix.toString()+"]"),Q("/Function "+n+" 0 R"),Q("/Extend [true true]"),Q(">>"),Q("endobj")},te=function(t,e){var n=Ft(),i=Lt();e.push({resourcesOid:n,objectOid:i}),t.objectNumber=i;var s=[];s.push({key:"Type",value:"/Pattern"}),s.push({key:"PatternType",value:"1"}),s.push({key:"PaintType",value:"1"}),s.push({key:"TilingType",value:"1"}),s.push({key:"BBox",value:"["+t.boundingBox.map(C).join(" ")+"]"}),s.push({key:"XStep",value:C(t.xStep)}),s.push({key:"YStep",value:C(t.yStep)}),s.push({key:"Resources",value:n+" 0 R"}),t.matrix&&s.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),$t({data:t.stream,additionalKeyValues:s,objectId:t.objectNumber}),Q("endobj")},ee=function(t){var e;for(e in _t)_t.hasOwnProperty(e)&&(_t[e]instanceof VB?Jt(_t[e]):_t[e]instanceof BB&&te(_t[e],t))},ne=function(t){for(var e in t.objectNumber=Lt(),Q("<<"),t)switch(e){case"opacity":Q("/ca "+E(t[e]));break;case"stroke-opacity":Q("/CA "+E(t[e]))}Q(">>"),Q("endobj")},ie=function(){var t;for(t in xt)xt.hasOwnProperty(t)&&ne(xt[t])},se=function(){for(var t in Q("/XObject <<"),Dt)Dt.hasOwnProperty(t)&&Dt[t].objectNumber>=0&&Q("/"+t+" "+Dt[t].objectNumber+" 0 R");It.publish("putXobjectDict"),Q(">>")},re=function(){Me.oid=Lt(),Q("<<"),Q("/Filter /Standard"),Q("/V "+Me.v),Q("/R "+Me.r),Q("/U <"+Me.toHexString(Me.U)+">"),Q("/O <"+Me.toHexString(Me.O)+">"),Q("/P "+Me.P),Q(">>"),Q("endobj")},ae=function(){for(var t in Q("/Font <<"),bt)bt.hasOwnProperty(t)&&(!1===p||!0===p&&u.hasOwnProperty(t))&&Q("/"+t+" "+bt[t].objectNumber+" 0 R");Q(">>")},oe=function(){if(Object.keys(_t).length>0){for(var t in Q("/Shading <<"),_t)_t.hasOwnProperty(t)&&_t[t]instanceof VB&&_t[t].objectNumber>=0&&Q("/"+t+" "+_t[t].objectNumber+" 0 R");It.publish("putShadingPatternDict"),Q(">>")}},le=function(t){if(Object.keys(_t).length>0){for(var e in Q("/Pattern <<"),_t)_t.hasOwnProperty(e)&&_t[e]instanceof h.TilingPattern&&_t[e].objectNumber>=0&&_t[e].objectNumber<t&&Q("/"+e+" "+_t[e].objectNumber+" 0 R");It.publish("putTilingPatternDict"),Q(">>")}},ce=function(){if(Object.keys(xt).length>0){var t;for(t in Q("/ExtGState <<"),xt)xt.hasOwnProperty(t)&&xt[t].objectNumber>=0&&Q("/"+t+" "+xt[t].objectNumber+" 0 R");It.publish("putGStateDict"),Q(">>")}},de=function(t){jt(t.resourcesOid,!0),Q("<<"),Q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ae(),oe(),le(t.objectOid),ce(),se(),Q(">>"),Q("endobj")},pe=function(){var t=[];Kt(),ie(),Xt(),ee(t),It.publish("putResources"),t.forEach(de),de({resourcesOid:Ht,objectOid:Number.MAX_SAFE_INTEGER}),It.publish("postPutResources")},ue=function(){It.publish("putAdditionalObjects");for(var t=0;t<W.length;t++){var e=W[t];jt(e.objId,!0),Q(e.content),Q("endobj")}It.publish("postPutAdditionalObjects")},he=function(t){vt[t.fontName]=vt[t.fontName]||{},vt[t.fontName][t.fontStyle]=t.id},me=function(t,e,n,i,s){var r={id:"F"+(Object.keys(bt).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:n,encoding:i,isStandardFont:s||!1,metadata:{}};return It.publish("addFont",{font:r,instance:this}),bt[r.id]=r,he(r),r.id},fe=function(t){for(var e=0,n=et.length;e<n;e++){var i=me.call(this,t[e][0],t[e][1],t[e][2],et[e][3],!0);!1===p&&(u[i]=!0);var s=t[e][0].split("-");he({id:i,fontName:s[0],fontStyle:s[1]||""})}It.publish("addFonts",{fonts:bt,dictionary:vt})},ge=function(t){return t.foo=function(){try{return t.apply(this,arguments)}catch(t){var e=t.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var n="Error in function "+e.split("\n")[0].split("<")[0]+": "+t.message;if(!lB.console)throw new Error(n);lB.console.error(n,t),lB.alert&&alert(n)}},t.foo.bar=t,t.foo},be=function(t,e){var n,i,s,r,a,o,l,c,d;if(s=(e=e||{}).sourceEncoding||"Unicode",a=e.outputEncoding,(e.autoencode||a)&&bt[ut].metadata&&bt[ut].metadata[s]&&bt[ut].metadata[s].encoding&&(r=bt[ut].metadata[s].encoding,!a&&bt[ut].encoding&&(a=bt[ut].encoding),!a&&r.codePages&&(a=r.codePages[0]),"string"==typeof a&&(a=r[a]),a)){for(l=!1,o=[],n=0,i=t.length;n<i;n++)(c=a[t.charCodeAt(n)])?o.push(String.fromCharCode(c)):o.push(t[n]),o[n].charCodeAt(0)>>8&&(l=!0);t=o.join("")}for(n=t.length;void 0===l&&0!==n;)t.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return t;for(o=e.noBOM?[]:[254,255],n=0,i=t.length;n<i;n++){if((d=(c=t.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(d),o.push(c-(d<<8))}return String.fromCharCode.apply(void 0,o)},ve=h.__private__.pdfEscape=h.pdfEscape=function(t,e){return be(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ye=h.__private__.beginPage=function(t){Y[++kt]=[],Et[kt]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},xe(kt),X(Y[V])},_e=function(t,e){var i,r,a;switch(n=e||n,"string"==typeof t&&(i=b(t.toLowerCase()),Array.isArray(i)&&(r=i[0],a=i[1])),Array.isArray(t)&&(r=t[0]*ht,a=t[1]*ht),isNaN(r)&&(r=s[0],a=s[1]),(r>14400||a>14400)&&(dB.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),a=Math.min(14400,a)),s=[r,a],n.substr(0,1)){case"l":a>r&&(s=[a,r]);break;case"p":r>a&&(s=[a,r])}ye(s),en(Je),Q(dn),0!==gn&&Q(gn+" J"),0!==bn&&Q(bn+" j"),It.publish("addPage",{pageNumber:kt})},we=function(t){t>0&&t<=kt&&(Y.splice(t,1),Et.splice(t,1),kt--,V>kt&&(V=kt),this.setPage(V))},xe=function(t){t>0&&t<=kt&&(V=t)},Ce=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Y.length-1},Se=function(t,e,n){var i,s=void 0;return n=n||{},t=void 0!==t?t:bt[ut].fontName,e=void 0!==e?e:bt[ut].fontStyle,i=t.toLowerCase(),void 0!==vt[i]&&void 0!==vt[i][e]?s=vt[i][e]:void 0!==vt[t]&&void 0!==vt[t][e]?s=vt[t][e]:!1===n.disableWarning&&dB.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),s||n.noFallback||null==(s=vt.times[e])&&(s=vt.times.normal),s},ke=h.__private__.putInfo=function(){var t=Lt(),e=function(t){return t};for(var n in null!==d&&(e=Me.encryptor(t,0)),Q("<<"),Q("/Producer ("+ve(e("jsPDF "+HB.version))+")"),pt)pt.hasOwnProperty(n)&&pt[n]&&Q("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+ve(e(pt[n]))+")");Q("/CreationDate ("+ve(e(O))+")"),Q(">>"),Q("endobj")},Ee=h.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||Bt;switch(Lt(),Q("<<"),Q("/Type /Catalog"),Q("/Pages "+e+" 0 R"),it||(it="fullwidth"),it){case"fullwidth":Q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Q("/OpenAction [3 0 R /Fit]");break;case"original":Q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+it;"%"===n.substr(n.length-1)&&(it=parseInt(it)/100),"number"==typeof it&&Q("/OpenAction [3 0 R /XYZ null null "+E(it)+"]")}switch(lt||(lt="continuous"),lt){case"continuous":Q("/PageLayout /OneColumn");break;case"single":Q("/PageLayout /SinglePage");break;case"two":case"twoleft":Q("/PageLayout /TwoColumnLeft");break;case"tworight":Q("/PageLayout /TwoColumnRight")}at&&Q("/PageMode /"+at),It.publish("putCatalog"),Q(">>"),Q("endobj")},Ie=h.__private__.putTrailer=function(){Q("trailer"),Q("<<"),Q("/Size "+(z+1)),Q("/Root "+z+" 0 R"),Q("/Info "+(z-1)+" 0 R"),null!==d&&Q("/Encrypt "+Me.oid+" 0 R"),Q("/ID [ <"+P+"> <"+P+"> ]"),Q(">>")},Ae=h.__private__.putHeader=function(){Q("%PDF-"+m),Q("%\xba\xdf\xac\xe0")},De=h.__private__.putXRef=function(){var t="0000000000";Q("xref"),Q("0 "+(z+1)),Q("0000000000 65535 f ");for(var e=1;e<=z;e++)"function"==typeof U[e]?Q((t+U[e]()).slice(-10)+" 00000 n "):void 0!==U[e]?Q((t+U[e]).slice(-10)+" 00000 n "):Q("0000000000 00000 n ")},Te=h.__private__.buildDocument=function(){Z(),X(q),It.publish("buildDocument"),Ae(),Yt(),ue(),pe(),null!==d&&re(),ke(),Ee();var t=$;return De(),Ie(),Q("startxref"),Q(""+t),Q("%%EOF"),X(Y[V]),q.join("\n")},Oe=h.__private__.getBlob=function(t){return new Blob([tt(t)],{type:"application/pdf"})},Pe=h.output=h.__private__.output=ge(function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return Te();case"save":h.save(e.filename);break;case"arraybuffer":return tt(Te());case"blob":return Oe(Te());case"bloburi":case"bloburl":if(void 0!==lB.URL&&"function"==typeof lB.URL.createObjectURL)return lB.URL&&lB.URL.createObjectURL(Oe(Te()))||void 0;dB.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",i=Te();try{n=fB(i)}catch(t){n=fB(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(lB)){var s="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(s=e.pdfObjectUrl,r="");var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+s+'"'+r+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(e)+");<\/script></body></html>",o=lB.open();return null!==o&&o.document.write(a),o}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(lB)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(e.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+e.filename+'" width="500px" height="400px" /></body></html>',c=lB.open();if(null!==c){c.document.write(l);var d=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=e.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(d.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(lB))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var p='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",e)+'"></iframe></body></html>',u=lB.open();if(null!==u&&(u.document.write(p),u.document.title=e.filename),u||"undefined"==typeof safari)return u;break;case"datauri":case"dataurl":return lB.document.location.href=this.output("datauristring",e);default:return null}}),Ne=function(t){return!0===Array.isArray(At)&&At.indexOf(t)>-1};switch(i){case"pt":ht=1;break;case"mm":ht=72/25.4;break;case"cm":ht=72/2.54;break;case"in":ht=72;break;case"px":ht=1==Ne("px_scaling")?.75:96/72;break;case"pc":case"em":ht=12;break;case"ex":ht=6;break;default:if("number"!=typeof i)throw new Error("Invalid unit: "+i);ht=i}var Me=null;F(),M();var Re=function(t){return null!==d?Me.encryptor(t,0):function(t){return t}},Le=h.__private__.getPageInfo=h.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Et[t].objId,pageNumber:t,pageContext:Et[t]}},Fe=h.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in Et)if(Et[e].objId===t)break;return Le(e)},je=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Et[V].objId,pageNumber:V,pageContext:Et[V]}};h.addPage=function(){return _e.apply(this,arguments),this},h.setPage=function(){return xe.apply(this,arguments),X.call(this,Y[V]),this},h.insertPage=function(t){return this.addPage(),this.movePage(V,t),this},h.movePage=function(t,e){var n,i;if(t>e){n=Y[t],i=Et[t];for(var s=t;s>e;s--)Y[s]=Y[s-1],Et[s]=Et[s-1];Y[e]=n,Et[e]=i,this.setPage(e)}else if(t<e){n=Y[t],i=Et[t];for(var r=t;r<e;r++)Y[r]=Y[r+1],Et[r]=Et[r+1];Y[e]=n,Et[e]=i,this.setPage(e)}return this},h.deletePage=function(){return we.apply(this,arguments),this},h.__private__.text=h.text=function(t,e,n,i,s){var r,a,o,l,c,d,p,h,m,f=(i=i||{}).scope||this;if("number"==typeof t&&"number"==typeof e&&("string"==typeof n||Array.isArray(n))){var g=n;n=e,e=t,t=g}if(arguments[3]instanceof Pt==0?(o=arguments[4],l=arguments[5],"object"===mV()(p=arguments[3])&&null!==p||("string"==typeof o&&(l=o,o=null),"string"==typeof p&&(l=p,p=null),"number"==typeof p&&(o=p,p=null),i={flags:p,angle:o,align:l})):(S("The transform parameter of text() with a Matrix value"),m=s),isNaN(e)||isNaN(n)||null==t)throw new Error("Invalid arguments passed to jsPDF.text");if(0===t.length)return f;var b="",_=!1,w="number"==typeof i.lineHeightFactor?i.lineHeightFactor:Qe,x=f.internal.scaleFactor;function k(t){return t=t.split("\t").join(Array(i.TabLen||9).join(" ")),ve(t,p)}function E(t){for(var e,n=t.concat(),i=[],s=n.length;s--;)"string"==typeof(e=n.shift())?i.push(e):Array.isArray(t)&&(1===e.length||void 0===e[1]&&void 0===e[2])?i.push(e[0]):i.push([e[0],e[1],e[2]]);return i}function I(t,e){var n;if("string"==typeof t)n=e(t)[0];else if(Array.isArray(t)){for(var i,s,r=t.concat(),a=[],o=r.length;o--;)"string"==typeof(i=r.shift())?a.push(e(i)[0]):Array.isArray(i)&&"string"==typeof i[0]&&(s=e(i[0],i[1],i[2]),a.push([s[0],s[1],s[2]]));n=a}return n}var D=!1,T=!0;if("string"==typeof t)D=!0;else if(Array.isArray(t)){var O=t.concat();a=[];for(var P,N=O.length;N--;)("string"!=typeof(P=O.shift())||Array.isArray(P)&&"string"!=typeof P[0])&&(T=!1);D=T}if(!1===D)throw new Error('Type of text must be string or Array. "'+t+'" is not recognized.');"string"==typeof t&&(t=t.match(/[\r?\n]/)?t.split(/\r\n|\r|\n/g):[t]);var M=nt/f.internal.scaleFactor,R=M*(w-1);switch(i.baseline){case"bottom":n-=R;break;case"top":n+=M-R;break;case"hanging":n+=M-2*R;break;case"middle":n+=M/2-R}if((d=i.maxWidth||0)>0&&("string"==typeof t?t=f.splitTextToSize(t,d):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(f.splitTextToSize(e,d))},[]))),r={text:t,x:e,y:n,options:i,mutex:{pdfEscape:ve,activeFontKey:ut,fonts:bt,activeFontSize:nt}},It.publish("preProcessText",r),t=r.text,o=(i=r.options).angle,m instanceof Pt==0&&o&&"number"==typeof o){o*=Math.PI/180,0===i.rotationDirection&&(o=-o),y===v.ADVANCED&&(o=-o);var L=Math.cos(o),F=Math.sin(o);m=new Pt(L,F,-F,L,0,0)}else o&&o instanceof Pt&&(m=o);y!==v.ADVANCED||m||(m=Mt),void 0!==(c=i.charSpace||mn)&&(b+=C(A(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(h=i.horizontalScale)&&(b+=C(100*h)+" Tz\n"),i.lang;var j=-1,V=void 0!==i.renderingMode?i.renderingMode:i.stroke,B=f.internal.getCurrentPageInfo().pageContext;switch(V){case 0:case!1:case"fill":j=0;break;case 1:case!0:case"stroke":j=1;break;case 2:case"fillThenStroke":j=2;break;case 3:case"invisible":j=3;break;case 4:case"fillAndAddForClipping":j=4;break;case 5:case"strokeAndAddPathForClipping":j=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":j=6;break;case 7:case"addToPathForClipping":j=7}var H=void 0!==B.usedRenderingMode?B.usedRenderingMode:-1;-1!==j?b+=j+" Tr\n":-1!==H&&(b+="0 Tr\n"),-1!==j&&(B.usedRenderingMode=j),l=i.align||"left";var z,U=nt*w,q=f.internal.pageSize.getWidth(),$=bt[ut];c=i.charSpace||mn,d=i.maxWidth||0,p=Object.assign({autoencode:!0,noBOM:!0},i.flags);var W=[];if("[object Array]"===Object.prototype.toString.call(t)){var Y;a=E(t),"left"!==l&&(z=a.map(function(t){return f.getStringUnitWidth(t,{font:$,charSpace:c,fontSize:nt,doKerning:!1})*nt/x}));var G,K=0;if("right"===l){e-=z[0],t=[],N=a.length;for(var Z=0;Z<N;Z++)0===Z?(G=an(e),Y=on(n)):(G=A(K-z[Z]),Y=-U),t.push([a[Z],G,Y]),K=z[Z]}else if("center"===l){e-=z[0]/2,t=[],N=a.length;for(var X=0;X<N;X++)0===X?(G=an(e),Y=on(n)):(G=A((K-z[X])/2),Y=-U),t.push([a[X],G,Y]),K=z[X]}else if("left"===l){t=[],N=a.length;for(var J=0;J<N;J++)t.push(a[J])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');t=[],N=a.length,d=0!==d?d:q;for(var tt=0;tt<N;tt++)Y=0===tt?on(n):-U,G=0===tt?an(e):0,tt<N-1?W.push(C(A((d-z[tt])/(a[tt].split(" ").length-1)))):W.push(0),t.push([a[tt],G,Y])}}var et="boolean"==typeof i.R2L?i.R2L:rt;!0===et&&(t=I(t,function(t,e,n){return[t.split("").reverse().join(""),e,n]})),r={text:t,x:e,y:n,options:i,mutex:{pdfEscape:ve,activeFontKey:ut,fonts:bt,activeFontSize:nt}},It.publish("postProcessText",r),t=r.text,_=r.mutex.isHex||!1;var it=bt[ut].encoding;"WinAnsiEncoding"!==it&&"StandardEncoding"!==it||(t=I(t,function(t,e,n){return[k(t),e,n]})),a=E(t),t=[];for(var st,at,ot,lt=0,ct=1,dt=Array.isArray(a[0])?ct:lt,pt="",ht=function(t,e,n){var s="";return n instanceof Pt?(n="number"==typeof i.angle?Nt(n,new Pt(1,0,0,1,t,e)):Nt(new Pt(1,0,0,1,t,e),n),y===v.ADVANCED&&(n=Nt(new Pt(1,0,0,-1,0,0),n)),s=n.join(" ")+" Tm\n"):s=C(t)+" "+C(e)+" Td\n",s},mt=0;mt<a.length;mt++){switch(pt="",dt){case ct:ot=(_?"<":"(")+a[mt][0]+(_?">":")"),st=parseFloat(a[mt][1]),at=parseFloat(a[mt][2]);break;case lt:ot=(_?"<":"(")+a[mt]+(_?">":")"),st=an(e),at=on(n)}void 0!==W&&void 0!==W[mt]&&(pt=W[mt]+" Tw\n"),0===mt?t.push(pt+ht(st,at,m)+ot):dt===lt?t.push(pt+ot):dt===ct&&t.push(pt+ht(st,at,m)+ot)}t=dt===lt?t.join(" Tj\nT* "):t.join(" Tj\n"),t+=" Tj\n";var ft="BT\n/";return ft+=ut+" "+nt+" Tf\n",ft+=C(nt*w)+" TL\n",ft+=un+"\n",ft+=b,ft+=t,Q(ft+="ET"),u[ut]=!0,f};var Ve=h.__private__.clip=h.clip=function(t){return Q("evenodd"===t?"W*":"W"),this};h.clipEvenOdd=function(){return Ve("evenodd")},h.__private__.discardPath=h.discardPath=function(){return Q("n"),this};var Be=h.__private__.isValidStyle=function(t){var e=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(t){return Be(t)&&(c=t),this};var He=h.__private__.getStyle=h.getStyle=function(t){var e=c;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},ze=h.close=function(){return Q("h"),this};h.stroke=function(){return Q("S"),this},h.fill=function(t){return Ue("f",t),this},h.fillEvenOdd=function(t){return Ue("f*",t),this},h.fillStroke=function(t){return Ue("B",t),this},h.fillStrokeEvenOdd=function(t){return Ue("B*",t),this};var Ue=function(t,e){"object"===mV()(e)?We(e,t):Q(t)},qe=function(t){null===t||y===v.ADVANCED&&void 0===t||(t=He(t),Q(t))};function $e(t,e,n,i,s){var r=new BB(e||this.boundingBox,n||this.xStep,i||this.yStep,this.gState,s||this.matrix);r.stream=this.stream;var a=t+"$$"+this.cloneIndex+++"$$";return Rt(a,r),r}var We=function(t,e){var n=wt[t.key],i=_t[n];if(i instanceof VB)Q("q"),Q(Ye(e)),i.gState&&h.setGState(i.gState),Q(t.matrix.toString()+" cm"),Q("/"+n+" sh"),Q("Q");else if(i instanceof BB){var s=new Pt(1,0,0,-1,0,In());t.matrix&&(s=s.multiply(t.matrix||Mt),n=$e.call(i,t.key,t.boundingBox,t.xStep,t.yStep,s).id),Q("q"),Q("/Pattern cs"),Q("/"+n+" scn"),i.gState&&h.setGState(i.gState),Q(e),Q("Q")}},Ye=function(t){switch(t){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Ge=h.moveTo=function(t,e){return Q(C(A(t))+" "+C(T(e))+" m"),this},Ke=h.lineTo=function(t,e){return Q(C(A(t))+" "+C(T(e))+" l"),this},Ze=h.curveTo=function(t,e,n,i,s,r){return Q([C(A(t)),C(T(e)),C(A(n)),C(T(i)),C(A(s)),C(T(r)),"c"].join(" ")),this};h.__private__.line=h.line=function(t,e,n,i,s){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||!Be(s))throw new Error("Invalid arguments passed to jsPDF.line");return y===v.COMPAT?this.lines([[n-t,i-e]],t,e,[1,1],s||"S"):this.lines([[n-t,i-e]],t,e,[1,1]).stroke()},h.__private__.lines=h.lines=function(t,e,n,i,s,r){var a,o,l,c,d,p,u,h,m,f,g,b;if("number"==typeof t&&(b=n,n=e,e=t,t=b),i=i||[1,1],r=r||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(i)||!Be(s)||"boolean"!=typeof r)throw new Error("Invalid arguments passed to jsPDF.lines");for(Ge(e,n),a=i[0],o=i[1],c=t.length,f=e,g=n,l=0;l<c;l++)2===(d=t[l]).length?(f=d[0]*a+f,g=d[1]*o+g,Ke(f,g)):(p=d[0]*a+f,u=d[1]*o+g,h=d[2]*a+f,m=d[3]*o+g,f=d[4]*a+f,g=d[5]*o+g,Ze(p,u,h,m,f,g));return r&&ze(),qe(s),this},h.path=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n.c;switch(n.op){case"m":Ge(i[0],i[1]);break;case"l":Ke(i[0],i[1]);break;case"c":Ze.apply(this,i);break;case"h":ze()}}return this},h.__private__.rect=h.rect=function(t,e,n,i,s){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||!Be(s))throw new Error("Invalid arguments passed to jsPDF.rect");return y===v.COMPAT&&(i=-i),Q([C(A(t)),C(T(e)),C(A(n)),C(A(i)),"re"].join(" ")),qe(s),this},h.__private__.triangle=h.triangle=function(t,e,n,i,s,r,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(s)||isNaN(r)||!Be(a))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-t,i-e],[s-n,r-i],[t-s,e-r]],t,e,[1,1],a,!0),this},h.__private__.roundedRect=h.roundedRect=function(t,e,n,i,s,r,a){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(s)||isNaN(r)||!Be(a))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var o=4/3*(Math.SQRT2-1);return s=Math.min(s,.5*n),r=Math.min(r,.5*i),this.lines([[n-2*s,0],[s*o,0,s,r-r*o,s,r],[0,i-2*r],[0,r*o,-s*o,r,-s,r],[2*s-n,0],[-s*o,0,-s,-r*o,-s,-r],[0,2*r-i],[0,-r*o,s*o,-r,s,-r]],t+s,e,[1,1],a,!0),this},h.__private__.ellipse=h.ellipse=function(t,e,n,i,s){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||!Be(s))throw new Error("Invalid arguments passed to jsPDF.ellipse");var r=4/3*(Math.SQRT2-1)*n,a=4/3*(Math.SQRT2-1)*i;return Ge(t+n,e),Ze(t+n,e-a,t+r,e-i,t,e-i),Ze(t-r,e-i,t-n,e-a,t-n,e),Ze(t-n,e+a,t-r,e+i,t,e+i),Ze(t+r,e+i,t+n,e+a,t+n,e),qe(s),this},h.__private__.circle=h.circle=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||!Be(i))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(t,e,n,n,i)},h.setFont=function(t,e,n){return n&&(e=x(e,n)),ut=Se(t,e,{disableWarning:!1}),this};var Xe=h.__private__.getFont=h.getFont=function(){return bt[Se.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var t,e,n={};for(t in vt)if(vt.hasOwnProperty(t))for(e in n[t]=[],vt[t])vt[t].hasOwnProperty(e)&&n[t].push(e);return n},h.addFont=function(t,e,n,i,s){var r=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==r.indexOf(arguments[3])?s=arguments[3]:arguments[3]&&-1==r.indexOf(arguments[3])&&(n=x(n,i)),s=s||"Identity-H",me.call(this,t,e,n,s)};var Qe,Je=t.lineWidth||.200025,tn=h.__private__.getLineWidth=h.getLineWidth=function(){return Je},en=h.__private__.setLineWidth=h.setLineWidth=function(t){return Je=t,Q(C(A(t))+" w"),this};h.__private__.setLineDash=HB.API.setLineDash=HB.API.setLineDashPattern=function(t,e){if(t=t||[],e=e||0,isNaN(e)||!Array.isArray(t))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return t=t.map(function(t){return C(A(t))}).join(" "),e=C(A(e)),Q("["+t+"] "+e+" d"),this};var nn=h.__private__.getLineHeight=h.getLineHeight=function(){return nt*Qe};h.__private__.getLineHeight=h.getLineHeight=function(){return nt*Qe};var sn=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(t){return"number"==typeof(t=t||1.15)&&(Qe=t),this},rn=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Qe};sn(t.lineHeight);var an=h.__private__.getHorizontalCoordinate=function(t){return A(t)},on=h.__private__.getVerticalCoordinate=function(t){return y===v.ADVANCED?t:Et[V].mediaBox.topRightY-Et[V].mediaBox.bottomLeftY-A(t)},ln=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(t){return C(an(t))},cn=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(t){return C(on(t))},dn=t.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return zt(dn)},h.__private__.setStrokeColor=h.setDrawColor=function(t,e,n,i){return dn=Ut({ch1:t,ch2:e,ch3:n,ch4:i,pdfColorType:"draw",precision:2}),Q(dn),this};var pn=t.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return zt(pn)},h.__private__.setFillColor=h.setFillColor=function(t,e,n,i){return pn=Ut({ch1:t,ch2:e,ch3:n,ch4:i,pdfColorType:"fill",precision:2}),Q(pn),this};var un=t.textColor||"0 g",hn=h.__private__.getTextColor=h.getTextColor=function(){return zt(un)};h.__private__.setTextColor=h.setTextColor=function(t,e,n,i){return un=Ut({ch1:t,ch2:e,ch3:n,ch4:i,pdfColorType:"text",precision:3}),this};var mn=t.charSpace,fn=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(mn||0)};h.__private__.setCharSpace=h.setCharSpace=function(t){if(isNaN(t))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return mn=t,this};var gn=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(t){var e=h.CapJoinStyles[t];if(void 0===e)throw new Error("Line cap style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return gn=e,Q(e+" J"),this};var bn=0;h.__private__.setLineJoin=h.setLineJoin=function(t){var e=h.CapJoinStyles[t];if(void 0===e)throw new Error("Line join style of '"+t+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return bn=e,Q(e+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(t){if(t=t||0,isNaN(t))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Q(C(A(t))+" M"),this},h.GState=FB,h.setGState=function(t){(t="string"==typeof t?xt[Ct[t]]:vn(null,t)).equals(St)||(Q("/"+t.id+" gs"),St=t)};var vn=function(t,e){if(!t||!Ct[t]){var n=!1;for(var i in xt)if(xt.hasOwnProperty(i)&&xt[i].equals(e)){n=!0;break}if(n)e=xt[i];else{var s="GS"+(Object.keys(xt).length+1).toString(10);xt[s]=e,e.id=s}return t&&(Ct[t]=e.id),It.publish("addGState",e),e}};h.addGState=function(t,e){return vn(t,e),this},h.saveGraphicsState=function(){return Q("q"),yt.push({key:ut,size:nt,color:un}),this},h.restoreGraphicsState=function(){Q("Q");var t=yt.pop();return ut=t.key,nt=t.size,un=t.color,St=null,this},h.setCurrentTransformationMatrix=function(t){return Q(t.toString()+" cm"),this},h.comment=function(t){return Q("#"+t),this};var yn=function(t,e){var n=t||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(t){isNaN(t)||(n=parseFloat(t))}});var i=e||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return i},set:function(t){isNaN(t)||(i=parseFloat(t))}});var s="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return s},set:function(t){s=t.toString()}}),this},_n=function(t,e,n,i){yn.call(this,t,e),this.type="rect";var s=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return s},set:function(t){isNaN(t)||(s=parseFloat(t))}});var r=i||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return r},set:function(t){isNaN(t)||(r=parseFloat(t))}}),this},wn=function(){this.page=kt,this.currentPage=V,this.pages=Y.slice(0),this.pagesContext=Et.slice(0),this.x=mt,this.y=ft,this.matrix=gt,this.width=kn(V),this.height=In(V),this.outputDestination=K,this.id="",this.objectNumber=-1};wn.prototype.restore=function(){kt=this.page,V=this.currentPage,Et=this.pagesContext,Y=this.pages,mt=this.x,ft=this.y,gt=this.matrix,En(V,this.width),An(V,this.height),K=this.outputDestination};var xn=function(t,e,n,i,s){Ot.push(new wn),kt=V=0,Y=[],mt=t,ft=e,gt=s,ye([n,i])},Cn=function(t){if(Tt[t])Ot.pop().restore();else{var e=new wn,n="Xo"+(Object.keys(Dt).length+1).toString(10);e.id=n,Tt[t]=n,Dt[n]=e,It.publish("addFormObject",e),Ot.pop().restore()}};for(var Sn in h.beginFormObject=function(t,e,n,i,s){return xn(t,e,n,i,s),this},h.endFormObject=function(t){return Cn(t),this},h.doFormObject=function(t,e){var n=Dt[Tt[t]];return Q("q"),Q(e.toString()+" cm"),Q("/"+n.id+" Do"),Q("Q"),this},h.getFormObject=function(t){var e=Dt[Tt[t]];return{x:e.x,y:e.y,width:e.width,height:e.height,matrix:e.matrix}},h.save=function(t,e){return t=t||"generated.pdf",(e=e||{}).returnPromise=e.returnPromise||!1,!1===e.returnPromise?(gB(Oe(Te()),t),"function"==typeof gB.unload&&lB.setTimeout&&setTimeout(gB.unload,911),this):new Promise(function(e,n){try{var i=gB(Oe(Te()),t);"function"==typeof gB.unload&&lB.setTimeout&&setTimeout(gB.unload,911),e(i)}catch(t){n(t.message)}})},HB.API)HB.API.hasOwnProperty(Sn)&&("events"===Sn&&HB.API.events.length?function(t,e){var n,i,s;for(s=e.length-1;-1!==s;s--)n=e[s][0],i=e[s][1],t.subscribe.apply(t,[n].concat("function"==typeof i?[i]:i))}(It,HB.API.events):h[Sn]=HB.API[Sn]);var kn=h.getPageWidth=function(t){return(Et[t=t||V].mediaBox.topRightX-Et[t].mediaBox.bottomLeftX)/ht},En=h.setPageWidth=function(t,e){Et[t].mediaBox.topRightX=e*ht+Et[t].mediaBox.bottomLeftX},In=h.getPageHeight=function(t){return(Et[t=t||V].mediaBox.topRightY-Et[t].mediaBox.bottomLeftY)/ht},An=h.setPageHeight=function(t,e){Et[t].mediaBox.topRightY=e*ht+Et[t].mediaBox.bottomLeftY};return h.internal={pdfEscape:ve,getStyle:He,getFont:Xe,getFontSize:st,getCharSpace:fn,getTextColor:hn,getLineHeight:nn,getLineHeightFactor:rn,getLineWidth:tn,write:J,getHorizontalCoordinate:an,getVerticalCoordinate:on,getCoordinateString:ln,getVerticalCoordinateString:cn,collections:{},newObject:Lt,newAdditionalObject:Vt,newObjectDeferred:Ft,newObjectDeferredBegin:jt,getFilters:qt,putStream:$t,events:It,scaleFactor:ht,pageSize:{getWidth:function(){return kn(V)},setWidth:function(t){En(V,t)},getHeight:function(){return In(V)},setHeight:function(t){An(V,t)}},encryptionOptions:d,encryption:Me,getEncryptor:Re,output:Pe,getNumberOfPages:Ce,pages:Y,out:Q,f2:E,f3:I,getPageInfo:Le,getPageInfoByObjId:Fe,getCurrentPageInfo:je,getPDFVersion:f,Point:yn,Rectangle:_n,Matrix:Pt,hasHotfix:Ne},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return kn(V)},set:function(t){En(V,t)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return In(V)},set:function(t){An(V,t)},enumerable:!0,configurable:!0}),fe.call(h,et),ut="F1",_e(s,n),It.publish("initialized"),h}MB.prototype.lsbFirstWord=function(t){return String.fromCharCode(t>>0&255,t>>8&255,t>>16&255,t>>24&255)},MB.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},MB.prototype.hexToBytes=function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(String.fromCharCode(parseInt(t.substr(n,2),16)));return e.join("")},MB.prototype.processOwnerPassword=function(t,e){return PB(DB(e).substr(0,5),t)},MB.prototype.encryptor=function(t,e){var n=DB(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return PB(n,t)}},FB.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||mV()(t)!==mV()(this))return!1;var i=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e))return!1;if(this[e]!==t[e])return!1;i++}for(e in t)t.hasOwnProperty(e)&&n.indexOf(e)<0&&i--;return 0===i},HB.API={events:[]},HB.version="2.5.1";var zB=HB.API,UB=1,qB=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$B=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},WB=function(t){return t.toFixed(2)},YB=function(t){return t.toFixed(5)};zB.__acroform__={};var GB=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},KB=function(t){return t*UB},ZB=function(t){var e=new hH,n=IH.internal.getHeight(t)||0,i=IH.internal.getWidth(t)||0;return e.BBox=[0,0,Number(WB(i)),Number(WB(n))],e},XB=zB.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},QB=zB.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},JB=zB.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(t&1<<e)?0:1},tH=zB.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return JB(t,e-1)},eH=zB.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return XB(t,e-1)},nH=zB.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return QB(t,e-1)},iH=zB.__acroform__.calculateCoordinates=function(t,e){var n=e.internal.getHorizontalCoordinate,i=e.internal.getVerticalCoordinate,s=t[0],r=t[1],a=t[2],o=t[3],l={};return l.lowerLeft_X=n(s)||0,l.lowerLeft_Y=i(r+o)||0,l.upperRight_X=n(s+a)||0,l.upperRight_Y=i(r)||0,[Number(WB(l.lowerLeft_X)),Number(WB(l.lowerLeft_Y)),Number(WB(l.upperRight_X)),Number(WB(l.upperRight_Y))]},sH=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],n=t._V||t.DV,i=rH(t,n),s=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+s+" "+WB(i.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(i.text),e.push("ET"),e.push("Q"),e.push("EMC");var r=ZB(t);return r.scope=t.scope,r.stream=e.join("\n"),r}},rH=function(t,e){var n=0===t.fontSize?t.maxFontSize:t.fontSize,i={text:"",fontSize:""},s=(e=")"==(e="("==e.substr(0,1)?e.substr(1):e).substr(e.length-1)?e.substr(0,e.length-1):e).split(" ");s=t.multiline?s.map(function(t){return t.split("\n")}):s.map(function(t){return[t]});var r=n,a=IH.internal.getHeight(t)||0;a=a<0?-a:a;var o=IH.internal.getWidth(t)||0;o=o<0?-o:o;var l=function(e,n,i){if(e+1<s.length){var r=n+" "+s[e+1][0];return aH(r,t,i).width<=o-4}return!1};r++;t:for(;r>0;){e="",r--;var c,d,p=aH("3",t,r).height,u=t.multiline?a-r:(a-p)/2,h=u+=2,m=0,f=0,g=0;if(r<=0){e="(...) Tj\n",e+="% Width of Text: "+aH(e,t,r=12).width+", FieldWidth:"+o+"\n";break}for(var b="",v=0,y=0;y<s.length;y++)if(s.hasOwnProperty(y)){var _=!1;if(1!==s[y].length&&g!==s[y].length-1){if((p+2)*(v+2)+2>a)continue t;b+=s[y][g],_=!0,f=y,y--}else{b=" "==(b+=s[y][g]+" ").substr(b.length-1)?b.substr(0,b.length-1):b;var w=parseInt(y),x=l(w,b,r),C=y>=s.length-1;if(x&&!C){b+=" ",g=0;continue}if(x||C){if(C)f=w;else if(t.multiline&&(p+2)*(v+2)+2>a)continue t}else{if(!t.multiline)continue t;if((p+2)*(v+2)+2>a)continue t;f=w}}for(var S="",k=m;k<=f;k++){var E=s[k];if(t.multiline){if(k===f){S+=E[g]+" ",g=(g+1)%E.length;continue}if(k===m){S+=E[E.length-1]+" ";continue}}S+=E[0]+" "}switch(S=" "==S.substr(S.length-1)?S.substr(0,S.length-1):S,d=aH(S,t,r).width,t.textAlign){case"right":c=o-d-2;break;case"center":c=(o-d)/2;break;case"left":default:c=2}e+=WB(c)+" "+WB(h)+" Td\n",e+="("+qB(S)+") Tj\n",e+=-WB(c)+" 0 Td\n",h=-(r+2),d=0,m=_?f:f+1,v++,b=""}break}return i.text=e,i.fontSize=r,i},aH=function(t,e,n){var i=e.scope.internal.getFont(e.fontName,e.fontStyle),s=e.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:s}},oH={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},lH=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===n.type&&t.object===n.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},cH=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(fH.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(oH)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");UB=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new mH,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){var e;(e=t).internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}),t.internal.events.subscribe("buildDocument",function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];i.objId=void 0,i.hasAnnotation&&lH(i,t)}}(t)}),t.internal.events.subscribe("putCatalog",function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)}),t.internal.events.subscribe("postPutPages",function(e){!function(t,e){var n=!t;for(var i in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(i)){var s=t[i],r=[],a=s.Rect;if(s.Rect&&(s.Rect=iH(s.Rect,e)),e.internal.newObjectDeferredBegin(s.objId,!0),s.DA=IH.createDefaultAppearanceStream(s),"object"===mV()(s)&&"function"==typeof s.getKeyValueListForStream&&(r=s.getKeyValueListForStream()),s.Rect=a,s.hasAppearanceStream&&!s.appearanceStreamContent){var o=sH(s);r.push({key:"AP",value:"<</N "+o+">>"}),e.internal.acroformPlugin.xForms.push(o)}if(s.appearanceStreamContent){var l="";for(var c in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(c)){var d=s.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(d).length>=1||Array.isArray(d)){for(var i in d)if(d.hasOwnProperty(i)){var p=d[i];"function"==typeof p&&(p=p.call(e,s)),l+="/"+i+" "+p+" ",e.internal.acroformPlugin.xForms.indexOf(p)>=0||e.internal.acroformPlugin.xForms.push(p)}}else"function"==typeof(p=d)&&(p=p.call(e,s)),l+="/"+i+" "+p,e.internal.acroformPlugin.xForms.indexOf(p)>=0||e.internal.acroformPlugin.xForms.push(p);l+=">>"}r.push({key:"AP",value:"<<\n"+l+">>"})}e.internal.putStream({additionalKeyValues:r,objectId:s.objId}),e.internal.out("endobj")}n&&function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=n,s=t[n];e.internal.newObjectDeferredBegin(s.objId,!0),"object"===mV()(s)&&"function"==typeof s.putStream&&s.putStream(),delete t[i]}}(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},dH=zB.__acroform__.arrayToPdfArray=function(t,e,n){var i=function(t){return t};if(Array.isArray(t)){for(var s="[",r=0;r<t.length;r++)switch(0!==r&&(s+=" "),mV()(t[r])){case"boolean":case"number":case"object":s+=t[r].toString();break;case"string":"/"!==t[r].substr(0,1)?(void 0!==e&&n&&(i=n.internal.getEncryptor(e)),s+="("+qB(i(t[r].toString()))+")"):s+=t[r].toString()}return s+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},pH=function(t,e,n){var i=function(t){return t};return void 0!==e&&n&&(i=n.internal.getEncryptor(e)),(t=t||"").toString(),"("+qB(i(t))+")"},uH=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};uH.prototype.toString=function(){return this.objId+" 0 R"},uH.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},uH.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(t){return"content"!=t&&"appearanceStreamContent"!=t&&"scope"!=t&&"objId"!=t&&"_"!=t.substring(0,1)});for(var n in e)if(!1===Object.getOwnPropertyDescriptor(this,e[n]).configurable){var i=e[n],s=this[i];s&&(Array.isArray(s)?t.push({key:i,value:dH(s,this.objId,this.scope)}):s instanceof uH?(s.scope=this.scope,t.push({key:i,value:s.objId+" 0 R"})):"function"!=typeof s&&t.push({key:i,value:s}))}return t};var hH=function(){uH.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};GB(hH,uH);var mH=function(){uH.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+qB(e(t))+")"}},set:function(e){t=e}})};GB(mH,uH);var fH=function t(){uH.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(e,3))},set:function(t){!0===Boolean(t)?this.F=eH(e,3):this.F=nH(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw new Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==i.length)return i},set:function(t){i=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(t){i[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(t){i[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(t){i[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(t){i[3]=t}});var s="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return s},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":s=t;break;default:throw new Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof CH)return;r="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+qB(e(r))+")"},set:function(t){r=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(t){r=t}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(t){o=t}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(t){l=t}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/UB:c},set:function(t){c=t}});var d="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return d},set:function(t){d=t}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof CH||this instanceof kH))return pH(p,this.objId,this.scope)},set:function(t){t=t.toString(),p=t}});var u=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(u)return this instanceof _H==0?pH(u,this.objId,this.scope):u},set:function(t){t=t.toString(),u=this instanceof _H==0?"("===t.substr(0,1)?$B(t.substr(1,t.length-2)):$B(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof _H==1?$B(u.substr(1,u.length-1)):u},set:function(t){t=t.toString(),u=this instanceof _H==1?"/"+t:t}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof _H==0?pH(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof _H==0?"("===t.substr(0,1)?$B(t.substr(1,t.length-2)):$B(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof _H==1?$B(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof _H==1?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var m,f=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return f},set:function(t){t=Boolean(t),f=t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(t){m=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,1))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,1):this.Ff=nH(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,2))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,2):this.Ff=nH(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,3))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,3):this.Ff=nH(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw new Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;case"left":case 0:default:g=0}}})};GB(fH,uH);var gH=function(){fH.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return dH(e,this.objId,this.scope)},set:function(t){var n,i;i=[],"string"==typeof(n=t)&&(i=function(t,e,n){n||(n=1);for(var i,s=[];i=e.exec(t);)s.push(i[n]);return s}(n,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,18))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,18):this.Ff=nH(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,19))},set:function(t){!0===this.combo&&(!0===Boolean(t)?this.Ff=eH(this.Ff,19):this.Ff=nH(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,20))},set:function(t){!0===Boolean(t)?(this.Ff=eH(this.Ff,20),e.sort()):this.Ff=nH(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,22))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,22):this.Ff=nH(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,23):this.Ff=nH(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,27))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,27):this.Ff=nH(this.Ff,27)}}),this.hasAppearanceStream=!1};GB(gH,fH);var bH=function(){gH.call(this),this.fontName="helvetica",this.combo=!1};GB(bH,gH);var vH=function(){bH.call(this),this.combo=!0};GB(vH,bH);var yH=function(){vH.call(this),this.edit=!0};GB(yH,vH);var _H=function(){fH.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,15))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,15):this.Ff=nH(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,16))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,16):this.Ff=nH(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,17))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,17):this.Ff=nH(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,26):this.Ff=nH(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,i=[];for(n in i.push("<<"),e)i.push("/"+n+" ("+qB(t(e[n]))+")");return i.push(">>"),i.join("\n")}},set:function(t){"object"===mV()(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};GB(_H,fH);var wH=function(){_H.call(this),this.pushButton=!0};GB(wH,_H);var xH=function(){_H.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};GB(xH,_H);var CH=function(){var t,e;fH.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var n,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),i)n.push("/"+e+" ("+qB(t(i[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===mV()(t)&&(i=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(t){"string"==typeof t&&(i.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=IH.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};GB(CH,fH),xH.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},xH.prototype.createOption=function(t){var e=new CH;return e.Parent=this,e.optionName=t,this.Kids.push(e),AH.call(this.scope,e),e};var SH=function(){_H.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=IH.CheckBox.createAppearanceStream()};GB(SH,_H);var kH=function(){fH.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,13))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,13):this.Ff=nH(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,21))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,21):this.Ff=nH(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,23))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,23):this.Ff=nH(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,24))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,24):this.Ff=nH(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,25))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,25):this.Ff=nH(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,26))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,26):this.Ff=nH(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};GB(kH,fH);var EH=function(){kH.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(tH(this.Ff,14))},set:function(t){!0===Boolean(t)?this.Ff=eH(this.Ff,14):this.Ff=nH(this.Ff,14)}}),this.password=!0};GB(EH,kH);var IH={CheckBox:{createAppearanceStream:function(){return{N:{On:IH.CheckBox.YesNormal},D:{On:IH.CheckBox.YesPushDown,Off:IH.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=ZB(t);e.scope=t.scope;var n=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,s=t.scope.__private__.encodeColorString(t.color),r=rH(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+WB(IH.internal.getWidth(t))+" "+WB(IH.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+i+" "+WB(r.fontSize)+" Tf "+s),n.push("BT"),n.push(r.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=ZB(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),s=[],r=IH.internal.getHeight(t),a=IH.internal.getWidth(t),o=rH(t,t.caption);return s.push("1 g"),s.push("0 0 "+WB(a)+" "+WB(r)+" re"),s.push("f"),s.push("q"),s.push("0 0 1 rg"),s.push("0 0 "+WB(a-1)+" "+WB(r-1)+" re"),s.push("W"),s.push("n"),s.push("0 g"),s.push("BT"),s.push("/"+n+" "+WB(o.fontSize)+" Tf "+i),s.push(o.text),s.push("ET"),s.push("Q"),e.stream=s.join("\n"),e},OffPushDown:function(t){var e=ZB(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+WB(IH.internal.getWidth(t))+" "+WB(IH.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:IH.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=IH.RadioButton.Circle.YesNormal,e.D[t]=IH.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=ZB(t);e.scope=t.scope;var n=[],i=IH.internal.getWidth(t)<=IH.internal.getHeight(t)?IH.internal.getWidth(t)/4:IH.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var s=IH.internal.Bezier_C,r=Number((i*s).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+YB(IH.internal.getWidth(t)/2)+" "+YB(IH.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+r+" "+r+" "+i+" 0 "+i+" c"),n.push("-"+r+" "+i+" -"+i+" "+r+" -"+i+" 0 c"),n.push("-"+i+" -"+r+" -"+r+" -"+i+" 0 -"+i+" c"),n.push(r+" -"+i+" "+i+" -"+r+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=ZB(t);e.scope=t.scope;var n=[],i=IH.internal.getWidth(t)<=IH.internal.getHeight(t)?IH.internal.getWidth(t)/4:IH.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var s=Number((2*i).toFixed(5)),r=Number((s*IH.internal.Bezier_C).toFixed(5)),a=Number((i*IH.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+YB(IH.internal.getWidth(t)/2)+" "+YB(IH.internal.getHeight(t)/2)+" cm"),n.push(s+" 0 m"),n.push(s+" "+r+" "+r+" "+s+" 0 "+s+" c"),n.push("-"+r+" "+s+" -"+s+" "+r+" -"+s+" 0 c"),n.push("-"+s+" -"+r+" -"+r+" -"+s+" 0 -"+s+" c"),n.push(r+" -"+s+" "+s+" -"+r+" "+s+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+YB(IH.internal.getWidth(t)/2)+" "+YB(IH.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),n.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),n.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),n.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=ZB(t);e.scope=t.scope;var n=[],i=IH.internal.getWidth(t)<=IH.internal.getHeight(t)?IH.internal.getWidth(t)/4:IH.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var s=Number((2*i).toFixed(5)),r=Number((s*IH.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+YB(IH.internal.getWidth(t)/2)+" "+YB(IH.internal.getHeight(t)/2)+" cm"),n.push(s+" 0 m"),n.push(s+" "+r+" "+r+" "+s+" 0 "+s+" c"),n.push("-"+r+" "+s+" -"+s+" "+r+" -"+s+" 0 c"),n.push("-"+s+" -"+r+" -"+r+" -"+s+" 0 -"+s+" c"),n.push(r+" -"+s+" "+s+" -"+r+" "+s+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:IH.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=IH.RadioButton.Cross.YesNormal,e.D[t]=IH.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=ZB(t);e.scope=t.scope;var n=[],i=IH.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+WB(IH.internal.getWidth(t)-2)+" "+WB(IH.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(WB(i.x1.x)+" "+WB(i.x1.y)+" m"),n.push(WB(i.x2.x)+" "+WB(i.x2.y)+" l"),n.push(WB(i.x4.x)+" "+WB(i.x4.y)+" m"),n.push(WB(i.x3.x)+" "+WB(i.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=ZB(t);e.scope=t.scope;var n=IH.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+WB(IH.internal.getWidth(t))+" "+WB(IH.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+WB(IH.internal.getWidth(t)-2)+" "+WB(IH.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(WB(n.x1.x)+" "+WB(n.x1.y)+" m"),i.push(WB(n.x2.x)+" "+WB(n.x2.y)+" l"),i.push(WB(n.x4.x)+" "+WB(n.x4.y)+" m"),i.push(WB(n.x3.x)+" "+WB(n.x3.y)+" l"),i.push("s"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=ZB(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+WB(IH.internal.getWidth(t))+" "+WB(IH.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};IH.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=IH.internal.getWidth(t),n=IH.internal.getHeight(t),i=Math.min(e,n);return{x1:{x:(e-i)/2,y:(n-i)/2+i},x2:{x:(e-i)/2+i,y:(n-i)/2},x3:{x:(e-i)/2,y:(n-i)/2},x4:{x:(e-i)/2+i,y:(n-i)/2+i}}}},IH.internal.getWidth=function(t){var e=0;return"object"===mV()(t)&&(e=KB(t.Rect[2])),e},IH.internal.getHeight=function(t){var e=0;return"object"===mV()(t)&&(e=KB(t.Rect[3])),e};var AH=zB.addField=function(t){if(cH(this,t),!(t instanceof fH))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};zB.AcroFormChoiceField=gH,zB.AcroFormListBox=bH,zB.AcroFormComboBox=vH,zB.AcroFormEditBox=yH,zB.AcroFormButton=_H,zB.AcroFormPushButton=wH,zB.AcroFormRadioButton=xH,zB.AcroFormCheckBox=SH,zB.AcroFormTextField=kH,zB.AcroFormPasswordField=EH,zB.AcroFormAppearance=IH,zB.AcroForm={ChoiceField:gH,ListBox:bH,ComboBox:vH,EditBox:yH,Button:_H,PushButton:wH,RadioButton:xH,CheckBox:SH,TextField:kH,PasswordField:EH,Appearance:IH},HB.AcroForm={ChoiceField:gH,ListBox:bH,ComboBox:vH,EditBox:yH,Button:_H,PushButton:wH,RadioButton:xH,CheckBox:SH,TextField:kH,PasswordField:EH,Appearance:IH};var DH,TH;HB.AcroForm;function OH(t){return t.reduce(function(t,e,n){return t[e]=n,t},{})}!function(t){t.__addimage__={};var e="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=t.__addimage__.getImageFileTypeByImageData=function(t,i){var s,r,a,o,l,c=e;if("RGBA"===(i=i||e)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(x(t))for(l in n)for(a=n[l],s=0;s<a.length;s+=1){for(o=!0,r=0;r<a[s].length;r+=1)if(void 0!==a[s][r]&&a[s][r]!==t[r]){o=!1;break}if(!0===o){c=l;break}}else for(l in n)for(a=n[l],s=0;s<a.length;s+=1){for(o=!0,r=0;r<a[s].length;r+=1)if(void 0!==a[s][r]&&a[s][r]!==t.charCodeAt(r)){o=!1;break}if(!0===o){c=l;break}}return c===e&&i!==e&&(c=i),c},s=function t(e){for(var n=this.internal.write,i=this.internal.putStream,s=(0,this.internal.getFilters)();-1!==s.indexOf("FlateEncode");)s.splice(s.indexOf("FlateEncode"),1);e.objectId=this.internal.newObject();var r=[];if(r.push({key:"Type",value:"/XObject"}),r.push({key:"Subtype",value:"/Image"}),r.push({key:"Width",value:e.width}),r.push({key:"Height",value:e.height}),e.colorSpace===g.INDEXED?r.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(e.palette.length/3-1)+" "+("sMask"in e&&void 0!==e.sMask?e.objectId+2:e.objectId+1)+" 0 R]"}):(r.push({key:"ColorSpace",value:"/"+e.colorSpace}),e.colorSpace===g.DEVICE_CMYK&&r.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),r.push({key:"BitsPerComponent",value:e.bitsPerComponent}),"decodeParameters"in e&&void 0!==e.decodeParameters&&r.push({key:"DecodeParms",value:"<<"+e.decodeParameters+">>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var a="",o=0,l=e.transparency.length;o<l;o++)a+=e.transparency[o]+" "+e.transparency[o]+" ";r.push({key:"Mask",value:"["+a+"]"})}void 0!==e.sMask&&r.push({key:"SMask",value:e.objectId+1+" 0 R"});var c=void 0!==e.filter?["/"+e.filter]:void 0;if(i({data:e.data,additionalKeyValues:r,alreadyAppliedFilters:c,objectId:e.objectId}),n("endobj"),"sMask"in e&&void 0!==e.sMask){var d="/Predictor "+e.predictor+" /Colors 1 /BitsPerComponent "+e.bitsPerComponent+" /Columns "+e.width,p={width:e.width,height:e.height,colorSpace:"DeviceGray",bitsPerComponent:e.bitsPerComponent,decodeParameters:d,data:e.sMask};"filter"in e&&(p.filter=e.filter),t.call(this,p)}if(e.colorSpace===g.INDEXED){var u=this.internal.newObject();i({data:S(new Uint8Array(e.palette)),objectId:u}),n("endobj")}},r=function(){var t=this.internal.collections.addImage_images;for(var e in t)s.call(this,t[e])},a=function(){var t,e=this.internal.collections.addImage_images,n=this.internal.write;for(var i in e)n("/I"+(t=e[i]).index,t.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",r),this.internal.events.subscribe("putXobjectDict",a))},l=function(){var t=this.internal.collections.addImage_images;return o.call(this),t},c=function(){return Object.keys(this.internal.collections.addImage_images).length},d=function(e){return"function"==typeof t["process"+e.toUpperCase()]},p=function(t){return"object"===mV()(t)&&1===t.nodeType},u=function(e,n){if("IMG"===e.nodeName&&e.hasAttribute("src")){var i=""+e.getAttribute("src");if(0===i.indexOf("data:image/"))return mB(unescape(i).split("base64,").pop());var s=t.loadFile(i,!0);if(void 0!==s)return s}if("CANVAS"===e.nodeName){if(0===e.width||0===e.height)throw new Error("Given canvas must have data. Canvas width: "+e.width+", height: "+e.height);var r;switch(n){case"PNG":r="image/png";break;case"WEBP":r="image/webp";break;case"JPEG":case"JPG":default:r="image/jpeg"}return mB(e.toDataURL(r,1).split("base64,").pop())}},h=function(t){var e=this.internal.collections.addImage_images;if(e)for(var n in e)if(t===e[n].alias)return e[n]},m=function(t,e,n){return t||e||(t=-96,e=-96),t<0&&(t=-1*n.width*72/t/this.internal.scaleFactor),e<0&&(e=-1*n.height*72/e/this.internal.scaleFactor),0===t&&(t=e*n.width/n.height),0===e&&(e=t*n.height/n.width),[t,e]},f=function(t,e,n,i,s,r){var a=m.call(this,n,i,s),o=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,d=l.call(this);if(n=a[0],i=a[1],d[s.index]=s,r){r*=Math.PI/180;var p=Math.cos(r),u=Math.sin(r),h=function(t){return t.toFixed(4)},f=[h(p),h(u),h(-1*u),h(p),0,0,"cm"]}this.internal.write("q"),r?(this.internal.write([1,"0","0",1,o(t),c(e+i),"cm"].join(" ")),this.internal.write(f.join(" ")),this.internal.write([o(n),"0","0",o(i),"0","0","cm"].join(" "))):this.internal.write([o(n),"0","0",o(i),o(t),c(e+i),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+s.index+" Do"),this.internal.write("Q")},g=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},v=t.__addimage__.sHashCode=function(t){var e,n,i=0;if("string"==typeof t)for(n=t.length,e=0;e<n;e++)i=(i<<5)-i+t.charCodeAt(e),i|=0;else if(x(t))for(n=t.byteLength/2,e=0;e<n;e++)i=(i<<5)-i+t[e],i|=0;return i},y=t.__addimage__.validateStringAsBase64=function(t){(t=t||"").toString().trim();var e=!0;return 0===t.length&&(e=!1),t.length%4!=0&&(e=!1),!1===/^[A-Za-z0-9+/]+$/.test(t.substr(0,t.length-2))&&(e=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(t.substr(-2))&&(e=!1),e},_=t.__addimage__.extractImageFromDataUrl=function(t){var e=(t=t||"").split("base64,"),n=null;if(2===e.length){var i=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(e[0]);Array.isArray(i)&&(n={mimeType:i[1],charset:i[2],data:e[1]})}return n},w=t.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};t.__addimage__.isArrayBuffer=function(t){return w()&&t instanceof ArrayBuffer};var x=t.__addimage__.isArrayBufferView=function(t){return w()&&"undefined"!=typeof Uint32Array&&(t instanceof Int8Array||t instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)},C=t.__addimage__.binaryStringToUint8Array=function(t){for(var e=t.length,n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(i);return n},S=t.__addimage__.arrayBufferToBinaryString=function(t){for(var e="",n=x(t)?t:new Uint8Array(t),i=0;i<n.length;i+=8192)e+=String.fromCharCode.apply(null,n.subarray(i,i+8192));return e};t.addImage=function(){var t,n,i,s,r,a,l,c,d;if("number"==typeof arguments[1]?(n=e,i=arguments[1],s=arguments[2],r=arguments[3],a=arguments[4],l=arguments[5],c=arguments[6],d=arguments[7]):(n=arguments[1],i=arguments[2],s=arguments[3],r=arguments[4],a=arguments[5],l=arguments[6],c=arguments[7],d=arguments[8]),"object"===mV()(t=arguments[0])&&!p(t)&&"imageData"in t){var u=t;t=u.imageData,n=u.format||n||e,i=u.x||i||0,s=u.y||s||0,r=u.w||u.width||r,a=u.h||u.height||a,l=u.alias||l,c=u.compression||c,d=u.rotation||u.angle||d}var h=this.internal.getFilters();if(void 0===c&&-1!==h.indexOf("FlateEncode")&&(c="SLOW"),isNaN(i)||isNaN(s))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var m=k.call(this,t,n,l,c);return f.call(this,i,s,r,a,m,d),this};var k=function(n,s,r,a){var o,l,m;if("string"==typeof n&&i(n)===e){n=unescape(n);var f=E(n,!1);(""!==f||void 0!==(f=t.loadFile(n,!0)))&&(n=f)}if(p(n)&&(n=u(n,s)),s=i(n,s),!d(s))throw new Error("addImage does not support files of type '"+s+"', please ensure that a plugin for '"+s+"' support is added.");if((null==(m=r)||0===m.length)&&(r=function(t){return"string"==typeof t||x(t)?v(t):x(t.data)?v(t.data):null}(n)),(o=h.call(this,r))||(w()&&(n instanceof Uint8Array||"RGBA"===s||(l=n,n=C(n))),o=this["process"+s.toUpperCase()](n,c.call(this),r,function(e){return e&&"string"==typeof e&&(e=e.toUpperCase()),e in t.image_compression?e:b.NONE}(a),l)),!o)throw new Error("An unknown error occurred whilst processing the image.");return o},E=t.__addimage__.convertBase64ToBinaryString=function(t,e){var n;e="boolean"!=typeof e||e;var i,s="";if("string"==typeof t){i=null!==(n=_(t))?n.data:t;try{s=mB(i)}catch(t){if(e)throw y(i)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return s};t.getImageProperties=function(n){var s,r,a="";if(p(n)&&(n=u(n)),"string"==typeof n&&i(n)===e&&(""===(a=E(n,!1))&&(a=t.loadFile(n)||""),n=a),r=i(n),!d(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(!w()||n instanceof Uint8Array||(n=C(n)),!(s=this["process"+r.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return s.fileType=r,s}}(HB.API),DH=HB.API,TH=function(t){if(void 0!==t&&""!=t)return!0},HB.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),DH.events.push(["putPage",function(t){for(var e,n,i,s=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(t.objId),o=t.pageContext.annotations,l=!1,c=0;c<o.length&&!l;c++)switch((e=o[c]).type){case"link":(TH(e.options.url)||TH(e.options.pageNumber))&&(l=!0);break;case"reference":case"text":case"freetext":l=!0}if(0!=l){this.internal.write("/Annots [");for(var d=0;d<o.length;d++){e=o[d];var p=this.internal.pdfEscape,u=this.internal.getEncryptor(t.objId);switch(e.type){case"reference":this.internal.write(" "+e.object.objId+" 0 R ");break;case"text":var h=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),f=this.internal.getEncryptor(h.objId),g=e.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(e.bounds.x)+" "+r(e.bounds.y+e.bounds.h)+" "+s(e.bounds.x+e.bounds.w)+" "+r(e.bounds.y)+"] ")+"/Contents ("+p(f(e.contents))+")",i+=" /Popup "+m.objId+" 0 R",i+=" /P "+a.objId+" 0 R",i+=" /T ("+p(f(g))+") >>",h.content=i;var b=h.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(e.bounds.x+30)+" "+r(e.bounds.y+e.bounds.h)+" "+s(e.bounds.x+e.bounds.w+30)+" "+r(e.bounds.y)+"] ")+" /Parent "+b,e.open&&(i+=" /Open true"),i+=" >>",m.content=i,this.internal.write(h.objId,"0 R",m.objId,"0 R");break;case"freetext":n="/Rect ["+s(e.bounds.x)+" "+r(e.bounds.y)+" "+s(e.bounds.x+e.bounds.w)+" "+r(e.bounds.y+e.bounds.h)+"] ";var v=e.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+p(u(e.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+v+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",i="",e.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+p(u(e.options.url))+") >>";else if(e.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(e.options.pageNumber).objId+" 0 R",e.options.magFactor=e.options.magFactor||"XYZ",e.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+e.options.top+"]";break;case"FitV":e.options.left=e.options.left||0,i+=" /FitV "+e.options.left+"]";break;case"XYZ":default:var _=r(e.options.top);e.options.left=e.options.left||0,void 0===e.options.zoom&&(e.options.zoom=0),i+=" /XYZ "+e.options.left+" "+_+" "+e.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),DH.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},DH.link=function(t,e,n,i,s){var r=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString;r.pageContext.annotations.push({finalBounds:{x:a(t),y:o(e),w:a(t+n),h:o(e+i)},options:s,type:"link"})},DH.textWithLink=function(t,e,n,i){var s,r,a=this.getTextWidth(t),o=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==i.maxWidth){r=i.maxWidth;var l=this.splitTextToSize(t,r).length;s=Math.ceil(o*l)}else r=a,s=o;return this.text(t,e,n,i),n+=.2*o,"center"===i.align&&(e-=a/2),"right"===i.align&&(e-=a),this.link(e,n-o,r,s,i),a},DH.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},i={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},s=[1570,1571,1573,1575];t.__arabicParser__={};var r=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},a=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},o=t.__arabicParser__.isArabicEndLetter=function(t){return a(t)&&r(t)&&e[t.charCodeAt(0)].length<=2},l=t.__arabicParser__.isArabicAlfLetter=function(t){return a(t)&&s.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return a(t)&&r(t)&&e[t.charCodeAt(0)].length>=1};var c=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return a(t)&&r(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return a(t)&&r(t)&&e[t.charCodeAt(0)].length>=3};var d=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return a(t)&&r(t)&&4==e[t.charCodeAt(0)].length},p=t.__arabicParser__.resolveLigatures=function(t){var e=0,i=n,s="",r=0;for(e=0;e<t.length;e+=1)void 0!==i[t.charCodeAt(e)]?(r++,"number"==typeof(i=i[t.charCodeAt(e)])&&(s+=String.fromCharCode(i),i=n,r=0),e===t.length-1&&(i=n,s+=t.charAt(e-(r-1)),e-=r-1,r=0)):(i=n,s+=t.charAt(e-r),e-=r,r=0);return s};t.__arabicParser__.isArabicDiacritic=function(t){return void 0!==t&&void 0!==i[t.charCodeAt(0)]};var u=t.__arabicParser__.getCorrectForm=function(t,e,n){return a(t)?!1===r(t)?-1:!c(t)||!a(e)&&!a(n)||!a(n)&&o(e)||o(t)&&!a(e)||o(t)&&l(e)||o(t)&&o(e)?0:d(t)&&a(e)&&!o(e)&&a(n)&&c(n)?3:o(t)||!a(n)?1:2:-1},h=function(t){var n=0,i=0,s=0,r="",o="",l="",c=(t=t||"").split("\\s+"),d=[];for(n=0;n<c.length;n+=1){for(d.push(""),i=0;i<c[n].length;i+=1)r=c[n][i],o=c[n][i-1],l=c[n][i+1],a(r)?(s=u(r,o,l),d[n]+=-1!==s?String.fromCharCode(e[r.charCodeAt(0)][s]):r):d[n]+=r;d[n]=p(d[n])}return d.join(" ")},m=t.__arabicParser__.processArabic=t.processArabic=function(){var t,e="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(e)){var i=0;for(n=[],i=0;i<e.length;i+=1)Array.isArray(e[i])?n.push([h(e[i][0]),e[i][1],e[i][2]]):n.push([h(e[i])]);t=n}else t=h(e);return"string"==typeof arguments[0]?t:(arguments[0].text=t,arguments[0])};t.events.push(["preProcessText",m])}(HB.API),HB.API.autoPrint=function(t){var e;switch((t=t||{}).variant=t.variant||"non-conform",t.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})}return this},function(t){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(t){i=t}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(t){s=t}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])}(HB.API),function(t){var e={left:0,top:0,bottom:0,right:0},n=!1,i=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),s.call(this))},s=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var i=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var s=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return s},set:function(t){s=t}});var r=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var a=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return a},set:function(t){a=t}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(t){return i.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},t.getTextDimensions=function(t,e){i.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),s=e.font||this.getFont(),r=e.scaleFactor||this.internal.scaleFactor,a=0,o=0,l=0,c=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var d=e.maxWidth;d>0?"string"==typeof t?t=this.splitTextToSize(t,d):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(c.splitTextToSize(e,d))},[])):t=Array.isArray(t)?t:[t];for(var p=0;p<t.length;p++)a<(l=this.getStringUnitWidth(t[p],{font:s})*n)&&(a=l);return 0!==a&&(o=t.length),{w:a/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},t.cellAddPage=function(){i.call(this),this.addPage();var t=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new r(t.left,t.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=t.cell=function(){var t;t=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),i.call(this);var s=this.internal.__cell__.lastCell,a=this.internal.__cell__.padding,o=this.internal.__cell__.margins||e,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==s.lineNumber&&(s.lineNumber===t.lineNumber?(t.x=(s.x||0)+(s.width||0),t.y=s.y||0):s.y+s.height+t.height+o.bottom>this.getPageHeight()?(this.cellAddPage(),t.y=o.top,c&&l&&(this.printHeaderRow(t.lineNumber,!0),t.y+=l[0].height)):t.y=s.y+s.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===n?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-a,t.y+a,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+a,{align:"center",baseline:"top",maxWidth:t.width-a-a}):this.text(t.text,t.x+a,t.y+a,{align:"left",baseline:"top",maxWidth:t.width-a-a})),this.internal.__cell__.lastCell=t,this};t.table=function(t,n,l,c,d){if(i.call(this),!l)throw new Error("No data for PDF table.");var p,u,h,m,f=[],g=[],b=[],v={},y={},_=[],w=[],x=(d=d||{}).autoSize||!1,C=!1!==d.printHeaders,S=d.css&&void 0!==d.css["font-size"]?16*d.css["font-size"]:d.fontSize||12,k=d.margins||Object.assign({width:this.getPageWidth()},e),E="number"==typeof d.padding?d.padding:3,I=d.headerBackgroundColor||"#c8c8c8",A=d.headerTextColor||"#000";if(s.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=S,this.internal.__cell__.padding=E,this.internal.__cell__.headerBackgroundColor=I,this.internal.__cell__.headerTextColor=A,this.setFontSize(S),null==c)g=f=Object.keys(l[0]),b=f.map(function(){return"left"});else if(Array.isArray(c)&&"object"===mV()(c[0]))for(f=c.map(function(t){return t.name}),g=c.map(function(t){return t.prompt||t.name||""}),b=c.map(function(t){return t.align||"left"}),p=0;p<c.length;p+=1)y[c[p].name]=c[p].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(g=f=c,b=f.map(function(){return"left"}));if(x||Array.isArray(c)&&"string"==typeof c[0])for(p=0;p<f.length;p+=1){for(v[m=f[p]]=l.map(function(t){return t[m]}),this.setFont(void 0,"bold"),_.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),u=v[m],this.setFont(void 0,"normal"),h=0;h<u.length;h+=1)_.push(this.getTextDimensions(u[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[m]=Math.max.apply(null,_)+E+E,_=[]}if(C){var D={};for(p=0;p<f.length;p+=1)D[f[p]]={},D[f[p]].text=g[p],D[f[p]].align=b[p];var T=o.call(this,D,y);w=f.map(function(e){return new r(t,n,y[e],T,D[e].text,void 0,D[e].align)}),this.setTableHeaderRow(w),this.printHeaderRow(1,!1)}var O=c.reduce(function(t,e){return t[e.name]=e.align,t},{});for(p=0;p<l.length;p+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:p,data:l[p]},this);var P=o.call(this,l[p],y);for(h=0;h<f.length;h+=1){var N=l[p][f[h]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:p,col:h,data:N},this),a.call(this,new r(t,n,y[f[h]],P,N,p+2,O[f[h]]))}}return this.internal.__cell__.table_x=t,this.internal.__cell__.table_y=n,this};var o=function(t,e){var n=this.internal.__cell__.padding,i=this.internal.__cell__.table_font_size,s=this.internal.scaleFactor;return Object.keys(t).map(function(i){var s=t[i];return this.splitTextToSize(s.hasOwnProperty("text")?s.text:s,e[i]-n-n)},this).map(function(t){return this.getLineHeightFactor()*t.length*i/s+n+n},this).reduce(function(t,e){return Math.max(t,e)},0)};t.setTableHeaderRow=function(t){i.call(this),this.internal.__cell__.tableHeaderRow=t},t.printHeaderRow=function(t,e){if(i.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var s;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var o=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(o[0],o[1],o[2],o[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){s=this.internal.__cell__.tableHeaderRow[c].clone(),e&&(s.y=this.internal.__cell__.margins.top||0,l.push(s)),s.lineNumber=t;var d=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,s),this.setTextColor(d)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(HB.API);var PH={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},NH=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],MH=OH(NH),RH=[100,200,300,400,500,600,700,800,900],LH=OH(RH);function FH(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),n=function(t){return PH[t=t||"normal"]?t:"normal"}(t.style),i=function(t){if(!t)return 400;if("number"==typeof t)return t>=100&&t<=900&&t%100==0?t:400;if(/^\d00$/.test(t))return parseInt(t);switch(t){case"bold":return 700;case"normal":default:return 400}}(t.weight),s=function(t){return"number"==typeof MH[t=t||"normal"]?t:"normal"}(t.stretch);return{family:e,style:n,weight:i,stretch:s,src:t.src||[],ref:t.ref||{name:e,style:[s,n,i].join(" ")}}}function jH(t,e,n,i){var s;for(s=n;s>=0&&s<e.length;s+=i)if(t[e[s]])return t[e[s]];for(s=n;s>=0&&s<e.length;s-=i)if(t[e[s]])return t[e[s]]}var VH={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},BH={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function HH(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function zH(t){return t.trimLeft()}function UH(t,e){for(var n=0;n<t.length;){if(t.charAt(n)===e)return[t.substring(0,n),t.substring(n+1)];n+=1}return null}function qH(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===e?null:[e[0],t.substring(e[0].length)]}var $H,WH,YH,GH=["times"];!function(t){var e,n,i,s,r,a,o,l,c,d=function(t){return t=t||{},this.isStrokeTransparent=t.isStrokeTransparent||!1,this.strokeOpacity=t.strokeOpacity||1,this.strokeStyle=t.strokeStyle||"#000000",this.fillStyle=t.fillStyle||"#000000",this.isFillTransparent=t.isFillTransparent||!1,this.fillOpacity=t.fillOpacity||1,this.font=t.font||"10px sans-serif",this.textBaseline=t.textBaseline||"alphabetic",this.textAlign=t.textAlign||"left",this.lineWidth=t.lineWidth||1,this.lineJoin=t.lineJoin||"miter",this.lineCap=t.lineCap||"butt",this.path=t.path||[],this.transform=void 0!==t.transform?t.transform.clone():new l,this.globalCompositeOperation=t.globalCompositeOperation||"normal",this.globalAlpha=t.globalAlpha||1,this.clip_path=t.clip_path||[],this.currentPoint=t.currentPoint||new a,this.miterLimit=t.miterLimit||10,this.lastPoint=t.lastPoint||new a,this.lineDashOffset=t.lineDashOffset||0,this.lineDash=t.lineDash||[],this.margin=t.margin||[0,0,0,0],this.prevPageLastElemOffset=t.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof t.ignoreClearRect||t.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),e=this.internal.f2,n=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,s=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,a=this.internal.Point,o=this.internal.Rectangle,l=this.internal.Matrix,c=new d}]);var p=function(t){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var e=t;Object.defineProperty(this,"pdf",{get:function(){return e}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(t){n=Boolean(t)}});var i=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return i},set:function(t){i=Boolean(t)}});var s=0;Object.defineProperty(this,"posX",{get:function(){return s},set:function(t){isNaN(t)||(s=t)}});var r=0;Object.defineProperty(this,"posY",{get:function(){return r},set:function(t){isNaN(t)||(r=t)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(t){var e;"number"==typeof t?e=[t,t,t,t]:((e=new Array(4))[0]=t[0],e[1]=t.length>=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),c.margin=e}});var a=!1;Object.defineProperty(this,"autoPaging",{get:function(){return a},set:function(t){a=t}});var o=0;Object.defineProperty(this,"lastBreak",{get:function(){return o},set:function(t){o=t}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(t){l=t}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(t){t instanceof d&&(c=t)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(t){c.path=t}});var p=[];Object.defineProperty(this,"ctxStack",{get:function(){return p},set:function(t){p=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=u(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=u(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var h=null;function m(t,e){if(null===h){var n=function(t){var e=[];return Object.keys(t).forEach(function(n){t[n].forEach(function(t){var i=null;switch(t){case"bold":i={family:n,weight:"bold"};break;case"italic":i={family:n,style:"italic"};break;case"bolditalic":i={family:n,weight:"bold",style:"italic"};break;case"":case"normal":i={family:n}}null!==i&&(i.ref={name:n,style:t},e.push(i))})}),e}(t.getFontList());h=function(t){for(var e={},n=0;n<t.length;++n){var i=FH(t[n]),s=i.family,r=i.stretch,a=i.style,o=i.weight;e[s]=e[s]||{},e[s][r]=e[s][r]||{},e[s][r][a]=e[s][r][a]||{},e[s][r][a][o]=i}return e}(n.concat(e))}return h}var f=null;Object.defineProperty(this,"fontFaces",{get:function(){return f},set:function(t){h=null,f=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],i=(e[2],e[3]),s=e[4],r=(e[5],e[6]),a=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(s)[2];s="px"===a?Math.floor(parseFloat(s)*this.pdf.internal.scaleFactor):"em"===a?Math.floor(parseFloat(s)*this.pdf.getFontSize()):Math.floor(parseFloat(s)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(s);var o=function(t){var e,n,i=[],s=t.trim();if(""===s)return GH;if(s in BH)return[BH[s]];for(;""!==s;){switch(n=null,e=(s=zH(s)).charAt(0)){case'"':case"'":n=UH(s.substring(1),e);break;default:n=qH(s)}if(null===n)return GH;if(i.push(n[0]),""!==(s=zH(n[1]))&&","!==s.charAt(0))return GH;s=s.replace(/^,/,"")}return i}(r);if(this.fontFaces){var l=function(t,e,n){for(var i=(n=n||{}).defaultFontFamily||"times",s=Object.assign({},VH,n.genericFontFamilies||{}),r=null,a=null,o=0;o<e.length;++o)if(s[(r=FH(e[o])).family]&&(r.family=s[r.family]),t.hasOwnProperty(r.family)){a=t[r.family];break}if(!(a=a||t[i]))throw new Error("Could not find a font-family for the rule '"+HH(r)+"' and default family '"+i+"'.");if(a=function(t,e){if(e[t])return e[t];var n=MH[t],i=n<=MH.normal?-1:1,s=jH(e,NH,n,i);if(!s)throw new Error("Could not find a matching font-stretch value for "+t);return s}(r.stretch,a),a=function(t,e){if(e[t])return e[t];for(var n=PH[t],i=0;i<n.length;++i)if(e[n[i]])return e[n[i]];throw new Error("Could not find a matching font-style for "+t)}(r.style,a),!(a=function(t,e){if(e[t])return e[t];if(400===t&&e[500])return e[500];if(500===t&&e[400])return e[400];var n=LH[t],i=jH(e,RH,n,t<400?-1:1);if(!i)throw new Error("Could not find a matching font-weight for value "+t);return i}(r.weight,a)))throw new Error("Failed to resolve a font for the rule '"+HH(r)+"'.");return a}(m(this.pdf,this.fontFaces),o.map(function(t){return{family:t,stretch:"normal",weight:i,style:n}}));this.pdf.setFont(l.ref.name,l.ref.style)}else{var c="";("bold"===i||parseInt(i,10)>=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var d="",p={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},u=0;u<o.length;u++){if(void 0!==this.pdf.internal.getFont(o[u],c,{noFallback:!0,disableWarning:!0})){d=o[u];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(o[u],"bold",{noFallback:!0,disableWarning:!0}))d=o[u],c="bold";else if(void 0!==this.pdf.internal.getFont(o[u],"normal",{noFallback:!0,disableWarning:!0})){d=o[u],c="normal";break}}if(""===d)for(var h=0;h<o.length;h++)if(p[o[h]]){d=p[o[h]];break}d=""===d?"Times":d,this.pdf.setFont(d,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(t){this.ctx.globalCompositeOperation=t}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(t){this.ctx.globalAlpha=t}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(t){this.ctx.lineDashOffset=t,F.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(t){this.ctx.lineDash=t,F.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(t){this.ctx.ignoreClearRect=Boolean(t)}})};p.prototype.setLineDash=function(t){this.lineDash=t},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){_.call(this,"fill",!1)},p.prototype.stroke=function(){_.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(t,e){if(isNaN(t)||isNaN(e))throw dB.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(t,e)},p.prototype.closePath=function(){var t=new a(0,0),e=0;for(e=this.path.length-1;-1!==e;e--)if("begin"===this.path[e].type&&"object"===mV()(this.path[e+1])&&"number"==typeof this.path[e+1].x){t=new a(this.path[e+1].x,this.path[e+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(t.x,t.y)},p.prototype.lineTo=function(t,e){if(isNaN(t)||isNaN(e))throw dB.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new a(n.x,n.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),_.call(this,null,!0)},p.prototype.quadraticCurveTo=function(t,e,n,i){if(isNaN(n)||isNaN(i)||isNaN(t)||isNaN(e))throw dB.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var s=this.ctx.transform.applyToPoint(new a(n,i)),r=this.ctx.transform.applyToPoint(new a(t,e));this.path.push({type:"qct",x1:r.x,y1:r.y,x:s.x,y:s.y}),this.ctx.lastPoint=new a(s.x,s.y)},p.prototype.bezierCurveTo=function(t,e,n,i,s,r){if(isNaN(s)||isNaN(r)||isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw dB.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var o=this.ctx.transform.applyToPoint(new a(s,r)),l=this.ctx.transform.applyToPoint(new a(t,e)),c=this.ctx.transform.applyToPoint(new a(n,i));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:o.x,y:o.y}),this.ctx.lastPoint=new a(o.x,o.y)},p.prototype.arc=function(t,e,n,i,s,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(s))throw dB.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(r=Boolean(r),!this.ctx.transform.isIdentity){var o=this.ctx.transform.applyToPoint(new a(t,e));t=o.x,e=o.y;var l=this.ctx.transform.applyToPoint(new a(0,n)),c=this.ctx.transform.applyToPoint(new a(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(s-i)>=2*Math.PI&&(i=0,s=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:i,endAngle:s,counterclockwise:r})},p.prototype.arcTo=function(t,e,n,i,s){throw new Error("arcTo not implemented.")},p.prototype.rect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw dB.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},p.prototype.fillRect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw dB.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var s={};"butt"!==this.lineCap&&(s.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(s.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,i),this.fill(),s.hasOwnProperty("lineCap")&&(this.lineCap=s.lineCap),s.hasOwnProperty("lineJoin")&&(this.lineJoin=s.lineJoin)}},p.prototype.strokeRect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw dB.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(t,e,n,i),this.stroke())},p.prototype.clearRect=function(t,e,n,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i))throw dB.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,i))},p.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(e),t){this.ctx.fontSize=this.pdf.internal.getFontSize();var i=new d(this.ctx);this.ctxStack.push(this.ctx),this.ctx=i}},p.prototype.restore=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(e),t&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var u=function(t){var e,n,i,s;if(!0===t.isCanvasGradient&&(t=t.getColor()),!t)return{r:0,g:0,b:0,a:0,style:t};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(t))e=0,n=0,i=0,s=0;else{var r=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(t);if(null!==r)e=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]),s=1;else if(null!==(r=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(t)))e=parseInt(r[1]),n=parseInt(r[2]),i=parseInt(r[3]),s=parseFloat(r[4]);else{if(s=1,"string"==typeof t&&"#"!==t.charAt(0)){var a=new bB(t);t=a.ok?a.toHex():"#000000"}4===t.length?(e=t.substring(1,2),e+=e,n=t.substring(2,3),n+=n,i=t.substring(3,4),i+=i):(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7)),e=parseInt(e,16),n=parseInt(n,16),i=parseInt(i,16)}}return{r:e,g:n,b:i,a:s,style:t}},h=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},m=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};p.prototype.fillText=function(t,e,n,i){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw dB.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(i=isNaN(i)?void 0:i,!h.call(this)){var s=M(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;A.call(this,{text:t,x:e,y:n,scale:r,angle:s,align:this.textAlign,maxWidth:i})}},p.prototype.strokeText=function(t,e,n,i){if(isNaN(e)||isNaN(n)||"string"!=typeof t)throw dB.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){i=isNaN(i)?void 0:i;var s=M(this.ctx.transform.rotation),r=this.ctx.transform.scaleX;A.call(this,{text:t,x:e,y:n,scale:r,renderingMode:"stroke",angle:s,align:this.textAlign,maxWidth:i})}},p.prototype.measureText=function(t){if("string"!=typeof t)throw dB.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var e=this.pdf,n=this.pdf.internal.scaleFactor,i=e.internal.getFontSize(),s=e.getStringUnitWidth(t)*i/e.internal.scaleFactor,r=function(t){var e=(t=t||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return e}}),this};return new r({width:s*=Math.round(96*n/72*1e4)/1e4})},p.prototype.scale=function(t,e){if(isNaN(t)||isNaN(e))throw dB.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new l(t,0,0,e,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.rotate=function(t){if(isNaN(t))throw dB.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var e=new l(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0);this.ctx.transform=this.ctx.transform.multiply(e)},p.prototype.translate=function(t,e){if(isNaN(t)||isNaN(e))throw dB.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new l(1,0,0,1,t,e);this.ctx.transform=this.ctx.transform.multiply(n)},p.prototype.transform=function(t,e,n,i,s,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(i)||isNaN(s)||isNaN(r))throw dB.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var a=new l(t,e,n,i,s,r);this.ctx.transform=this.ctx.transform.multiply(a)},p.prototype.setTransform=function(t,e,n,i,s,r){t=isNaN(t)?1:t,e=isNaN(e)?0:e,n=isNaN(n)?0:n,i=isNaN(i)?1:i,s=isNaN(s)?0:s,r=isNaN(r)?0:r,this.ctx.transform=new l(t,e,n,i,s,r)};var f=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(t,e,n,i,s,r,a,c,d){var p=this.pdf.getImageProperties(t),u=1,h=1,m=1,b=1;void 0!==i&&void 0!==c&&(m=c/i,b=d/s,u=p.width/i*c/i,h=p.height/s*d/s),void 0===r&&(r=e,a=n,e=0,n=0),void 0!==i&&void 0===c&&(c=i,d=s),void 0===i&&void 0===c&&(c=p.width,d=p.height);for(var _,x=this.ctx.transform.decompose(),C=M(x.rotate.shx),S=new l,k=(S=(S=(S=S.multiply(x.translate)).multiply(x.skew)).multiply(x.scale)).applyToRectangle(new o(r-e*m,a-n*b,i*u,s*h)),E=g.call(this,k),I=[],A=0;A<E.length;A+=1)-1===I.indexOf(E[A])&&I.push(E[A]);if(y(I),this.autoPaging)for(var D=I[0],T=I[I.length-1],O=D;O<T+1;O++){this.pdf.setPage(O);var P=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],N=1===O?this.posY+this.margin[0]:this.margin[0],R=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],F=1===O?0:R+(O-2)*L;if(0!==this.ctx.clip_path.length){var j=this.path;_=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(_,this.posX+this.margin[3],-F+N+this.ctx.prevPageLastElemOffset),w.call(this,"fill",!0),this.path=j}var V=JSON.parse(JSON.stringify(k));V=v([V],this.posX+this.margin[3],-F+N+this.ctx.prevPageLastElemOffset)[0];var B=(O>D||O<T)&&f.call(this);B&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],P,L,null).clip().discardPath()),this.pdf.addImage(t,"JPEG",V.x,V.y,V.w,V.h,null,null,C),B&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(t,"JPEG",k.x,k.y,k.w,k.h,null,null,C)};var g=function(t,e,n){var i=[];e=e||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var s=this.posY+this.ctx.prevPageLastElemOffset;switch(t.type){default:case"mt":case"lt":i.push(Math.floor((t.y+s)/n)+1);break;case"arc":i.push(Math.floor((t.y+s-t.radius)/n)+1),i.push(Math.floor((t.y+s+t.radius)/n)+1);break;case"qct":var r=R(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x,t.y);i.push(Math.floor((r.y+s)/n)+1),i.push(Math.floor((r.y+r.h+s)/n)+1);break;case"bct":var a=L(this.ctx.lastPoint.x,this.ctx.lastPoint.y,t.x1,t.y1,t.x2,t.y2,t.x,t.y);i.push(Math.floor((a.y+s)/n)+1),i.push(Math.floor((a.y+a.h+s)/n)+1);break;case"rect":i.push(Math.floor((t.y+s)/n)+1),i.push(Math.floor((t.y+t.h+s)/n)+1)}for(var o=0;o<i.length;o+=1)for(;this.pdf.internal.getNumberOfPages()<i[o];)b.call(this);return i},b=function(){var t=this.fillStyle,e=this.strokeStyle,n=this.font,i=this.lineCap,s=this.lineWidth,r=this.lineJoin;this.pdf.addPage(),this.fillStyle=t,this.strokeStyle=e,this.font=n,this.lineCap=i,this.lineWidth=s,this.lineJoin=r},v=function(t,e,n){for(var i=0;i<t.length;i++)switch(t[i].type){case"bct":t[i].x2+=e,t[i].y2+=n;case"qct":t[i].x1+=e,t[i].y1+=n;case"mt":case"lt":case"arc":default:t[i].x+=e,t[i].y+=n}return t},y=function(t){return t.sort(function(t,e){return t-e})},_=function(t,e){for(var n,i,s=this.fillStyle,r=this.strokeStyle,a=this.lineCap,o=this.lineWidth,l=Math.abs(o*this.ctx.transform.scaleX),c=this.lineJoin,d=JSON.parse(JSON.stringify(this.path)),p=JSON.parse(JSON.stringify(this.path)),u=[],h=0;h<p.length;h++)if(void 0!==p[h].x)for(var m=g.call(this,p[h]),_=0;_<m.length;_+=1)-1===u.indexOf(m[_])&&u.push(m[_]);for(var x=0;x<u.length;x++)for(;this.pdf.internal.getNumberOfPages()<u[x];)b.call(this);if(y(u),this.autoPaging)for(var C=u[0],S=u[u.length-1],k=C;k<S+1;k++){this.pdf.setPage(k),this.fillStyle=s,this.strokeStyle=r,this.lineCap=a,this.lineWidth=l,this.lineJoin=c;var E=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],I=1===k?this.posY+this.margin[0]:this.margin[0],A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],D=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],T=1===k?0:A+(k-2)*D;if(0!==this.ctx.clip_path.length){var O=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(n,this.posX+this.margin[3],-T+I+this.ctx.prevPageLastElemOffset),w.call(this,t,!0),this.path=O}if(i=JSON.parse(JSON.stringify(d)),this.path=v(i,this.posX+this.margin[3],-T+I+this.ctx.prevPageLastElemOffset),!1===e||0===k){var P=(k>C||k<S)&&f.call(this);P&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],E,D,null).clip().discardPath()),w.call(this,t,e),P&&this.pdf.restoreGraphicsState()}this.lineWidth=o}else this.lineWidth=l,w.call(this,t,e),this.lineWidth=o;this.path=d},w=function(t,e){if(("stroke"!==t||e||!m.call(this))&&("stroke"===t||e||!h.call(this))){for(var n,i,s=[],r=this.path,a=0;a<r.length;a++){var o=r[a];switch(o.type){case"begin":s.push({begin:!0});break;case"close":s.push({close:!0});break;case"mt":s.push({start:o,deltas:[],abs:[]});break;case"lt":var l=s.length;if(r[a-1]&&!isNaN(r[a-1].x)&&(n=[o.x-r[a-1].x,o.y-r[a-1].y],l>0))for(;l>=0;l--)if(!0!==s[l-1].close&&!0!==s[l-1].begin){s[l-1].deltas.push(n),s[l-1].abs.push(o);break}break;case"bct":n=[o.x1-r[a-1].x,o.y1-r[a-1].y,o.x2-r[a-1].x,o.y2-r[a-1].y,o.x-r[a-1].x,o.y-r[a-1].y],s[s.length-1].deltas.push(n);break;case"qct":var c=r[a-1].x+2/3*(o.x1-r[a-1].x),d=r[a-1].y+2/3*(o.y1-r[a-1].y),p=o.x+2/3*(o.x1-o.x),u=o.y+2/3*(o.y1-o.y),f=o.x,g=o.y;n=[c-r[a-1].x,d-r[a-1].y,p-r[a-1].x,u-r[a-1].y,f-r[a-1].x,g-r[a-1].y],s[s.length-1].deltas.push(n);break;case"arc":s.push({deltas:[],abs:[],arc:!0}),Array.isArray(s[s.length-1].abs)&&s[s.length-1].abs.push(o)}}i=e?null:"stroke"===t?"stroke":"fill";for(var b=!1,v=0;v<s.length;v++)if(s[v].arc)for(var y=s[v].abs,_=0;_<y.length;_++){var w=y[_];"arc"===w.type?S.call(this,w.x,w.y,w.radius,w.startAngle,w.endAngle,w.counterclockwise,void 0,e,!b):D.call(this,w.x,w.y),b=!0}else if(!0===s[v].close)this.pdf.internal.out("h"),b=!1;else if(!0!==s[v].begin){var x=s[v].start.x,C=s[v].start.y;T.call(this,s[v].deltas,x,C),b=!0}i&&k.call(this,i),e&&E.call(this)}},x=function(t){var e=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=e*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return t-n;case"top":return t+e-n;case"hanging":return t+e-2*n;case"middle":return t+e/2-n;case"ideographic":return t;case"alphabetic":default:return t}},C=function(t){return t+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var t=function(){};return t.colorStops=[],t.addColorStop=function(t,e){this.colorStops.push([t,e])},t.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},t.isCanvasGradient=!0,t},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(t,e,n,i,s,r,a,o,l){for(var c=P.call(this,n,i,s,r),d=0;d<c.length;d++){var p=c[d];0===d&&(l?I.call(this,p.x1+t,p.y1+e):D.call(this,p.x1+t,p.y1+e)),O.call(this,t,e,p.x2,p.y2,p.x3,p.y3,p.x4,p.y4)}o?E.call(this):k.call(this,a)},k=function(t){switch(t){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},E=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(t,e){this.pdf.internal.out(n(t)+" "+i(e)+" m")},A=function(t){var e;switch(t.align){case"right":case"end":e="right";break;case"center":e="center";break;case"left":case"start":default:e="left"}var n=this.pdf.getTextDimensions(t.text),i=x.call(this,t.y),s=C.call(this,i)-n.h,r=this.ctx.transform.applyToPoint(new a(t.x,i)),c=this.ctx.transform.decompose(),d=new l;d=(d=(d=d.multiply(c.translate)).multiply(c.skew)).multiply(c.scale);for(var p,u,h,m=this.ctx.transform.applyToRectangle(new o(t.x,i,n.w,n.h)),b=d.applyToRectangle(new o(t.x,s,n.w,n.h)),_=g.call(this,b),S=[],k=0;k<_.length;k+=1)-1===S.indexOf(_[k])&&S.push(_[k]);if(y(S),this.autoPaging)for(var E=S[0],I=S[S.length-1],A=E;A<I+1;A++){this.pdf.setPage(A);var D=1===A?this.posY+this.margin[0]:this.margin[0],T=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],O=this.pdf.internal.pageSize.height-this.margin[2],P=O-this.margin[0],N=this.pdf.internal.pageSize.width-this.margin[1],M=N-this.margin[3],R=1===A?0:T+(A-2)*P;if(0!==this.ctx.clip_path.length){var L=this.path;p=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=v(p,this.posX+this.margin[3],-1*R+D),w.call(this,"fill",!0),this.path=L}var F=v([JSON.parse(JSON.stringify(b))],this.posX+this.margin[3],-R+D+this.ctx.prevPageLastElemOffset)[0];t.scale>=.01&&(u=this.pdf.internal.getFontSize(),this.pdf.setFontSize(u*t.scale),h=this.lineWidth,this.lineWidth=h*t.scale);var j="text"!==this.autoPaging;if(j||F.y+F.h<=O){if(j||F.y>=D&&F.x<=N){var V=j?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||N-F.x)[0],B=v([JSON.parse(JSON.stringify(m))],this.posX+this.margin[3],-R+D+this.ctx.prevPageLastElemOffset)[0],H=j&&(A>E||A<I)&&f.call(this);H&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],M,P,null).clip().discardPath()),this.pdf.text(V,B.x,B.y,{angle:t.angle,align:e,renderingMode:t.renderingMode}),H&&this.pdf.restoreGraphicsState()}}else F.y<O&&(this.ctx.prevPageLastElemOffset+=O-F.y);t.scale>=.01&&(this.pdf.setFontSize(u),this.lineWidth=h)}else t.scale>=.01&&(u=this.pdf.internal.getFontSize(),this.pdf.setFontSize(u*t.scale),h=this.lineWidth,this.lineWidth=h*t.scale),this.pdf.text(t.text,r.x+this.posX,r.y+this.posY,{angle:t.angle,align:e,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(u),this.lineWidth=h)},D=function(t,e,s,r){s=s||0,r=r||0,this.pdf.internal.out(n(t+s)+" "+i(e+r)+" l")},T=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},O=function(t,n,i,a,o,l,c,d){this.pdf.internal.out([e(s(i+t)),e(r(a+n)),e(s(o+t)),e(r(l+n)),e(s(c+t)),e(r(d+n)),"c"].join(" "))},P=function(t,e,n,i){for(var s=2*Math.PI,r=Math.PI/2;e>n;)e-=s;var a=Math.abs(n-e);a<s&&i&&(a=s-a);for(var o=[],l=i?-1:1,c=e;a>1e-5;){var d=c+l*Math.min(a,r);o.push(N.call(this,t,c,d)),a-=Math.abs(d-c),c=d}return o},N=function(t,e,n){var i=(n-e)/2,s=t*Math.cos(i),r=t*Math.sin(i),a=s,o=-r,l=a*a+o*o,c=l+a*s+o*r,d=4/3*(Math.sqrt(2*l*c)-c)/(a*r-o*s),p=a-d*o,u=o+d*a,h=p,m=-u,f=i+e,g=Math.cos(f),b=Math.sin(f);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:p*g-u*b,y2:p*b+u*g,x3:h*g-m*b,y3:h*b+m*g,x4:t*Math.cos(n),y4:t*Math.sin(n)}},M=function(t){return 180*t/Math.PI},R=function(t,e,n,i,s,r){var a=t+.5*(n-t),l=e+.5*(i-e),c=s+.5*(n-s),d=r+.5*(i-r),p=Math.min(t,s,a,c),u=Math.max(t,s,a,c),h=Math.min(e,r,l,d),m=Math.max(e,r,l,d);return new o(p,h,u-p,m-h)},L=function(t,e,n,i,s,r,a,l){var c,d,p,u,h,m,f,g,b,v,y,_,w,x,C=n-t,S=i-e,k=s-n,E=r-i,I=a-s,A=l-r;for(d=0;d<41;d++)b=(f=(p=t+(c=d/40)*C)+c*((h=n+c*k)-p))+c*(h+c*(s+c*I-h)-f),v=(g=(u=e+c*S)+c*((m=i+c*E)-u))+c*(m+c*(r+c*A-m)-g),0==d?(y=b,_=v,w=b,x=v):(y=Math.min(y,b),_=Math.min(_,v),w=Math.max(w,b),x=Math.max(x,v));return new o(Math.round(y),Math.round(_),Math.round(w-y),Math.round(x-_))},F=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t,e,n=(t=this.ctx.lineDash,e=this.ctx.lineDashOffset,JSON.stringify({lineDash:t,lineDashOffset:e}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(HB.API),function(t){var e=function(t){var e,n,i,s,r,a,o,l,c,d;for(/[^\x00-\xFF]/.test(t),n=[],i=0,s=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;s>i;i+=4)0!==(r=(t.charCodeAt(i)<<24)+(t.charCodeAt(i+1)<<16)+(t.charCodeAt(i+2)<<8)+t.charCodeAt(i+3))?(a=(r=((r=((r=((r=(r-(d=r%85))/85)-(c=r%85))/85)-(l=r%85))/85)-(o=r%85))/85)%85,n.push(a+33,o+33,l+33,c+33,d+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},n=function(t){var e,n,i,s,r,a=String,o="length",l=255,c="charCodeAt",d="slice",p="replace";for(t[d](-2),t=t[d](0,-2)[p](/\s/g,"")[p]("z","!!!!!"),i=[],s=0,r=(t+=e="uuuuu"[d](t[o]%5||5))[o];r>s;s+=5)n=52200625*(t[c](s)-33)+614125*(t[c](s+1)-33)+7225*(t[c](s+2)-33)+85*(t[c](s+3)-33)+(t[c](s+4)-33),i.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(i,e[o]),a.fromCharCode.apply(a,i)},i=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",i=0;i<t.length;i+=2)n+=String.fromCharCode("0x"+(t[i]+t[i+1]));return n},s=function(t){for(var e=new Uint8Array(t.length),n=t.length;n--;)e[n]=t.charCodeAt(n);return(e=aB(e)).reduce(function(t,e){return t+String.fromCharCode(e)},"")};t.processDataByFilters=function(t,r){var a=0,o=t||"",l=[];for("string"==typeof(r=r||[])&&(r=[r]),a=0;a<r.length;a+=1)switch(r[a]){case"ASCII85Decode":case"/ASCII85Decode":o=n(o),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=e(o),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=i(o),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(t){return("0"+t.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=s(o),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+r[a]+'" is not implemented')}return{data:o,reverseChain:l.reverse().join(" ")}}}(HB.API),function(t){t.loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var i=void 0;try{i=function(t,e,n){var i=new XMLHttpRequest,s=0,r=function(t){var e=t.length,n=[],i=String.fromCharCode;for(s=0;s<e;s+=1)n.push(i(255&t.charCodeAt(s)));return n.join("")};if(i.open("GET",t,!e),i.overrideMimeType("text/plain; charset=x-user-defined"),!1===e&&(i.onload=function(){200===i.status?n(r(this.responseText)):n(void 0)}),i.send(null),e&&200===i.status)return r(i.responseText)}(t,e,n)}catch(t){}return i}(t,e,n)},t.loadImageFile=t.loadFile}(HB.API),function(t){function e(){return(lB.html2canvas?Promise.resolve(lB.html2canvas):n.e(7).then(n.t.bind(null,"wOnQ",7))).catch(function(t){return Promise.reject(new Error("Could not load html2canvas: "+t))}).then(function(t){return t.default?t.default:t})}function i(){return(lB.DOMPurify?Promise.resolve(lB.DOMPurify):n.e(6).then(n.t.bind(null,"wMS7",7))).catch(function(t){return Promise.reject(new Error("Could not load dompurify: "+t))}).then(function(t){return t.default?t.default:t})}var s=function(t){var e=mV()(t);return"undefined"===e?"undefined":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?"function":t&&t.constructor===Array?"array":t&&1===t.nodeType?"element":"object"===e?"object":"unknown"},r=function(t,e){var n=document.createElement(t);for(var i in e.className&&(n.className=e.className),e.innerHTML&&e.dompurify&&(n.innerHTML=e.dompurify.sanitize(e.innerHTML)),e.style)n.style[i]=e.style[i];return n},a=function t(e){var n=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),i=t.convert(Promise.resolve(),n);return(i=i.setProgress(1,t,1,[t])).set(e)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(t,e){return t.__proto__=e||a.prototype,t},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch(s(t)){case"string":return"string";case"element":return"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.then(i).then(function(e){return this.set({src:r("div",{innerHTML:t,dompurify:e})})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},a.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},e=function t(e,n){for(var i=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),s=e.firstChild;s;s=s.nextSibling)!0!==n&&1===s.nodeType&&"SCRIPT"===s.nodeName||i.appendChild(t(s,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(e,0,0)):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(i.value=e.value),i.addEventListener("load",function(){i.scrollTop=e.scrollTop,i.scrollLeft=e.scrollLeft},!0)),i}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===e.tagName&&(t.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=r("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=r("div",{className:"html2pdf__container",style:t}),this.prop.container.appendChild(e),this.prop.container.firstChild.appendChild(r("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},a.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then(function(t){var e=Object.assign({},this.opt.html2canvas);return delete e.onrendered,t(this.prop.container,e)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},a.prototype.toContext2d=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(e).then(function(t){var e=this.opt.jsPDF,n=this.opt.fontFaces,i="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,s=Object.assign({async:!0,allowTaint:!0,scale:i,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete s.onrendered,e.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,e.context2d.margin=this.opt.margin,e.context2d.fontFaces=n,n)for(var r=0;r<n.length;++r){var a=n[r],o=a.src.find(function(t){return"truetype"===t.format});o&&e.addFont(o.url,a.ref.name,a.ref.style)}return s.windowHeight=s.windowHeight||0,s.windowHeight=0==s.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):s.windowHeight,e.context2d.save(!0),t(this.prop.container,s)}).then(function(t){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},a.prototype.output=function(t,e,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(t,e):this.outputPdf(t,e)},a.prototype.outputPdf=function(t,e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(t,e)})},a.prototype.outputImg=function(t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(t){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+t+'" is not supported.'}})},a.prototype.save=function(t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(t?{filename:t}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},a.prototype.set=function(t){if("object"!==s(t))return this;var e=Object.keys(t||{}).map(function(e){if(e in a.template.prop)return function(){this.prop[e]=t[e]};switch(e){case"margin":return this.setMargin.bind(this,t.margin);case"jsPDF":return function(){return this.opt.jsPDF=t.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,t.pageSize);default:return function(){this.opt[e]=t[e]}}},this);return this.then(function(){return this.thenList(e)})},a.prototype.get=function(t,e){return this.then(function(){var n=t in a.template.prop?this.prop[t]:this.opt[t];return e?e(n):n})},a.prototype.setMargin=function(t){return this.then(function(){switch(s(t)){case"number":t=[t,t,t,t];case"array":if(2===t.length&&(t=[t[0],t[1],t[0],t[1]]),4===t.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=t}).then(this.setPageSize)},a.prototype.setPageSize=function(t){function e(t,e){return Math.floor(t*e/72*96)}return this.then(function(){(t=t||HB.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(t.inner={width:t.width-this.opt.margin[1]-this.opt.margin[3],height:t.height-this.opt.margin[0]-this.opt.margin[2]},t.inner.px={width:e(t.inner.width,t.k),height:e(t.inner.height,t.k)},t.inner.ratio=t.inner.height/t.inner.width),this.prop.pageSize=t})},a.prototype.setProgress=function(t,e,n,i){return null!=t&&(this.progress.val=t),null!=e&&(this.progress.state=e),null!=n&&(this.progress.n=n),null!=i&&(this.progress.stack=i),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(t,e,n,i){return this.setProgress(t?this.progress.val+t:null,e||null,n?this.progress.n+n:null,i?this.progress.stack.concat(i):null)},a.prototype.then=function(t,e){var n=this;return this.thenCore(t,e,function(t,e){return n.updateProgress(null,null,1,[t]),Promise.prototype.then.call(this,function(e){return n.updateProgress(null,t),e}).then(t,e).then(function(t){return n.updateProgress(1),t})})},a.prototype.thenCore=function(t,e,n){n=n||Promise.prototype.then,t&&(t=t.bind(this)),e&&(e=e.bind(this));var i=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:a.convert(Object.assign({},this),Promise.prototype),s=n.call(i,t,e);return a.convert(s,this.__proto__)},a.prototype.thenExternal=function(t,e){return Promise.prototype.then.call(this,t,e)},a.prototype.thenList=function(t){var e=this;return t.forEach(function(t){e=e.thenCore(t)}),e},a.prototype.catch=function(t){t&&(t=t.bind(this));var e=Promise.prototype.catch.call(this,t);return a.convert(e,this)},a.prototype.catchExternal=function(t){return Promise.prototype.catch.call(this,t)},a.prototype.error=function(t){return this.then(function(){throw new Error(t)})},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,HB.getPageSize=function(t,e,n){if("object"===mV()(t)){var i=t;t=i.orientation,e=i.unit||e,n=i.format||n}e=e||"mm",n=n||"a4",t=(""+(t||"P")).toLowerCase();var s,r=(""+n).toLowerCase(),a={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(e){case"pt":s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+e}var o,l=0,c=0;if(a.hasOwnProperty(r))l=a[r][1]/s,c=a[r][0]/s;else try{l=n[1],c=n[0]}catch(DH){throw new Error("Invalid format: "+n)}if("p"===t||"portrait"===t)t="p",c>l&&(o=c,c=l,l=o);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l>c&&(o=c,c=l,l=o)}return{width:c,height:l,unit:e,k:s,orientation:t}},t.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(FH):null;var n=new a(e);return e.worker?n:n.from(t).doCallback()}}(HB.API),HB.API.addJS=function(t){return YH=t,this.internal.events.subscribe("postPutResources",function(){$H=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+($H+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),WH=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+YH+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==$H&&void 0!==WH&&this.internal.out("/Names <</JavaScript "+$H+" 0 R>>")}),this},function(t){var e;t.events.push(["postPutResources",function(){var t=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),s=0;s<i.length;s++){var r=i[s],a=n.exec(r);if(null!=a){var o=a[1];t.internal.newObjectDeferredBegin(o,!1)}t.internal.write(r)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(s=0;s<l;s++){var d=t.internal.newObject();c.push(d);var p=t.internal.getPageInfo(s+1);t.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var u=t.internal.newObject();for(t.internal.write("<< /Names [ "),s=0;s<c.length;s++)t.internal.write("(page_"+(s+1)+")"+c[s]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+u+" 0 R"),t.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var i={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(i),i},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n<e.children.length;n++)this.genIds_r(e.children[n])},t.outline.renderRoot=function(t){this.objStart(t),this.line("/Type /Outlines"),t.children.length>0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<e.children.length;i++){var s=e.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(e)),i>0&&this.line("/Prev "+this.makeRef(e.children[i-1])),i<e.children.length-1&&this.line("/Next "+this.makeRef(e.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var r=this.count=this.count_r({count:0},s);if(r>0&&this.line("/Count "+r),s.options&&s.options.pageNumber){var a=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var o=0;o<e.children.length;o++)this.renderItems(e.children[o])},t.outline.line=function(t){this.ctx.val+=t+"\r\n"},t.outline.makeRef=function(t){return t.id+" 0 R"},t.outline.makeString=function(e){return"("+t.internal.pdfEscape(e)+")"},t.outline.objStart=function(t){this.ctx.val+="\r\n"+t.id+" 0 obj\r\n<<\r\n"},t.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;n<e.children.length;n++)t.count++,this.count_r(t,e.children[n]);return t.count}}])}(HB.API),function(t){var e=[192,193,194,195,196,197,198,199];t.processJPEG=function(t,n,i,s,r,a){var o,l=this.decode.DCT_DECODE,c=null;if("string"==typeof t||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=r||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(o=function(t){for(var n,i=256*t.charCodeAt(4)+t.charCodeAt(5),s=t.length,r={width:0,height:0,numcomponents:1},a=4;a<s;a+=2){if(a+=i,-1!==e.indexOf(t.charCodeAt(a+1))){n=256*t.charCodeAt(a+5)+t.charCodeAt(a+6),r={width:256*t.charCodeAt(a+7)+t.charCodeAt(a+8),height:n,numcomponents:t.charCodeAt(a+9)};break}i=256*t.charCodeAt(a+2)+t.charCodeAt(a+3)}return r}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:a=this.color_spaces.DEVICE_GRAY;break;case 4:a=this.color_spaces.DEVICE_CMYK;break;case 3:a=this.color_spaces.DEVICE_RGB}c={data:t,width:o.width,height:o.height,colorSpace:a,bitsPerComponent:8,filter:l,index:n,alias:i}}return c}}(HB.API);var KH,ZH,XH,QH,JH,tz=function(){var t,e,n;function i(t){var e,n,i,s,r,a,o,l,c,d,p,u,h,m;for(this.data=t,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},a=null;;){switch(e=this.readUInt32(),c=(function(){var t,e;for(e=[],t=0;t<4;++t)e.push(String.fromCharCode(this.data[this.pos++]));return e}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(e);break;case"fcTL":a&&this.animation.frames.push(a),this.pos+=4,a={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},r=this.readUInt16(),s=this.readUInt16()||100,a.delay=1e3*r/s,a.disposeOp=this.data[this.pos++],a.blendOp=this.data[this.pos++],a.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,e-=4),t=(null!=a?a.data:void 0)||this.imgData,u=0;0<=e?u<e:u>e;0<=e?++u:--u)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(i=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>i)throw new Error("More transparent colors than palette size");if((d=i-this.transparency.indexed.length)>0)for(h=0;0<=d?h<d:h>d;0<=d?++h:--h)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":o=(p=this.read(e)).indexOf(0),l=String.fromCharCode.apply(String,p.slice(0,o)),this.text[l]=String.fromCharCode.apply(String,p.slice(o+1));break;case"IEND":return a&&this.animation.frames.push(a),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=4===(m=this.colorType)||6===m,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),i=0,s=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function r(r,a,o,l){var c,d,p,u,h,m,f,g,b,v,y,_,w,x,C,S,k,E,I,A,D,T=Math.ceil((s.width-r)/o),O=Math.ceil((s.height-a)/l),P=s.width==T&&s.height==O;for(x=e*T,_=P?n:new Uint8Array(x*O),m=t.length,w=0,d=0;w<O&&i<m;){switch(t[i++]){case 0:for(u=k=0;k<x;u=k+=1)_[d++]=t[i++];break;case 1:for(u=E=0;E<x;u=E+=1)c=t[i++],h=u<e?0:_[d-e],_[d++]=(c+h)%256;break;case 2:for(u=I=0;I<x;u=I+=1)c=t[i++],p=(u-u%e)/e,C=w&&_[(w-1)*x+p*e+u%e],_[d++]=(C+c)%256;break;case 3:for(u=A=0;A<x;u=A+=1)c=t[i++],p=(u-u%e)/e,h=u<e?0:_[d-e],C=w&&_[(w-1)*x+p*e+u%e],_[d++]=(c+Math.floor((h+C)/2))%256;break;case 4:for(u=D=0;D<x;u=D+=1)c=t[i++],p=(u-u%e)/e,h=u<e?0:_[d-e],0===w?C=S=0:(C=_[(w-1)*x+p*e+u%e],S=p&&_[(w-1)*x+(p-1)*e+u%e]),f=h+C-S,g=Math.abs(f-h),v=Math.abs(f-C),y=Math.abs(f-S),b=g<=v&&g<=y?h:v<=y?C:S,_[d++]=(c+b)%256;break;default:throw new Error("Invalid filter algorithm: "+t[i-1])}if(!P){var N=((a+w*l)*s.width+r)*e,M=w*x;for(u=0;u<T;u+=1){for(var R=0;R<e;R+=1)n[N++]=_[M++];N+=(o-1)*e}}w++}}return t=oB(t),1==s.interlaceMethod?(r(0,0,8,8),r(4,0,8,8),r(0,4,4,8),r(2,0,4,4),r(0,2,2,4),r(1,0,2,2),r(0,1,1,2)):r(0,0,1,1),n},i.prototype.decodePalette=function(){var t,e,n,i,s,r,a,o,l;for(n=this.palette,r=this.transparency.indexed||[],s=new Uint8Array((r.length||0)+n.length),i=0,t=0,e=a=0,o=n.length;a<o;e=a+=3)s[i++]=n[e],s[i++]=n[e+1],s[i++]=n[e+2],s[i++]=null!=(l=r[t++])?l:255;return s},i.prototype.copyToImageData=function(t,e){var n,i,s,r,a,o,l,c,d,p,u;if(i=this.colors,d=null,n=this.hasAlphaChannel,this.palette.length&&(d=null!=(u=this._decodedPalette)?u:this._decodedPalette=this.decodePalette(),i=4,n=!0),c=(s=t.data||t).length,a=d||e,r=o=0,1===i)for(;r<c;)l=d?4*e[r/4]:o,p=a[l++],s[r++]=p,s[r++]=p,s[r++]=p,s[r++]=n?a[l++]:255,o=l;else for(;r<c;)l=d?4*e[r/4]:o,s[r++]=a[l++],s[r++]=a[l++],s[r++]=a[l++],s[r++]=n?a[l++]:255,o=l},i.prototype.decode=function(){var t;return t=new Uint8Array(this.width*this.height*4),this.copyToImageData(t,this.decodePixels()),t};var s=function(){if("[object Window]"===Object.prototype.toString.call(lB)){try{e=lB.document.createElement("canvas"),n=e.getContext("2d")}catch(t){return!1}return!0}return!1};return s(),t=function(t){var i;if(!0===s())return n.width=t.width,n.height=t.height,n.clearRect(0,0,t.width,t.height),n.putImageData(t,0,0),(i=new Image).src=e.toDataURL(),i;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(e){var n,i,s,r,a,o,l,c;if(this.animation){for(c=[],i=a=0,o=(l=this.animation.frames).length;a<o;i=++a)n=l[i],s=e.createImageData(n.width,n.height),r=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(s,r),n.imageData=s,c.push(n.image=t(s));return c}},i.prototype.renderFrame=function(t,e){var n,i,s;return n=(i=this.animation.frames)[e],s=i[e-1],0===e&&t.clearRect(0,0,this.width,this.height),1===(null!=s?s.disposeOp:void 0)?t.clearRect(s.xOffset,s.yOffset,s.width,s.height):2===(null!=s?s.disposeOp:void 0)&&t.putImageData(s.imageData,s.xOffset,s.yOffset),0===n.blendOp&&t.clearRect(n.xOffset,n.yOffset,n.width,n.height),t.drawImage(n.image,n.xOffset,n.yOffset)},i.prototype.animate=function(t){var e,n,i,s,r,a,o=this;return n=0,a=this.animation,s=a.numFrames,i=a.frames,r=a.numPlays,(e=function(){var a,l;if(a=n++%s,l=i[a],o.renderFrame(t,a),s>1&&n/s<r)return o.animation._timeout=setTimeout(e,l.delay)})()},i.prototype.stopAnimation=function(){var t;return clearTimeout(null!=(t=this.animation)?t._timeout:void 0)},i.prototype.render=function(t){var e,n;return t._png&&t._png.stopAnimation(),t._png=this,t.width=this.width,t.height=this.height,e=t.getContext("2d"),this.animation?(this.decodeFrames(e),this.animate(e)):(n=e.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),e.putImageData(n,0,0))},i}();function ez(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw new Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,i=t[e++]|t[e++]<<8,s=t[e++],r=s>>7,a=1<<1+(7&s);t[e++],t[e++];var o=null,l=null;r&&(o=e,l=a,e+=3*a);var c=!0,d=[],p=0,u=null,h=0,m=null;for(this.width=n,this.height=i;c&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(11!==t[e]||78==t[e+1]&&69==t[e+2]&&84==t[e+3]&&83==t[e+4]&&67==t[e+5]&&65==t[e+6]&&80==t[e+7]&&69==t[e+8]&&50==t[e+9]&&46==t[e+10]&&48==t[e+11]&&3==t[e+12]&&1==t[e+13]&&0==t[e+16])e+=14,m=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}break;case 249:if(4!==t[e++]||0!==t[e+4])throw new Error("Invalid graphics extension block.");var f=t[e++];p=t[e++]|t[e++]<<8,u=t[e++],0==(1&f)&&(u=null),h=f>>2&7,e++;break;case 254:for(;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var g=t[e++]|t[e++]<<8,b=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,_=t[e++],w=_>>6&1,x=1<<1+(7&_),C=o,S=l,k=!1;_>>7&&(k=!0,C=e,S=x,e+=3*x);var E=e;for(e++;;){var I;if(!((I=t[e++])>=0))throw Error("Invalid block size");if(0===I)break;e+=I}d.push({x:g,y:b,width:v,height:y,has_local_palette:k,palette_offset:C,palette_size:S,data_offset:E,data_length:e-E,transparent_index:u,interlaced:!!w,delay:p,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return d.length},this.loopCount=function(){return m},this.frameInfo=function(t){if(t<0||t>=d.length)throw new Error("Frame index out of range.");return d[t]},this.decodeAndBlitFrameBGRA=function(e,i){var s=this.frameInfo(e),r=s.width*s.height,a=new Uint8Array(r);nz(t,s.data_offset,a,r);var o=s.palette_offset,l=s.transparent_index;null===l&&(l=256);var c=s.width,d=n-c,p=c,u=4*(s.y*n+s.x),h=4*((s.y+s.height)*n+s.x),m=u,f=4*d;!0===s.interlaced&&(f+=4*n*7);for(var g=8,b=0,v=a.length;b<v;++b){var y=a[b];if(0===p&&(p=c,(m+=f)>=h&&(f=4*d+4*n*(g-1),m=u+(c+d)*(g<<1),g>>=1)),y===l)m+=4;else{var _=t[o+3*y],w=t[o+3*y+1],x=t[o+3*y+2];i[m++]=x,i[m++]=w,i[m++]=_,i[m++]=255}--p}},this.decodeAndBlitFrameRGBA=function(e,i){var s=this.frameInfo(e),r=s.width*s.height,a=new Uint8Array(r);nz(t,s.data_offset,a,r);var o=s.palette_offset,l=s.transparent_index;null===l&&(l=256);var c=s.width,d=n-c,p=c,u=4*(s.y*n+s.x),h=4*((s.y+s.height)*n+s.x),m=u,f=4*d;!0===s.interlaced&&(f+=4*n*7);for(var g=8,b=0,v=a.length;b<v;++b){var y=a[b];if(0===p&&(p=c,(m+=f)>=h&&(f=4*d+4*n*(g-1),m=u+(c+d)*(g<<1),g>>=1)),y===l)m+=4;else{var _=t[o+3*y],w=t[o+3*y+1],x=t[o+3*y+2];i[m++]=_,i[m++]=w,i[m++]=x,i[m++]=255}--p}}}function nz(t,e,n,i){for(var s=t[e++],r=1<<s,a=r+1,o=a+1,l=s+1,c=(1<<l)-1,d=0,p=0,u=0,h=t[e++],m=new Int32Array(4096),f=null;;){for(;d<16&&0!==h;)p|=t[e++]<<d,d+=8,1===h?h=t[e++]:--h;if(d<l)break;var g=p&c;if(p>>=l,d-=l,g!==r){if(g===a)break;for(var b=g<o?g:f,v=0,y=b;y>r;)y=m[y]>>8,++v;var _=y;if(u+v+(b!==g?1:0)>i)return void dB.log("Warning, gif stream longer than expected.");n[u++]=_;var w=u+=v;for(b!==g&&(n[u++]=_),y=b;v--;)y=m[y],n[--w]=255&y,y>>=8;null!==f&&o<4096&&(m[o++]=f<<8|_,o>=c+1&&l<12&&(++l,c=c<<1|1)),f=g}else o=a+1,c=(1<<(l=s+1))-1,f=null}return u!==i&&dB.log("Warning, gif stream shorter than expected."),n}function iz(t){var e,n,i,s,r,a=Math.floor,o=new Array(64),l=new Array(64),c=new Array(64),d=new Array(64),p=new Array(65535),u=new Array(65535),h=new Array(64),m=new Array(64),f=[],g=0,b=7,v=new Array(64),y=new Array(64),_=new Array(64),w=new Array(256),x=new Array(2048),C=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],A=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],O=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function P(t,e){for(var n=0,i=0,s=new Array,r=1;r<=16;r++){for(var a=1;a<=t[r];a++)s[e[i]]=[],s[e[i]][0]=n,s[e[i]][1]=r,i++,n++;n*=2}return s}function N(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<<n&&(g|=1<<b),n--,--b<0&&(255==g?(M(255),M(0)):M(g),b=7,g=0)}function M(t){f.push(t)}function R(t){M(t>>8&255),M(255&t)}function L(t,e,n,i,s){for(var r,a=s[0],o=s[240],l=function(t,e){var n,i,s,r,a,o,l,c,d,p,u=0;for(d=0;d<8;++d){n=t[u],i=t[u+1],s=t[u+2],r=t[u+3],a=t[u+4],o=t[u+5],l=t[u+6];var m=n+(c=t[u+7]),f=n-c,g=i+l,b=i-l,v=s+o,y=s-o,_=r+a,w=r-a,x=m+_,C=m-_,S=g+v,k=g-v;t[u]=x+S,t[u+4]=x-S;var E=.707106781*(k+C);t[u+2]=C+E,t[u+6]=C-E;var I=.382683433*((x=w+y)-(k=b+f)),A=.5411961*x+I,D=1.306562965*k+I,T=.707106781*(S=y+b),O=f+T,P=f-T;t[u+5]=P+A,t[u+3]=P-A,t[u+1]=O+D,t[u+7]=O-D,u+=8}for(u=0,d=0;d<8;++d){n=t[u],i=t[u+8],s=t[u+16],r=t[u+24],a=t[u+32],o=t[u+40],l=t[u+48];var N=n+(c=t[u+56]),M=n-c,R=i+l,L=i-l,F=s+o,j=s-o,V=r+a,B=r-a,H=N+V,z=N-V,U=R+F,q=R-F;t[u]=H+U,t[u+32]=H-U;var $=.707106781*(q+z);t[u+16]=z+$,t[u+48]=z-$;var W=.382683433*((H=B+j)-(q=L+M)),Y=.5411961*H+W,G=1.306562965*q+W,K=.707106781*(U=j+L),Z=M+K,X=M-K;t[u+40]=X+Y,t[u+24]=X-Y,t[u+8]=Z+G,t[u+56]=Z-G,u++}for(d=0;d<64;++d)p=t[d]*e[d],h[d]=p>0?p+.5|0:p-.5|0;return h}(t,e),c=0;c<64;++c)m[C[c]]=l[c];var d=m[0]-n;n=m[0],0==d?N(i[0]):(N(i[u[r=32767+d]]),N(p[r]));for(var f=63;f>0&&0==m[f];)f--;if(0==f)return N(a),n;for(var g,b=1;b<=f;){for(var v=b;0==m[b]&&b<=f;)++b;var y=b-v;if(y>=16){g=y>>4;for(var _=1;_<=g;++_)N(o);y&=15}r=32767+m[b],N(s[(y<<4)+u[r]]),N(p[r]),b++}return 63!=f&&N(a),n}function F(t){t=Math.min(Math.max(t,1),100),r!=t&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var i=a((e[n]*t+50)/100);i=Math.min(Math.max(i,1),255),o[C[n]]=i}for(var s=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],r=0;r<64;r++){var p=a((s[r]*t+50)/100);p=Math.min(Math.max(p,1),255),l[C[r]]=p}for(var u=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],h=0,m=0;m<8;m++)for(var f=0;f<8;f++)c[h]=1/(o[C[h]]*u[m]*u[f]*8),d[h]=1/(l[C[h]]*u[m]*u[f]*8),h++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),r=t)}this.encode=function(t,r){r&&F(r),f=new Array,g=0,b=7,R(65496),R(65504),R(16),M(74),M(70),M(73),M(70),M(0),M(1),M(1),M(0),R(1),R(1),M(0),M(0),function(){R(65499),R(132),M(0);for(var t=0;t<64;t++)M(o[t]);M(1);for(var e=0;e<64;e++)M(l[e])}(),function(t,e){R(65472),R(17),M(8),R(e),R(t),M(3),M(1),M(17),M(0),M(2),M(17),M(1),M(3),M(17),M(1)}(t.width,t.height),function(){R(65476),R(418),M(0);for(var t=0;t<16;t++)M(S[t+1]);for(var e=0;e<=11;e++)M(k[e]);M(16);for(var n=0;n<16;n++)M(E[n+1]);for(var i=0;i<=161;i++)M(I[i]);M(1);for(var s=0;s<16;s++)M(A[s+1]);for(var r=0;r<=11;r++)M(D[r]);M(17);for(var a=0;a<16;a++)M(T[a+1]);for(var o=0;o<=161;o++)M(O[o])}(),R(65498),R(12),M(3),M(1),M(0),M(2),M(17),M(3),M(17),M(0),M(63),M(0);var a=0,p=0,u=0;g=0,b=7,this.encode.displayName="_encode_";for(var h,m,w,C,P,j,V,B,H,z=t.data,U=t.width,q=t.height,$=4*U,W=0;W<q;){for(h=0;h<$;){for(P=$*W+h,V=-1,B=0,H=0;H<64;H++)j=P+(B=H>>3)*$+(V=4*(7&H)),W+B>=q&&(j-=$*(W+1+B-q)),h+V>=$&&(j-=h+V-$+4),m=z[j++],w=z[j++],C=z[j++],v[H]=(x[m]+x[w+256>>0]+x[C+512>>0]>>16)-128,y[H]=(x[m+768>>0]+x[w+1024>>0]+x[C+1280>>0]>>16)-128,_[H]=(x[m+1280>>0]+x[w+1536>>0]+x[C+1792>>0]>>16)-128;a=L(v,c,a,e,i),p=L(y,d,p,n,s),u=L(_,d,u,n,s),h+=32}W+=8}if(b>=0){var Y=[];Y[1]=b+1,Y[0]=(1<<b+1)-1,N(Y)}return R(65497),new Uint8Array(f)},t=t||50,function(){for(var t=String.fromCharCode,e=0;e<256;e++)w[e]=t(e)}(),e=P(S,k),n=P(A,D),i=P(E,I),s=P(T,O),function(){for(var t=1,e=2,n=1;n<=15;n++){for(var i=t;i<e;i++)u[32767+i]=n,p[32767+i]=[],p[32767+i][1]=n,p[32767+i][0]=i;for(var s=-(e-1);s<=-t;s++)u[32767+s]=n,p[32767+s]=[],p[32767+s][1]=n,p[32767+s][0]=e-1+s;t<<=1,e<<=1}}(),function(){for(var t=0;t<256;t++)x[t]=19595*t,x[t+256>>0]=38470*t,x[t+512>>0]=7471*t+32768,x[t+768>>0]=-11059*t,x[t+1024>>0]=-21709*t,x[t+1280>>0]=32768*t+8421375,x[t+1536>>0]=-27439*t,x[t+1792>>0]=-5329*t}(),F(t)}function sz(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function rz(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var i=0;4>i;i++)if(t[e+i]!=n.charCodeAt(i))return!0;return!1}function i(t,e,n,i,s){for(var r=0;r<s;r++)t[e+r]=n[i+r]}function s(t,e,n,i){for(var s=0;s<i;s++)t[e+s]=n}function r(t){return new Int32Array(t)}function a(t,e){for(var n=[],i=0;i<t;i++)n.push(new e);return n}function o(t,e){var n=[];return function t(n,i,s){for(var r=s[i],a=0;a<r&&(n.push(s.length>i+1?[]:new e),!(s.length<i+1));a++)t(n[a],i+1,s)}(n,0,t),n}var l=function(){var t=this;function l(t,e){for(var n=1<<e-1>>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function c(t,n,i,s,r){e(!(s%i));do{t[n+(s-=i)]=r}while(0<s)}function d(t,n,i,s,a){if(e(2328>=a),512>=a)var o=r(512);else if(null==(o=r(a)))return 0;return function(t,n,i,s,a,o){var d,u,h=n,m=1<<i,f=r(16),g=r(16);for(e(0!=a),e(null!=s),e(null!=t),e(0<i),u=0;u<a;++u){if(15<s[u])return 0;++f[s[u]]}if(f[0]==a)return 0;for(g[1]=0,d=1;15>d;++d){if(f[d]>1<<d)return 0;g[d+1]=g[d]+f[d]}for(u=0;u<a;++u)d=s[u],0<s[u]&&(o[g[d]++]=u);if(1==g[15])return(s=new p).g=0,s.value=o[0],c(t,h,1,m,s),m;var b,v=-1,y=m-1,_=0,w=1,x=1,C=1<<i;for(u=0,d=1,a=2;d<=i;++d,a<<=1){if(w+=x<<=1,0>(x-=f[d]))return 0;for(;0<f[d];--f[d])(s=new p).g=d,s.value=o[u++],c(t,h+_,a,C,s),_=l(_,d)}for(d=i+1,a=2;15>=d;++d,a<<=1){if(w+=x<<=1,0>(x-=f[d]))return 0;for(;0<f[d];--f[d]){if(s=new p,(_&y)!=v){for(h+=C,b=1<<(v=d)-i;15>v&&!(0>=(b-=f[v]));)++v,b<<=1;m+=C=1<<(b=v-i),t[n+(v=_&y)].g=b+i,t[n+v].value=h-n-v}s.g=d-i,s.value=o[u++],c(t,h+(_>>i),a,C,s),_=l(_,d)}}return w!=2*g[15]-1?0:m}(t,n,i,s,a,o)}function p(){this.value=this.g=0}function u(){this.value=this.g=0}function h(){this.G=a(5,p),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(Vn,u)}function m(t,n,i,s){e(null!=t),e(null!=n),e(2147483648>s),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=i,t.Jd=n,t.Yc=i+s,t.Zc=4<=s?i+s-4+1:i,E(t)}function f(t,e){for(var n=0;0<e--;)n|=A(t,128)<<e;return n}function g(t,e){var n=f(t,e);return I(t)?-n:n}function b(t,n,i,s){var r,a=0;for(e(null!=t),e(null!=n),e(4294967288>s),t.Sb=s,t.Ra=0,t.u=0,t.h=0,4<s&&(s=4),r=0;r<s;++r)a+=n[i+r]<<8*r;t.Ra=a,t.bb=s,t.oa=n,t.pa=i}function v(t){for(;8<=t.u&&t.bb<t.Sb;)t.Ra>>>=8,t.Ra+=t.oa[t.pa+t.bb]<<zn-8>>>0,++t.bb,t.u-=8;C(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=Hn){var i=x(t)&Bn[n];return t.u+=n,v(t),i}return t.h=1,t.u=0}function _(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function w(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function x(t){return t.Ra>>>(t.u&zn-1)>>>0}function C(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>zn}function S(t,e){t.u=e,t.h=C(t)}function k(t){t.u>=Un&&(e(t.u>=Un),v(t))}function E(t){e(null!=t&&null!=t.oa),t.pa<t.Zc?(t.I=(t.oa[t.pa++]|t.I<<8)>>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pa<t.Yc?(t.b+=8,t.I=t.oa[t.pa++]|t.I<<8):t.Ka?t.b=0:(t.I<<=8,t.b+=8,t.Ka=1))}function I(t){return f(t,1)}function A(t,e){var n=t.Ca;0>t.b&&E(t);var i=t.b,s=n*e>>>8,r=(t.I>>>i>s)+0;for(r?(n-=s,t.I-=s+1<<i>>>0):n=s+1,i=n,s=0;256<=i;)s+=8,i>>=8;return i=7^s+qn[i],t.b-=i,t.Ca=(n<<i)-1,r}function D(t,e,n){t[e+0]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function T(t,e){return t[e+0]<<0|t[e+1]<<8}function O(t,e){return T(t,e)|t[e+2]<<16}function P(t,e){return T(t,e)|T(t,e+2)<<16}function N(t,n){var i=1<<n;return e(null!=t),e(0<n),t.X=r(i),null==t.X?0:(t.Mb=32-n,t.Xa=n,1)}function M(t,n){e(null!=t),e(null!=n),e(t.Xa==n.Xa),i(n.X,0,t.X,0,1<<n.Xa)}function R(){this.X=[],this.Xa=this.Mb=0}function L(t,n,i,s){e(null!=i),e(null!=s);var r=i[0],a=s[0];return 0==r&&(r=(t*a+n/2)/n),0==a&&(a=(n*r+t/2)/t),0>=r||0>=a?0:(i[0]=r,s[0]=a,1)}function F(t,e){return t+(1<<e)-1>>>e}function j(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function V(e,n){t[n]=function(n,i,s,r,a,o,l){var c;for(c=0;c<a;++c){var d=t[e](o[l+c-1],s,r+c);o[l+c]=j(n[i+c],d)}}}function B(){this.ud=this.hd=this.jd=0}function H(t,e){return((4278124286&(t^e))>>>1)+(t&e)>>>0}function z(t){return 0<=t&&256>t?t:0>t?0:255<t?255:void 0}function U(t,e){return z(t+(t-e+.5>>1))}function q(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function $(t,e,n,i,s,r,a){for(i=r[a-1],n=0;n<s;++n)r[a+n]=i=j(t[e+n],i)}function W(t,e,n,i,s){var r;for(r=0;r<n;++r){var a=t[e+r],o=a>>8&255,l=16711935&(l=(l=16711935&a)+((o<<16)+o));i[s+r]=(4278255360&a)+l>>>0}}function Y(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function G(t,e,n,i,s,r){var a;for(a=0;a<i;++a){var o=e[n+a],l=o>>>8,c=o,d=255&(d=(d=o>>>16)+((t.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(t.hd<<24>>24)*(l<<24>>24)>>>5)+((t.ud<<24>>24)*(d<<24>>24)>>>5)),s[r+a]=(4278255360&o)+(d<<16)+c}}function K(e,n,i,s,r){t[n]=function(t,e,n,i,a,o,l,c,d){for(i=l;i<c;++i)for(l=0;l<d;++l)a[o++]=r(n[s(t[e++])])},t[e]=function(e,n,a,o,l,c,d){var p=8>>e.b,u=e.Ea,h=e.K[0],m=e.w;if(8>p)for(e=(1<<e.b)-1,m=(1<<p)-1;n<a;++n){var f,g=0;for(f=0;f<u;++f)f&e||(g=s(o[l++])),c[d++]=r(h[g&m]),g>>=p}else t["VP8LMapColor"+i](o,l,h,m,c,d,n,a,u)}}function Z(t,e,n,i,s){for(n=e+n;e<n;){var r=t[e++];i[s++]=r>>16&255,i[s++]=r>>8&255,i[s++]=r>>0&255}}function X(t,e,n,i,s){for(n=e+n;e<n;){var r=t[e++];i[s++]=r>>16&255,i[s++]=r>>8&255,i[s++]=r>>0&255,i[s++]=r>>24&255}}function Q(t,e,n,i,s){for(n=e+n;e<n;){var r=(a=t[e++])>>16&240|a>>12&15,a=a>>0&240|a>>28&15;i[s++]=r,i[s++]=a}}function J(t,e,n,i,s){for(n=e+n;e<n;){var r=(a=t[e++])>>16&248|a>>13&7,a=a>>5&224|a>>3&31;i[s++]=r,i[s++]=a}}function tt(t,e,n,i,s){for(n=e+n;e<n;){var r=t[e++];i[s++]=r>>0&255,i[s++]=r>>8&255,i[s++]=r>>16&255}}function et(t,e,n,s,r,a){if(0==a)for(n=e+n;e<n;)D(s,((a=t[e++])[0]>>24|a[1]>>8&65280|a[2]<<8&16711680|a[3]<<24)>>>0),r+=32;else i(s,r,t,e,n)}function nt(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function it(t){return t==Ui||t==qi||t==$i||t==Wi}function st(){this.eb=[],this.size=this.A=this.fb=0}function rt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function at(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new st,this.f.kb=new rt,this.sd=null}function ot(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function lt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function dt(t,e){var n=t.T,s=e.ba.f.RGBA,r=s.eb,a=s.fb+t.ka*s.A,o=bs[e.ba.S],l=t.y,c=t.O,d=t.f,p=t.N,u=t.ea,h=t.W,m=e.cc,f=e.dc,g=e.Mc,b=e.Nc,v=t.ka,y=t.ka+t.T,_=t.U,w=_+1>>1;for(0==v?o(l,c,null,null,d,p,u,h,d,p,u,h,r,a,null,null,_):(o(e.ec,e.fc,l,c,m,f,g,b,d,p,u,h,r,a-s.A,r,a,_),++n);v+2<y;v+=2)m=d,f=p,g=u,b=h,p+=t.Rc,h+=t.Rc,a+=2*s.A,o(l,(c+=2*t.fa)-t.fa,l,c,m,f,g,b,d,p,u,h,r,a-s.A,r,a,_);return c+=t.fa,t.j+y<t.o?(i(e.ec,e.fc,l,c,_),i(e.cc,e.dc,d,p,w),i(e.Mc,e.Nc,u,h,w),n--):1&y||o(l,c,null,null,d,p,u,h,d,p,u,h,r,a+s.A,null,null,_),n}function pt(t,n,i){var s=t.F,r=[t.J];if(null!=s){var a=t.U,o=n.ba.S,l=o==Bi||o==$i;n=n.ba.f.RGBA;var c=[0],d=t.ka;c[0]=t.T,t.Kb&&(0==d?--c[0]:(--d,r[0]-=t.width),t.j+t.ka+t.T==t.o&&(c[0]=t.o-t.j-d));var p=n.eb;d=n.fb+d*n.A,t=ki(s,r[0],t.width,a,c,p,d+(l?0:3),n.A),e(i==c),t&&it(o)&&Ci(p,d,l,a,c,n.A)}return 0}function ut(t){var e=t.ma,n=e.ba.S,i=11>n,s=n==Fi||n==Vi||n==Bi||n==Hi||12==n||it(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!Ln(e.Oa,t,s?11:12))return 0;if(s&&it(n)&&yn(),t.da)alert("todo:use_scaling");else{if(i){if(e.Ib=ct,t.Kb){if(n=t.U+1>>1,e.memory=r(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=dt,yn()}}else alert("todo:EmitYUV");s&&(e.Jb=pt,i&&bn())}if(i&&!Os){for(t=0;256>t;++t)Ps[t]=89858*(t-128)+Es>>ks,Rs[t]=-22014*(t-128)+Es,Ms[t]=-45773*(t-128),Ns[t]=113618*(t-128)+Es>>ks;for(t=Is;t<As;++t)e=76283*(t-16)+Es>>ks,Ls[t-Is]=$t(e,255),Fs[t-Is]=$t(e+8>>4,15);Os=1}return 1}function ht(t){var n=t.ma,i=t.U,s=t.T;return e(!(1&t.ka)),0>=i||0>=s?0:(i=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,i),n.Dc+=i,1)}function mt(t){t.ma.memory=null}function ft(t,e,n,i){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,i[0]=y(t,1),0!=y(t,3)?0:!t.h)}function gt(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<<n)+y(e,n)+1}function bt(t,e){return 120<e?e-120:1<=(n=((n=Qi[e-1])>>4)*t+(8-(15&n)))?n:1;var n}function vt(t,e,n){var i=x(n),s=t[e+=255&i].g-8;return 0<s&&(S(n,n.u+8),i=x(n),e+=t[e].value,e+=i&(1<<s)-1),S(n,n.u+t[e].g),t[e].value}function yt(t,n,i){return i.g+=t.g,i.value+=t.value<<n>>>0,e(8>=i.g),t.g}function _t(t,n,i){var s=t.xc;return e((n=0==s?0:t.vc[t.md*(i>>s)+(n>>s)])<t.Wb),t.Ya[n]}function wt(t,n,s,r){var a=t.ab,o=t.c*n,l=t.C;n=l+n;var c=s,d=r;for(r=t.Ta,s=t.Ua;0<a--;){var p=t.gc[a],u=l,h=n,m=c,f=d,g=(d=r,c=s,p.Ea);switch(e(u<h),e(h<=p.nc),p.hc){case 2:Yn(m,f,(h-u)*g,d,c);break;case 0:var b=u,v=h,y=d,_=c,w=(E=p).Ea;0==b&&($n(m,f,null,null,1,y,_),$(m,f+1,0,0,w-1,y,_+1),f+=w,_+=w,++b);for(var x=1<<E.b,C=x-1,S=F(w,E.b),k=E.K,E=E.w+(b>>E.b)*S;b<v;){var I=k,A=E,D=1;for(Wn(m,f,y,_-w,1,y,_);D<w;){var T=(D&~C)+x;T>w&&(T=w),(0,Qn[I[A++]>>8&15])(m,f+ +D,y,_+D-w,T-D,y,_+D),D=T}f+=w,_+=w,++b&C||(E+=S)}h!=p.nc&&i(d,c-g,d,c+(h-u-1)*g,g);break;case 1:for(g=m,v=f,w=(m=p.Ea)-(_=m&~(y=(f=1<<p.b)-1)),b=F(m,p.b),x=p.K,p=p.w+(u>>p.b)*b;u<h;){for(C=x,S=p,k=new B,E=v+_,I=v+m;v<E;)Y(C[S++],k),Jn(k,g,v,f,d,c),v+=f,c+=f;v<I&&(Y(C[S++],k),Jn(k,g,v,w,d,c),v+=w,c+=w),++u&y||(p+=b)}break;case 3:if(m==d&&f==c&&0<p.b){for(v=d,m=g=c+(h-u)*g-(_=(h-u)*F(p.Ea,p.b)),f=d,y=c,b=[],_=(w=_)-1;0<=_;--_)b[_]=f[y+_];for(_=w-1;0<=_;--_)v[m+_]=b[_];Gn(p,u,h,d,g,d,c)}else Gn(p,u,h,m,f,d,c)}c=r,d=s}d!=s&&i(r,s,c,d,o)}function xt(t,n){var i=t.V,s=t.Ba+t.c*t.C,r=n-t.C;if(e(n<=t.l.o),e(16>=r),0<r){var a=t.l,o=t.Ta,l=t.Ua,c=a.width;if(wt(t,r,i,s),r=l=[l],e((i=t.C)<(s=n)),e(a.v<a.va),s>a.o&&(s=a.o),i<a.j){var d=a.j-i;i=a.j,r[0]+=d*c}if(i>=s?i=0:(r[0]+=4*a.v,a.ka=i-a.j,a.U=a.va-a.v,a.T=s-i,i=1),i){if(l=l[0],11>(i=t.ca).S){var p=i.f.RGBA,u=(s=i.S,r=a.U,a=a.T,d=p.eb,p.A),h=a;for(p=p.fb+t.Ma*p.A;0<h--;){var m=o,f=l,g=r,b=d,v=p;switch(s){case Li:ti(m,f,g,b,v);break;case Fi:ei(m,f,g,b,v);break;case Ui:ei(m,f,g,b,v),Ci(b,v,0,g,1,0);break;case ji:si(m,f,g,b,v);break;case Vi:et(m,f,g,b,v,1);break;case qi:et(m,f,g,b,v,1),Ci(b,v,0,g,1,0);break;case Bi:et(m,f,g,b,v,0);break;case $i:et(m,f,g,b,v,0),Ci(b,v,1,g,1,0);break;case Hi:ni(m,f,g,b,v);break;case Wi:ni(m,f,g,b,v),Si(b,v,g,1,0);break;case zi:ii(m,f,g,b,v);break;default:e(0)}l+=c,p+=u}t.Ma+=a}else alert("todo:EmitRescaledRowsYUVA");e(t.Ma<=i.height)}}t.C=n,e(t.C<=t.i)}function Ct(t){var e;if(0<t.ua)return 0;for(e=0;e<t.Wb;++e){var n=t.Ya[e].G,i=t.Ya[e].H;if(0<n[1][i[1]+0].g||0<n[2][i[2]+0].g||0<n[3][i[3]+0].g)return 0}return 1}function St(t,n,i,s,r,a){if(0!=t.Z){var o=t.qd,l=t.rd;for(e(null!=gs[t.Z]);n<i;++n)gs[t.Z](o,l,s,r,s,r,a),o=s,l=r,r+=a;t.qd=o,t.rd=l}}function kt(t,n){var i=t.l.ma,s=0==i.Z||1==i.Z?t.l.j:t.C;if(s=t.C<s?s:t.C,e(n<=t.l.o),n>s){var r=t.l.width,a=i.ca,o=i.tb+r*s,l=t.V,c=t.Ba+t.c*s,d=t.gc;e(1==t.ab),e(3==d[0].hc),Zn(d[0],s,n,l,c,a,o),St(i,s,n,a,o,r)}t.C=t.Ma=n}function Et(t,n,i,s,r,a,o){var l=t.$/s,c=t.$%s,d=t.m,p=t.s,u=i+t.$,h=u;r=i+s*r;var m=i+s*a,f=280+p.ua,g=t.Pb?l:16777216,b=0<p.ua?p.Wa:null,v=p.wc,y=u<m?_t(p,c,l):null;e(t.C<a),e(m<=r);var _=!1;t:for(;;){for(;_||u<m;){var w=0;if(l>=g){var E=u-i;e((g=t).Pb),g.wd=g.m,g.xd=E,0<g.s.ua&&M(g.s.Wa,g.s.vb),g=l+ts}if(c&v||(y=_t(p,c,l)),e(null!=y),y.Qb&&(n[u]=y.qb,_=!0),!_)if(k(d),y.jc){w=d,E=n;var I=u,A=y.pd[x(w)&Vn-1];e(y.jc),256>A.g?(S(w,w.u+A.g),E[I]=A.value,w=0):(S(w,w.u+A.g-256),e(256<=A.value),w=A.value),0==w&&(_=!0)}else w=vt(y.G[0],y.H[0],d);if(d.h)break;if(_||256>w){if(!_)if(y.nd)n[u]=(y.qb|w<<8)>>>0;else{if(k(d),_=vt(y.G[1],y.H[1],d),k(d),E=vt(y.G[2],y.H[2],d),I=vt(y.G[3],y.H[3],d),d.h)break;n[u]=(I<<24|_<<16|w<<8|E)>>>0}if(_=!1,++u,++c>=s&&(c=0,++l,null!=o&&l<=a&&!(l%16)&&o(t,l),null!=b))for(;h<u;)w=n[h++],b.X[(506832829*w&4294967295)>>>b.Mb]=w}else if(280>w){if(w=gt(w-256,d),E=vt(y.G[4],y.H[4],d),k(d),E=bt(s,E=gt(E,d)),d.h)break;if(u-i<E||r-u<w)break t;for(I=0;I<w;++I)n[u+I]=n[u+I-E];for(u+=w,c+=w;c>=s;)c-=s,++l,null!=o&&l<=a&&!(l%16)&&o(t,l);if(e(u<=r),c&v&&(y=_t(p,c,l)),null!=b)for(;h<u;)w=n[h++],b.X[(506832829*w&4294967295)>>>b.Mb]=w}else{if(!(w<f))break t;for(_=w-280,e(null!=b);h<u;)w=n[h++],b.X[(506832829*w&4294967295)>>>b.Mb]=w;w=u,e(!(_>>>(E=b).Xa)),n[w]=E.X[_],_=!0}_||e(d.h==C(d))}if(t.Pb&&d.h&&u<r)e(t.m.h),t.a=5,t.m=t.wd,t.$=t.xd,0<t.s.ua&&M(t.s.vb,t.s.Wa);else{if(d.h)break t;null!=o&&o(t,l>a?a:l),t.a=0,t.$=u-i}return 1}return t.a=3,0}function It(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function At(){var e=new on;return null==e?null:(e.a=0,e.xb=fs,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),Yn=W,Jn=G,ti=Z,ei=X,ni=Q,ii=J,si=tt,t.VP8LMapColor32b=Kn,t.VP8LMapColor8b=Xn,e)}function Dt(t,n,i,o,l){var c=1,u=[t],m=[n],f=o.m,g=o.s,b=null,v=0;t:for(;;){if(i)for(;c&&y(f,1);){var _=u,w=m,C=o,E=1,I=C.m,A=C.gc[C.ab],D=y(I,2);if(C.Oc&1<<D)c=0;else{switch(C.Oc|=1<<D,A.hc=D,A.Ea=_[0],A.nc=w[0],A.K=[null],++C.ab,e(4>=C.ab),D){case 0:case 1:A.b=y(I,3)+2,E=Dt(F(A.Ea,A.b),F(A.nc,A.b),0,C,A.K),A.K=A.K[0];break;case 3:var T,O=y(I,8)+1,P=16<O?0:4<O?1:2<O?2:3;if(_[0]=F(A.Ea,P),A.b=P,T=E=Dt(O,1,0,C,A.K)){var M,R=O,L=A,V=1<<(8>>L.b),B=r(V);if(null==B)T=0;else{var H=L.K[0],z=L.w;for(B[0]=L.K[0][0],M=1;M<1*R;++M)B[M]=j(H[z+M],B[M-1]);for(;M<4*V;++M)B[M]=0;L.K[0]=null,L.K[0]=B,T=1}}E=T;break;case 2:break;default:e(0)}c=E}}if(u=u[0],m=m[0],c&&y(f,1)&&!(c=1<=(v=y(f,4))&&11>=v)){o.a=3;break t}var U;if(U=c)e:{var q,$,W,Y=o,G=u,K=m,Z=v,X=i,Q=Y.m,J=Y.s,tt=[null],et=1,nt=0,it=Ji[Z];n:for(;;){if(X&&y(Q,1)){var st=y(Q,3)+2,rt=F(G,st),at=F(K,st),ot=rt*at;if(!Dt(rt,at,0,Y,tt))break n;for(tt=tt[0],J.xc=st,q=0;q<ot;++q){var lt=tt[q]>>8&65535;tt[q]=lt,lt>=et&&(et=lt+1)}}if(Q.h)break n;for($=0;5>$;++$){var ct=Ki[$];!$&&0<Z&&(ct+=1<<Z),nt<ct&&(nt=ct)}var dt=a(et*it,p),pt=et,ut=a(pt,h);if(null==ut)var ht=null;else e(65536>=pt),ht=ut;var mt=r(nt);if(null==ht||null==mt||null==dt){Y.a=1;break n}var ft=dt;for(q=W=0;q<et;++q){var gt=ht[q],bt=gt.G,vt=gt.H,_t=0,wt=1,xt=0;for($=0;5>$;++$){ct=Ki[$],bt[$]=ft,vt[$]=W,!$&&0<Z&&(ct+=1<<Z);i:{var Ct,St=ct,kt=Y,At=mt,Tt=ft,Ot=W,Pt=0,Nt=kt.m,Mt=y(Nt,1);if(s(At,0,0,St),Mt){var Rt=y(Nt,1)+1,Lt=y(Nt,1),Ft=y(Nt,0==Lt?1:8);At[Ft]=1,2==Rt&&(At[Ft=y(Nt,8)]=1);var jt=1}else{var Vt=r(19),Bt=y(Nt,4)+4;if(19<Bt){kt.a=3;var Ht=0;break i}for(Ct=0;Ct<Bt;++Ct)Vt[Xi[Ct]]=y(Nt,3);var zt=void 0,Ut=void 0,qt=kt,$t=Vt,Wt=St,Yt=At,Gt=0,Kt=qt.m,Zt=8,Xt=a(128,p);s:for(;d(Xt,0,7,$t,19);){if(y(Kt,1)){var Qt=2+2*y(Kt,3);if((zt=2+y(Kt,Qt))>Wt)break s}else zt=Wt;for(Ut=0;Ut<Wt&&zt--;){k(Kt);var Jt=Xt[0+(127&x(Kt))];S(Kt,Kt.u+Jt.g);var te=Jt.value;if(16>te)Yt[Ut++]=te,0!=te&&(Zt=te);else{var ee=16==te,ne=te-16,ie=Gi[ne],se=y(Kt,Yi[ne])+ie;if(Ut+se>Wt)break s;for(var re=ee?Zt:0;0<se--;)Yt[Ut++]=re}}Gt=1;break s}Gt||(qt.a=3),jt=Gt}(jt=jt&&!Nt.h)&&(Pt=d(Tt,Ot,8,At,St)),jt&&0!=Pt?Ht=Pt:(kt.a=3,Ht=0)}if(0==Ht)break n;if(wt&&1==Zi[$]&&(wt=0==ft[W].g),_t+=ft[W].g,W+=Ht,3>=$){var ae,oe=mt[0];for(ae=1;ae<ct;++ae)mt[ae]>oe&&(oe=mt[ae]);xt+=oe}}if(gt.nd=wt,gt.Qb=0,wt&&(gt.qb=(bt[3][vt[3]+0].value<<24|bt[1][vt[1]+0].value<<16|bt[2][vt[2]+0].value)>>>0,0==_t&&256>bt[0][vt[0]+0].value&&(gt.Qb=1,gt.qb+=bt[0][vt[0]+0].value<<8)),gt.jc=!gt.Qb&&6>xt,gt.jc){var le,ce=gt;for(le=0;le<Vn;++le){var de=le,pe=ce.pd[de],ue=ce.G[0][ce.H[0]+de];256<=ue.value?(pe.g=ue.g+256,pe.value=ue.value):(pe.g=0,pe.value=0,de>>=yt(ue,8,pe),de>>=yt(ce.G[1][ce.H[1]+de],16,pe),de>>=yt(ce.G[2][ce.H[2]+de],0,pe),yt(ce.G[3][ce.H[3]+de],24,pe))}}}J.vc=tt,J.Wb=et,J.Ya=ht,J.yc=dt,U=1;break e}U=0}if(!(c=U)){o.a=3;break t}if(0<v){if(g.ua=1<<v,!N(g.Wa,v)){o.a=1,c=0;break t}}else g.ua=0;var he=o,me=u,fe=m,ge=he.s,be=ge.xc;if(he.c=me,he.i=fe,ge.md=F(me,be),ge.wc=0==be?-1:(1<<be)-1,i){o.xb=ms;break t}if(null==(b=r(u*m))){o.a=1,c=0;break t}c=(c=Et(o,b,0,u,m,m,null))&&!f.h;break t}return c?(null!=l?l[0]=b:(e(null==b),e(i)),o.$=0,i||It(g)):It(g),c}function Tt(t,n){var i=t.c*t.i,s=i+n+16*n;return e(t.c<=n),t.V=r(s),null==t.V?(t.Ta=null,t.Ua=0,t.a=1,0):(t.Ta=t.V,t.Ua=t.Ba+i+n,1)}function Ot(t,n){var i=t.C,s=n-i,r=t.V,a=t.Ba+t.c*i;for(e(n<=t.l.o);0<s;){var o=16<s?16:s,l=t.l.ma,c=t.l.width,d=c*o,p=l.ca,u=l.tb+c*i,h=t.Ta,m=t.Ua;wt(t,o,r,a),Ei(h,m,p,u,d),St(l,i,i+o,p,u,c),s-=o,r+=o*t.c,i+=o}e(i==n),t.C=t.Ma=n}function Pt(){this.ub=this.yd=this.td=this.Rb=0}function Nt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Mt(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function Rt(){this.Yb=function(){var t=[];return function t(e,n,i){for(var s=i[n],r=0;r<s&&(e.push(i.length>n+1?[]:0),!(i.length<n+1));r++)t(e[r],n+1,i)}(t,0,[3,11]),t}()}function Lt(){this.jb=r(3),this.Wc=o([4,8],Rt),this.Xc=o([4,17],Rt)}function Ft(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function jt(){this.ld=this.La=this.dd=this.tc=0}function Vt(){this.Na=this.la=0}function Bt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ht(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new jt),this.Y=0,this.ya=Array(new Ht),this.aa=0,this.l=new Wt}function Ut(){this.y=r(16),this.f=r(8),this.ea=r(8)}function qt(){this.cb=this.a=0,this.sc="",this.m=new _,this.Od=new Pt,this.Kc=new Nt,this.ed=new Ft,this.Qa=new Mt,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,_),this.ia=0,this.pb=a(4,Bt),this.Pa=new Lt,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ut),this.Hd=0,this.rb=Array(new Vt),this.sb=0,this.wa=Array(new jt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ht),this.L=this.aa=0,this.gd=o([4,2],jt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function $t(t,e){return 0>t?0:t>e?e:t}function Wt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var t=new qt;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,is||(is=Xt)),t}function Gt(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function Kt(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function Zt(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return Gt(t,2,"null VP8Io passed to VP8GetHeaders()");var i=n.data,r=n.w,a=n.ha;if(4>a)return Gt(t,7,"Truncated header.");var o=i[r+0]|i[r+1]<<8|i[r+2]<<16,l=t.Od;if(l.Rb=!(1&o),l.td=o>>1&7,l.yd=o>>4&1,l.ub=o>>5,3<l.td)return Gt(t,3,"Incorrect keyframe parameters.");if(!l.yd)return Gt(t,4,"Frame not displayable.");r+=3,a-=3;var c=t.Kc;if(l.Rb){if(7>a)return Gt(t,7,"cannot parse picture header");if(!Kt(i,r,a))return Gt(t,3,"Bad code word");c.c=16383&(i[r+4]<<8|i[r+3]),c.Td=i[r+4]>>6,c.i=16383&(i[r+6]<<8|i[r+5]),c.Ud=i[r+6]>>6,r+=7,a-=7,t.za=c.c+15>>4,t.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,s((o=t.Pa).jb,0,255,o.jb.length),e(null!=(o=t.Qa)),o.Cb=0,o.Bb=0,o.Fb=1,s(o.Zb,0,0,o.Zb.length),s(o.Lb,0,0,o.Lb)}if(l.ub>a)return Gt(t,7,"bad partition length");m(o=t.m,i,r,l.ub),r+=l.ub,a-=l.ub,l.Rb&&(c.Ld=I(o),c.Kd=I(o)),c=t.Qa;var d,p=t.Pa;if(e(null!=o),e(null!=c),c.Cb=I(o),c.Cb){if(c.Bb=I(o),I(o)){for(c.Fb=I(o),d=0;4>d;++d)c.Zb[d]=I(o)?g(o,7):0;for(d=0;4>d;++d)c.Lb[d]=I(o)?g(o,6):0}if(c.Bb)for(d=0;3>d;++d)p.jb[d]=I(o)?f(o,8):255}else c.Bb=0;if(o.Ka)return Gt(t,3,"cannot parse segment header");if((c=t.ed).zd=I(o),c.Tb=f(o,6),c.wb=f(o,3),c.Pc=I(o),c.Pc&&I(o)){for(p=0;4>p;++p)I(o)&&(c.vd[p]=g(o,6));for(p=0;4>p;++p)I(o)&&(c.od[p]=g(o,6))}if(t.L=0==c.Tb?0:c.zd?1:2,o.Ka)return Gt(t,3,"cannot parse filter header");var u=a;if(a=d=r,r=d+u,c=u,t.Xb=(1<<f(t.m,2))-1,u<3*(p=t.Xb))i=7;else{for(d+=3*p,c-=3*p,u=0;u<p;++u){var h=i[a+0]|i[a+1]<<8|i[a+2]<<16;h>c&&(h=c),m(t.Jc[+u],i,d,h),d+=h,c-=h,a+=3}m(t.Jc[+p],i,d,c),i=d<r?0:5}if(0!=i)return Gt(t,i,"cannot parse partitions");for(i=f(d=t.m,7),a=I(d)?g(d,4):0,r=I(d)?g(d,4):0,c=I(d)?g(d,4):0,p=I(d)?g(d,4):0,d=I(d)?g(d,4):0,u=t.Qa,h=0;4>h;++h){if(u.Cb){var b=u.Zb[h];u.Fb||(b+=i)}else{if(0<h){t.pb[h]=t.pb[0];continue}b=i}var v=t.pb[h];v.Sc[0]=es[$t(b+a,127)],v.Sc[1]=ns[$t(b+0,127)],v.Eb[0]=2*es[$t(b+r,127)],v.Eb[1]=101581*ns[$t(b+c,127)]>>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=es[$t(b+p,117)],v.Qc[1]=ns[$t(b+d,127)],v.lc=b+d}if(!l.Rb)return Gt(t,4,"Not a key frame.");for(I(o),l=t.Pa,i=0;4>i;++i){for(a=0;8>a;++a)for(r=0;3>r;++r)for(c=0;11>c;++c)p=A(o,cs[i][a][r][c])?f(o,8):os[i][a][r][c],l.Wc[i][a].Yb[r][c]=p;for(a=0;17>a;++a)l.Xc[i][a]=l.Wc[i][ds[a]]}return t.kc=I(o),t.kc&&(t.Bd=f(o,8)),t.cb=1}function Xt(t,e,n,i,s,r,a){var o=e[s].Yb[n];for(n=0;16>s;++s){if(!A(t,o[n+0]))return s;for(;!A(t,o[n+1]);)if(o=e[++s].Yb[0],n=0,16==s)return 16;var l=e[s+1].Yb;if(A(t,o[n+2])){var c=t,d=0;if(A(c,(u=o)[(p=n)+3]))if(A(c,u[p+6])){for(o=0,p=2*(d=A(c,u[p+8]))+(u=A(c,u[p+9+d])),d=0,u=ss[p];u[o];++o)d+=d+A(c,u[o]);d+=3+(8<<p)}else A(c,u[p+7])?(d=7+2*A(c,165),d+=A(c,145)):d=5+A(c,159);else d=A(c,u[p+4])?3+A(c,u[p+5]):2;o=l[2]}else d=1,o=l[1];l=a+rs[s],0>(c=t).b&&E(c);var p,u=c.b,h=(p=c.Ca>>1)-(c.I>>u)>>31;--c.b,c.Ca+=h,c.Ca|=1,c.I-=(p+1&h)<<u,r[l]=((d^h)-h)*i[(0<s)+0]}return 16}function Qt(t){var e=t.rb[t.sb-1];e.la=0,e.Na=0,s(t.zc,0,0,t.zc.length),t.ja=0}function Jt(t,n){if(null==t)return 0;if(null==n)return Gt(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!Zt(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var o=Vs[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-o>>4,t.zb=n.j-o>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+o>>4,t.Hb=n.va+15+o>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0<t.L){var l=t.ed;for(o=0;4>o;++o){var c;if(t.Qa.Cb){var d=t.Qa.Lb[o];t.Qa.Fb||(d+=l.Tb)}else d=l.Tb;for(c=0;1>=c;++c){var p=t.gd[o][c],u=d;if(l.Pc&&(u+=l.vd[0],c&&(u+=l.od[0])),0<(u=0>u?0:63<u?63:u)){var h=u;0<l.wb&&(h=4<l.wb?h>>2:h>>1)>9-l.wb&&(h=9-l.wb),1>h&&(h=1),p.dd=h,p.tc=2*u+h,p.ld=40<=u?2:15<=u?1:0}else p.tc=0;p.La=c}}}o=0}else Gt(t,6,"Frame setup failed"),o=t.a;if(o=0==o){if(o){t.$c=0,0<t.Aa||(t.Ic=Hs);t:{o=t.Ic,l=4*(h=t.za);var m=32*h,f=h+1,g=0<t.L?h*(0<t.Aa?2:1):0,b=(2==t.Aa?2:1)*h;if((p=l+832+(c=3*(16*o+Vs[t.L])/2*m)+(d=null!=t.Fa&&0<t.Fa.length?t.Kc.c*t.Kc.i:0))!=p)o=0;else{if(p>t.Vb){if(t.Vb=0,t.Ec=r(p),t.Fc=0,null==t.Ec){o=Gt(t,1,"no memory during frame initialization.");break t}t.Vb=p}p=t.Ec,u=t.Fc,t.Ac=p,t.Bc=u,u+=l,t.Gd=a(m,Ut),t.Hd=0,t.rb=a(f+1,Vt),t.sb=1,t.wa=g?a(g,jt):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0<t.Aa&&(t.D.Y+=h),e(!0),t.oc=p,t.pc=u,u+=832,t.ya=a(b,Ht),t.aa=0,t.D.ya=t.ya,t.D.aa=t.aa,2==t.Aa&&(t.D.aa+=h),t.R=16*h,t.B=8*h,h=(m=Vs[t.L])*t.R,m=m/2*t.B,t.sa=p,t.ta=u+h,t.qa=t.sa,t.ra=t.ta+16*o*t.R+m,t.Ha=t.qa,t.Ia=t.ra+8*o*t.B+m,t.$c=0,u+=c,t.mb=d?p:null,t.nb=d?u:null,e(u+d<=t.Fc+t.Vb),Qt(t),s(t.Ac,t.Bc,0,l),o=1}}if(o){if(n.ka=0,n.y=t.sa,n.O=t.ta,n.f=t.qa,n.N=t.ra,n.ea=t.Ha,n.Vd=t.Ia,n.fa=t.R,n.Rc=t.B,n.F=null,n.J=0,!Oi){for(o=-255;255>=o;++o)Ii[255+o]=0>o?-o:o;for(o=-1020;1020>=o;++o)Ai[1020+o]=-128>o?-128:127<o?127:o;for(o=-112;112>=o;++o)Di[112+o]=-16>o?-16:15<o?15:o;for(o=-255;510>=o;++o)Ti[255+o]=0>o?0:255<o?255:o;Oi=1}ri=ce,ai=re,li=ae,ci=oe,di=le,oi=se,pi=Ge,ui=Ke,hi=Qe,mi=Je,fi=Ze,gi=Xe,bi=tn,vi=en,yi=ze,_i=Ue,wi=qe,xi=$e,us[0]=Se,us[1]=pe,us[2]=xe,us[3]=Ce,us[4]=ke,us[5]=Ie,us[6]=Ee,us[7]=Ae,us[8]=Te,us[9]=De,ps[0]=be,ps[1]=he,ps[2]=me,ps[3]=fe,ps[4]=ve,ps[5]=ye,ps[6]=_e,hs[0]=Me,hs[1]=ue,hs[2]=Oe,hs[3]=Pe,hs[4]=Le,hs[5]=Re,hs[6]=Fe,o=1}else o=0}o&&(o=function(t,n){for(t.M=0;t.M<t.Va;++t.M){var a,o=t.Jc[t.M&t.Xb],l=t.m,c=t;for(a=0;a<c.za;++a){var d=l,p=c,u=p.Ac,h=p.Bc+4*a,m=p.zc,f=p.ya[p.aa+a];if(p.Qa.Bb?f.$b=A(d,p.Pa.jb[0])?2+A(d,p.Pa.jb[2]):A(d,p.Pa.jb[1]):f.$b=0,p.kc&&(f.Ad=A(d,p.Bd)),f.Za=!A(d,145)+0,f.Za){var g=f.Ob,b=0;for(p=0;4>p;++p){var v,y=m[0+p];for(v=0;4>v;++v){y=ls[u[h+v]][y];for(var _=as[A(d,y[0])];0<_;)_=as[2*_+A(d,y[_])];y=-_,u[h+v]=y}i(g,b,u,h,4),b+=4,m[0+p]=y}}else y=A(d,156)?A(d,128)?1:3:A(d,163)?2:0,f.Ob[0]=y,s(u,h,y,4),s(m,0,y,4);f.Dd=A(d,142)?A(d,114)?A(d,183)?1:3:2:0}if(c.m.Ka)return Gt(t,7,"Premature end-of-partition0 encountered.");for(;t.ja<t.za;++t.ja){if(c=o,d=(l=t).rb[l.sb-1],u=l.rb[l.sb+l.ja],a=l.ya[l.aa+l.ja],h=l.kc?a.Ad:0)d.la=u.la=0,a.Za||(d.Na=u.Na=0),a.Hc=0,a.Gc=0,a.ia=0;else{var w,x;if(d=u,u=c,h=l.Pa.Xc,m=l.ya[l.aa+l.ja],f=l.pb[m.$b],p=m.ad,g=0,b=l.rb[l.sb-1],y=v=0,s(p,g,0,384),m.Za)var C=0,S=h[3];else{_=r(16);var k=d.Na+b.Na;if(k=is(u,h[1],k,f.Eb,0,_,0),d.Na=b.Na=(0<k)+0,1<k)ri(_,0,p,g);else{var E=_[0]+3>>3;for(_=0;256>_;_+=16)p[g+_]=E}C=1,S=h[0]}var I=15&d.la,D=15&b.la;for(_=0;4>_;++_){var T=1&D;for(E=x=0;4>E;++E)I=I>>1|(T=(k=is(u,S,k=T+(1&I),f.Sc,C,p,g))>C)<<7,x=x<<2|(3<k?3:1<k?2:0!=p[g+0]),g+=16;I>>=4,D=D>>1|T<<7,v=(v<<8|x)>>>0}for(S=I,C=D>>4,w=0;4>w;w+=2){for(x=0,I=d.la>>4+w,D=b.la>>4+w,_=0;2>_;++_){for(T=1&D,E=0;2>E;++E)k=T+(1&I),I=I>>1|(T=0<(k=is(u,h[2],k,f.Qc,0,p,g)))<<3,x=x<<2|(3<k?3:1<k?2:0!=p[g+0]),g+=16;I>>=2,D=D>>1|T<<5}y|=x<<4*w,S|=I<<4<<w,C|=(240&D)<<w}d.la=S,b.la=C,m.Hc=v,m.Gc=y,m.ia=43690&y?0:f.ia,h=!(v|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[a.$b][a.Za],l.wa[l.Y+l.ja].La|=!h),c.Ka)return Gt(t,7,"Premature end-of-file encountered.")}if(Qt(t),l=n,c=1,a=(o=t).D,d=0<o.L&&o.M>=o.zb&&o.M<=o.Va,0==o.Aa)t:{if(a.M=o.M,a.uc=d,Mn(o,a),c=1,a=(x=o.D).Nb,d=(y=Vs[o.L])*o.R,u=y/2*o.B,_=16*a*o.R,E=8*a*o.B,h=o.sa,m=o.ta-d+_,f=o.qa,p=o.ra-u+E,g=o.Ha,b=o.Ia-u+E,D=0==(I=x.M),v=I>=o.Va-1,2==o.Aa&&Mn(o,x),x.uc)for(T=(k=o).D.M,e(k.D.uc),x=k.yb;x<k.Hb;++x){C=x,S=T;var O=(P=(H=k).D).Nb;w=H.R;var P=P.wa[P.Y+C],N=H.sa,M=H.ta+16*O*w+16*C,R=P.dd,L=P.tc;if(0!=L)if(e(3<=L),1==H.L)0<C&&_i(N,M,w,L+4),P.La&&xi(N,M,w,L),0<S&&yi(N,M,w,L+4),P.La&&wi(N,M,w,L);else{var F=H.B,j=H.qa,V=H.ra+8*O*F+8*C,B=H.Ha,H=H.Ia+8*O*F+8*C;O=P.ld,0<C&&(ui(N,M,w,L+4,R,O),mi(j,V,B,H,F,L+4,R,O)),P.La&&(gi(N,M,w,L,R,O),vi(j,V,B,H,F,L,R,O)),0<S&&(pi(N,M,w,L+4,R,O),hi(j,V,B,H,F,L+4,R,O)),P.La&&(fi(N,M,w,L,R,O),bi(j,V,B,H,F,L,R,O))}}if(o.ia&&alert("todo:DitherRow"),null!=l.put){if(x=16*I,I=16*(I+1),D?(l.y=o.sa,l.O=o.ta+_,l.f=o.qa,l.N=o.ra+E,l.ea=o.Ha,l.W=o.Ia+E):(x-=y,l.y=h,l.O=m,l.f=f,l.N=p,l.ea=g,l.W=b),v||(I-=y),I>l.o&&(I=l.o),l.F=null,l.J=null,null!=o.Fa&&0<o.Fa.length&&x<I&&(l.J=un(o,l,x,I-x),l.F=o.mb,null==l.F&&0==l.F.length)){c=Gt(o,3,"Could not decode alpha data.");break t}x<l.j&&(y=l.j-x,x=l.j,e(!(1&y)),l.O+=o.R*y,l.N+=o.B*(y>>1),l.W+=o.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),x<I&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=x-l.j,l.U=l.va-l.v,l.T=I-x,c=l.put(l))}a+1!=o.Ic||v||(i(o.sa,o.ta-d,h,m+16*o.R,d),i(o.qa,o.ra-u,f,p+8*o.B,u),i(o.Ha,o.Ia-u,g,b+8*o.B,u))}if(!c)return Gt(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),o&=1}return o?(t.cb=0,o):0}function te(t,e,n,i,s){s=t[e+n+32*i]+(s>>3),t[e+n+32*i]=-256&s?0>s?0:255:s}function ee(t,e,n,i,s,r){te(t,e,0,n,i+s),te(t,e,1,n,i+r),te(t,e,2,n,i-r),te(t,e,3,n,i-s)}function ne(t){return(20091*t>>16)+t}function ie(t,e,n,i){var s,a=0,o=r(16);for(s=0;4>s;++s){var l=t[e+0]+t[e+8],c=t[e+0]-t[e+8],d=(35468*t[e+4]>>16)-ne(t[e+12]),p=ne(t[e+4])+(35468*t[e+12]>>16);o[a+0]=l+p,o[a+1]=c+d,o[a+2]=c-d,o[a+3]=l-p,a+=4,e++}for(s=a=0;4>s;++s)l=(t=o[a+0]+4)+o[a+8],c=t-o[a+8],d=(35468*o[a+4]>>16)-ne(o[a+12]),te(n,i,0,0,l+(p=ne(o[a+4])+(35468*o[a+12]>>16))),te(n,i,1,0,c+d),te(n,i,2,0,c-d),te(n,i,3,0,l-p),a++,i+=32}function se(t,e,n,i){var s=t[e+0]+4,r=35468*t[e+4]>>16,a=ne(t[e+4]),o=35468*t[e+1]>>16;ee(n,i,0,s+a,t=ne(t[e+1]),o),ee(n,i,1,s+r,t,o),ee(n,i,2,s-r,t,o),ee(n,i,3,s-a,t,o)}function re(t,e,n,i,s){ie(t,e,n,i),s&&ie(t,e+16,n,i+4)}function ae(t,e,n,i){ai(t,e+0,n,i,1),ai(t,e+32,n,i+128,1)}function oe(t,e,n,i){var s;for(t=t[e+0]+4,s=0;4>s;++s)for(e=0;4>e;++e)te(n,i,e,s,t)}function le(t,e,n,i){t[e+0]&&ci(t,e+0,n,i),t[e+16]&&ci(t,e+16,n,i+4),t[e+32]&&ci(t,e+32,n,i+128),t[e+48]&&ci(t,e+48,n,i+128+4)}function ce(t,e,n,i){var s,a=r(16);for(s=0;4>s;++s){var o=t[e+0+s]+t[e+12+s],l=t[e+4+s]+t[e+8+s],c=t[e+4+s]-t[e+8+s],d=t[e+0+s]-t[e+12+s];a[0+s]=o+l,a[8+s]=o-l,a[4+s]=d+c,a[12+s]=d-c}for(s=0;4>s;++s)o=(t=a[0+4*s]+3)+a[3+4*s],l=a[1+4*s]+a[2+4*s],c=a[1+4*s]-a[2+4*s],d=t-a[3+4*s],n[i+0]=o+l>>3,n[i+16]=d+c>>3,n[i+32]=o-l>>3,n[i+48]=d-c>>3,i+=64}function de(t,e,n){var i,s=e-32,r=Mi,a=255-t[s-1];for(i=0;i<n;++i){var o,l=r,c=a+t[e-1];for(o=0;o<n;++o)t[e+o]=l[c+t[s+o]];e+=32}}function pe(t,e){de(t,e,4)}function ue(t,e){de(t,e,8)}function he(t,e){de(t,e,16)}function me(t,e){var n;for(n=0;16>n;++n)i(t,e+32*n,t,e-32,16)}function fe(t,e){var n;for(n=16;0<n;--n)s(t,e,t[e-1],16),e+=32}function ge(t,e,n){var i;for(i=0;16>i;++i)s(e,n+32*i,t,16)}function be(t,e){var n,i=16;for(n=0;16>n;++n)i+=t[e-1+32*n]+t[e+n-32];ge(i>>5,t,e)}function ve(t,e){var n,i=8;for(n=0;16>n;++n)i+=t[e-1+32*n];ge(i>>4,t,e)}function ye(t,e){var n,i=8;for(n=0;16>n;++n)i+=t[e+n-32];ge(i>>4,t,e)}function _e(t,e){ge(128,t,e)}function we(t,e,n){return t+2*e+n+2>>2}function xe(t,e){var n,s=e-32;for(s=new Uint8Array([we(t[s-1],t[s+0],t[s+1]),we(t[s+0],t[s+1],t[s+2]),we(t[s+1],t[s+2],t[s+3]),we(t[s+2],t[s+3],t[s+4])]),n=0;4>n;++n)i(t,e+32*n,s,0,s.length)}function Ce(t,e){var n=t[e-1],i=t[e-1+32],s=t[e-1+64],r=t[e-1+96];D(t,e+0,16843009*we(t[e-1-32],n,i)),D(t,e+32,16843009*we(n,i,s)),D(t,e+64,16843009*we(i,s,r)),D(t,e+96,16843009*we(s,r,r))}function Se(t,e){var n,i=4;for(n=0;4>n;++n)i+=t[e+n-32]+t[e-1+32*n];for(i>>=3,n=0;4>n;++n)s(t,e+32*n,i,4)}function ke(t,e){var n=t[e-1+0],i=t[e-1+32],s=t[e-1+64],r=t[e-1-32],a=t[e+0-32],o=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+96]=we(i,s,t[e-1+96]),t[e+1+96]=t[e+0+64]=we(n,i,s),t[e+2+96]=t[e+1+64]=t[e+0+32]=we(r,n,i),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=we(a,r,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=we(o,a,r),t[e+3+32]=t[e+2+0]=we(l,o,a),t[e+3+0]=we(c,l,o)}function Ee(t,e){var n=t[e+1-32],i=t[e+2-32],s=t[e+3-32],r=t[e+4-32],a=t[e+5-32],o=t[e+6-32],l=t[e+7-32];t[e+0+0]=we(t[e+0-32],n,i),t[e+1+0]=t[e+0+32]=we(n,i,s),t[e+2+0]=t[e+1+32]=t[e+0+64]=we(i,s,r),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=we(s,r,a),t[e+3+32]=t[e+2+64]=t[e+1+96]=we(r,a,o),t[e+3+64]=t[e+2+96]=we(a,o,l),t[e+3+96]=we(o,l,l)}function Ie(t,e){var n=t[e-1+0],i=t[e-1+32],s=t[e-1+64],r=t[e-1-32],a=t[e+0-32],o=t[e+1-32],l=t[e+2-32],c=t[e+3-32];t[e+0+0]=t[e+1+64]=r+a+1>>1,t[e+1+0]=t[e+2+64]=a+o+1>>1,t[e+2+0]=t[e+3+64]=o+l+1>>1,t[e+3+0]=l+c+1>>1,t[e+0+96]=we(s,i,n),t[e+0+64]=we(i,n,r),t[e+0+32]=t[e+1+96]=we(n,r,a),t[e+1+32]=t[e+2+96]=we(r,a,o),t[e+2+32]=t[e+3+96]=we(a,o,l),t[e+3+32]=we(o,l,c)}function Ae(t,e){var n=t[e+0-32],i=t[e+1-32],s=t[e+2-32],r=t[e+3-32],a=t[e+4-32],o=t[e+5-32],l=t[e+6-32],c=t[e+7-32];t[e+0+0]=n+i+1>>1,t[e+1+0]=t[e+0+64]=i+s+1>>1,t[e+2+0]=t[e+1+64]=s+r+1>>1,t[e+3+0]=t[e+2+64]=r+a+1>>1,t[e+0+32]=we(n,i,s),t[e+1+32]=t[e+0+96]=we(i,s,r),t[e+2+32]=t[e+1+96]=we(s,r,a),t[e+3+32]=t[e+2+96]=we(r,a,o),t[e+3+64]=we(a,o,l),t[e+3+96]=we(o,l,c)}function De(t,e){var n=t[e-1+0],i=t[e-1+32],s=t[e-1+64],r=t[e-1+96];t[e+0+0]=n+i+1>>1,t[e+2+0]=t[e+0+32]=i+s+1>>1,t[e+2+32]=t[e+0+64]=s+r+1>>1,t[e+1+0]=we(n,i,s),t[e+3+0]=t[e+1+32]=we(i,s,r),t[e+3+32]=t[e+1+64]=we(s,r,r),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=r}function Te(t,e){var n=t[e-1+0],i=t[e-1+32],s=t[e-1+64],r=t[e-1+96],a=t[e-1-32],o=t[e+0-32],l=t[e+1-32],c=t[e+2-32];t[e+0+0]=t[e+2+32]=n+a+1>>1,t[e+0+32]=t[e+2+64]=i+n+1>>1,t[e+0+64]=t[e+2+96]=s+i+1>>1,t[e+0+96]=r+s+1>>1,t[e+3+0]=we(o,l,c),t[e+2+0]=we(a,o,l),t[e+1+0]=t[e+3+32]=we(n,a,o),t[e+1+32]=t[e+3+64]=we(i,n,a),t[e+1+64]=t[e+3+96]=we(s,i,n),t[e+1+96]=we(r,s,i)}function Oe(t,e){var n;for(n=0;8>n;++n)i(t,e+32*n,t,e-32,8)}function Pe(t,e){var n;for(n=0;8>n;++n)s(t,e,t[e-1],8),e+=32}function Ne(t,e,n){var i;for(i=0;8>i;++i)s(e,n+32*i,t,8)}function Me(t,e){var n,i=8;for(n=0;8>n;++n)i+=t[e+n-32]+t[e-1+32*n];Ne(i>>4,t,e)}function Re(t,e){var n,i=4;for(n=0;8>n;++n)i+=t[e+n-32];Ne(i>>3,t,e)}function Le(t,e){var n,i=4;for(n=0;8>n;++n)i+=t[e-1+32*n];Ne(i>>3,t,e)}function Fe(t,e){Ne(128,t,e)}function je(t,e,n){var i=t[e-n],s=t[e+0],r=3*(s-i)+Pi[1020+t[e-2*n]-t[e+n]],a=Ni[112+(r+4>>3)];t[e-n]=Mi[255+i+Ni[112+(r+3>>3)]],t[e+0]=Mi[255+s-a]}function Ve(t,e,n,i){var s=t[e+0],r=t[e+n];return Ri[255+t[e-2*n]-t[e-n]]>i||Ri[255+r-s]>i}function Be(t,e,n,i){return 4*Ri[255+t[e-n]-t[e+0]]+Ri[255+t[e-2*n]-t[e+n]]<=i}function He(t,e,n,i,s){var r=t[e-3*n],a=t[e-2*n],o=t[e-n],l=t[e+0],c=t[e+n],d=t[e+2*n],p=t[e+3*n];return 4*Ri[255+o-l]+Ri[255+a-c]>i?0:Ri[255+t[e-4*n]-r]<=s&&Ri[255+r-a]<=s&&Ri[255+a-o]<=s&&Ri[255+p-d]<=s&&Ri[255+d-c]<=s&&Ri[255+c-l]<=s}function ze(t,e,n,i){var s=2*i+1;for(i=0;16>i;++i)Be(t,e+i,n,s)&&je(t,e+i,n)}function Ue(t,e,n,i){var s=2*i+1;for(i=0;16>i;++i)Be(t,e+i*n,1,s)&&je(t,e+i*n,1)}function qe(t,e,n,i){var s;for(s=3;0<s;--s)ze(t,e+=4*n,n,i)}function $e(t,e,n,i){var s;for(s=3;0<s;--s)Ue(t,e+=4,n,i)}function We(t,e,n,i,s,r,a,o){for(r=2*r+1;0<s--;){if(He(t,e,n,r,a))if(Ve(t,e,n,o))je(t,e,n);else{var l=t,c=e,d=n,p=l[c-2*d],u=l[c-d],h=l[c+0],m=l[c+d],f=l[c+2*d],g=27*(v=Pi[1020+3*(h-u)+Pi[1020+p-m]])+63>>7,b=18*v+63>>7,v=9*v+63>>7;l[c-3*d]=Mi[255+l[c-3*d]+v],l[c-2*d]=Mi[255+p+b],l[c-d]=Mi[255+u+g],l[c+0]=Mi[255+h-g],l[c+d]=Mi[255+m-b],l[c+2*d]=Mi[255+f-v]}e+=i}}function Ye(t,e,n,i,s,r,a,o){for(r=2*r+1;0<s--;){if(He(t,e,n,r,a))if(Ve(t,e,n,o))je(t,e,n);else{var l=t,c=e,d=n,p=l[c-d],u=l[c+0],h=l[c+d],m=Ni[112+(4+(f=3*(u-p))>>3)],f=Ni[112+(f+3>>3)],g=m+1>>1;l[c-2*d]=Mi[255+l[c-2*d]+g],l[c-d]=Mi[255+p+f],l[c+0]=Mi[255+u-m],l[c+d]=Mi[255+h-g]}e+=i}}function Ge(t,e,n,i,s,r){We(t,e,n,1,16,i,s,r)}function Ke(t,e,n,i,s,r){We(t,e,1,n,16,i,s,r)}function Ze(t,e,n,i,s,r){var a;for(a=3;0<a;--a)Ye(t,e+=4*n,n,1,16,i,s,r)}function Xe(t,e,n,i,s,r){var a;for(a=3;0<a;--a)Ye(t,e+=4,1,n,16,i,s,r)}function Qe(t,e,n,i,s,r,a,o){We(t,e,s,1,8,r,a,o),We(n,i,s,1,8,r,a,o)}function Je(t,e,n,i,s,r,a,o){We(t,e,1,s,8,r,a,o),We(n,i,1,s,8,r,a,o)}function tn(t,e,n,i,s,r,a,o){Ye(t,e+4*s,s,1,8,r,a,o),Ye(n,i+4*s,s,1,8,r,a,o)}function en(t,e,n,i,s,r,a,o){Ye(t,e+4,1,s,8,r,a,o),Ye(n,i+4,1,s,8,r,a,o)}function nn(){this.ba=new at,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new lt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function sn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function rn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function an(){this.ua=0,this.Wa=new R,this.vb=new R,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new h,this.yc=new p}function on(){this.xb=this.a=0,this.l=new Wt,this.ca=new at,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new w,this.Pb=0,this.wd=new w,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new an,this.ab=0,this.gc=a(4,rn),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(t,e,n,i,s,r,a){for(t=null==t?0:t[e+0],e=0;e<a;++e)s[r+e]=t+n[i+e]&255,t=s[r+e]}function dn(t,e,n,i,s,r,a){var o;if(null==t)cn(null,null,n,i,s,r,a);else for(o=0;o<a;++o)s[r+o]=t[e+o]+n[i+o]&255}function pn(t,e,n,i,s,r,a){if(null==t)cn(null,null,n,i,s,r,a);else{var o,l=t[e+0],c=l,d=l;for(o=0;o<a;++o)c=d+(l=t[e+o])-c,d=n[i+o]+(-256&c?0>c?0:255:c)&255,c=l,s[r+o]=d}}function un(t,n,s,a){var o=n.width,l=n.o;if(e(null!=t&&null!=n),0>s||0>=a||s+a>l)return null;if(!t.Cc){if(null==t.ga){var c;if(t.ga=new ln,(c=null==t.ga)||(c=n.width*n.o,e(0==t.Gb.length),t.Gb=r(c),t.Uc=0,null==t.Gb?c=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,c=1),c=!c),!c){c=t.ga;var d=t.Fa,p=t.P,u=t.qc,h=t.mb,m=t.nb,f=p+1,g=u-1,v=c.l;if(e(null!=d&&null!=h&&null!=n),gs[0]=null,gs[1]=cn,gs[2]=dn,gs[3]=pn,c.ca=h,c.tb=m,c.c=n.width,c.i=n.height,e(0<c.c&&0<c.i),1>=u)n=0;else if(c.$a=d[p+0]>>0&3,c.Z=d[p+0]>>2&3,c.Lc=d[p+0]>>4&3,p=d[p+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||p)n=0;else if(v.put=ht,v.ac=ut,v.bc=mt,v.ma=c,v.width=n.width,v.height=n.height,v.Da=n.Da,v.v=n.v,v.va=n.va,v.j=n.j,v.o=n.o,c.$a)t:{e(1==c.$a),n=At();e:for(;;){if(null==n){n=0;break t}if(e(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,b(n.m,d,f,g),!Dt(c.c,c.i,1,n,null))break e;if(1==n.ab&&3==n.gc[0].hc&&Ct(n.s)?(c.ic=1,d=n.c*n.i,n.Ta=null,n.Ua=0,n.V=r(d),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Tt(n,c.c)),!n)break e;n=1;break t}c.mc=null,n=0}else n=g>=c.c*c.i;c=!n}if(c)return null;1!=t.ga.Lc?t.Ga=0:a=l-s}e(null!=t.ga),e(s+a<=l);t:{if(n=(d=t.ga).c,l=d.l.o,0==d.$a){if(f=t.rc,g=t.Vc,v=t.Fa,p=t.P+1+s*n,u=t.mb,h=t.nb+s*n,e(p<=t.P+t.qc),0!=d.Z)for(e(null!=gs[d.Z]),c=0;c<a;++c)gs[d.Z](f,g,v,p,u,h,n),f=u,g=h,h+=n,p+=n;else for(c=0;c<a;++c)i(u,h,v,p,n),f=u,g=h,h+=n,p+=n;t.rc=f,t.Vc=g}else{if(e(null!=d.mc),n=s+a,e(null!=(c=d.mc)),e(n<=c.i),c.C>=n)n=1;else if(d.ic||bn(),d.ic){d=c.V,f=c.Ba,g=c.c;var y=c.i,_=(v=1,p=c.$/g,u=c.$%g,h=c.m,m=c.s,c.$),w=g*y,x=g*n,S=m.wc,E=_<x?_t(m,u,p):null;e(_<=w),e(n<=y),e(Ct(m));e:for(;;){for(;!h.h&&_<x;){if(u&S||(E=_t(m,u,p)),e(null!=E),k(h),256>(y=vt(E.G[0],E.H[0],h)))d[f+_]=y,++_,++u>=g&&(u=0,++p<=n&&!(p%16)&&kt(c,p));else{if(!(280>y)){v=0;break e}y=gt(y-256,h);var I,A=vt(E.G[4],E.H[4],h);if(k(h),!(_>=(A=bt(g,A=gt(A,h)))&&w-_>=y)){v=0;break e}for(I=0;I<y;++I)d[f+_+I]=d[f+_+I-A];for(_+=y,u+=y;u>=g;)u-=g,++p<=n&&!(p%16)&&kt(c,p);_<x&&u&S&&(E=_t(m,u,p))}e(h.h==C(h))}kt(c,p>n?n:p);break e}!v||h.h&&_<w?(v=0,c.a=h.h?5:3):c.$=_,n=v}else n=Et(c,c.V,c.Ba,c.c,c.i,n,Ot);if(!n){a=0;break t}}s+a>=l&&(t.Cc=1),a=1}if(!a)return null;if(t.Cc&&(null!=(a=t.ga)&&(a.mc=null),t.ga=null,0<t.Ga))return alert("todo:WebPDequantizeLevels"),null}return t.nb+s*o}function hn(t,e,n,i,s,r){for(;0<s--;){var a,o=t,l=e+(n?1:0),c=t,d=e+(n?0:3);for(a=0;a<i;++a){var p=c[d+4*a];255!=p&&(p*=32897,o[l+4*a+0]=o[l+4*a+0]*p>>23,o[l+4*a+1]=o[l+4*a+1]*p>>23,o[l+4*a+2]=o[l+4*a+2]*p>>23)}e+=r}}function mn(t,e,n,i,s){for(;0<i--;){var r;for(r=0;r<n;++r){var a=t[e+2*r+0],o=15&(c=t[e+2*r+1]),l=4369*o,c=(240&c|c>>4)*l>>16;t[e+2*r+0]=(240&a|a>>4)*l>>16&240|(15&a|a<<4)*l>>16>>4&15,t[e+2*r+1]=240&c|o}e+=s}}function fn(t,e,n,i,s,r,a,o){var l,c,d=255;for(c=0;c<s;++c){for(l=0;l<i;++l){var p=t[e+l];r[a+4*l]=p,d&=p}e+=n,a+=o}return 255!=d}function gn(t,e,n,i,s){var r;for(r=0;r<s;++r)n[i+r]=t[e+r]>>8}function bn(){Ci=hn,Si=mn,ki=fn,Ei=gn}function vn(n,i,s){t[n]=function(t,n,r,a,o,l,c,d,p,u,h,m,f,g,b,v,y){var _,w=y-1>>1,x=o[l+0]|c[d+0]<<16,C=p[u+0]|h[m+0]<<16;e(null!=t);var S=3*x+C+131074>>2;for(i(t[n+0],255&S,S>>16,f,g),null!=r&&(S=3*C+x+131074>>2,i(r[a+0],255&S,S>>16,b,v)),_=1;_<=w;++_){var k=o[l+_]|c[d+_]<<16,E=p[u+_]|h[m+_]<<16,I=x+k+C+E+524296,A=I+2*(k+C)>>3;S=A+x>>1,x=(I=I+2*(x+E)>>3)+k>>1,i(t[n+2*_-1],255&S,S>>16,f,g+(2*_-1)*s),i(t[n+2*_-0],255&x,x>>16,f,g+(2*_-0)*s),null!=r&&(S=I+C>>1,x=A+E>>1,i(r[a+2*_-1],255&S,S>>16,b,v+(2*_-1)*s),i(r[a+2*_+0],255&x,x>>16,b,v+(2*_+0)*s)),x=k,C=E}1&y||(S=3*x+C+131074>>2,i(t[n+y-1],255&S,S>>16,f,g+(y-1)*s),null!=r&&(S=3*C+x+131074>>2,i(r[a+y-1],255&S,S>>16,b,v+(y-1)*s)))}}function yn(){bs[Li]=vs,bs[Fi]=_s,bs[ji]=ys,bs[Vi]=ws,bs[Bi]=xs,bs[Hi]=Cs,bs[zi]=Ss,bs[Ui]=_s,bs[qi]=ws,bs[$i]=xs,bs[Wi]=Cs}function _n(t){return t&~Ts?0>t?0:255:t>>Ds}function wn(t,e){return _n((19077*t>>8)+(26149*e>>8)-14234)}function xn(t,e,n){return _n((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function Cn(t,e){return _n((19077*t>>8)+(33050*e>>8)-17685)}function Sn(t,e,n,i,s){i[s+0]=wn(t,n),i[s+1]=xn(t,e,n),i[s+2]=Cn(t,e)}function kn(t,e,n,i,s){i[s+0]=Cn(t,e),i[s+1]=xn(t,e,n),i[s+2]=wn(t,n)}function En(t,e,n,i,s){var r=xn(t,e,n);e=r<<3&224|Cn(t,e)>>3,i[s+0]=248&wn(t,n)|r>>5,i[s+1]=e}function In(t,e,n,i,s){var r=240&Cn(t,e)|15;i[s+0]=240&wn(t,n)|xn(t,e,n)>>4,i[s+1]=r}function An(t,e,n,i,s){i[s+0]=255,Sn(t,e,n,i,s+1)}function Dn(t,e,n,i,s){kn(t,e,n,i,s),i[s+3]=255}function Tn(t,e,n,i,s){Sn(t,e,n,i,s),i[s+3]=255}function $t(t,e){return 0>t?0:t>e?e:t}function On(e,n,i){t[e]=function(t,e,s,r,a,o,l,c,d){for(var p=c+(-2&d)*i;c!=p;)n(t[e+0],s[r+0],a[o+0],l,c),n(t[e+1],s[r+0],a[o+0],l,c+i),e+=2,++r,++o,c+=2*i;1&d&&n(t[e+0],s[r+0],a[o+0],l,c)}}function Pn(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function Nn(t,e,n,i,s){switch(t>>>30){case 3:ai(e,n,i,s,0);break;case 2:oi(e,n,i,s);break;case 1:ci(e,n,i,s)}}function Mn(t,e){var n,r,a=e.M,o=e.Nb,l=t.oc,c=t.pc+40,d=t.oc,p=t.pc+584,u=t.oc,h=t.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)d[p+32*n-1]=129,u[h+32*n-1]=129;for(0<a?l[c-1-32]=d[p-1-32]=u[h-1-32]=129:(s(l,c-32-1,127,21),s(d,p-32-1,127,9),s(u,h-32-1,127,9)),r=0;r<t.za;++r){var m=e.ya[e.aa+r];if(0<r){for(n=-1;16>n;++n)i(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)i(d,p+32*n-4,d,p+32*n+4,4),i(u,h+32*n-4,u,h+32*n+4,4)}var f=t.Gd,g=t.Hd+r,b=m.ad,v=m.Hc;if(0<a&&(i(l,c-32,f[g].y,0,16),i(d,p-32,f[g].f,0,8),i(u,h-32,f[g].ea,0,8)),m.Za){var y=l,_=c-32+16;for(0<a&&(r>=t.za-1?s(y,_,f[g].y[15],4):i(y,_,f[g+1].y,0,4)),n=0;4>n;n++)y[_+128+n]=y[_+256+n]=y[_+384+n]=y[_+0+n];for(n=0;16>n;++n,v<<=2)y=l,_=c+js[n],us[m.Ob[n]](y,_),Nn(v,b,16*+n,y,_)}else if(y=Pn(r,a,m.Ob[0]),ps[y](l,c),0!=v)for(n=0;16>n;++n,v<<=2)Nn(v,b,16*+n,l,c+js[n]);for(n=m.Gc,y=Pn(r,a,m.Dd),hs[y](d,p),hs[y](u,h),v=b,y=d,_=p,255&(m=n>>0)&&(170&m?li(v,256,y,_):di(v,256,y,_)),m=u,v=h,255&(n>>=8)&&(170&n?li(b,320,m,v):di(b,320,m,v)),a<t.Ub-1&&(i(f[g].y,0,l,c+480,16),i(f[g].f,0,d,p+224,8),i(f[g].ea,0,u,h+224,8)),n=8*o*t.B,f=t.sa,g=t.ta+16*r+16*o*t.R,b=t.qa,m=t.ra+8*r+n,v=t.Ha,y=t.Ia+8*r+n,n=0;16>n;++n)i(f,g+n*t.R,l,c+32*n,16);for(n=0;8>n;++n)i(b,m+n*t.B,d,p+32*n,8),i(v,y+n*t.B,u,h+32*n,8)}}function Rn(t,i,s,r,a,o,l,c,d){var p=[0],u=[0],h=0,m=null!=d?d.kd:0,f=null!=d?d:new sn;if(null==t||12>s)return 7;f.data=t,f.w=i,f.ha=s,i=[i],s=[s],f.gb=[f.gb];t:{var g=i,v=s,y=f.gb;if(e(null!=t),e(null!=v),e(null!=y),y[0]=0,12<=v[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){y=3;break t}var _=P(t,g[0]+4);if(12>_||4294967286<_){y=3;break t}if(m&&_>v[0]-8){y=7;break t}y[0]=_,g[0]+=12,v[0]-=12}y=0}if(0!=y)return y;for(_=0<f.gb[0],s=s[0];;){t:{var x=t;v=i,y=s;var C=p,S=u,k=g=[0];if((A=h=[h])[0]=0,8>y[0])y=7;else{if(!n(x,v[0],"VP8X")){if(10!=P(x,v[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var E=P(x,v[0]+8),I=1+O(x,v[0]+12);if(2147483648<=I*(x=1+O(x,v[0]+15))){y=3;break t}null!=k&&(k[0]=E),null!=C&&(C[0]=I),null!=S&&(S[0]=x),v[0]+=18,y[0]-=18,A[0]=1}y=0}}if(h=h[0],g=g[0],0!=y)return y;if(v=!!(2&g),!_&&h)return 3;if(null!=o&&(o[0]=!!(16&g)),null!=l&&(l[0]=v),null!=c&&(c[0]=0),l=p[0],g=u[0],h&&v&&null==d){y=0;break}if(4>s){y=7;break}if(_&&h||!_&&!h&&!n(t,i[0],"ALPH")){s=[s],f.na=[f.na],f.P=[f.P],f.Sa=[f.Sa];t:{E=t,y=i,_=s;var A=f.gb;C=f.na,S=f.P,k=f.Sa,I=22,e(null!=E),e(null!=_),x=y[0];var D=_[0];for(e(null!=C),e(null!=k),C[0]=null,S[0]=null,k[0]=0;;){if(y[0]=x,_[0]=D,8>D){y=7;break t}var T=P(E,x+4);if(4294967286<T){y=3;break t}var N=8+T+1&-2;if(I+=N,0<A&&I>A){y=3;break t}if(!n(E,x,"VP8 ")||!n(E,x,"VP8L")){y=0;break t}if(D[0]<N){y=7;break t}n(E,x,"ALPH")||(C[0]=E,S[0]=x+8,k[0]=T),x+=N,D-=N}}if(s=s[0],f.na=f.na[0],f.P=f.P[0],f.Sa=f.Sa[0],0!=y)break}s=[s],f.Ja=[f.Ja],f.xa=[f.xa];t:if(A=t,y=i,_=s,C=f.gb[0],S=f.Ja,k=f.xa,E=y[0],x=!n(A,E,"VP8 "),I=!n(A,E,"VP8L"),e(null!=A),e(null!=_),e(null!=S),e(null!=k),8>_[0])y=7;else{if(x||I){if(A=P(A,E+4),12<=C&&A>C-12){y=3;break t}if(m&&A>_[0]-8){y=7;break t}S[0]=A,y[0]+=8,_[0]-=8,k[0]=I}else k[0]=5<=_[0]&&47==A[E+0]&&!(A[E+4]>>5),S[0]=_[0];y=0}if(s=s[0],f.Ja=f.Ja[0],f.xa=f.xa[0],i=i[0],0!=y)break;if(4294967286<f.Ja)return 3;if(null==c||v||(c[0]=f.xa?2:1),l=[l],g=[g],f.xa){if(5>s){y=7;break}c=l,m=g,v=o,null==t||5>s?t=0:5<=s&&47==t[i+0]&&!(t[i+4]>>5)?(_=[0],A=[0],C=[0],b(S=new w,t,i,s),ft(S,_,A,C)?(null!=c&&(c[0]=_[0]),null!=m&&(m[0]=A[0]),null!=v&&(v[0]=C[0]),t=1):t=0):t=0}else{if(10>s){y=7;break}c=g,null==t||10>s||!Kt(t,i+3,s-3)?t=0:(m=t[i+0]|t[i+1]<<8|t[i+2]<<16,v=16383&(t[i+7]<<8|t[i+6]),t=16383&(t[i+9]<<8|t[i+8]),1&m||3<(m>>1&7)||!(m>>4&1)||m>>5>=f.Ja||!v||!t?t=0:(l&&(l[0]=v),c&&(c[0]=t),t=1))}if(!t)return 3;if(l=l[0],g=g[0],h&&(p[0]!=l||u[0]!=g))return 3;null!=d&&(d[0]=f,d.offset=i-d.w,e(4294967286>i-d.w),e(d.offset==d.ha-s));break}return 0==y||7==y&&h&&null==d?(null!=o&&(o[0]|=null!=f.na&&0<f.na.length),null!=r&&(r[0]=l),null!=a&&(a[0]=g),0):y}function Ln(t,e,n){var i=e.width,s=e.height,r=0,a=0,o=i,l=s;if(e.Da=null!=t&&0<t.Da,e.Da&&(o=t.cd,l=t.bd,r=t.v,a=t.j,11>n||(r&=-2,a&=-2),0>r||0>a||0>=o||0>=l||r+o>i||a+l>s))return 0;if(e.v=r,e.j=a,e.va=r+o,e.o=a+l,e.U=o,e.T=l,e.da=null!=t&&0<t.da,e.da){if(!L(o,l,n=[t.ib],r=[t.hb]))return 0;e.ib=n[0],e.hb=r[0]}return e.ob=null!=t&&t.ob,e.Kb=null==t||!t.Sd,e.da&&(e.ob=e.ib<3*i/4&&e.hb<3*s/4,e.Kb=0),1}function Fn(t){if(null==t)return 2;if(11>t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function jn(t,e,n,i){if(null==i||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var s=n.cd,a=n.bd,o=-2&n.v,l=-2&n.j;if(0>o||0>l||0>=s||0>=a||o+s>t||l+a>e)return 2;t=s,e=a}if(n.da){if(!L(t,e,s=[n.ib],a=[n.hb]))return 2;t=s[0],e=a[0]}}i.width=t,i.height=e;t:{var c=i.width,d=i.height;if(t=i.S,0>=c||0>=d||!(t>=Li&&13>t))t=2;else{if(0>=i.Rd&&null==i.sd){o=a=s=e=0;var p=(l=c*zs[t])*d;if(11>t||(a=(d+1)/2*(e=(c+1)/2),12==t&&(o=(s=c)*d)),null==(d=r(p+2*a+o))){t=1;break t}i.sd=d,11>t?((c=i.f.RGBA).eb=d,c.fb=0,c.A=l,c.size=p):((c=i.f.kb).y=d,c.O=0,c.fa=l,c.Fd=p,c.f=d,c.N=0+p,c.Ab=e,c.Cd=a,c.ea=d,c.W=0+p+a,c.Db=e,c.Ed=a,12==t&&(c.F=d,c.J=0+p+2*a),c.Tc=o,c.lb=s)}if(e=1,s=i.S,a=i.width,o=i.height,s>=Li&&13>s)if(11>s)t=i.f.RGBA,e&=(l=Math.abs(t.A))*(o-1)+a<=t.size,e&=l>=a*zs[s],e&=null!=t.eb;else{t=i.f.kb,l=(a+1)/2,p=(o+1)/2,c=Math.abs(t.fa),d=Math.abs(t.Ab);var u=Math.abs(t.Db),h=Math.abs(t.lb),m=h*(o-1)+a;e&=c*(o-1)+a<=t.Fd,e&=d*(p-1)+l<=t.Cd,e=(e&=u*(p-1)+l<=t.Ed)&c>=a&d>=l&u>=l,e&=null!=t.y,e&=null!=t.f,e&=null!=t.ea,12==s&&(e&=h>=a,e&=m<=t.Tc,e&=null!=t.F)}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=Fn(i)),t}var Vn=64,Bn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Hn=24,zn=32,Un=8,qn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];V("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return H(H(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return H(t,e[n-1])},t.Predictor7=function(t,e,n){return H(t,e[n+0])},t.Predictor8=function(t,e,n){return H(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return H(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return H(H(t,e[n-1]),H(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var i=e[n+0];return 0>=q(i>>24&255,t>>24&255,(e=e[n-1])>>24&255)+q(i>>16&255,t>>16&255,e>>16&255)+q(i>>8&255,t>>8&255,e>>8&255)+q(255&i,255&t,255&e)?i:t},t.Predictor12=function(t,e,n){var i=e[n+0];return(z((t>>24&255)+(i>>24&255)-((e=e[n-1])>>24&255))<<24|z((t>>16&255)+(i>>16&255)-(e>>16&255))<<16|z((t>>8&255)+(i>>8&255)-(e>>8&255))<<8|z((255&t)+(255&i)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var i=e[n-1];return(U((t=H(t,e[n+0]))>>24&255,i>>24&255)<<24|U(t>>16&255,i>>16&255)<<16|U(t>>8&255,i>>8&255)<<8|U(t>>0&255,i>>0&255))>>>0};var $n=t.PredictorAdd0;t.PredictorAdd1=$,V("Predictor2","PredictorAdd2"),V("Predictor3","PredictorAdd3"),V("Predictor4","PredictorAdd4"),V("Predictor5","PredictorAdd5"),V("Predictor6","PredictorAdd6"),V("Predictor7","PredictorAdd7"),V("Predictor8","PredictorAdd8"),V("Predictor9","PredictorAdd9"),V("Predictor10","PredictorAdd10"),V("Predictor11","PredictorAdd11"),V("Predictor12","PredictorAdd12"),V("Predictor13","PredictorAdd13");var Wn=t.PredictorAdd2;K("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),K("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var Yn,Gn=t.ColorIndexInverseTransform,Kn=t.MapARGB,Zn=t.VP8LColorIndexInverseTransformAlpha,Xn=t.MapAlpha,Qn=t.VP8LPredictorsAdd=[];Qn.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var Jn,ti,ei,ni,ii,si,ri,ai,oi,li,ci,di,pi,ui,hi,mi,fi,gi,bi,vi,yi,_i,wi,xi,Ci,Si,ki,Ei,Ii=r(511),Ai=r(2041),Di=r(225),Ti=r(767),Oi=0,Pi=Ai,Ni=Di,Mi=Ti,Ri=Ii,Li=0,Fi=1,ji=2,Vi=3,Bi=4,Hi=5,zi=6,Ui=7,qi=8,$i=9,Wi=10,Yi=[2,3,7],Gi=[3,3,11],Ki=[280,256,256,256,40],Zi=[0,1,1,1,0],Xi=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Qi=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Ji=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ts=8,es=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ns=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],is=null,ss=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],rs=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],as=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],os=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ls=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],cs=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ds=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ps=[],us=[],hs=[],ms=1,fs=2,gs=[],bs=[];vn("UpsampleRgbLinePair",Sn,3),vn("UpsampleBgrLinePair",kn,3),vn("UpsampleRgbaLinePair",Tn,4),vn("UpsampleBgraLinePair",Dn,4),vn("UpsampleArgbLinePair",An,4),vn("UpsampleRgba4444LinePair",In,2),vn("UpsampleRgb565LinePair",En,2);var vs=t.UpsampleRgbLinePair,ys=t.UpsampleBgrLinePair,_s=t.UpsampleRgbaLinePair,ws=t.UpsampleBgraLinePair,xs=t.UpsampleArgbLinePair,Cs=t.UpsampleRgba4444LinePair,Ss=t.UpsampleRgb565LinePair,ks=16,Es=1<<ks-1,Is=-227,As=482,Ds=6,Ts=(256<<Ds)-1,Os=0,Ps=r(256),Ns=r(256),Ms=r(256),Rs=r(256),Ls=r(As-Is),Fs=r(As-Is);On("YuvToRgbRow",Sn,3),On("YuvToBgrRow",kn,3),On("YuvToRgbaRow",Tn,4),On("YuvToBgraRow",Dn,4),On("YuvToArgbRow",An,4),On("YuvToRgba4444Row",In,2),On("YuvToRgb565Row",En,2);var js=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Vs=[0,2,8],Bs=[8,7,6,4,4,2,2,2,1,1,1,1],Hs=1;this.WebPDecodeRGBA=function(t,n,i,s,r){var a=Fi,o=new nn,l=new at;o.ba=l,l.S=a,l.width=[l.width],l.height=[l.height];var c=l.width,d=l.height,p=new ot;if(null==p||null==t)var u=2;else e(null!=p),u=Rn(t,n,i,p.width,p.height,p.Pd,p.Qd,p.format,null);if(0!=u?c=0:(null!=c&&(c[0]=p.width[0]),null!=d&&(d[0]=p.height[0]),c=1),c){l.width=l.width[0],l.height=l.height[0],null!=s&&(s[0]=l.width),null!=r&&(r[0]=l.height);t:{if(s=new Wt,(r=new sn).data=t,r.w=n,r.ha=i,r.kd=1,n=[0],e(null!=r),(0==(t=Rn(r.data,r.w,r.ha,null,null,null,n,null,r))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=o),s.data=r.data,s.w=r.w+r.offset,s.ha=r.ha-r.offset,s.put=ht,s.ac=ut,s.bc=mt,s.ma=o,r.xa){if(null==(t=At())){o=1;break t}if(function(t,n){var i=[0],s=[0],r=[0];e:for(;;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,b(t.m,n.data,n.w,n.ha),!ft(t.m,i,s,r)){t.a=3;break e}if(t.xb=fs,n.width=i[0],n.height=s[0],!Dt(i[0],s[0],1,t,null))break e;return 1}return e(0!=t.a),0}(t,s)){if(s=0==(n=jn(s.width,s.height,o.Oa,o.ba))){e:{s=t;n:for(;;){if(null==s){s=0;break e}if(e(null!=s.s.yc),e(null!=s.s.Ya),e(0<s.s.Wb),e(null!=(i=s.l)),e(null!=(r=i.ma)),0!=s.xb){if(s.ca=r.ba,s.tb=r.tb,e(null!=s.ca),!Ln(r.Oa,i,Vi)){s.a=2;break n}if(!Tt(s,i.width))break n;if(i.da)break n;if((i.da||it(s.ca.S))&&bn(),11>s.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=s.ca.f.kb.F&&bn()),s.Pb&&0<s.s.ua&&null==s.s.vb.X&&!N(s.s.vb,s.s.Wa.Xa)){s.a=1;break n}s.xb=0}if(!Et(s,s.V,s.Ba,s.c,s.i,i.o,xt))break n;r.Dc=s.Ma,s=1;break e}e(0!=s.a),s=0}s=!s}s&&(n=t.a)}else n=t.a}else{if(null==(t=new Yt)){o=1;break t}if(t.Fa=r.na,t.P=r.P,t.qc=r.Sa,Zt(t,s)){if(0==(n=jn(s.width,s.height,o.Oa,o.ba))){if(t.Aa=0,i=o.Oa,e(null!=(r=t)),null!=i){if(0<(c=0>(c=i.Md)?0:100<c?255:255*c/100)){for(d=p=0;4>d;++d)12>(u=r.pb[d]).lc&&(u.ia=c*Bs[0>u.lc?0:u.lc]>>3),p|=u.ia;p&&(alert("todo:VP8InitRandom"),r.ia=1)}r.Ga=i.Id,100<r.Ga?r.Ga=100:0>r.Ga&&(r.Ga=0)}Jt(t,s)||(n=t.a)}}else n=t.a}0==n&&null!=o.Oa&&o.Oa.fd&&(n=Fn(o.ba))}o=n}a=0!=o?null:11>a?l.f.RGBA.eb:l.f.kb.y}else a=null;return a};var zs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(t,e){for(var n="",i=0;i<4;i++)n+=String.fromCharCode(t[e++]);return n}function d(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function p(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new l;var u=[0],h=[0],m=[],f=new l,g=t,b=function(t,e){var n={},i=0,s=!1,r=0,a=0;if(n.frames=[],!function(t,e,n,i){for(var s=0;s<4;s++)if(t[e+s]!="RIFF".charCodeAt(s))return!0;return!1}(t,e)){var o,l;for(p(t,e+=4),e+=8;e<t.length;){var u=c(t,e),h=p(t,e+=4);e+=4;var m=h+(1&h);switch(u){case"VP8 ":case"VP8L":void 0===n.frames[i]&&(n.frames[i]={}),(b=n.frames[i]).src_off=s?a:e-8,b.src_size=r+h+8,i++,s&&(s=!1,r=0,a=0);break;case"VP8X":(b=n.header={}).feature_flags=t[e];var f=e+4;b.canvas_width=1+d(t,f),f+=3,b.canvas_height=1+d(t,f),f+=3;break;case"ALPH":s=!0,r=m+8,a=e-8;break;case"ANIM":(b=n.header).bgcolor=p(t,e),f=e+4,b.loop_count=(o=t)[(l=f)+0]<<0|o[l+1]<<8,f+=2;break;case"ANMF":var g,b;(b=n.frames[i]={}).offset_x=2*d(t,e),e+=3,b.offset_y=2*d(t,e),e+=3,b.width=1+d(t,e),e+=3,b.height=1+d(t,e),e+=3,b.duration=d(t,e),e+=3,g=t[e++],b.dispose=1&g,b.blend=g>>1&1}"ANMF"!=u&&(e+=m)}return n}}(g,0);b.response=g,b.rgbaoutput=!0,b.dataurl=!1;var v=b.header?b.header:null,y=b.frames?b.frames:null;if(v){v.loop_counter=v.loop_count,u=[v.canvas_height],h=[v.canvas_width];for(var _=0;_<y.length&&0!=y[_].blend;_++);}var w=y[0],x=f.WebPDecodeRGBA(g,w.src_off,w.src_size,h,u);w.rgba=x,w.imgwidth=h[0],w.imgheight=u[0];for(var C=0;C<h[0]*u[0]*4;C++)m[C]=x[C];return this.width=h,this.height=u,this.data=m,this}!function(t){var e=function(e,i,l,c){var d=4,p=r;switch(c){case t.image_compression.FAST:d=1,p=s;break;case t.image_compression.MEDIUM:d=6,p=a;break;case t.image_compression.SLOW:d=9,p=o}var u=aB(e=n(e,i,l,p),{level:d});return t.__addimage__.arrayBufferToBinaryString(u)},n=function(t,e,n,i){for(var s,r,a,o=t.length/e,l=new Uint8Array(t.length+o),p=c(),u=0;u<o;u+=1){if(a=u*e,s=t.subarray(a,a+e),i)l.set(i(s,n,r),a+u);else{for(var h,m=p.length,f=[];h<m;h+=1)f[h]=p[h](s,n,r);var g=d(f.concat());l.set(f[g],a+u)}r=s}return l},i=function(t){var e=Array.apply([],t);return e.unshift(0),e},s=function(t,e){var n,i=[],s=t.length;i[0]=1;for(var r=0;r<s;r+=1)n=t[r-e]||0,i[r+1]=t[r]-n+256&255;return i},r=function(t,e,n){var i,s=[],r=t.length;s[0]=2;for(var a=0;a<r;a+=1)i=n&&n[a]||0,s[a+1]=t[a]-i+256&255;return s},a=function(t,e,n){var i,s,r=[],a=t.length;r[0]=3;for(var o=0;o<a;o+=1)i=t[o-e]||0,s=n&&n[o]||0,r[o+1]=t[o]+256-(i+s>>>1)&255;return r},o=function(t,e,n){var i,s,r,a,o=[],c=t.length;o[0]=4;for(var d=0;d<c;d+=1)i=t[d-e]||0,s=n&&n[d]||0,r=n&&n[d-e]||0,a=l(i,s,r),o[d+1]=t[d]-a+256&255;return o},l=function(t,e,n){if(t===e&&e===n)return t;var i=Math.abs(e-n),s=Math.abs(t-n),r=Math.abs(t+e-n-n);return i<=s&&i<=r?t:s<=r?e:n},c=function(){return[i,s,r,a,o]},d=function(t){var e=t.map(function(t){return t.reduce(function(t,e){return t+Math.abs(e)},0)});return e.indexOf(Math.min.apply(null,e))};t.processPNG=function(n,i,s,r){var a,o,l,c,d,p,u,h,m,f,g,b,v,y,_,w=this.decode.FLATE_DECODE,x="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(l=new tz(n)).imgData,o=l.bits,a=l.colorSpace,d=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){m=(h=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,g=new Uint8Array(m*l.colors),f=new Uint8Array(m);var C,S=l.pixelBitlength-l.bits;for(y=0,_=0;y<m;y++){for(v=h[y],C=0;C<S;)g[_++]=v>>>C&255,C+=l.bits;f[y]=v>>>C&255}}if(16===l.bits){m=(h=new Uint32Array(l.decodePixels().buffer)).length,g=new Uint8Array(m*(32/l.pixelBitlength)*l.colors),f=new Uint8Array(m*(32/l.pixelBitlength)),b=l.colors>1,y=0,_=0;for(var k=0;y<m;)v=h[y++],g[_++]=v>>>0&255,b&&(g[_++]=v>>>16&255,v=h[y++],g[_++]=v>>>0&255),f[k++]=v>>>16&255;o=8}r!==t.image_compression.NONE?(n=e(g,l.width*l.colors,l.colors,r),u=e(f,l.width,1,r)):(n=g,u=f,w=void 0)}if(3===l.colorType&&(a=this.color_spaces.INDEXED,p=l.palette,l.transparency.indexed)){var E=l.transparency.indexed,I=0;for(y=0,m=E.length;y<m;++y)I+=E[y];if((I/=255)==m-1&&-1!==E.indexOf(0))c=[E.indexOf(0)];else if(I!==m){for(h=l.decodePixels(),f=new Uint8Array(h.length),y=0,m=h.length;y<m;y++)f[y]=E[h[y]];u=e(f,l.width,1)}}var A=function(e){var n;switch(e){case t.image_compression.FAST:n=11;break;case t.image_compression.MEDIUM:n=13;break;case t.image_compression.SLOW:n=14;break;default:n=12}return n}(r);return w===this.decode.FLATE_DECODE&&(x="/Predictor "+A+" "),x+="/Colors "+d+" /BitsPerComponent "+o+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(u&&this.__addimage__.isArrayBuffer(u)||this.__addimage__.isArrayBufferView(u))&&(u=this.__addimage__.arrayBufferToBinaryString(u)),{alias:s,data:n,index:i,filter:w,decodeParameters:x,transparency:c,palette:p,sMask:u,predictor:A,width:l.width,height:l.height,bitsPerComponent:o,colorSpace:a}}}}(HB.API),function(t){t.processGIF89A=function(e,n,i,s){var r=new ez(e),a=r.width,o=r.height,l=[];r.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:a,height:o},d=new iz(100).encode(c,100);return t.processJPEG.call(this,d,n,i,s)},t.processGIF87A=t.processGIF89A}(HB.API),sz.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var e=0;e<t;e++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:s,green:i,blue:n,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},sz.prototype.parseBGR=function(){this.pos=this.offset;try{var t="bit"+this.bitPP,e=this.width*this.height*4;this.data=new Uint8Array(e),this[t]()}catch(t){dB.log("bit decode error:"+t)}},sz.prototype.bit1=function(){var t,e=Math.ceil(this.width/8),n=e%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,s=0;s<e;s++)for(var r=this.datav.getUint8(this.pos++,!0),a=i*this.width*4+8*s*4,o=0;o<8&&8*s+o<this.width;o++){var l=this.palette[r>>7-o&1];this.data[a+4*o]=l.blue,this.data[a+4*o+1]=l.green,this.data[a+4*o+2]=l.red,this.data[a+4*o+3]=255}0!==n&&(this.pos+=4-n)}},sz.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s<t;s++){var r=this.datav.getUint8(this.pos++,!0),a=i*this.width*4+2*s*4,o=r>>4,l=15&r,c=this.palette[o];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*s+1>=this.width)break;c=this.palette[l],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}0!==e&&(this.pos+=4-e)}},sz.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<this.width;i++){var s=this.datav.getUint8(this.pos++,!0),r=n*this.width*4+4*i;if(s<this.palette.length){var a=this.palette[s];this.data[r]=a.red,this.data[r+1]=a.green,this.data[r+2]=a.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}0!==t&&(this.pos+=4-t)}},sz.prototype.bit15=function(){for(var t=this.width%3,e=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,s=0;s<this.width;s++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(r&e)/e*255|0,o=(r>>5&e)/e*255|0,l=(r>>10&e)/e*255|0,c=r>>15?255:0,d=i*this.width*4+4*s;this.data[d]=l,this.data[d+1]=o,this.data[d+2]=a,this.data[d+3]=c}this.pos+=t}},sz.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var s=this.bottom_up?i:this.height-1-i,r=0;r<this.width;r++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&e)/e*255|0,l=(a>>5&n)/n*255|0,c=(a>>11)/e*255|0,d=s*this.width*4+4*r;this.data[d]=c,this.data[d+1]=l,this.data[d+2]=o,this.data[d+3]=255}this.pos+=t}},sz.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=e*this.width*4+4*n;this.data[a]=r,this.data[a+1]=s,this.data[a+2]=i,this.data[a+3]=255}this.pos+=this.width%4}},sz.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*n;this.data[o]=r,this.data[o+1]=s,this.data[o+2]=i,this.data[o+3]=a}},sz.prototype.getData=function(){return this.data},function(t){t.processBMP=function(e,n,i,s){var r=new sz(e,!1),a=r.width,o=r.height,l={data:r.getData(),width:a,height:o},c=new iz(100).encode(l,100);return t.processJPEG.call(this,c,n,i,s)}}(HB.API),rz.prototype.getData=function(){return this.data},function(t){t.processWEBP=function(e,n,i,s){var r=new rz(e,!1),a=r.width,o=r.height,l={data:r.getData(),width:a,height:o},c=new iz(100).encode(l,100);return t.processJPEG.call(this,c,n,i,s)}}(HB.API),HB.API.processRGBA=function(t,e,n){for(var i=t.data,s=i.length,r=new Uint8Array(s/4*3),a=new Uint8Array(s/4),o=0,l=0,c=0;c<s;c+=4){var d=i[c],p=i[c+1],u=i[c+2],h=i[c+3];r[o++]=d,r[o++]=p,r[o++]=u,a[l++]=h}var m=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:m,index:e,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},HB.API.setLanguage=function(t){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]&&(this.internal.languageSettings.languageCode=t,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},KH=HB.API,ZH=KH.getCharWidthsArray=function(t,e){var n,i,s=(e=e||{}).font||this.internal.getFont(),r=e.fontSize||this.internal.getFontSize(),a=e.charSpace||this.internal.getCharSpace(),o=e.widths?e.widths:s.metadata.Unicode.widths,l=o.fof?o.fof:1,c=e.kerning?e.kerning:s.metadata.Unicode.kerning,d=c.fof?c.fof:1,p=!1!==e.doKerning,u=0,h=t.length,m=0,f=o[0]||l,g=[];for(n=0;n<h;n++)i=t.charCodeAt(n),"function"==typeof s.metadata.widthOfString?g.push((s.metadata.widthOfGlyph(s.metadata.characterToGlyph(i))+a*(1e3/r)||0)/1e3):(u=p&&"object"===mV()(c[i])&&!isNaN(parseInt(c[i][m],10))?c[i][m]/d:0,g.push((o[i]||f)/l+u)),m=i;return g},XH=KH.getStringUnitWidth=function(t,e){var n=(e=e||{}).fontSize||this.internal.getFontSize(),i=e.font||this.internal.getFont(),s=e.charSpace||this.internal.getCharSpace();return KH.processArabic&&(t=KH.processArabic(t)),"function"==typeof i.metadata.widthOfString?i.metadata.widthOfString(t,n,s)/n:ZH.apply(this,arguments).reduce(function(t,e){return t+e},0)},QH=function(t,e,n,i){for(var s=[],r=0,a=t.length,o=0;r!==a&&o+e[r]<n;)o+=e[r],r++;s.push(t.slice(0,r));var l=r;for(o=0;r!==a;)o+e[r]>i&&(s.push(t.slice(l,r)),o=0,l=r),o+=e[r],r++;return l!==r&&s.push(t.slice(l,r)),s},JH=function(t,e,n){n||(n={});var i,s,r,a,o,l,c,d=[],p=[d],u=n.textIndent||0,h=0,m=0,f=t.split(" "),g=ZH.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?f[0].length+2:n.lineIndent||0){var b=Array(l).join(" "),v=[];f.map(function(t){(t=t.split(/\s*\n/)).length>1?v=v.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):v.push(t[0])}),f=v,l=XH.apply(this,[b,n])}for(r=0,a=f.length;r<a;r++){var y=0;if(i=f[r],l&&"\n"==i[0]&&(i=i.substr(1),y=1),u+h+(m=(s=ZH.apply(this,[i,n])).reduce(function(t,e){return t+e},0))>e||y){if(m>e){for(o=QH.apply(this,[i,s,e-(u+h),e]),d.push(o.shift()),d=[o.pop()];o.length;)p.push([o.shift()]);m=s.slice(i.length-(d[0]?d[0].length:0)).reduce(function(t,e){return t+e},0)}else d=[i];p.push(d),u=m+l,h=g}else d.push(i),u+=h+m,h=g}return c=l?function(t,e){return(e?b:"")+t.join(" ")}:function(t){return t.join(" ")},p.map(c)},KH.splitTextToSize=function(t,e,n){var i,s=(n=n||{}).fontSize||this.internal.getFontSize(),r=(function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var a=1*this.internal.scaleFactor*e/s;r.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/s:0,r.lineIndent=n.lineIndent;var o,l,c=[];for(o=0,l=i.length;o<l;o++)c=c.concat(JH.apply(this,[i[o],a,r]));return c},function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var e="klmnopqrstuvwxyz",n={},i={},s=0;s<e.length;s++)n[e[s]]="0123456789abcdef"[s],i["0123456789abcdef"[s]]=e[s];var r=function(t){return"0x"+parseInt(t,10).toString(16)},a=t.__fontmetrics__.compress=function(t){var e,n,s,o,l=["{"];for(var c in t){if(e=t[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=r(c).slice(2)).slice(0,-1)+i[n.slice(-1)]),"number"==typeof e)e<0?(s=r(e).slice(3),o="-"):(s=r(e).slice(2),o=""),s=o+s.slice(0,-1)+i[s.slice(-1)];else{if("object"!==mV()(e))throw new Error("Don't know what to do with value type "+mV()(e)+".");s=a(e)}l.push(n+s)}return l.push("}"),l.join("")},o=t.__fontmetrics__.uncompress=function(t){if("string"!=typeof t)throw new Error("Invalid argument passed to uncompress.");for(var e,i,s,r,a={},o=1,l=a,c=[],d="",p="",u=t.length-1,h=1;h<u;h+=1)"'"==(r=t[h])?e?(s=e.join(""),e=void 0):e=[]:e?e.push(r):"{"==r?(c.push([l,s]),l={},s=void 0):"}"==r?((i=c.pop())[0][i[1]]=l,s=void 0,l=i[0]):"-"==r?o=-1:void 0===s?n.hasOwnProperty(r)?(d+=n[r],s=parseInt(d,16)*o,o=1,d=""):d+=r:n.hasOwnProperty(r)?(p+=n[r],l[s]=parseInt(p,16)*o,o=1,s=void 0,p=""):p+=r;return a},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},d={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(t){var e=t.font,n=d.Unicode[e.postScriptName];n&&(e.metadata.Unicode={},e.metadata.Unicode.widths=n.widths,e.metadata.Unicode.kerning=n.kerning);var i=c.Unicode[e.postScriptName];i&&(e.metadata.Unicode.encoding=i,e.encoding=i.codePages[0])}])}(HB.API),function(t){var e=function(t){for(var e=t.length,n=new Uint8Array(e),i=0;i<e;i++)n[i]=t.charCodeAt(i);return n};t.API.events.push(["addFont",function(n){var i=void 0,s=n.font,r=n.instance;if(!s.isStandardFont){if(void 0===r)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");if("string"!=typeof(i=!1===r.existsFileInVFS(s.postScriptName)?r.loadFile(s.postScriptName):r.getFileFromVFS(s.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+s.postScriptName+"').");!function(n,i){i=/^\x00\x01\x00\x00/.test(i)?e(i):e(mB(i)),n.metadata=t.API.TTFFont.open(i),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(s,i)}}])}(HB),function(t){function e(){return(lB.canvg?Promise.resolve(lB.canvg):n.e(5).then(n.bind(null,"DXPr"))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}HB.API.addSvgAsImage=function(t,n,i,s,r,a,o,l){if(isNaN(n)||isNaN(i))throw dB.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(r))throw dB.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=s,c.height=r;var d=c.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,c.width,c.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},u=this;return e().then(function(e){return e.fromString(d,t,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(t){return t.render(p)}).then(function(){u.addImage(c.toDataURL("image/jpeg",1),n,i,s,r,o,l)})}}(),HB.API.putTotalPages=function(t){var e,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var i=1;i<=this.internal.getNumberOfPages();i++)for(var s=0;s<this.internal.pages[i].length;s++)this.internal.pages[i][s]=this.internal.pages[i][s].replace(e,n);return this},HB.API.viewerPreferences=function(t,e){var n;t=t||{},e=e||!1;var i,s,r,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(a),l=[],c=0,d=0,p=0;function u(t,e){var n,i=!1;for(n=0;n<t.length;n+=1)t[n]===e&&(i=!0);return i}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===t||!0===e){var h=o.length;for(p=0;p<h;p+=1)n[o[p]].value=n[o[p]].defaultValue,n[o[p]].explicitSet=!1}if("object"===mV()(t))for(s in t)if(r=t[s],u(o,s)&&void 0!==r){if("boolean"===n[s].type&&"boolean"==typeof r)n[s].value=r;else if("name"===n[s].type&&u(n[s].valueSet,r))n[s].value=r;else if("integer"===n[s].type&&Number.isInteger(r))n[s].value=r;else if("array"===n[s].type){for(c=0;c<r.length;c+=1)if(i=!0,1===r[c].length&&"number"==typeof r[c][0])l.push(String(r[c]-1));else if(r[c].length>1){for(d=0;d<r[c].length;d+=1)"number"!=typeof r[c][d]&&(i=!1);!0===i&&l.push([r[c][0]-1,r[c][1]-1].join(" "))}n[s].value="["+l.join(" ")+"]"}else n[s].value=n[s].defaultValue;n[s].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var t,e=[];for(t in n)!0===n[t].explicitSet&&("name"===n[t].type?e.push("/"+t+" /"+n[t].value):e.push("/"+t+" "+n[t].value));0!==e.length&&this.internal.write("/ViewerPreferences\n<<\n"+e.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},function(t){var e=function(){var t='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(t)),i=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),r=unescape(encodeURIComponent("</x:xmpmeta>")),a=n.length+i.length+s.length+e.length+r.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+a+" >>"),this.internal.write("stream"),this.internal.write(e+n+i+s+r),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};t.addMetadata=function(t,i){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",e)),this}}(HB.API),function(t){var e=t.API,n=e.pdfEscape16=function(t,e){for(var n,i=e.metadata.Unicode.widths,s=["","0","00","000","0000"],r=[""],a=0,o=t.length;a<o;++a){if(n=e.metadata.characterToGlyph(t.charCodeAt(a)),e.metadata.glyIdsUsed.push(n),e.metadata.toUnicode[n]=t.charCodeAt(a),-1==i.indexOf(n)&&(i.push(n),i.push([parseInt(e.metadata.widthOfGlyph(n),10)])),"0"==n)return r.join("");n=n.toString(16),r.push(s[4-n.length],n)}return r.join("")},i=function(t){var e,n,i,s,r,a,o;for(r="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n  /Registry (Adobe)\n  /Ordering (UCS)\n  /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",i=[],a=0,o=(n=Object.keys(t).sort(function(t,e){return t-e})).length;a<o;a++)e=n[a],i.length>=100&&(r+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar",i=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(s=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),i.push("<"+e+"><"+s+">"));return i.length&&(r+="\n"+i.length+" beginbfchar\n"+i.join("\n")+"\nendbfchar\n"),r+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};e.events.push(["putFont",function(e){!function(e){var n=e.font,s=e.out,r=e.newObject,a=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"Identity-H"===n.encoding){for(var o=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",d=0;d<l.length;d++)c+=String.fromCharCode(l[d]);var p=r();a({data:c,addLength1:!0,objectId:p}),s("endobj");var u=r();a({data:i(n.metadata.toUnicode),addLength1:!0,objectId:u}),s("endobj");var h=r();s("<<"),s("/Type /FontDescriptor"),s("/FontName /"+RB(n.fontName)),s("/FontFile2 "+p+" 0 R"),s("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),s("/Flags "+n.metadata.flags),s("/StemV "+n.metadata.stemV),s("/ItalicAngle "+n.metadata.italicAngle),s("/Ascent "+n.metadata.ascender),s("/Descent "+n.metadata.decender),s("/CapHeight "+n.metadata.capHeight),s(">>"),s("endobj");var m=r();s("<<"),s("/Type /Font"),s("/BaseFont /"+RB(n.fontName)),s("/FontDescriptor "+h+" 0 R"),s("/W "+t.API.PDFObject.convert(o)),s("/CIDToGIDMap /Identity"),s("/DW 1000"),s("/Subtype /CIDFontType2"),s("/CIDSystemInfo"),s("<<"),s("/Supplement 0"),s("/Registry (Adobe)"),s("/Ordering ("+n.encoding+")"),s(">>"),s(">>"),s("endobj"),n.objectNumber=r(),s("<<"),s("/Type /Font"),s("/Subtype /Type0"),s("/ToUnicode "+u+" 0 R"),s("/BaseFont /"+RB(n.fontName)),s("/Encoding /"+n.encoding),s("/DescendantFonts ["+m+" 0 R]"),s(">>"),s("endobj"),n.isAlreadyPutted=!0}}(e)}]),e.events.push(["putFont",function(e){!function(e){var n=e.font,s=e.out,r=e.newObject,a=e.putStream;if(n.metadata instanceof t.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var o=n.metadata.rawData,l="",c=0;c<o.length;c++)l+=String.fromCharCode(o[c]);var d=r();a({data:l,addLength1:!0,objectId:d}),s("endobj");var p=r();a({data:i(n.metadata.toUnicode),addLength1:!0,objectId:p}),s("endobj");var u=r();s("<<"),s("/Descent "+n.metadata.decender),s("/CapHeight "+n.metadata.capHeight),s("/StemV "+n.metadata.stemV),s("/Type /FontDescriptor"),s("/FontFile2 "+d+" 0 R"),s("/Flags 96"),s("/FontBBox "+t.API.PDFObject.convert(n.metadata.bbox)),s("/FontName /"+RB(n.fontName)),s("/ItalicAngle "+n.metadata.italicAngle),s("/Ascent "+n.metadata.ascender),s(">>"),s("endobj"),n.objectNumber=r();for(var h=0;h<n.metadata.hmtx.widths.length;h++)n.metadata.hmtx.widths[h]=parseInt(n.metadata.hmtx.widths[h]*(1e3/n.metadata.head.unitsPerEm));s("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+RB(n.fontName)+"/FontDescriptor "+u+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),s("endobj"),n.isAlreadyPutted=!0}}(e)}]);var s=function(t){var e,i=t.text||"",s=t.x,r=t.y,a=t.options||{},o=t.mutex||{},l=o.pdfEscape,c=o.activeFontKey,d=o.fonts,p=c,u="",h=0,m="",f=d[p].encoding;if("Identity-H"!==d[p].encoding)return{text:i,x:s,y:r,options:a,mutex:o};for(m=i,p=c,Array.isArray(i)&&(m=i[0]),h=0;h<m.length;h+=1)d[p].metadata.hasOwnProperty("cmap")&&(e=d[p].metadata.cmap.unicode.codeMap[m[h].charCodeAt(0)]),e||m[h].charCodeAt(0)<256&&d[p].metadata.hasOwnProperty("Unicode")?u+=m[h]:u+="";var g="";return parseInt(p.slice(1))<14||"WinAnsiEncoding"===f?g=l(u,p).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===f&&(g=n(u,d[p])),o.isHex=!0,{text:g,x:s,y:r,options:a,mutex:o}};e.events.push(["postProcessText",function(t){var e=t.text||"",n=[],i={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var r=0;for(r=0;r<e.length;r+=1)Array.isArray(e[r])&&3===e[r].length?n.push([s(Object.assign({},i,{text:e[r][0]})).text,e[r][1],e[r][2]]):n.push(s(Object.assign({},i,{text:e[r]})).text);t.text=n}else t.text=s(Object.assign({},i,{text:e})).text}])}(HB),function(t){var e=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]},t.addFileToVFS=function(t,n){return e.call(this),this.internal.vFS[t]=n,this},t.getFileFromVFS=function(t){return e.call(this),void 0!==this.internal.vFS[t]?this.internal.vFS[t]:null}}(HB.API),function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(t){var n,i,s,r,a,o,l,c=e,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},h={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),g=!1,b=0;this.__bidiEngine__={};var v=function(t){var e=t.charCodeAt(),n=e>>8,i=h[n];return void 0!==i?c[256*i+(255&e)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},y=function(t){for(var e,n=0;n<t.length;n++){if("L"===(e=v(t.charAt(n))))return!1;if("R"===e)return!0}return!1},_=function(t,e,a,o){var l,c,d,p,u=e[o];switch(u){case"L":case"R":g=!1;break;case"N":case"AN":break;case"EN":g&&(u="AN");break;case"AL":g=!0,u="R";break;case"WS":u="N";break;case"CS":o<1||o+1>=e.length||"EN"!==(l=a[o-1])&&"AN"!==l||"EN"!==(c=e[o+1])&&"AN"!==c?u="N":g&&(c="AN"),u=c===l?c:"N";break;case"ES":u="EN"===(l=o>0?a[o-1]:"B")&&o+1<e.length&&"EN"===e[o+1]?"EN":"N";break;case"ET":if(o>0&&"EN"===a[o-1]){u="EN";break}if(g){u="N";break}for(d=o+1,p=e.length;d<p&&"ET"===e[d];)d++;u=d<p&&"EN"===e[d]?"EN":"N";break;case"NSM":if(s&&!r){for(p=e.length,d=o+1;d<p&&"NSM"===e[d];)d++;if(d<p){var h=t[o],m=h>=1425&&h<=2303||64286===h;if(l=e[d],m&&("R"===l||"AL"===l)){u="R";break}}}u=o<1||"B"===(l=e[o-1])?"N":a[o-1];break;case"B":g=!1,n=!0,u=b;break;case"S":i=!0,u="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":g=!1;break;case"BN":u="N"}return u},w=function(t,e,n){var i=t.split("");return n&&x(i,n,{hiLevel:b}),i.reverse(),e&&e.reverse(),i.join("")},x=function(t,e,s){var r,a,o,l,c,h=-1,m=t.length,f=0,y=[],w=b?p:d,x=[];for(g=!1,n=!1,i=!1,a=0;a<m;a++)x[a]=v(t[a]);for(o=0;o<m;o++){if(c=f,y[o]=_(t,x,y,o),r=240&(f=w[c][u[y[o]]]),f&=15,e[o]=l=w[f][5],r>0)if(16===r){for(a=h;a<o;a++)e[a]=1;h=-1}else h=-1;if(w[f][6])-1===h&&(h=o);else if(h>-1){for(a=h;a<o;a++)e[a]=l;h=-1}"B"===x[o]&&(e[o]=0),s.hiLevel|=l}i&&function(t,e,n){for(var i=0;i<n;i++)if("S"===t[i]){e[i]=b;for(var s=i-1;s>=0&&"WS"===t[s];s--)e[s]=b}}(x,e,m)},C=function(t,e,i,s,r){if(!(r.hiLevel<t)){if(1===t&&1===b&&!n)return e.reverse(),void(i&&i.reverse());for(var a,o,l,c,d=e.length,p=0;p<d;){if(s[p]>=t){for(l=p+1;l<d&&s[l]>=t;)l++;for(c=p,o=l-1;c<o;c++,o--)a=e[c],e[c]=e[o],e[o]=a,i&&(a=i[c],i[c]=i[o],i[o]=a);p=l}p++}}},S=function(t,e,n){var i=t.split(""),s={hiLevel:b};return n||(n=[]),x(i,n,s),function(t,e,n){if(0!==n.hiLevel&&l)for(var i,s=0;s<t.length;s++)1===e[s]&&(i=m.indexOf(t[s]))>=0&&(t[s]=m[i+1])}(i,n,s),C(2,i,e,n,s),C(1,i,e,n,s),i.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n<t.length;n++)e[n]=n;void 0===r&&(r=y(t)),void 0===o&&(o=y(t))}(t,e),s||!a||o)if(s&&a&&r^o)b=r?1:0,t=w(t,e,n);else if(!s&&a&&o)b=r?1:0,t=S(t,e,n),t=w(t,e);else if(!s||r||a||o){if(s&&!a&&r^o)t=w(t,e),r?(b=0,t=S(t,e,n)):(b=1,t=S(t,e,n),t=w(t,e));else if(s&&r&&!a&&o)b=1,t=S(t,e,n),t=w(t,e);else if(!s&&!a&&r^o){var i=l;r?(b=1,t=S(t,e,n),b=0,l=!1,t=S(t,e,n),l=i):(b=0,t=S(t,e,n),t=w(t,e),b=1,l=!1,t=S(t,e,n),l=i,t=w(t,e))}}else b=0,t=S(t,e,n);else b=r?1:0,t=S(t,e,n);return t},this.__bidiEngine__.setOptions=function(t){t&&(s=t.isInputVisual,a=t.isOutputVisual,r=t.isInputRtl,o=t.isOutputRtl,l=t.isSymmetricSwapping)},this.__bidiEngine__.setOptions(t),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(t){var e=t.text,i=(t.x,t.y,t.options||{}),s=(t.mutex,i.lang,[]);if(i.isInputVisual="boolean"!=typeof i.isInputVisual||i.isInputVisual,n.setOptions(i),"[object Array]"===Object.prototype.toString.call(e)){var r=0;for(s=[],r=0;r<e.length;r+=1)"[object Array]"===Object.prototype.toString.call(e[r])?s.push([n.doBidiReorder(e[r][0]),e[r][1],e[r][2]]):s.push([n.doBidiReorder(e[r])]);t.text=s}else t.text=n.doBidiReorder(e);n.setOptions({isInputVisual:!0})}])}(HB),HB.API.TTFFont=function(){function t(t){var e;if(this.rawData=t,e=this.contents=new oz(t),this.contents.pos=4,"ttcf"===e.readString(4))throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new Ez(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new lz(this.contents),this.head=new pz(this),this.name=new vz(this),this.cmap=new hz(this),this.toUnicode={},this.hhea=new mz(this),this.maxp=new yz(this),this.hmtx=new _z(this),this.post=new gz(this),this.os2=new fz(this),this.loca=new kz(this),this.glyf=new xz(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var t,e,n,i,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var e,n,i,s;for(s=[],e=0,n=(i=this.bbox).length;e<n;e++)t=i[e],s.push(Math.round(t*this.scaleFactor));return s}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),0!=(32768&(e=i>>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(s=this.familyClass)||2===s||3===s||4===s||5===s||7===s,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var i,s,r,a;for(r=0,s=0,a=(t=""+t).length;0<=a?s<a:s>a;s=0<=a?++s:--s)i=t.charCodeAt(s),r+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/e)||0;return r*(e/1e3)},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var az,oz=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,i;for(i=[],e=0,n=t.length;0<=n?e<n:e>n;e=0<=n?++e:--e)i.push(this.writeByte(t.charCodeAt(e)));return i},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,i,s,r,a,o;return t=this.readByte(),e=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^s)+65536*(255^r)+256*(255^a)+(255^o)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*i+16777216*s+65536*r+256*a+o},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,i,s;for(s=[],n=0,i=t.length;n<i;n++)e=t[n],s.push(this.writeByte(e));return s},t}(),lz=function(){var t;function e(t){var e,n,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,i,s,r,a,o,l,c,d,p,u,h,m;for(m in u=Object.keys(e).length,o=Math.log(2),d=16*Math.floor(Math.log(u)/o),r=Math.floor(d/o),c=16*u-d,(i=new oz).writeInt(this.scalarType),i.writeShort(u),i.writeShort(d),i.writeShort(r),i.writeShort(c),s=16*u,l=i.pos+s,a=null,h=[],e)for(p=e[m],i.writeString(m),i.writeInt(t(p)),i.writeInt(l),i.writeInt(p.length),h=h.concat(p),"head"===m&&(a=l),l+=p.length;l%4;)h.push(0),l++;return i.write(h),n=2981146554-t(i.data),i.pos=a+8,i.writeUInt32(n),i.data},t=function(t){var e,n,i,s;for(t=wz.call(t);t.length%4;)t.push(0);for(i=new oz(t),n=0,e=0,s=t.length;e<s;e=e+=4)n+=i.readUInt32();return 4294967295&n},e}(),cz={}.hasOwnProperty,dz=function(t,e){for(var n in e)cz.call(e,n)&&(t[n]=e[n]);function i(){this.constructor=t}return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};az=function(){function t(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var pz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var e;return(e=new oz).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},e}(),uz=function(){function t(t,e){var n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b,v;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),d=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=t.readByte();break;case 4:for(u=t.readUInt16(),p=u/2,t.pos+=6,s=function(){var e,n;for(n=[],o=e=0;0<=p?e<p:e>p;o=0<=p?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,m=function(){var e,n;for(n=[],o=e=0;0<=p?e<p:e>p;o=0<=p?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],o=e=0;0<=p?e<p:e>p;o=0<=p?++e:--e)n.push(t.readUInt16());return n}(),c=function(){var e,n;for(n=[],o=e=0;0<=p?e<p:e>p;o=0<=p?++e:--e)n.push(t.readUInt16());return n}(),i=(this.length-t.pos+this.offset)/2,a=function(){var e,n;for(n=[],o=e=0;0<=i?e<i:e>i;o=0<=i?++e:--e)n.push(t.readUInt16());return n}(),o=g=0,v=s.length;g<v;o=++g)for(f=s[o],n=b=h=m[o];h<=f?b<=f:b>=f;n=h<=f?++b:--b)0===c[o]?r=n+l[o]:0!==(r=a[c[o]/2+(n-h)-(p-o)]||0)&&(r+=l[o]),this.codeMap[n]=65535&r}t.pos=d}return t.encode=function(t,e){var n,i,s,r,a,o,l,c,d,p,u,h,m,f,g,b,v,y,_,w,x,C,S,k,E,I,A,D,T,O,P,N,M,R,L,F,j,V,B,H,z,U,q,$,W,Y;switch(D=new oz,r=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(m=0,f=function(){var t=[];for(h=0;h<256;++h)t.push(0);return t}(),b={0:0},s={},T=0,M=r.length;T<M;T++)null==b[q=t[i=r[T]]]&&(b[q]=++m),s[i]={old:t[i],new:b[t[i]]},f[i]=b[t[i]];return D.writeUInt16(1),D.writeUInt16(0),D.writeUInt32(12),D.writeUInt16(0),D.writeUInt16(262),D.writeUInt16(0),D.write(f),{charMap:s,subtable:D.data,maxGlyphID:m+1};case"unicode":for(I=[],d=[],v=0,b={},n={},g=l=null,O=0,R=r.length;O<R;O++)null==b[_=t[i=r[O]]]&&(b[_]=++v),n[i]={old:_,new:b[_]},a=b[_]-i,null!=g&&a===l||(g&&d.push(g),I.push(i),l=a),g=i;for(g&&d.push(g),d.push(65535),I.push(65535),k=2*(S=I.length),C=2*Math.pow(Math.log(S)/Math.LN2,2),p=Math.log(C/2)/Math.LN2,x=2*S-C,o=[],w=[],u=[],h=P=0,L=I.length;P<L;h=++P){if(E=I[h],c=d[h],65535===E){o.push(0),w.push(0);break}if(E-(A=n[E].new)>=32768)for(o.push(0),w.push(2*(u.length+S-h)),i=N=E;E<=c?N<=c:N>=c;i=E<=c?++N:--N)u.push(n[i].new);else o.push(A-E),w.push(0)}for(D.writeUInt16(3),D.writeUInt16(1),D.writeUInt32(12),D.writeUInt16(4),D.writeUInt16(16+8*S+2*u.length),D.writeUInt16(0),D.writeUInt16(k),D.writeUInt16(C),D.writeUInt16(p),D.writeUInt16(x),z=0,F=d.length;z<F;z++)i=d[z],D.writeUInt16(i);for(D.writeUInt16(0),U=0,j=I.length;U<j;U++)i=I[U],D.writeUInt16(i);for($=0,V=o.length;$<V;$++)a=o[$],D.writeUInt16(a);for(W=0,B=w.length;W<B;W++)y=w[W],D.writeUInt16(y);for(Y=0,H=u.length;Y<H;Y++)m=u[Y],D.writeUInt16(m);return{charMap:n,subtable:D.data,maxGlyphID:v+1}}},t}(),hz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="cmap",e.prototype.parse=function(t){var e,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)e=new uz(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,i;return null==e&&(e="macroman"),n=uz.encode(t,e),(i=new oz).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e}(),mz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),fz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),gz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var s;for(n=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)e=t.readByte(),i.push(this.names.push(t.readString(e)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=(function(){var e,n,i;for(i=[],s=e=0,n=this.file.maxp.numGlyphs;0<=n?e<n:e>n;s=0<=n?++e:--e)i.push(t.readUInt32());return i}).call(this)}},e}(),bz=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},vz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,i,s,r,a,o,l,c,d,p;for(t.pos=this.offset,t.readShort(),e=t.readShort(),a=t.readShort(),n=[],s=0;0<=e?s<e:s>e;s=0<=e?++s:--s)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+a+t.readShort()});for(o={},s=c=0,d=n.length;c<d;s=++c)i=n[s],t.pos=i.offset,l=t.readString(i.length),r=new bz(l,i),null==o[p=i.nameID]&&(o[p]=[]),o[i.nameID].push(r);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(t){this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},e}(),yz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),_z=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="hmtx",e.prototype.parse=function(t){var e,n,i,s,r,a,o;for(t.pos=this.offset,this.metrics=[],e=0,a=this.file.hhea.numberOfMetrics;0<=a?e<a:e>a;e=0<=a?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,s;for(s=[],e=n=0;0<=i?n<i:n>i;e=0<=i?++n:--n)s.push(t.readInt16());return s}(),this.widths=(function(){var t,e,n,i;for(i=[],t=0,e=(n=this.metrics).length;t<e;t++)s=n[t],i.push(s.advance);return i}).call(this),n=this.widths[this.widths.length-1],o=[],e=r=0;0<=i?r<i:r>i;e=0<=i?++r:--r)o.push(this.widths.push(n));return o},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),wz=[].slice,xz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,i,s,r,a,o,l,c,d;return t in this.cache?this.cache[t]:(s=this.file.loca,e=this.file.contents,n=s.indexOf(t),0===(i=s.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,r=(a=new oz(e.read(i))).readShort(),l=a.readShort(),d=a.readShort(),o=a.readShort(),c=a.readShort(),this.cache[t]=-1===r?new Sz(a,l,d,o,c):new Cz(a,r,l,d,o,c),this.cache[t]))},e.prototype.encode=function(t,e,n){var i,s,r,a,o;for(r=[],s=[],a=0,o=e.length;a<o;a++)i=t[e[a]],s.push(r.length),i&&(r=r.concat(i.encode(n)));return s.push(r.length),{table:r,offsets:s}},e}(),Cz=function(){function t(t,e,n,i,s,r){this.raw=t,this.numberOfContours=e,this.xMin=n,this.yMin=i,this.xMax=s,this.yMax=r,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Sz=function(){function t(t,e,n,i,s){var r,a;for(this.raw=t,this.xMin=e,this.yMin=n,this.xMax=i,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],r=this.raw;a=r.readShort(),this.glyphOffsets.push(r.pos),this.glyphIDs.push(r.readUInt16()),32&a;)r.pos+=1&a?4:2,128&a?r.pos+=8:64&a?r.pos+=4:8&a&&(r.pos+=2)}return t.prototype.encode=function(){var t,e,n;for(e=new oz(wz.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)e.pos=this.glyphOffsets[t];return e.data},t}(),kz=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return dz(e,az),e.prototype.tag="loca",e.prototype.parse=function(t){var e,n;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=0===e?(function(){var e,i;for(i=[],n=0,e=this.length;n<e;n+=2)i.push(2*t.readUInt16());return i}).call(this):(function(){var e,i;for(i=[],n=0,e=this.length;n<e;n+=4)i.push(t.readUInt32());return i}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,e){for(var n=new Uint32Array(this.offsets.length),i=0,s=0,r=0;r<n.length;++r)if(n[r]=i,s<e.length&&e[s]==r){++s,n[r]=i;var a=this.offsets[r],o=this.offsets[r+1]-a;o>0&&(i+=o)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),Ez=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,i,s;for(e in i=this.font.cmap.tables[0].codeMap,t={},s=this.subset)n=s[e],t[e]=i[n];return t},t.prototype.glyphsFor=function(t){var e,n,i,s,r,a,o;for(i={},r=0,a=t.length;r<a;r++)i[s=t[r]]=this.font.glyf.glyphFor(s);for(s in e=[],i)(null!=(n=i[s])?n.compound:void 0)&&e.push.apply(e,n.glyphIDs);if(e.length>0)for(s in o=this.glyphsFor(e))n=o[s],i[s]=n;return i},t.prototype.encode=function(t,e){var n,i,s,r,a,o,l,c,d,p,u,h,m,f,g;for(i in n=hz.encode(this.generateCmap(),"unicode"),r=this.glyphsFor(t),u={0:0},g=n.charMap)u[(o=g[i]).old]=o.new;for(h in p=n.maxGlyphID,r)h in u||(u[h]=p++);return c=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(u),d=Object.keys(c).sort(function(t,e){return t-e}),m=function(){var t,e,n;for(n=[],t=0,e=d.length;t<e;t++)a=d[t],n.push(c[a]);return n}(),s=this.font.glyf.encode(r,m,u),l=this.font.loca.encode(s.offsets,m),f={cmap:this.font.cmap.raw(),glyf:s.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},t}();HB.API.PDFObject=function(){var t;function e(){}return t=function(t,e){return(Array(e+1).join("0")+t).slice(-e)},e.convert=function(n){var i,s,r,a;if(Array.isArray(n))return"["+function(){var t,s,r;for(r=[],t=0,s=n.length;t<s;t++)i=n[t],r.push(e.convert(i));return r}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+t(n.getUTCFullYear(),4)+t(n.getUTCMonth(),2)+t(n.getUTCDate(),2)+t(n.getUTCHours(),2)+t(n.getUTCMinutes(),2)+t(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(s in r=["<<"],n)a=n[s],r.push("/"+s+" "+e.convert(a));return r.push(">>"),r.join("\n")}return""+n},e}();let Iz=class{constructor(t,e,n,i,s,r,a,o){this.fb=t,this.el=e,this.document=n,this.renderer2=i,this.waitlistservice=s,this.router=r,this.route=a,this.findhelpService=o,this.markers=[],this.gmarkers=[],this.orgIds=[],this.inc=0,this.submitted=!1,this.selection=[],this.selection2=[],this.selection3=[],this.scategory=[],this.scategory2=[],this.services=[],this.latitude=17.4405,this.longitude=78.4228,this.catObj=[],this.insurance=[],this.opa_result=[],this.city_center=[],this.radius=[],this.count=0,this.listObj=[],this.selected=[],this.left_margin=50,this.height=120,this.line_height=20,this.break_height=20,this.cntr=0,this.me=0,this.ml=0,this.bsas_funded=!1,this.need_care=!1,this.mental_health=!1,this.show_pregnancy=!1,this.homeless=!1,this.treatmentwithmefamily=!1,this.veteran=!1,this.section_msg=!1,this.isSpanish=!1,this.submitted2=!1,this.fromSelfAssessment=!1,this.noTreatments=!1,this.loader=!1,this.mailLoader=!1,this.mail_submit=!1,this.frm_submit=!1,this.opaResultDmy=[],this.backendUrl=Xf,this.loadMap2=()=>{var t=new window.google.maps.Map(this.mapElement.nativeElement,{center:{lat:24.5373,lng:81.3042},zoom:7}),e=new window.google.maps.Marker({position:{lat:24.5373,lng:81.3042},map:t,title:"Hello World!",draggable:!0,animation:window.google.maps.Animation.DROP}),n=new window.google.maps.InfoWindow({content:'<div id="content"><div id="siteNotice"></div><h3 id="thirdHeading" class="thirdHeading">W3path.com</h3><div id="bodyContent"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p></div></div>'});e.addListener("click",function(){n.open(t,e)})},console.log("In constructor"),null!=this.router.getCurrentNavigation().extras.state?(console.log("redirected from self assessment page ",this.router.getCurrentNavigation().extras.state),this.incidentid=this.router.getCurrentNavigation().extras.state.id):void 0!==this.route.snapshot.params.id&&(this.incidentid=this.route.snapshot.params.id,this.fromSelfAssessment=!1)}get f(){return this.search_form.controls}get f2(){return this.login_form.controls}ngOnInit(){console.log("In ngOnInit"),this.logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS4AAABACAYAAACkyZrdAAASwElEQVR4nO2dC7QewwHHN4lHQiIu4nGoEkKpejRWtQ0NCfWod+8pgmprI3L0SBvO9aEVj/I50oM6SnDSqnLJot5K6iYU3XJFjlfDyfWOtyuIeCVu/3N3Znd2dmZ39vHd75H5n/M/yd2d9+73+2Zn5pu1rBqqq8vaAv4l/Cf4Qfgl+CO4j/or+H34Kfg2+Bx4X3h4LctlZGRkFBGgsw18AbyYA1RWfwHfBR8Lr13vOhkZGbWoAJjxcFcBWKncC18Eb1LvOhoZGbWIAJSd4fk1AJboZfDZ8Fr1rrORkVGTCgAZCl8MrxgAaPF+Gd6j3vU3MjJqMgEco+EFKYAhA++L4Efhe+Db4Qfo36/BXxeA10r4PHhQvdvCyMioCQRY7AV/KIHJEvivXf6A+rfg1VLSWQP+Lvxr2KWPglkBdit7dOycdt0a8I4D0wpGRkZNI0Bif3g5Bw7y/2vgHxbt/SD+MPgIeG5GeM3j4LUTfA28ZTk1NjIyamrRntaXFBZkLdYMeD1lBNdbG/42vAd8KPUEeCy8YUpe34FvzgAvMps5jMQFtHaGl8AObB4ljYxWVQEK28FLKSSuhUfFArne9vBv4X/Ar8N9Kf4YfhiuwvvAq0vy/T7crQmv61k8AGtfeCV8M1zeLKTttMFjNcN2wD2l5d3sMu0Rl2mT2glAGA6/CL8BT4icdL2N4FPhZzVAleZe+Fp4NyH/1br8FfU6s5fTWDwAqwPug7vhOGjzyHYmw339N1voPsmx8Hg5+bbD3VpphnnP6Y/XCCKwt53e0tqjUcTAE/Vozbit2iaj6b3Xp7wP/XbrDs7XQoDB1fRRbP3goOttDl8Bf1YCsGR+CJ4olGNP+IMUcJEV99uR8IDVYHgehdczpcDLvwgThWNymLALU6bCm2Gy4nx7qcAsUwyorSLbqVLwjOWOzer/UOqn0VptwivtPvTBXZu6AwJ7w9cFM4SutyY8A/6iAJQ+hxfDT8DzqT34RUm698KjufKM6Ur/KdFj8GASHrAaA3/OwWvdQg0ie0xUg6v8mzLsTXUrznc37Ieh3uVSw15+PD293thjnj+UoJ9e0TbJW/aBkN7TQfn3Az78Q+CpwWyh6+0Kv5ADVM/Bl8GHwWPgIcpMXW8QvBl8OHwx/Ay8HD65/5xfrs004DWJJQlYXUTBRXw3rM4/jwYeXKyLLXa/22mP0IArnnd7P2jix/OPMYVfIvnhUaRNVHVKj9eWK7/s+dQNXCMJvPr/cL0TM/ayXoXP7wdVUbneVvBZ8OXwcFq2LeG3E8C1mPUSSS8L/piD1zmFy8QrDVzR5/nuyBiI/w3NYNND/y+/sfyxgx7ucbBbON9Nu9/yD4P/aMPnJT7isN5aVeN4UlqkDHOpe/v/1WkPv17VoF5hOj1BGuHxbkscU1K1pZ9frxUdh2Rh+4KeExtrUdU53p4dwbX30xorOT+LSzccDwvDsDZhefbS/7dxYeL1VdUpvDas7Tu4dCbTdLqt8DE3Gibp+kXrwNJRT1RlBVfW65oovwd0cQZgPQ8fAycuPs0l11sD3o79CTCN45ZnyHwUCwtYzeTAtQLetbRypYNrMv2b3ehzuDDdwY3j35B9yg8L61GF8cJeV/RcHFx+eAYQlk9PpFxh2Dkpx5PSYgPOrM5tVggi3fbg84ymH6ZT5dJo5+LK21INczFteZ1V8mHAAOIDKLnsYv16hL87JOmo6pt2ncW8JlohqMdy14ovX9L1m2xFAdltiV+e0bJkBVf26yqVD60rNYG1FJ4CD04saMkCnE5JWtvFwgFUW3HgIl4IlwPXLI+K0Q85m6Hkv2X6LP4bLhq3XbiwYVj+20+e72Qr+i0eB5efRjsXRnU8Ka25yps5rT30w7CeQpX7ECW3ZVZwiXVOkv/hrnLw4ns5yfWT19evX1J91XHDa5OnvZOvH9+2PbFyxsNnBVf26yqV612gCa07LLIsog4ig/DwIwnwCh7LAKpHBHgdX0oh8oOrmnpho3FDcPHps8e2pHz94+wRY67kBuanrzs0jsvTEtPN0h76YdqtsJfTHQGHSrrgSqpzNEx8yUMIPb6secAlhonXN7lO5NrMsmRLLdLLk3T9Uno60vDE8sdJv5zd3N/Zr2tMrneCBrBWwKexQfN6qcv/XaTqkXE6CwdQnSaA61Xy+8bCBcgPLnaj602f+98+PLg6pDdHCDR+LI2NabBHAL4c/ONm+C2qPp6UVjxv3fbQa7PR1G30w8nGzJLbUr/HJa9zPF5VmpfYG8gHrvARTFVfddxwiUa+HlfS9YvPoiYp/FJTXRNyzdjwQ77rGpHr7WClr88iM30/0a5EjQVAXaUAV3ATkR9gC+AiPqZw5vnB1cZ9w1Tph6Uj4UJXLX7swz8WHTzl840+3oWD+fFxKRJ+IpdH2vGktKrBeR+0bKZT94MUvdnDiYge7u85QvyO1LYM022nYVmvhT2etFnh5Ee8zvFrwQbHxwrHxHbvtUKQtCWAggFzovC3vL6qOkWvTR5wJV0/dm4OPTc5dj9G82KPeb2W+Njtp8sPwOe7roHIz25c7+kUaH0C/0hZ4DoIgNpc0ev6hM2Mkt8twh8I4JqfO1P2jRH2euZwNxU/6zOLHpvFXUgWjs3gsNkh1cA8S6/Xiva6ZgkflCqXb7hiOcy7xwpnu9hsFr/6mx8rUx1PSmt08IEPPwDsZtNtjx4hfRamarHB4tD8ILa6LaOD6OGsVPhhZOnL6yy/JlWhLHMlH9DodQsnVVhbzbLC2Ts2Y8Zfz6T6xusUtukcru3m0mvAt/dkIf4soV7R66e+v5Jn9/x82cww81wrPnOa77oGcr3pGo+H+9EEh8CN1Ou6QdHr2paFIaCS9LrMThKNLP8DODE9YBOIny0zKkmuNwr+KAVc4WI727kI3jYhxQEVXeUvA9dBLAwgdYUEXCfXs9xGRkZF5Hp/SIHWjUFY0tOynX/WsbQxkRX+Xf7OqiK4prAwgNSZEnDdWc9yGxkZ5RVZke7vzpC0En5kf1jbWR9+Gz6uzqWOif4gXATXmew8IDVVAq4P6llmIyOjvHK9X6T0tn4ahLWdK+Gv4JF1LLFUXf4OqiK4ZrDzZO2WBFzEG9ex2EZGRrnkevcnQGt+EM52todXwF79CqsWILVpCrh+pQDX3nUstpGRUWaRR0DXW5kArnDzQNu5iU5LzqxjiRPVFe7UKttccJoCXEfWs8xGRkZZRRaSqqHFL8nflPa2CLiKL9yskQAqTwDX0ewcAFVVgGtKUppGRkaNJn/PdxW4TgzC2c7vrXCx5Q/qWOJEAVR3CeAKtoIGoG5RgGtaUpoyVTaYuia8ruA1BzodhB0miV/EWmOXCDdEEnftrPXPIqS/ToZ6jCgxX1kbx96RUKbIdchzXbj4I8pqD8QdWqT+5L4o+R4dQcB1lwJaX8HhW3xsZxEHroYdzO7yd2xl0CIvnQ0uGAD1XFk9LjTeNLhPcB4AFkoHYS+VxC/ipZr57iyJe3vW+mcR0n8lY12+gl+Hb4anwLk20VO08aFl10/Ic2me68LFXyjEXwHvlbMsM4rUn9wXJd+jCwm4nlOA68EgZ9vZmoMWcbEtkGsogOovHLieZccBp/XgrxXgyry0w4CrKcAlehl8Npzpx/UtAi7id+Fv5ChLQ4JrqQJcZwU5284UAVzFd1Wokbr8t2kzcF3GjgNOhyiglWtW0YCrKcHF/GglQ++rhcBF/Hgl45BGo4LrawW4wg+z7cwWwDU8S8UHUoDVnRy4ghlRwOm6BHB9M2s+BlxNDS4GL61xmhYDF/G1GdNqSHCpBubDcSz+nX6+M3c3B0qA1QIKrbe5nSGGwh8poEX2o8+8c2uDg6sKj8/pcZr5Ngq4JpEPkcTHwefCjyV8AE7VzLfVwEXsZEirFuCaVuAe3dWiOz6I0FoWydl23hfAVd6e7SWLW8d1PjsGMP08obeV6zeXDQ6u47OWI6saCFyp460Isxf8niQuGfNJ7XW1KLi+gHdLT6lm4BqfpT5xud77EnDxm40NEaBFPCkhxboJsNqCQuszeBNyjO7D9WwCuE7Pk5cBV/OAi8bdteLPrInxU7fMaVFwEZMZ1w010mpIcD0vAdfC4DyZQYyD68JimdZGgNUkCq7L2TGA6YgEaBHn2prHgKu5wEXj3ymJn7otcAuDi3genPjimEYF120ScC0IzsvBNa9YprURgDUb/hAeRf4GlIbBLydA68m8eRlwNSW4KpL4l2rEaxVwna+A1x9T0mpIcJ0rAdfzwXnbWUcCri/hmq6SzirAanW4Fw4GHQGm81J6W7nfQmzA1ZTgOnUVB1cbPEcBr58lpNWQ4NpXAq63ImH8bWxEeNX0wmUVgHUAfB/ZUJD8DSiNg1cmQOsd0iPLm58BV1OCa7YkfkUjXquAi/xcZjj8rOTcp/AOirQaElxDrfhbfchMY7jI1HZelYDr1mIZlyu6ieAG5P8A0kbwaym9relpaSZJAZwl9IbJ4iU1ANcieH4Ob50h36YCF8JtVvFXzovx99OI2zLgoue2kaRPvFjWnjUC18Kc9yi3htT17pH0unYMzodv2eBNemGpMxIDITqbuBP5P4C0FtydAq0XOgu+U1EBrrJcrwWoO2fIt2nAhTAbwwskcXvh1F53q4GLnj9YcQ/cDQ8S0qoFuPKau96ud4QEXEcF5/0XY4jgIp6RpTFrLQqtf6VAi3ifonkZcDU2uCr+7gi7VfwB6V5FfWdo5tty4KJhztVpl0YG1xrwuwK4rg7O284hCnAtgzfI0qC1EmA0En5UA1qXlJGfAVfDgCuvSQ9sqGa+rQquwfC9knBfwwdy4RoUXESud7oArleDc7Yzgs4kyuBVCgiKCDDaAV6kAa3H4cx7ZsmkANcz9CJl8TM1ANcD9HhWb5oh32YGF2nzTTLk25LgouHITGOPJOyHFTrmWSNw3ZLzHhUe7f03/bwnwGun4Lzt3KMA18p6/QSIrop34E81oPUSXNqYnAJcZlaxtnkWBRdZOf/nSmSAVyvflgUXDbsjvFwS/umKvwlgA84q8nK9KQK4woVptnO4AlzET8O5lxbkESC0PfywBrCI34C1Z8x0ZMDVVOB6AZ5ZyTBrKuTb0uCi4Scp2q6zGcA1CH6YAxd516K/0NR2Vrf89ymq4PU3lgwgsS68WXkFC0WBdT28QhNai+HSd7Mw4GoYcE0l9RVMdoY4CB5XybnrqZBvy4OLxlGNl77c2OAicr2t4Y85eJ0SnLOdaQngIv4NCwpYtMOz4f3gQvtzd/o/3TkafqBTvYupzPfDG9Cyr5eSTSYZcDUMuLQXoBbId1UB1+rwQwp4NTi4iFzvYA5cb/ePfxGRx0HbeSsFXiexZACN7eCn4F74BvgkeBc4cTan099mmax8nw7fBy/PACviL+HfdbJ9tmzne/DuZTaRAZcBV43zHHBw0XhkzZtsUXQTgIvI9U7l4FUNjpNXkyWDizjopQEeq8Ednf6GfTxc3oQXwPOpH+n0t595NyOkRP+bPE5y5d0H/nvZzWPAZcBV4zzrAi4ad3f4y+YEF1H4A2zyxp9dguO2c68GvK6Ag+0yyIwefAm8rCCYVPbgA+FBXDmn0h6i9jS/rhocXEV2QCVOnXVTgOu/FflupDpOXQ/YYOC6MGc999XMs27govGn1Bhc04rco+m5ut4ZFF6LuIH6TVMG6pk9eAyfHH0MJG+UfroEWH1Cx9H2jJTZdtqs8K3bR+g2cBY1OLiKOnUhqgJcRTxeI89GAldev6KZZ13BRdOQ/Si9LHAVsl7OrncY/Cl8S//MI5HtjEtYlCqurj8Nji38BHDGwCfDt3Ym75vFTNZrPUZ7bvt3irs72M4gi+zOGo7D1WzDQwMuA65VAFzkRbBPNC+4iFxvG9iDZwbHfEis1IAX8UvwsVbCq806/d8akgH9PeGD4EPhH8M2rH7c84G1vxV9qcdN/cdrJAMuA65WBxdN55sV+X79TQIuItcbAk/v/3kQk+2coAku5iXwWfBW2TKXiLxRm0wE2M7/hDxuTAJkGTLgMuBaFcBF05oAr2xecDG53nr9672YbKcdXp4RYMRPwhfAB1g6P9a2nVHwBPg8+D+K3t5VFnnBR42Fxluz4m/Mxjvz7yCLpoOwwyTxizq1/UiYkvNM3Pec5rmOJF7NetVcvmW28TqaeY4U4o3MWOYRZbaVJD3ttZkV/2dDpd6jeesRF/m9onzDwSz+CH4Kng/fAd8Od8EL4N6UuJ/39/6MjIyMMsnfn/66gvDKY9Jz096SxcjIyCgu29kbXjgAwCIvqj1lIB4NjYyMVgXZzmD4SPjxGgDrHfh0ONP2JEZGRkb6Ir8TtJ3L4TcLwIqsB7sFPtgiO1UYGRkZDYj8XtgO8BR4NvwQ/DqFEj/ITlblkwH5G+Az4D0MrIyMjJj+D1F1kw8Pu9nUAAAAAElFTkSuQmCC",this.bsas="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAA8CAYAAACuNrLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7tnQmYm1XVx3/nJpmlLVvboZSyI5QdFBQEQRDZRUEonUzZUUqbTNkEFEHL4gIKQidpBaQi0MmUfiI7iLIIioIg+yqICrSlDCB0mc4kued7zn2TzJbpTGs/ffzkPg8PMHnzLvc999xz/v//ORH+L8fEGZszd9prJFuOJtd8IxMuH0m85ufAW6D3gHwG4UEWJ27j9snLaGqZwOKaO8N/fzT+JTMgq/0qTdmd8NoIfi7ijsXrvTh3ArnUUUyasQ0q+zGiZiZLCjNQHYlyB1u1z+H5hmHE9VocN1BkM4TtyaW/utrv76MT9pqB1WcATS0n0dp8bTh7U8upCPejcihauBbik/mHv4S7p3XSlDkZZT2cn43KtrQ2/zJ8Z9LM3dDiWqicjnIXwsZorAXnvw9cRWvqgY/e3eqfgX/OAKZPd7w0elZ4UbHidnj/FvHaV6EwHK/ro4WXKSSWMi+1ZMi3PjH7STxvkGBfVD+HyJMoecT/FdgK5M+0pu8a8vk+OnCFM7BqBnDitWuwbOnHWPjes4wd/QOEPfB6E7jhaPEW5k57erXN+6QZa+LdZBAPuibKQwijUF1EW/ODq+06/6UnWjkDCCu+YRyiFyH6MO/rjaztctQOb2Lp+8OYd8Z7A87jhOx6JDiSIo8yN/XHlZ7vpswUkEMpFi/ExVKI/pWa/GVcd/o/VvpcK/yCCslMte3mFeLx87hhyqLVe73/47NZTKZ6HbAN4j5N69Qnel5x5QzgmB8Mp1A/DRgL+htwo3HFHHOmfbjCx2hquRzv3kB4EfRuhL/Tmt54lR69KTsJlTdRPYbiO1OJjRrNVu8uZPp0v0rn6/clM4Bs6VzyMHgPsiOwNvArcun9V891/kVnSWb/BPpx4HvE9RpuaH591QygMfN9nC7Hy7oU1z2TxMI9aJ326yE9RrKlFfg9yH7AoZXvCOYJPkTlCWIymxunvjyk81mckOBjFDkK9K8Ij9KabhvSd4dyUDKj4bDa4fVcd8JyGrO7I/o74F1y6dE0Zo7B6ebEpQXtWE6x7qxglLn0T0hmvhKCXOEN0K3INX+Dppk743UKopsDDzC+/eKKwU7KfAHPNEQKqN7LksTVIQ221Fn4GFqTYQnLWKPrbLx7i7bUNf0eYcL0GuKj7B52Q3QBjhbmND9LMrMt8AjgUD2U4ruPMG9618oZQDj56ItR+TOu+DrqDqTQdT7zzugYdC6T2UMR/TzKsaUVNMhX5FJyqXMGPa8dkLxqNL7QQIxv493XcTqKLRc9uVo8QdkAvByA+C6cHI5inq+NXDpJMnMvsB+e8bjCBxBfCDxGLr0rycwfgE8ABdD7UfddxLwlLyLcivINVGfR1txcyoiuCqmw8A5wAvBLcukDSWbuAQ4A3ZqCvkvcLcIWTGv6U/3mpzFzO8IXQK8H+TzC2hRlF8RfjMiXK8fHEutz4+QFK2cAlt4V/aO4+Dmo/oG2dHbQF5Rs+R7IVGDNgY+1SZHPVvn8AQqJw5k3+YNBrxMMoeUERN4DWQvVccQ7ZnDDWUuH9N2BDiobQO/PH6cghzIvtXAIBrBr5PE4EzgPOBjxu9I67TGSmRuBo0gwloLbBC3uzpKaa7n95A6S2feBYeTSNUM2gGiPfxJ4iFz6swFMU7kpGEOu+TiSmXeBGnLpNao97sAxwKFXDWNEPgWyFPQwCvLlfumcBYV9995k9grQU1fwAuyGiji/D17OQWVzhPHA6B5bQyut6UlVz9GUOSesmFz6+crnycy3SJANE+pi83m3872AOazS6BEDiB6IpxPnRqL6c4Q/0ZreeUgGIG6XEHAlMy8AW/e/Fbc3kp+Pxi4D7OXYvNj2WMOC9gRjR98xJA/QmDkc4WZE5tKaaqTbIMoeaRUNYGJmS2JyBV4vA+mgLWV7SfdozH6VGr2Z69N2gWg0ZqYhGHBjefoRfR56Ebj9UF+PYG7yXJy/Ae8MCLoP9DGQGyrfUdmj3zWjFf85kPtQLqEt9Q0QZe/pccaOOgNN3I8UziGWmNbX1a2ULfSNAaJUtB1IoLFNcYWrUNmfmNsK75ejGEbxKLn0bqUtYFcKMrbkLe4DPof6T9A27UmaMhvjdVOKNU8Sy98ZUmiRzwWgK1qtI0sGcDtwIF62QViC6N+rbgHd8cnt5NJfZFLLHnj5bVgkbelDV80DTMx8Akcj6m7HaQOtqZsrExhNxjUgI8mlLKiLxoQrNiIe/1uIlMH+/ZUek34Xylq0pT9T+VvTjE+h4eU/QyzRGF5YU+YiNLhMUGbRlrZtpPeYcFOM+KK3gDFhReYLhzPvtL9XDNCRpyivIcUO2qY9vFIvPrpwtSzAPNR6wMvkUlvTNDOH6kSQG0GHA18C/ljVABqzRyI6L7hor98nJhejjCHeMZ5C/Z+ALUHPQ+lE5AfhFoIHGGX7eTK6BiNAzTs8Hq7RcwTjH20GOArlZCTEEfsgHBIAs5XeAiZkRxDTE1kzMYslXZfQ2nxG98ufuRveG5mzPui+5Jrvr3xmbhguqDLhs8mlTyKZuZVCV2MIHiuTIt8hl4peuI3GzIkIEZwsei+tzQdUfYEWaUM5Gn6cXOpTwRPYsJhA3UbE9RHiwx8OUfzKDNvWXh5d7P8VfQ6kMWw9E2dthyv+FNgZ+Gbpn+eqGoCdyOIolbOBDUEex+tXmJt+hch9W/YSR7keYSdgJ+rr12Tp8g1wFtRVrvF14KUQaPYdycynge8CnwRsMUwnl74pmo+VigFUOOaHDeTrZoG8BPoobc23hRNNmDWOePGp0l4dRcM9RzJzd3BZPYfoabQ2X1m6kUuR4jW0nvpnktlfgL5BLm2RdfdozNyChNVkK3EmueZU9XcXVqmtltOjFMd9gbapd0b3edVaxLu+i8jTbNn+k9WSFayMAf2HHds7CIzc8gxEbiTfMIt5R3WvhGTG3NiRAcQRv30/8CeZMW+wT/T8Mo+YnN8rr7fV7eT10l53HcjbvVK+8t5enkDVfVYI9TZmNyQm4/D+FpBfkUsdU6GdDbOwlEuYwuLEKR/RywNbZf8sIJk5C9WXqSs8RGftjmhxHEV3P3G1/PFDxO8X0pleq7/FSJqzce5qPow9U3XCLThRtzmtqetLwMoR5NKWJkFTdh9UzdOMiOxnBe6/fN0ATBkv4J/Bux+RS08gmbkZ9Gbi8XvJFydA4XGoGV3xDv9hq/NfcbvdBpDMHBWi1bC/yz0U3K3Eiy8ici7ev4PIJaAHgvs4vvhYEHoEl2sYv55Hvuss4jUzQLeofuNSHwIV9M2Sl9gY1IJFe+N98AB5EvyHSOzMvth15dyNMz6OOIM5z2ONmku5enKeppZforIeufSOAa1DLVB8l4LewbxpBrR8NPrMQLcBRFH8qag+RlvzXMr5vMgPUf80nYX7qKs5A9WvQaKB3GRLi6Jh7ODskxaXcl6H6D8Hy6rbMWAP6vdaYSSfzLwKGI4wmdb01SSzvwL9POJGApvh/UkBkFkz0RYMZGWGZRtu0Y6IrkndiD+sdDC5Mtf6Nx4bGUDSXLi7EPzTeHczc1Mvksw8A2wPzEbc11BvwMTuwFPk0kYu9B/JlmchYOIHDfhMhi9YBLyiUY7yy7nzQMcmM5aGGizrEX8A6iwoPDjk58YrmFdTDkJkg14p62ATnmw5AsQQzzGlQ98EPa5X1lP1+TM/Bib3CkoHu1aY/4xF8Lv8O4imbg/QmEnheJZ84ukAwyYzhm+bC7WJ2Apl3/AswmG0pm+tbgAZA4s6yaWjYNBy1DEjt+2lDzAjEXcZrSmjKKuPZEszyAxisgU3pmyVDzyS2a+Dfg8w+Nfy/gOpza8TaGJLvyIksxi2m76xS9WXeMUYiBtjZt8zSdoIRAyvX8T49s1XmFUkV9kAbN4+QS5dNxR7WZ3HRAbQmDkPkTVAY+TSXwt/S2aMqdsF5NfBrYZRwpcHugMjJdDRtDV/GiOR3Kh98e/eR2KdjUP6ZyPQub4GH/8jc6c8V92QWr4JcjHx2JhB+feTr0qwuDAN9IeBgDFUri29BY2ZXXHuFaS4DV3uNeLsRC5lBMuKR1PmYJQ7UX5XAa4mZvdneN3vwzbXlD0W9SfiuYS5zXeTzN4AfkMKY/YlvsgWy2SibXMSSBfK6bSlf0EErlkmtVnJuEwoe0vA/IU9UepBH0LlIha2/4b1R5+Ncm5AH4WH8fKtgIwmbW7YD5zh/T8CYx0lHZ7Ntq3Y299GxMi3tVBuYlj918J9W3qcyLegAW4eAXK5ZWFCwPwLVyEsRIpXMmfamzRl9sLLPohOD7g9xIA5jG8/dpAVMBfYgVw6wr6brtwCYmPxsb/TNsXQKjD6U9kBzxLa0jOqG0CJT8ilB9crGAhi+7SXjyFkAnJWiKdJFL5Pa2oKBmwldC+QYwNWPtg4pmVTCmIBbnRtS3u93obUXBDinjLgpZxEW3o2jZk/B9p2jUQNi/MtwQAIOoKrS56jiwXtDYwdbcauiG9G5USQ3RH3cdTnSsF3vGIAFkiLzEKwoPouVKKYqtA+hvjo2TaLwGsgFgRPAJ4nl96OiIQzwMhodduyzwTNkWtuoil7F6oHoaSDR7TzK2nhmFnrkvdTKMqDDO98OrjOZOZJxB2BenO/gupFOH2IfOJF5k0xGLb/SGaM1DDU8B/k0uv0OsCQs63ffiEYT5hAGQ5qDJXt2f1HU7YN1QPJpU2EseJx9MzxFP1DxGPbUyhej+i1FN0HOL2UXHonbPU66UT9SD7wdw2JJApeKqyuhh4Xf4IF7bsxdrStygtYoQHo4WF1l4Et1U8iZhTUBdJG9Wm83BJiLRvRdrsOuXRt+H/zaku7tqIon8TpRqjYVrQ+KhshYbubhONQ5qTvIJmJxDi59JokM28D6wb+IMRx2amIrk3eXxPoZHgPUTNSQ7yNdn/F5E+nUfBzSLhptKbPp3HWJojx/hivbLhyLc6fjnd/xMf2q+q27UJoN01cFlKUZ89SNmLtJFwn+eIeOI1He7PUsTh+Tz/cIJmxyRpJLm2ChhWP439aR+fSjogLj11GYdFLJBq+AzqV1rTh9NE4OvsxCroxbWkjZwYfkTu1YHcXRC4HjMT6bEhZVS8EPZFc809JZl8JqW/E4GUiD1AygGTLz4LnsZfldRsQI8q6vVoZ7OprAI0tdk1DNu3YOQGAgw0CESXFi0seYHdy6d+Hly6MYMv2NSoQdpmIKj9lCPLF9AjLUO2W44lbJjRlzKKNWj0qULCRQsWYqNuJ66nk4wrF+xE2peDX7ZdPH/+jtelKvIUyrDKr5Si8cgPZM8N+5HTTSOErY8nH74OlMVztLsxNWSTfPZKZNxF5htbUwYO/qbCCLGjbBKSJXCqHfd9ka7l0DLu/zsRshPmgT1ak6wOduDH7bURNoXN6AK0i8skyom2A7UJ6avGJpZ4GNb882lbWqD4GUDKOEjpqL9q5TfC8Eoxf2TvyIjKdttQFJQ8wivHttcFLRnjG/iAHhb29vM0EJrL4HZQmnH6GOc2/K636Ncml66mkxX4/aoqP05l4HGQ+tcP2p3Op6SsWs6B9PR6cXoi8g09IIDa0MI5E4g3mnPICjS1NiJjVFXB+FD52B+ieJSKiP69d5qODW+F3Eb3ZJ1OwvUmw7WRDvLu3QvNawBXYtB4R+oTL64nXLAvZR2s6PSQDaMzMDLAvvAJyEqh5kHfIpdft9X2TZvURRfY7v3kK21KQMSC/A10/whpKfLtJtSLaen64RtBHsm4PAzgaMLWUreDjgGdZktiNEfm/BNJH+GXJANYHtze5qb8hmbEFaB7iSUQvRU3FE/Z2E5WYjvIgkLHEdTOKgU0cwAAq92YEmL3wMSEgbU2dRaSjMA/0GMoTYb5ETzNS5QbUn4OTY2hNX0JjZl+ESOunWIFHROZYQJFLmyvsPZqyx6NqzJgN8ybnQmD57GLRaJyxJ07WQ8UMaC3Gt5/FK6M3RGlGSFD0syupYhnhE2mmNWUudfARsXOmdq0JEx7wC5lHoSEZ+Ixk5hsIHlUl13zpoCeMCKXJqOwZgmMrYyuMuSWcK1JG27xYtnAXoiaQ/VTIAmoWHUQhBFhW2XQkqs+RiF8UMhlDTGPedH57I1KHJxuyAxuRi7bI3fb7mUj+NUgYprAEkSvQopFs++H1JJxYILsfSCowkwH+DiqiiIhrnHkIzjcFdRTuKZbEz61ssU2ZRpDDUK0J85NL5SwG+CHoT1A5krb0xSFqjqsFeibnMsBmS5TXqRu+TVU0LEpvIqmxcfiCcf6vkkt3a9HsplT/EgKTpkwGr2NxjEDFVDu3BTFleZQNKuIchiY6jcQru/cwxA+IuV3xum3QMiRtC9J6RN4hl7pqUAP4LzpAsCja61G4+E9KogxLmTbrMZkWMZ4Mupy2dLdip+ckJTOLK0RO5BYtKu12v6ZTE32eOdNewNC7Be0PlPahr+P5U68YINmSDXrCQteoFdYZ9Lp+y9nEam6gkDcD/FKAkF38uZBi2cowlhN9n3zxzSGJWf+rDKDvwxqtWzv8YLqWHotiq2UhMbd32Bdz6TI02mcb6KHkKX9iitky5NvYMpGYPkuiOJ+l6sKLDXt93RaIOlpTpjOIRjLzFMgwcqkth/wektlLEP0AJzdRtPQvdQTJ7C0hcv9P0/EP+aFXz4HV6OCnEL0/KIGSmWtB2tGgR8vg/IYBKKo2wrGc2P2RfI1cyrABsL3HaFvVPMWYILEunN8L9RtWmDw77tjMKPK0D4o49jPa7E2IbhIk00G44qeAfnOlAsnVM5//cWepZgCGTB2FykRq9AE62RjhW8G1llOPgR7ThKKi50fSJx6scAKWWuL/goZ9f1eQL6N6J+J2RGQarVNNDk0lAymDHEOdzmTm0ZCv19evzbLl25eKOCwoiQCZVRmW/iXetmcxhPyBEK1XGyH+0CaQx/oVrVo+7/gC6n5NgVdJ+FPwvBjY1hUOU2ZlNkHkwyC6bZq5DhRPBfeXkJquxtHfAKLy7VKgZJFmaibJjOnMNmQgpW7fG4qi8mcpFDYOgs2QWummYe9fb9ROKA242FtIcZ+KZCy4/yAVO4BcuhtTGMrDJlvuADkErwfjxOBrK554gfHt26+yJKyp5QBUytzBwCVhZdykWtra2HJKgFyRb6DFX0b6BbmFXOrwFT5WORBW/VKQ5FmjDecsjb6fXDoi5VbT6G8AUR5uwEppv5cvQlDrmJZ/5KB1gOUbS2YMcfsNufSF4U8TWw7C6+PE3bqoNoDEAiZdrvA1K1dfLi59ikLsCwPCzj0fPuo6YniBCVJNg2+AjZ1nr161Ays7YWVmL+JClPr6kYFUKQ/jDLokQZwtA3DW0wCsEUZX7D1i/rCKARS4LngAlRcqgk1LKV9sGB/moRwvRSnhaRGpxDcpxm6jfvmbdMVP6+UBAkDVvi2+sLQizgmLaOZn0cKHDBv+KsuW7sTS2idWJImrTrZY0CYlAgIMwNgsgBTOH4djSd8Cw6pzG62MayuB48Ts1jh14WG9DCORWEAhvxFtaXPf5ZqCMuZgf3mAXNoUSiseTZk5aOEMiBsw48IqibmpFIpr0Nb8+GBfr/55EJ2a4MWe3WrpLMWcRFuz1TiapzKSxdhHsw1TC29XMYCmzJWlMjL70BDEHap6gMhLGq1u7KCNB6nNH05n/MoSJlC+tdvx/vReHiCq+TMRrm21hhg/TKHzsBBcJzMFhKdLyOxWARAS2btXoN3joasbgPH46zX8GFFT1JSek6uDUlj0sFCCNJRhlLIwm9b0rJBu5r1CrAZXHIu41yjKsAq3kMwYMWKNJHapnHowNnBSy/Z4+V2JCLHyqNcZ335kVMLuvz6wqniQmzfgStxDwIURdM1FJeDkqBJOYvBvB55PEyMVXrh5gHzh0lAbYbhJsbA38bgpl4/qZwCFhiOJLzJ20HQWl+DkpZB2BxxFZ6B8J9T0KeejsVsg39FtAKnPk8yap9sCNdQ1cAzWbeVa2lJfCQZg7K3It1DdocQjfI9c2kC6fqO6ARiDFpNXUX8YYA9hK+tsVMYHoxATd0611THwMJdeVGOzrifesTldtesRjzdQ0DVxOjaqfA31bL+iKWtB4YURpRlw/HHhxM5vG7CDgUYAsTiVXDqB9Q/Ysv2q6OWHIsxZVStph2S4JTrauU9TLBYQMQKlg0L72sQadikFmXeRSx9CssW4gV8EA7DngbkoV9OWnkxTNo0a+9YnBoj7MyiIzd+SSs1eY8veuNjiUjmZ0eTNlSC2ZwygcnyoEopqBLaO0ukaa6o1n1x6XMkA3gs4TDJ7YCjHLxvHgAZgJ0nUHhT44lzqZCbMHENM/4eF7Xuz3qh1EZmNSCuoYQP7InLcoNGo4fN1+XPpTEQxgNUARJM1OuyDgRFkW/Jd1xGvMWz6FGryz9CZMKGooZAdLEmMHnD/CkKQvK1EE7GsGSDaV0YfiGJuupYEG9DhHXHZiyU1d6+UNDyZMQW0VQL1HlZto7q8VJoWlV71DAKt6MNWssiPgxZhoCDQhKxgHqCbOjcIPNH5SihsTWYGNoBY4miKedvuLJbYtkcl0/ISIWQxy1vk0huV1NYm1/8puXSPFL37scqawBPA1SP+tYCYhSrWlgdBlgcuutgwn8SiDVAsfbHKlHPJpY2Xrj4iPP/hsBKNYQzqIrmQQvwhXOfo3kFLi20tS4M2IMK1yxHy5RXZeN+rWGk4eaNq7600m0hmjYadFekXrG4wbVIxoSlryppxiLtiUK9l14mo2D+GBhjWws5GYO9MuazXEItdRtG/FAQZhfZtiI26DJF08AAe8wS/DqRYsWs/4rU/i0idPh7gH8VG1namAVi7RLuPCp7DGFir70tmTItggeBXA0zeNwtIZuz640L9YUy3DbWWZSl9MrMKBjBhRgMJdx7e0DR/Q5BvmUsSsVYpeZBLqR12MZ1LrejT9H4XRpU379xSNc0yiVnQ0jEqtHprmrkZ6n+DxvasKINsYoMUXb5KLH4sxbwRSuVSsJcodH2iKmxrK39J/g/4wgVI3IIoY8xMJVMqFdPnqB3xyaixQ8spONka8ecPPXspqWpMD1HWDnSnhO+SSzXQmDXj3qNkl6bn2z0YwPz200rKH6sltBF9Vi0NjAJtY11NbVUeEcdf8Rzhz0/g/cQ+QaCJYQ2vWY6wDsoSYm6vkhB2FQzALmNVq85vR0EOZOG7p0dYfcUS7QgLVF4oNRz4dqRQ0R2pKxzUr0+P1eeZWMIwBZNr27A2cN5fCy5Jbuozpfq6LCo3llQutgpstb0K8jnaUm9UdS9RBfKVuNoN8Z12jDWksgk3QeWzFGT/qCq3ZStcbFOKxQSOTXvhDQO6rpBG7YAWR7Lw3d+GObBhRvdhV/TCP9DfM6ZYT1fclMMLqKt/mGXLdsb5t6KyNxOVxsywH4fEn9Gu7SgW/wIJSwvNuxhNHZW2W2YkHIjzayGxe5gz1aqmoxHuw+8N+gh1I55j+ZLdUH2/wpoeNKOWtcTuoY4abq1UaVsa6OgM5zItxPL4TsRjCwbqvtJDFTzzEEStyHB+KEcOiFNomGQ6uz5VumEP+1vgxYUbaE0bldk9rAqo6ExR1NmLFi6XnlmQZGXkyiPdtYDlFSPfR/1iiu6l8CLLwxjFeOxPFPPm/t6gvv7TdHSUehPJw6heg/IovuuN4DlMoma0Z4yrQ7uUj0bVGehRGDK9hliD5fl/BL8F+TE3B/7bULwuXZ+Yng1iLtqCtx9QiF1JvGgRu+L8Rkh8eMXKetUJBlDG6GX7Z36ATNX36QUkSVwoPbMt3Hj2YcRjn6sogpOZM8LfXOgCYqrl2RRi3yJR/AXipgVrj4Qakyo1CRaHBDBk+QG0pf7no/dffQZ6p4GNLeuHYAk1/dhbwX1HAd3laOwEnH4AaiqeT9GaPpWoEGQ7RL8SUkTlb6GFjFUKdXTY/lwqFu1xceVW2tKWXkbDGj7Fiy+HPdr2WmRjcL+uBGxW4iVch8gEVK0E3fiDo5n/zlwaGupI+ImoWJXxDlhHD+s8aoWmVrpu+sZY/r0h7///hVbS2wBMIl5XcCT8hahbVqndT2YsQv0SihnHPaG7hRWPNLZ8rdTUwDSElhVY0PMLCokTouKSsCpN2dItzgyLHGPuorpAqxquy99MV2Jq6BBqbrwCi2a+Uap7t9qf8bggd16CZ2ccZgxWom4YhZ2zeysKW5AciuP9oHL6aAw4AwPr7i3IGClbhv0z6hdkSFtPjt6i79+WGiHliXeMojDsyaCQ7VndW5Yq97wF1ZspuuNIqOnUXkUttfTXULfGixXVkVHIGiJdG9byZHpJqma5/1oh1y8P0+vl3zkWtikSe2caoovxsYU494deNYxDNQRLu2JuIspuUXdSmcdW7bNWmViqdt1ygQnu+0MqWBnqva/kcdUNIJRmcQDiHHV1EwMJEsmqr+uR/vS+lGpjOB6N8PKgIuL5bmqWZxA1yPKYUtcLO+qviF5BXlt7qY3N+NZ2VkhSAmP0cFQOQrBz2ngHxKL/5yOsodRIOuqX9yMQk3/NGAj/XuEcRcZunmaDUoZhVc1bVqDglZzgAQ+P1MfTK/Ly1XXelTzPwB4g4vY3jbp1y8ZRJB2Ala+imNAjquXvXoV3Bxl3paSMD4jJFIolgzBsujV1EaFppCSDJFp0t6qFpFGpepkz/1XoUJbgeLx/DuJ/rWAJUXq2YyB9TGG8OPEgaxSOxPtChbhZyQmpNKGy7SyX3qNUbnUFwiuMfzcbvID1SdLYoXg+hsiDFa1AgNC9YQI/x7tDQmVQxOO3VwSuNq9OF6HuH4EOx91SMdQIe/kkjhfZov2uiscJzN87B4e0O2qyYfhBNKwrGAGyt33wp5WtdYjPvQIDmLEn6t7GYejanZC4vuJOjY0S14EvjIto3dKQmufwfj1c0fLZ4SBX9mgZ9/tSB81Nw8pSPQ1x5mKTqJ7Ui7krF1TA26h+grZmgz4Cj06OAAAF8UlEQVS7h1HAiRpT3dayRs2PWVbYmII/NqiX8A8Tjy0etKh0oAnqJoJMRWwta+6A4l3kTrOqG5g0YwO8M9m5VS0ZnPuZQLwE4w7chNVAvI6Ewpa1S1qKDSgk1mE5eUbk3wc9KTTL6OkBkgERtcVl3zU9xGvUDt+XpX/zxEdb4609QH8Lsiuqd9HWfERU9aT3BC+qYjT4bqjfJ3QjG+JYce1dMmvp2WKKchixwtNo4s4QnZt0q0unI0YO8WhUfVsa3jp0yT9ArZnUYpAnQLu7iQVD5bCgQhasSrhbD2ifRXy4PYABO6UGEvTvK1zuP2RuP9ZgdQEmmBiBFG8bUhXwQBMUVRpZfGMNm8ojj+iUUFSSzFhV83E9qn9MjLI/BT+OuLNyK+t6YnFKc+D9kxmToZ8Fegwii1HmUV8/imXLz6gYgOgbqLOX/Ajj2/fkpYYvh85iVn7mZFgglEQvoLV5Oo0thsKeH5p04U4JULPyZbZqv5VXGpLk43cMuclmrzKlgSbEiinwO0cNGCwb0G+Ta7YGUkKjVZeEYoPe20Hvcz1T6oNr7VOrjXsQyUWtY1q+iIjh4GWOvNrx74BOIdf885Ci1hVfpzNh1c0fkO/MDllJvKIVEhXMHo/4dcFtFbWEw1OIbUS8aAUf1jy694hK6awvwplWcFFBHiuyec0FzsN+JcVWb88YwCqljAKuRto0Zn6KcHz/6+lZUc1Cj96K1qvQajnKGosheIHBq2/LJ7HiCq9PERMrFt2cXHNUZGjNmqIqYquIscKMasNcuPX5tyqbehTr+1+DsAC1ilm1Nm9L8P5nELs79OdFdkCsJ4FaxG/DEMr7WFyTqzB7AW9YliMeP5HleV0tbWAMQzDv5Px1FU+SzJiwZOfQH0mtkQaGmG4XIF3bEkzo2jb1zVLnsjNRmdALfIpKtgzqXobKqeGz3gaQCDK8SrdPq6p2k4KWULUpqnrSYyq/u1RbO5LOhtcDUBfqLmUthOmlVjtDE9KUJnXoBmCAjfX5D/XwuqgfUxfhzo041gul39bUsJh/NMCyR181lmLhNNCv4DgDr/b5EdS5c1huyhpZAN7q2L5LzO23wq7hVmET9yfhuC0EpqE2sWaTVYr4q5mqNcoIZebMR9VU0RuWVuD7OL8J3lnruu+GNnbw80CUmTEUYpsTL1q1czUDsA4ghml0lOodrFdidxZAze2QNyOJIXoZKoeUilI/Dn5MpE2UX6PevERz4GMiYzwlUOqo/X6CtcuzSiNrWDm4kmqlDcC+YKyeL26EkyPRsM/vTiF2DNu+vWBIOXKk4NkXDe3mrIZwcnhoUwwNZVgls3mftvQ0mrJ7Iv4vA8rUh3K+gY6xTmlRk+dSs2t9DtWpoV9R1JBiNqh5PBtdqEwKq7oSBPbxABNn7IhzFut091fsmwZGiKsV3pjcy0iob1Uo96iuz4C2aMGaUsiquJpmfB7vjFexwNrGQ8TcyUNuuz+kGKDvJEVCjJbAlatuBBZ9iqWIj+C8Vf+s+McjQmvThgmIH4835UyfCL/a9ZZ0fjzSKGRvQNRo38kohlSeXOkQ+s+88GrfDbRzcQfysrCqONW8mu/ckHzh2dVabWQsYH3t670EqHZ/4Wd6OrahmHipX5Bn0vQazQ9Jq9nnWYe+BfSdpGT2M6iLI966eT2GuLVRvy91hZPokC1YVv/8Sqlw+p4/dBdxJiGvRWVf2tIn0PTjLdCCiSSs7epHYzXMwKobQNkqOzomBmGm8+kQ5Vqq44oPUnSmyLmGwhjjCSDe/hlqSx1Iet544LXdTtTlX2Z5zTahdLwx852oPJt7EG+6ugxOxoH+/p9K8VbDhP1/O8U/ZwA9Z8OwgYLfHHVnha6djS0t4VcxbCRbzga3JCBZRd9K3NkKvolc+mc0tUzHy9M4mYjq4qAgMk2+tVRRNSOopdB+Wd+fOvn/9iL+Xc+z+gyg7xMY5Fn+fZsma+xsTYn80WjsWaRgSNh1UeAUuntbz/wZiN8UzwY4WUC+03Tv9aslr/93ze5/wHX/F5NOW65vS3ZEAAAAAElFTkSuQmCC",this.phone_icon="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAWABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9qfjr+2J4K/Z0+Ivgrwx4lurqDUfHV2bSxaKJWht+VUSTsWGxC7qoIB5PQAEj1OvAf24v2btY+KMvg/x54NtdOvfH3wxvzqel2V8q+Rq0R2+baszcIzbQUf8AhYdVzuHJ/CH/AIKkWXxT/aP0b4aTfDTx7oGtX9qWvRf2yo+l3AyWWSPg/ZwoyJ8jOV+QZyNqVP2kEofHd39N018t/P5XipLklzP4bL7+v6W8vR2+qqKKKxLCiiigAooooA//2Q==",this.fax_icon="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAXABcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9rv2gP2s/BX7PF9p2ka/rltp/iLxHFL/YlnLbzSC9lXAVSyKVQF2Vcuy5zwa4fxF8Q/jl4Y+DGl+ONP8A+EB8bCS3tdRvNAs9Dm0m4a1dVkm8u7m1KSMMiEkZiO7H3e1fMX/BaL/k7P4F/wDXT/28hr5Th8B+BT8CBemz8M/2z/YJn8z7ZD9o+0fZ5Wzt/tfdv3hePs+c4/dfwHqw9JPDuu3rftdaSmttN7a6+ljKtO1dUelu9t1Hr5X009bn7e+D/FNr448JaXrVi2+y1e0ivbdjjmORA69CR0I6GivHv+CaOf8AhhD4ZZzn+yB19PMfFFRiqap1p047JtfcycNUdSjCct2k/wAD1fxP8M/DfjbWdN1HWfD+iavqGjOZNPur2xinmsGOMtE7qTGTgcqR0HpXIt+xl8HnYk/Cj4akk5JPhiy5/wDIVFFYqTj8Js0nuehaVpVroWmW9lZW0FnZ2kSwwW8EYjigjUYVFUYCqAAABwAKKKKV76se2iP/2Q==",this.search_form=this.fb.group({service_category:[null,[im.required]],more_services:[null,[im.required]],health_insurance:[],city:["",[im.required]],radius:["",[im.required]],gender:[""],age:[null]}),this.login_form=this.fb.group({modal_un:[null,[im.required,im.pattern("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$")]],modal_pw:[null,[im.required]]}),void 0===this.incidentid&&this.waitlistservice.serviceCategory().subscribe(t=>{this.catObj=t,console.log("this.catObj",this.catObj);const e=this;let n=Object.keys(this.catObj);const i=[...new Set(n)];console.log("unique keys",i),i.sort(),i.forEach(function(t){e.scategory2.push({id:t,name:t})}),console.log("self.scategory2",e.scategory2),e.scategory=e.scategory2},t=>{console.log(t.message)}),this.waitlistservice.getInsurance().subscribe(t=>{this.insurance=t},t=>{console.log(t.message)})}ngAfterContentInit(){null!=this.incidentid&&(this.loader=!0,this.frm_submit=!0,this.loadOrganizations()),this.radii=[{id:"2",value:"5 miles"},{id:"3",value:"10 miles"},{id:"4",value:"15 miles"},{id:"5",value:"20 miles"},{id:"6",value:"30 miles"},{id:"7",value:"40 miles"},{id:"8",value:"50 miles"},{id:"9",value:"60 miles"},{id:"10",value:"70 miles"},{id:"11",value:"80 miles"},{id:"12",value:"90 miles"},{id:"13",value:"100 miles"},{id:"1",value:"All of Massachusetts"}],void 0===this.incidentid&&this.findhelpService.getCities().subscribe(t=>{this.cities=t}),this.gender=[{id:"24",value:"Male"},{id:"25",value:"Female"},{id:"26",value:"Transgender Man"},{id:"27",value:"Transgender Woman"}]}loadOrganizations(){this.findhelpService.getIncidentById(this.incidentid).subscribe(t=>{if(this.opa_messsage=t.message,console.log(this.search_form.controls),null!=t.cityid&&(console.log("city id ",t.cityid),this.findhelpService.getCities().subscribe(e=>{if(this.cities=e,null!=this.cities){let e=this.cities.filter(e=>e.id==t.cityid);console.log("city ",e[0]),null!=e&&this.search_form.controls.city.patchValue(e[0])}})),null!=t.radiusid&&null!=this.radii){let e=this.radii.filter(e=>e.id==t.radiusid);console.log("radius ",e),null!=e&&this.search_form.controls.radius.patchValue(e[0])}null!=t.genderid&&this.search_form.controls.gender.setValue(t.genderid),null!=t.age&&(this.search_form.controls.age.setValue(t.age),this.ageserved=this.f.age.value),this.search_form.updateValueAndValidity(),null!=t.bsasfunded&&(this.bsas_funded=t.bsasfunded),null!=t.mentalhealthcondition&&(this.mental_health=t.mentalhealthcondition),null!=t.opa_notes&&(this.notes=t.opa_notes,console.log("notes ",this.notes)),1==t.pregnant&&(this.show_pregnancy=!0),1==t.homeless&&(this.homeless=!0),1==t.treatmentwithmefamily&&(this.treatmentwithmefamily=!0),1==t.veteran&&(this.veteran=!0)}),console.log(this.search_form),this.findhelpService.getAttributesByIncidentId(this.incidentid).subscribe(t=>{console.log(t),console.log(this.insurance),this.selection3=null!=t.payments?t.payments:[];let e=[],n=[],i=[];this.treatments=t.treatments,null!=t.treatments?(this.noTreatments=!1,t.treatments.forEach(t=>{-1==i.indexOf(t.categoryName)&&(i.push(t.categoryName),e.push({id:t.categoryName,name:t.categoryName})),n.push({id:t.id,name:t.name})})):this.noTreatments=!0,this.onChange(e),console.log("this.catObj",e),this.selection=e,this.selection2=n});const t=this;this.findhelpService.getExternalSearchResultByIncidentId(this.incidentid).subscribe(e=>{let n=[];e.forEach(e=>{!0===e.priorityprovider?t.opaResultDmy.push(e):n.push(e)}),console.log("pprovider",t.opaResultDmy),t.opaResultDmy.length>0&&(n=n.sort(function(t,e){if(t.orgName<e.orgName)return-1})),this.opa_result=t.opaResultDmy.concat(n),0==t.opaResultDmy.length&&(this.opa_result=this.opa_result.sort(function(t,e){if(t.orgName<e.orgName)return-1})),console.log("opa_result",this.opa_result),setTimeout(()=>{t.loadMap()},1e3),console.log("this.opa_result",this.opa_result),0==this.opa_result.length&&(this.loader=!1,this.frm_submit=!1,console.log("No organizations found for the provided search criteria"),$("#noresults").show())})}loadMap(){this.map=new google.maps.Map(document.getElementById("map"),{zoom:5}),this.bounds=new google.maps.LatLngBounds;var t=$('[name="city"] :selected').text();console.log(t);if(1==$('[name="radius"] :selected').val()&&(t=t),this.radius=parseInt($('[name="radius"] :selected').text().match(/\d+/)),"All of Massachusetts"==$('[name="radius"] :selected').text())new google.maps.KmlLayer({url:"https://nearestate.in/ma.kml",map:this.map});if(t||974==$('[name="choose_area_search_type"]').val()||1==$('[name="radius"] :selected').val()){$("._distance_sort").show();const e=this;$.getJSON("https://maps.googleapis.com/maps/api/geocode/json?address="+t+", Massachusetts&key=AIzaSyCcZBjQq8GUmtPJIhlKy1V94jhu4q16lS8",function(t){var n=t.results[0].geometry.bounds;null==n&&(n=t.results[0].geometry.viewport);var i=t.results[0].geometry.location;if(e.map.setCenter(i),e.city_center=i,new google.maps.Marker({map:e.map,icon:"https://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|8c5c8d",position:i,title:i.orgName,zIndex:99999}),e.radius){var s=1609.34*e.radius,r=new google.maps.Circle({center:i,radius:s}).getBounds(),a={north:r.getNorthEast().lat(),south:r.getSouthWest().lat(),east:r.getNorthEast().lng(),west:r.getSouthWest().lng()};s=1609.34*e.radius;new google.maps.Circle({fillOpacity:.1,strokeOpacity:.5,strokeColor:"#ff0000",fillColor:"#FF0000",strokeWeight:0,map:e.map,center:e.city_center,radius:s})}else a={north:n.northeast.lat,south:n.southwest.lat,east:n.northeast.lng,west:n.southwest.lng};e.process_list(a)})}else this.process_list([])}process_list(t){var e=0,n=0;const i=this;console.log("this.opa_result2",this.opa_result),i.listObj=[],this.opa_result.forEach(t=>{console.log("element3",t),40227==t.orgId&&(t.address={id:0,street:"",cityname:"",stateval:"",postalcode:""}),console.log("element4",t),null==i.listObj[t.orgId]&&i.listObj[t.orgId];var e="";t.address&&!t.locationoff&&40227!=t.orgId&&(t.address.street&&(e+=t.address.street),t.address.cityname&&(""!=e&&(e+=","),e+=t.address.cityname),t.address.stateval&&(""!=e&&(e+=","),e+=t.address.stateval),t.address.postalcode&&(""!=e&&(e+=" "),e+=t.address.postalcode)),i.listObj[t.orgId]={orgName:t.orgName,address:e,latitude:t.latitude,longitude:t.longitude,id:t.orgId,website:null!=t.website?t.website:"Not Available",phone_number:t.phoneNumber,mappingstatus:t.mappingstatus,locationoff:t.locationoff}}),console.log("listObj",this.opa_result);var s=i.listObj;console.log("square_bounds",t),console.log("org_list",s);const r=this;for(var a in s)t?(s[a].locationoff&&($('.hria_result_box[data-id="'+s[a].id+'"]').show(),n++),this.in_bounds(t,{lat:s[a].latitude,lng:s[a].longitude},s[a].id)&&!s[a].locationoff?(r.place_marker(s[a]),$('.hria_result_box[data-id="'+s[a].id+'"]').show(),n++):s[a].locationoff||$('.hria_result_box[data-id="'+s[a].id+'"]').remove()):(r.place_marker(s[a]),$('.hria_result_box[data-id="'+s[a].id+'"]').show()),this.orgIds[e++]=a;this.loader=!1,this.frm_submit=!1,$("body").on("mouseenter",".hria_result_box",function(t){r.me++,1==r.me&&(console.log(r.me),t.preventDefault(),t.stopPropagation(),console.log("bounceid",$(this).attr("data-id")),console.log("mymarkers",r.markers[$(this).attr("data-id")]),r.markers[$(this).attr("data-id")]&&r.markers[$(this).attr("data-id")].setAnimation(google.maps.Animation.BOUNCE))}),$("body").on("mouseleave",".hria_result_box",function(t){r.ml++,1==r.ml&&(t.preventDefault(),t.stopPropagation(),r.markers[$(this).attr("data-id")]&&r.markers[$(this).attr("data-id")].setAnimation(null),r.me=0,r.ml=0)}),$("._results_row").show(),$("#noresults").hide(),$("._result_summary").show(),n&&t?(console.log(t),$("._count").html(n)):t&&!n?(this.loader=!1,this.frm_submit=!1,$("#noresults").show(),$("._results_row,._result_summary").hide()):$("#noresults").hide()}in_bounds(t,e,n){var i=this.latlng_distance(this.city_center.lat,this.city_center.lng,e.lat,e.lng);return console.log("distance",i),console.log("this.radius",this.radius),$('.hria_result_box[data-id="'+n+'"]').attr("data-distance",Number(i).toFixed(2)).find("._distance").text(Number(i).toFixed(2)+" mi"),!!isNaN(this.radius)||i<=this.radius&&(console.log("distance2",i),!0)}place_marker(t){google.maps.event.addListenerOnce(this.map,"bounds_changed",function(){e.map.setZoom(7)}),console.log("map",this.map),console.log("markers",this.markers);const e=this;var n=new google.maps.LatLng(t.latitude,t.longitude);this.map.setCenter(n),console.log("self.markers",e.markers),console.log("location.id",t.id),console.log("position",t.latitude,t.longitude),e.markers[t.id]=new google.maps.Marker({map:this.map,position:n,title:t.orgName,zIndex:99999}),e.markers[t.id].setAnimation(null);var i='<div class="infowindow"><h3 class="iw-title" title="'+t.orgName+'">'+t.orgName+'</h3><div class="iw-content"><p title="'+t.address+'"><i class="fa fa-home">&nbsp;</i>'+t.address+'</p><p><i class="fa fa-phone">&nbsp;</i>'+t.phone_number+'</p><p title="'+t.website+'"><i class="fa fa-globe">&nbsp;</i><a href="'+t.website+'">'+t.website+'</a></p><p class="text-right"><a target="_blank" href="https://www.google.co.in/maps/dir//'+t.address+"/@"+t.latitude+","+t.longitude+',17z">Get Directions</a></div></div>',s=new google.maps.InfoWindow({content:i});e.markers[t.id].addListener("click",function(){s.open(this.map,e.markers[t.id])}),this.count++,this.bounds.extend(n),this.count>1&&this.map.fitBounds(this.bounds)}latlng_distance(t,e,n,i){var s=.017453292519943295,r=Math.cos,a=.5-r((n-t)*s)/2+r(t*s)*r(n*s)*(1-r((i-e)*s))/2;return 12742*Math.asin(Math.sqrt(a))*.621371}toggleBounce(t){console.log("markermarker",t),null!==t.getAnimation()?t.setAnimation(null):t.setAnimation(google.maps.Animation.BOUNCE)}createMarker(t,e){var n=new google.maps.Marker({position:t,map:this.map,zoom:5});const i=this;return google.maps.event.addListener(n,"mouseover",function(){i.infowindow.setContent(e),i.infowindow.open(i.map,n),n.setAnimation(google.maps.Animation.BOUNCE)}),google.maps.event.addListener(n,"mouseout",function(){n.setAnimation(null),i.infowindow.open()}),n}loadScript(t){return new Promise((e,n)=>{const i=this.renderer2.createElement("script");i.type="text/javascript",i.src=t,i.text="",i.onload=e,i.onerror=n,this.renderer2.appendChild(this.document.head,i)})}onChange(t){this.waitlistservice.serviceCategory().subscribe(e=>{this.catObj=e;const n=this;let i=Object.keys(this.catObj);i.sort(),i.forEach(function(t){n.scategory2.push({id:t,name:t})}),n.scategory=n.scategory2,this.services=[],t.forEach(function(t){var e=t.id;console.log("self.catObj",n.catObj),console.log("key",e),e in n.catObj&&n.catObj.hasOwnProperty(e)&&n.catObj[e].forEach(t=>{n.services.push(t)})})},t=>{console.log(t.message)})}onChange2(t){this.section_msg=!1,t.forEach(t=>{20!=t.id&&912!=t.id||(this.section_msg=!0)})}onRemove(t){const e=this;var n=t.value.name;"Court Involved Services"==n&&(this.section_msg=!1),console.log("key",n),""!=this.incidentid&&this.catObj.length>0&&(this.selection2=this.catObj.filter(t=>t.categoryName!=n)),n in e.catObj&&e.catObj.hasOwnProperty(n)&&e.catObj[n].forEach(t=>{console.log("element2",t.id),console.log("this.selection2",this.selection2),this.selection2=this.selection2.filter(e=>e.id!=t.id)})}onChange3(t){console.log(this.selection3)}loginSubmit(){this.submitted2=!0,this.search_form.invalid&&this.el.nativeElement.querySelectorAll("input.ng-invalid,select.ng-invalid")[0].focus()}frmSubmit(){if(this.cntr++,this.submitted=!0,this.search_form.invalid)return console.log(this.el),void this.el.nativeElement.querySelectorAll("input.ng-invalid,select.ng-invalid")[0].focus();{this.loader=!0,this.frm_submit=!0;let n=this.search_form.controls.age.value;var t=[];this.selection3.forEach(e=>{t.push(e.id)});var e=[];this.selection2.forEach(t=>{e.push(t.id)});let i={attributes:{treatmentids:e,gender:""!=this.search_form.controls.gender.value?parseInt(this.search_form.controls.gender.value):"",age:n,paymentids:t,mentalHealth:this.mental_health,needCare:this.need_care},radius:{id:parseInt(this.search_form.controls.radius.value.id),valueen:this.search_form.controls.radius.value.value},city:{id:parseInt(this.search_form.controls.city.value.id),valueen:this.search_form.controls.city.value.value},bsasFunded:this.bsas_funded?this.bsas_funded:""};console.log("postObj",i),this.waitlistservice.getOpaData(i).subscribe(t=>{this.ageserved=this.f.age.value,sessionStorage.clear(),console.log("datafff",t),this.incidentid=t.incident.ref;let e="/spa_result/incident_id/"+this.incidentid;this.reloadCurrentRoute(e)},t=>{console.log(t.message)})}}reloadCurrentRoute(t){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([t])})}renderMap(){}mOver(t){if(t>0){let e={attrid:t,langid:1050};this.waitlistservice.getAnswer(e).subscribe(t=>{console.log("data44",t),""!=t&&($("#dialogModal").html(t),$("#dialogModal").dialog({modal:!0,height:"auto",width:500,create:function(){$(".ui-dialog").find(".ui-dialog-titlebar").css({"background-image":"none","background-color":"white",border:"none"})}}))},t=>{console.log(t.message)})}}mOut(){$("#dialogModal").parent(".ui-dialog").hide()}mouseout(t){google.maps.event.trigger(this.gmarkers["Location "+t],"mouseout")}mouseover(t){google.maps.event.trigger(this.gmarkers["Location "+t],"mouseover")}ngAfterViewInit(){setTimeout(()=>{e.router.url.indexOf("/es")>-1&&(e.isSpanish=!0)},500),this.token=localStorage.getItem("msal.idtoken"),console.log("token",this.token),$("button._advanced_options").click();const t=this;$("body").on("click","._alpha_sort",function(){t.inc++;var e=[];$(".hria_result_box").each(function(){var n=[];n.push($("._org",this).text()),n.push($(this)),e.push(n),t.inc%2==0?e.sort():e.reverse()}),$(".hria_result_box").remove();for(var n=0;n<e.length;n++)$("._hria_result_container").append(e[n][1])}),$("._distance_sort").on("click",function(){var t=$("._hria_result_container");t.find(".hria_result_box").sort(function(t,e){return+t.dataset.distance-+e.dataset.distance}).appendTo(t)});const e=this;$("body").on("click",".ui-icon-closethick",function(){$("#dialogModal").parent(".ui-dialog").hide()}),$("body").on("click","._share_result",function(){if($('[name="selected[]"]:checked').length?$('[name="selected[]"]:checked').each(function(){e.selected.push(this.value)}):$('[name="selected[]"]').each(function(){e.selected.push(this.value)}),"pdf"==$(this).attr("data-action"))e.generatePDF();else{if("true"!==$(this).attr("data-login"))return $("input#email").val(),$("#mailSuccess").hide(),$(".modal-body,.modal-footer").show(),$("#email_modal").modal("show"),!1;$.ajax({type:"post",data:{action:$(this).attr("data-action"),selected:this.selected,incident_id:$('[name="incident_id"]').val()},url:"/cc/AjaxCustom/share_result",dataType:"json",success:function(t){$("#email_modal").modal("show"),t.error?$("#send_mail_form .modal-body").html(t.error):$("#send_mail_form .modal-body").html(t.result),$(".modal-footer").hide()}})}}),$("body").find("#email").on("input",function(){var t=document.getElementById("email").value;return $("span#emailError").text(""),""==t?($("span#emailError").text("Plase enter email address"),!1):/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t)?void 0:($("span#emailError").text("Plase enter valid email address"),!1)})}sendMail(){$("#email_modal").modal("show")}shareData(){var t=document.getElementById("email").value;if(""==t)return $("span#emailError").text("Plase enter email address"),!1;if(!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t))return $("span#emailError").text("Plase enter valid email address"),!1;{this.mailLoader=!0,this.mail_submit=!0;let e=[];$('[name="selected[]"]:checked').length?$('[name="selected[]"]:checked').each(function(){e.push(this.value)}):$('[name="selected[]"]').each(function(){e.push(this.value)});let n={email:t,orgId:e,ref:this.incidentid};this.waitlistservice.shareResults(n).subscribe(t=>{console.log("data",t),$(".modal-body,.modal-footer").hide(),$("#mailSuccess").show(),this.mailLoader=!1,this.mail_submit=!1},t=>{}),console.log("postObj",n)}}generatePDF_old(){var t=[];$("#service_sub_categories .ms-sel-item ").each(function(){t.push($(this).text().trim())}),this.doc=new HB("p","pt","a4"),this.doc.setFont("helvetica"),this.pageHeight=this.doc.internal.pageSize.height-20,this.pageWidth=this.doc.internal.pageSize.width-50;var e=120;this.set_header();t=[];$("#service_sub_categories .ms-sel-item ").each(function(){t.push($(this).text().trim())});var n=$('[name="selected[]"]:checked').length,i=!!n;n||(n=$('[name="selected[]"]').length),this.doc.setFontSize(10),this.doc.setFont("verdana","bold"),this.doc.setTextColor(92,107,128),this.doc.text("Services: ",this.left_margin,e),this.doc.setFont("verdana","normal"),this.doc.text(t.join(", "),this.left_margin+50,e);e+=20,this.doc.text("Total Results: ",this.pageWidth-100,e);let s=this.pageWidth-100;this.doc.text("Total Results: ",s,e),this.doc.setFont("verdana","normal");let r=this.pageWidth-30;this.doc.text(n.toString(),r,e);var a=$('[name="city"] :selected').text(),o=a||"Massachusetts",l=parseInt($('[name="radius"] :selected').text().match(/\d+/));o=l?"Within "+l+" miles of "+a:$('[name="dph_region"] :selected').text()?$('[name="dph_region"] :selected').text():"Massachusetts",this.doc.setFont("verdana","bold"),this.doc.text("Region: ",this.left_margin,e),this.doc.setFont("verdana","normal"),this.doc.text(o,this.left_margin+40,e),e+=10,this.draw_line(),e+=this.line_height;const c=this;$(".hria_result_box").each(function(){if(i&&!$(this).find('[name="selected[]"]:checked').length)return!0;c.check_height(40),c.doc.setFontSize(10),c.doc.setFont("verdana","bold"),c.doc.setTextColor(92,107,128),c.doc.textWithLink($(this).find("._org").text().trim(),c.left_margin,e,{url:$(this).find("._org").attr("href")}),$(this).find("._bsas1").length&&c.doc.addImage(c.bsas,"JPEG",c.pageWidth-50,e,40,25),e+=c.line_height,c.doc.setFont("verdana","normal"),c.check_height(0),$(this).find("._address").text().trim().indexOf("\n")>-1?c.doc.text(c.left_margin,e,$(this).find("._address").text().trim().replace("\n","")):c.doc.text($(this).find("._address").text().trim(),c.left_margin,e);var t=$(this).find("._phone_number").text().trim();t&&(e+=c.line_height,c.check_height(0),c.doc.addImage(c.phone_icon,"JPEG",c.left_margin,e-10,15,16),c.doc.text("      "+t,c.left_margin,e));var n=$(this).find("._fax").text().trim();n&&(e+=c.line_height,c.check_height(0),c.doc.addImage(c.fax_icon,"JPEG",c.left_margin,e-10,15,16),c.doc.text(n,c.left_margin,e)),c.check_height(20);var s=$(this).find("._website a").text(),r=$(this).find("._website a").prop("href");s&&(s=s.trim(),e+=20,c.doc.setTextColor(140,92,141),c.doc.text(r,c.left_margin,e)),c.doc.setTextColor(92,107,128);var a=$(this).find("._treatments").text().trim();a&&(e+=20,c.check_height(0),c.doc.text(c.left_margin,e,""),c.doc.setFont("verdana","bold"),c.doc.text("Treatments offered: ",c.left_margin,e),c.doc.setFont("verdana","normal"),c.doc.text("                                   "+a,c.left_margin,e)),$(this).find("._genderserved").text().trim()&&(e+=20,c.check_height(0),c.doc.text(c.left_margin,e,""),c.doc.setFont("verdana","bold"),c.doc.text("Genders served: ",c.left_margin,e),c.doc.setFont("verdana","normal"),c.doc.text("                                   "+a,c.left_margin,e));var o=$(this).find("._payments").text().trim();o&&(e+=20,c.check_height(0),c.doc.text("Treatments offered: ",c.left_margin,e),c.doc.setFont("verdana","bold"),c.doc.text("Payments accepted: ",c.left_margin,e),c.doc.setFont("verdana","normal"),c.doc.text("                                   "+o,c.left_margin,e)),e+=15,c.draw_line(),e+=20}),this.doc.save("Search-Results-"+(new Date).getTime()+".pdf")}generatePDF(){const t=this;t.doc=new HB("p","pt","a4"),t.doc.setFont("helvetica"),t.pageHeight=t.doc.internal.pageSize.height-20,t.pageWidth=t.doc.internal.pageSize.width-50,t.height=120;t.set_header();var e=[];this.search_form.value.more_services.forEach(function(t){e.push(t.name)});var n=$('[name="selected[]"]:checked').length,i=!!n;n||(n=$('[name="selected[]"]').length),t.doc.setFontSize(10),t.doc.setFont("verdana","bold"),t.doc.setTextColor(92,107,128),t.doc.text("Services: ",t.left_margin,t.height),t.doc.setFont("verdana","normal"),t.doc.text(e.join(", "),t.left_margin+50,t.height),t.height+=t.break_height,t.doc.text("Total Results: ",t.pageWidth-100,t.height);let s=t.pageWidth-100;t.doc.text("Total Results: ",s,t.height),t.doc.setFont("verdana","normal");let r=t.pageWidth-30;t.doc.text(n.toString(),r,t.height);var a=$('[name="city"] :selected').text(),o=a||"Massachusetts",l=parseInt($('[name="radius"] :selected').text().match(/\d+/));o=l?"Within "+l+" miles of "+a:$('[name="dph_region"] :selected').text()?$('[name="dph_region"] :selected').text():"Massachusetts",t.doc.setFont("verdana","bold"),t.doc.text("Region: ",t.left_margin,t.height),t.doc.setFont("verdana","normal"),t.doc.text(o,t.left_margin+40,t.height),t.height+=10,t.draw_line(),t.height+=t.line_height;var c=0;$(".hria_result_box").each(function(){if(c++,console.log("i",c),i&&!$(this).find('[name="selected[]"]:checked').length)return!0;t.check_height(40),t.doc.setFontSize(10),t.doc.setFont("verdana","bold"),t.doc.setTextColor(92,107,128),t.doc.textWithLink($(this).find("._org").text().trim(),t.left_margin,t.height,{url:Jf+$(this).find("._org").attr("href")}),$(this).find("._bsas1").length&&t.doc.addImage(t.bsas,"JPEG",t.pageWidth-40,t.height,40,25),t.height+=t.line_height,t.doc.setFont("verdana","normal"),t.check_height(0),$(this).find("._address").text().trim().indexOf("\n")>-1?t.doc.text(t.left_margin,t.height,$(this).find("._address").text().trim().replace("\n","")):t.doc.text($(this).find("._address").text().trim(),t.left_margin,t.height);var e=$(this).find("._phone_number").text().trim();e&&(t.height+=t.line_height,t.check_height(0),t.doc.addImage(t.phone_icon,"JPEG",t.left_margin,t.height-10,15,16),t.doc.text("      "+e,t.left_margin,t.height));var n=$(this).find("._fax").text().trim();n&&(t.height+=t.line_height,t.check_height(0),t.doc.addImage(t.fax_icon,"JPEG",t.left_margin,t.height-10,15,16),t.doc.text(n,t.left_margin,t.height)),t.check_height(20);var s=$(this).find("._website a").text(),r=$(this).find("._website a").prop("href");s&&(s=s.trim(),t.height+=20,t.doc.setTextColor(140,92,141),t.doc.text(r,t.left_margin,t.height)),t.doc.setTextColor(92,107,128);var a=$(this).find("._treatments").text().trim();a&&(t.height+=20,t.check_height(0),t.doc.text(t.left_margin,t.height,""),t.doc.setFont("verdana","bold"),t.doc.text("Treatments offered: ",t.left_margin,t.height),t.doc.setFont("verdana","normal"),t.doc.text("                                   "+a,t.left_margin,t.height));var o=$(this).find("._genderserved").text().trim();o&&(t.height+=20,t.check_height(0),t.doc.text(t.left_margin,t.height,""),t.doc.setFont("verdana","bold"),t.doc.text("Genders served: ",t.left_margin,t.height),t.doc.setFont("verdana","normal"),t.doc.text("                             "+o,t.left_margin,t.height));var l=$(this).find("._payments").text().trim();l&&(t.height+=20,t.check_height(0),t.doc.text("Treatments offered: ",t.left_margin,t.height),t.doc.setFont("verdana","bold"),t.doc.text("Payments accepted: ",t.left_margin,t.height),t.doc.setFont("verdana","normal"),t.doc.text("                                   "+l,t.left_margin,t.height)),t.height+=15,t.draw_line(),t.height+=t.break_height}),this.doc.save("Search-Results-"+(new Date).getTime()+".pdf")}set_header(){this.doc.addImage(this.logo,"JPEG",130,20,317,80)}draw_line(){this.doc.setLineWidth(.1),this.doc.setDrawColor(204,204,204),this.doc.line(this.left_margin,this.height,this.pageWidth,this.height)}check_height(t){void 0===t&&(t=0),this.height+t>this.pageHeight&&(this.doc.addPage(),this.height=120,this.set_header())}checkintakephone(t){return null!=t&&!!(t.hasOwnProperty("everyday")||t.hasOwnProperty("weekdays")||t.hasOwnProperty("monday")||t.hasOwnProperty("tuesday")||t.hasOwnProperty("wednesday")||t.hasOwnProperty("thursday")||t.hasOwnProperty("friday")||t.hasOwnProperty("saturday"))}checkintakewalkine(t){return null!=t&&!!(t.hasOwnProperty("everyday")||t.hasOwnProperty("weekdays")||t.hasOwnProperty("monday")||t.hasOwnProperty("tuesday")||t.hasOwnProperty("wednesday")||t.hasOwnProperty("thursday")||t.hasOwnProperty("friday")||t.hasOwnProperty("saturday"))}};Iz.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:Document,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.Renderer2},{type:Zj},{type:Wf.Router},{type:Wf.ActivatedRoute},{type:F_}],Iz.propDecorators={mapElement:[{type:s.ViewChild,args:["mapRef",{static:!0}]}]},Iz=Hh([Object(s.Component)({selector:"app-opa-result",template:'<div class="container body">\n    <div id="editor"></div>\n    <style type="text/css">\n        .iw-title {\n            font-size: 12px;\n            font-weight: 700\n        }\n\n        .iw-content {\n            font-size: 12px\n        }\n\n        .grey-bg {\n            background: grey;\n            color: white;\n            padding: 6px 6px;\n        }\n\n        .btn-md {\n            padding: 8px 20px;\n        }\n\n        .covid {\n            background-color: #FFBF00;\n            color: black;\n            padding-right: 22%;\n            left: 10px\n        }\n    </style>\n    <div id="marker_labels"></div>\n\n    <div ng-app="mahelplineonline" ng-controller="interviewResultCtrl" ng-init="data = {}" class="ng-scope">\n        <div class="row mt10" *ngIf="opa_result.length>0 && token===null" id="yui_3_17_2_10_1621692509529_160">\n            <div class="col-sm-7">\n\n            </div>\n\n        </div>\n        <div class="row mt10 opa_result_header" style="" *ngIf="!incidentid">\n            <div class="col-md-12">\n                <h1 class="heading">Service Search</h1>\n            </div>\n        </div>\n        <div class="row mt10 searchResult" *ngIf="incidentid">\n            <div class="col-md-12">\n                <h1 class="heading">Search Results</h1>\n            </div>\n        </div>\n        <div class="col-md-12" *ngIf="opa_messsage!=null">\n            <div class="alert alert-warning message_value" [innerHTML]="opa_messsage | sanitizedHtml"></div>\n        </div>\n        <div class="row mt10 showDescription" style="display:none">\n            <div class="col-md-12">\n                <h1 class="heading">Service description and related programs</h1>\n            </div>.\n        </div>\n\n        <div class="row _assessment mt10" *ngIf="noTreatments == true">\n            \x3c!-- <div class="col-md-12"><h1 class="heading">Search Results</h1></div> --\x3e\n            <div class="col-md-12">\n                \x3c!--p class="mb0 mt10 _assessment alert alert-warning text-bold">Based on your answers, the services below may be helpful. You can add or remove services for new results, or <a class="click-here" href="/findhelp">click here</a> to start over. If you want to learn more about services and your eligibility, call the Helpline at 800.327.5050.</p--\x3e\n                <p class="mb0 mt10 _assessment alert alert-warning text-bold">\n                    No\n                    results were found based on your answers. Help is available. Please call the Helpline at\n                    800.327.5050 to\n                    learn more about services and your eligibility. You can also <a class="click-here"\n                        href="/findhelp">click here</a> to start over, or look for other services\n                    below.</p>\n            </div>\n        </div>\n        <div class="row mt10 age"\n            *ngIf="ageserved != null && incidentid && !noTreatments && ageserved>=18 && ageserved<=25">\n            <div class="col-md-12">\n                <p class="mb0 mt10 alert alert-warning text-bold">Based on your answers, the services below may be\n                    helpful. These include services both for adults 18 and over, and specialized services to people ages\n                    18-25. You can add or remove services for new results, or <a class="click-here"\n                        href="/findhelp">click here</a> to start over. If you want to learn more about services and your\n                    eligibility, call the Helpline at 800.327.5050.</p>\n            </div>\n        </div>\n        <div class="row mt10 age" *ngIf="ageserved != null && incidentid && !noTreatments && ageserved<18">\n            <div class="col-md-12">\n                <p class="mb0 mt10 _non_assessment alert alert-warning text-bold">Based on your answers, the services\n                    below may be helpful. You can add or remove services for new results, or<a class="click-here"\n                        href="/findhelp">click here</a> to start over. The needs of youth under 18 can be complex; we\n                    recommend calling the Helpline at 800.327.5050 for more tailored information.</p>\n            </div>\n        </div>\n        <div class="row mt10 age" *ngIf="ageserved != null && incidentid && !noTreatments && ageserved>25">\n            <div class="col-md-12">\n                <p class="mb0 mt10 alert alert-warning text-bold">Based on your answers, the services below may be\n                    helpful. You can add or remove services for new results, or <a class="click-here"\n                        href="/findhelp">click here</a> to start over. If you want to learn more about services and your\n                    eligibility, call the Helpline at 800.327.5050.</p>\n            </div>\n        </div>\n        <div class="row mt10 clientcharacteristics" *ngIf="homeless==true">\n            <div class="col-md-12">\n                <div class="alert alert-warning">Based on your answers, the services below may be helpful. Substance use\n                    services and homeless services are in the results. These homeless services may be able to help you\n                    find and stay in treatment. You can add or remove services for new results, or <a class="click-here"\n                        href="/findhelp">click here</a> to start over. If you want to learn more about services and your\n                    eligibility, call the Helpline at 800.327.5050.</div>\n            </div>\n        </div>\n        <div class="row mt10 clientcharacteristics" *ngIf="show_pregnancy==true">\n            <div class="col-md-12">\n                <div class="alert alert-warning">Because you are pregnant, you may want to contact the Pregnant Women\'s\n                    Access Line at 866.705.2807 for additional services.</div>\n            </div>\n        </div>\n        <div class="row mt10 clientcharacteristics" *ngIf="treatmentwithmefamily==true">\n            <div class="col-md-12">\n                <div class="alert alert-warning">You indicated that you have children that you want to take into\n                    treatment with you. This may have limited the results of your search, because only some types of\n                    treatment allow children. To learn more about family services, contact the Family Residential\n                    Treatment Access Line at 866.705.2807.</div>\n            </div>\n        </div>\n        <div class="row mt10 clientcharacteristics" *ngIf="veteran==true">\n            <div class="col-md-12">\n                <div class="alert alert-warning">Veterans may be eligible for services at additional providers. Visit <a\n                        href="http://www.mass.gov/veterans/">mass.gov/veterans</a> to learn more or to find your local\n                    Veterans Service Office.</div>\n            </div>\n        </div>\n\n        <div class="row mt10">\n            <div class="col-md-12">\n                <div class="alert alert-warning section_msg" *ngIf="section_msg">\n                    <p>Section 35 is an option of last resort. Section 35 is a court process and must be initiated\n                        through a local District or Juvenile court. To learn more about Section 35, contact the Helpline\n                        or the appropriate court in your area.</p>\n                    <p>Please do not contact the treatment facilities listed below for information on how to file a\n                        Section 35 petition. These programs cannot accept self-referrals for Section 35. Chat with or\n                        call the Helpline at 800-327-5050 to learn more.</p>\n                </div>\n            </div>\n            <div class="col-md-12">\n                \x3c!--div class="page_heading">Search results</div--\x3e\n                <p class="mt10 _non_assessment alert alert-warning _default" style="display: none;">If you\'re not sure\n                    what to search for, <a class="click-here" href="/findhelp">click here</a> and we\n                    will help guide you to some options.</p>\n                <p class="mt10 alert alert-warning _description" style="display:none">Below is a list of programs that\n                    offer this service. You can narrow or change your search below.</p>\n            </div>\n        </div>\n        <ul *ngFor="let item of notes">\n            <li *ngIf="item != \'\'" class="alert alert-warning ">\n                {{item}}\n            </li>\n        </ul>\n        <form method="post" [formGroup]="search_form" (ngSubmit)="frmSubmit()" id="search_form"\n            class="ng-valid ng-valid-maxlength ng-dirty ng-valid-parse">\n            <div class="row">\n                <div class="col-sm-12">Items marked with an asterisk (*) must be completed.</div>\n            </div>\n            <div class="row">\n                <div id="dialogModal" title="Description" style="display: none;"></div>\n                <div class="col-md-6 form-group">\n                    <span class="h4">Select a service category <span class="red text_small">*</span></span>\n                    <ng-select [items]="scategory" dropdownPosition="bottom" bindLabel="name"\n                        placeholder="Select an option" appendTo="body" multiple="true" (change)="onChange(selection)"\n                        [(ngModel)]="selection" (remove)="onRemove($event)" formControlName="service_category"\n                        [closeOnSelect]="true" [hideSelected]="true" [clearable]="false">\n                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                            <span class="ng-value-label"> {{item.name}}</span>\n                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                        </ng-template>\n                    </ng-select>\n                    <div class="" *ngIf="submitted && f.service_category?.errors">\n                        <small class="text-danger" *ngIf="f.service_category.errors.required">Please select an\n                            option</small>\n                    </div>\n                </div>\n                \x3c!-- <div id="answer_list" title="Description"></div> --\x3e\n                <div class="col-md-6 form-group">\n                    <span class="h4">Select one or more services (Click on a service to see its description) <span\n                            class="red text_small">*</span></span>\n                    <ng-select [items]="services" dropdownPosition="bottom" bindLabel="name"\n                        placeholder="Select an option" appendTo="body" multiple="true" (change)="onChange2(selection2)"\n                        [(ngModel)]="selection2" formControlName="more_services" [closeOnSelect]="true"\n                        [hideSelected]="true" [clearable]="false">\n                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                            <span class="ng-value-label"><a href="javascript:void(0);" (click)="mOver(item.id)">\n                                    {{item.name}} </a></span>\n                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                        </ng-template>\n                    </ng-select>\n                    <div class="" *ngIf="submitted && f.more_services?.errors">\n                        <small class="text-danger" *ngIf="f.more_services.errors.required">Please select an\n                            option</small>\n                    </div>\n                </div>\n            </div>\n            <div class="row" ng-init="">\n                \x3c!--div class="col-md-6 form-group">\n                    <span class="h4">Select geographic area type to search <span class="red text_small">*</span></span>\n                    <select name="choose_area_search_type" ng-model="data.choose_area_search_type" class="minimal required">\n                        <option ng-selected="{{type.id == data.choose_area_search_type}}" ng-repeat="type in area_search_types" value="{{type.id}}">{{type.value}}</option>\n                    </select>\n                </div--\x3e\n                \x3c!--div class="col-md-6 form-group" ng-if="data.choose_area_search_type==\'972\'"  >\n                    <span class="h4">Choose region <span class="red text_small">*</span></span>\n                    <select name="dph_region" ng-model="data.dph_region" class="required">\n                        <option value=""></option>\n                        <option value="967">Western MA</option>\n                        <option value="963">Central MA</option>\n                        <option value="965">Metro West</option>\n                        <option value="964">North East</option>\n                        <option value="962">Boston</option>\n                        <option value="966">South East</option>\n                    </select>\n                </div--\x3e\n            </div>\n            \x3c!--div class="row" ng-if="data.choose_area_search_type==\'973\'"--\x3e\n            <div class="row">\n                <div class="col-md-6 form-group" ng-init="">\n                    <span class="h4">Select town <span class="red text_small">*</span></span>\n                    <select name="city" formControlName="city" class="">\n                        <option [ngValue]="null">-- select city --</option>\n                        <option *ngFor="let item of cities" [ngValue]="item">{{item.value}}</option>\n                    </select>\n                    <div class="" *ngIf="submitted && f.city?.errors">\n                        <small class="text-danger" *ngIf="f.city.errors.required">Please select an option</small>\n                    </div>\n                </div>\n                <div class="col-md-6 form-group" ng-init="">\n                    <span class="h4">Select how far to search <span class="red text_small">*</span></span>\n                    <select name="radius" formControlName="radius">\n                        <option [ngValue]="null">-- select --</option>\n                        <option *ngFor="let item of radii" [ngValue]="item">{{item.value}}</option>\n                    </select>\n                    <div class="" *ngIf="submitted && f.radius?.errors">\n                        <small class="text-danger" *ngIf="f.radius.errors.required">Please select an option</small>\n                    </div>\n                </div>\n            </div>\n            <h4 class="mt10" style="color: #8c5c8d;">Filter for program eligibility (optional)</h4>\n            \x3c!-- <a style="color: #8c5c8d" class="btn btn-clear mt10 _advanced_options collapsed" data-toggle="collapse" data-target="#advanced_options" aria-expanded="false">Filter for program eligibility (optional)</a> --\x3e\n            <div id="advanced_options">\n                <div class="row">\n                    <div class="col-md-6">\n                        <span class="h4">Select gender</span>\n                        <select name="gender" id="gender" formControlName="gender">\n                            <option value="">Select an option</option>\n                            <option *ngFor="let option of gender" [value]="option.id">{{option.value}}</option>\n                        </select>\n                    </div>\n                    <div class="col-md-6">\n                        <span class="h4">Enter age</span>\n                        <input type="number" class="form-control" name="age" id="age" formControlName="age" />\n                        \x3c!-- <select name="age" id="age">   \n                        <option value="">Select</option>\n                        <option value="5">A - Children(0-12)</option>\n                        <option value="6">B - Adolescents(13-17)</option>\n                        <option value="7">C - Transitional age (18-25)</option>\n                        <option value="8">D - Adults(18+)</option>\n                    </select> --\x3e\n                        \x3c!-- <input name="age" id="age" type="text" ng-model="data.age" maxlength="2" value="" class="chage_result ng-pristine ng-untouched ng-valid ng-empty ng-valid-maxlength"> --\x3e\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="col-md-6">\n                        <span class="h4">Health insurance / coverage (leave blank if none)</span>\n                        <ng-select [items]="insurance" dropdownPosition="bottom" bindLabel="name"\n                            placeholder="Select an option" appendTo="body" multiple="true"\n                            (change)="onChange3(selection3)" [(ngModel)]="selection3" formControlName="health_insurance"\n                            [closeOnSelect]="true" [hideSelected]="true" [clearable]="false">\n                            <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                <span class="ng-value-label"> {{item.name}}</span>\n                                <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                            </ng-template>\n                        </ng-select>\n                    </div>\n                </div>\n                <div class="row mt-10">\n                    <div class="col-md-6">    \n                    <div class="col-md-12"><span class="h4">Select any of the following that apply:</span></div>\n                    <div class="col-md-12">\n                        \x3c!-- <div>\n                    <input id="checkbox_mental_health" id="mental_health" name="mental_health" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="mental_health"> \n                    <label for="checkbox_mental_health" class="checkbox-custom-label">Diagnosed with a mental health condition</label>\n                </div> --\x3e\n                        <div class="custom-control custom-checkbox" style="margin-bottom: 5px;">\n                            <input type="checkbox" [(ngModel)]="mental_health" [ngModelOptions]="{standalone: true}"\n                                class="custom-control-input" id="mental_health">\n                            <label class="custom-control-label" style="font-weight:\n                    500;font-size:1.1em;" for="mental_health">Diagnosed with a mental health condition</label>\n                        </div>\n                        <div class="custom-control custom-checkbox">\n                            <input type="checkbox" [(ngModel)]="need_care" [ngModelOptions]="{standalone: true}"\n                                class="custom-control-input" id="need_care">\n                            <label class="custom-control-label" style="font-weight:\n                    500;font-size:1.1em;" for="need_care">In need of nursing care for a serious medical\n                                condition</label>\n                        </div>\n                        <div *ngIf="show_pregnancy" class="custom-control custom-checkbox">\n                            <input type="checkbox" [(ngModel)]="show_pregnancy" [ngModelOptions]="{standalone: true}"\n                                class="custom-control-input" id="this.show_pregnancy">\n                            <label class="custom-control-label" style="font-weight:\n                    500;font-size:1.1em;" for="need_care">Pregnant</label>\n                        </div>\n                        \x3c!-- ngIf: data.gender ==426 ||data.gender ==428 --\x3e\n                        \x3c!-- <div>\n                    <input id="checkbox_need_care" id="need_care" name="need_care" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="need_care"> \n                    <label for="checkbox_need_care" class="checkbox-custom-label">In need of nursing care for a serious medical condition</label>\n                      <label for="checkbox-6" class="checkbox-custom-label">{{i_am}} a veteran of the U.S. Armed Forces</label>\n                </div> --\x3e\n                    </div>\n                    </div>\n                    <div class="col-md-6">\n                            <div class="form-group">\n                                <div class="custom-control custom-checkbox">\n                                    <input type="checkbox" [(ngModel)]="bsas_funded" [ngModelOptions]="{standalone: true}"\n                                        class="custom-control-input" id="show_bsas_funded">\n                                    <label class="custom-control-label" style="font-weight:\n                        500;font-size:1.21em;" for="show_bsas_funded">Only show BSAS-funded programs</label>\n                                </div>\n                           </div>\n                        <div _ngcontent-unt-c218="" class="col-md-12"><img _ngcontent-unt-c218="" width="158px" id="bsasImg" src="assets/images/BSAS_blue.svg" alt="BSAS Funded" style="float: left;"><p _ngcontent-unt-c218="" class="bsas_content"> Programs with BSAS logo are funded by the Department of Public Health, Bureau of Substance Addiction Services. These programs provide services to Massachusetts residents without health care coverage. </p></div>\n                    </div>\n                </div>\n            </div>\n            <div class="row">\n                <div class="col-md-6 mt20">\n                    <div class="row">\n                        <div class="col-md-12">\n                            <input type="submit" [disabled]="frm_submit" id="search-btn" value="Search" class="btn btn-md purple-bg"> &nbsp;<img\n                                *ngIf="loader" src="assets/images/loader.gif"\n                                style="padding-right: 6px; height:20px;" />\n                            <input type="reset" value="Clear Form" class="btn grey-bg _clearForm"\n                                ng-click="data.choose_area_search_type = \'\'">\n                        </div>\n                        <div class="col-md-12 mt-20">\n                            <p class="search-message" style="display: none;">Click Search to search again</p>\n                        </div>\n                    </div>\n                </div>\n                \x3c!-- <div class="col-md-6">\n                    <div _ngcontent-unt-c218="" class="col-md-12"><img _ngcontent-unt-c218="" width="100px" src="https://helplinema.org/wp-content/uploads/2016/06/bsas-logo.png" alt="BSAS Funded" style="float: left;"><p _ngcontent-unt-c218="" style="padding-left: 120px; font-size: 1.12em;"> Programs with BSAS logo are funded by the Department of Public Health, Bureau of Substance Addiction Services. These programs provide services to Massachusetts residents without health care coverage. </p></div>\n                </div> --\x3e\n                <div class="col-md-6">\n                    <img src="assets/images/atlaslogo.svg"  id="atlasImg" height="52" style="float: left;"/><p style="padding-left:183px;font-size: 1.12em;"> A platform that can help you compare treatment facilities to see which are providing high-quality addiction care based on the Shatterproof National Principles of Care\xa9.</p>\n                </div>\n            </div>\n        </form>\n    </div>\n    \x3c!-- <div *ngIf="loader" id="loader">\n        <svg version="1.1" id="L9" x="0px" y="0px" style="height: 100px;"\n        viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">\n          <path fill="#54d42a" d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">\n            <animateTransform \n               attributeName="transform" \n               attributeType="XML" \n               type="rotate"\n               dur="1s" \n               from="0 50 50"\n               to="360 50 50" \n               repeatCount="indefinite" />\n        </path>\n      </svg>\n    </div> --\x3e\n    <div class="col-md-12" id="noresults" style="display:none;">\n        <div class="alert alert-danger text-center">No results were found for your search. For more options, you can\n            change your selections above or call the Helpline at 800.327.5050.</div>\n    </div>\n    <div class="_search_results">\n        <div class="row top10" *ngIf="opa_result.length>0">\n            <div class="col-md-12">\n                <div class="alert alert-info blue-bg pad5 pl10 _result_summary">\n                    <div class="pull-left" style="line-height:38px; font-size: 16px;">We found <span\n                            class="_count">{{opa_result.length}}</span> result(s) for your selections </div>\n                    <div class="btn-group pull-right">\n                        <button data-action="pdf" title="Download result as PDF"\n                            class="btn text-color btn-md white-bg btn-xs _share_result"\n                            style="border-right: 1px solid #00b5cb;margin-right: 1px;">\n                            <i class="fa fa-file-pdf-o" aria-hidden="true"></i> Download as PDF\n                        </button>\n                        <button data-login="false" data-action="email" title="Send result as email" (click)="sendMail()"\n                            class="btn text-color btn-md white-bg btn-xs _share_result">\n                            <i class="fa fa-share" aria-hidden="true"></i> Send as email\n                        </button>\n                    </div>\n                    <div class="btn-group pull-right mr-5">\n                        <button data-action="sort" class="btn text-color btn-md white-bg btn-xs _alpha_sort"\n                            style="border-right: 1px solid #00b5cb;margin-right: 1px;">\n                            <i class="fa fa-sort-alpha-asc" aria-hidden="true"></i> Sort by name\n                        </button>\n                    </div>\n                    <div class="clearfix"></div>\n                </div>\n            </div>\n        </div>\n        \x3c!-- <a href="javascript:google.maps.event.trigger(gmarkers[\'Location 1\'],\'mouseover\',\'mouseout\');" (mouseover)="mouseover()" (mouseout)="mouseout()"class="button3">Location 1</a> --\x3e\n        <div class="row _results_row">\n            <div class="col-sm-6" *ngIf="opa_result.length>0" id="pdf_content">\n                <div class="row">\n                    <div class="_hria_result_container col-sm-12" style="height:530px;overflow-y: scroll;">\n                        <div *ngFor="let op of opa_result" class="hria_result_box" (mouseover)="mouseover(1)"\n                            (mouseout)="mouseout(1)" data-priority="0" [attr.data-id]="op.orgId"\n                            style="break-after: auto;" [attr.data-distance]="">\n                            <h3>\n                                <div>\n                                    <input name="selected[]" id="selected{{op.orgId}}" class="checkbox-custom"\n                                        type="checkbox" value="{{op.orgId}}">\n                                    <label title="{{op.orgName}}"\n                                        for="selected{{op.orgId}}" class="checkbox-custom-label org-label">\n                                        <a href="/provider_details/{{op.orgId}}" target="_blank"\n                                            class="_org">{{op.orgName}}</a>\n                                    </label>\n                                </div>\n                            </h3>\n                            <p *ngIf="op.address && !op.locationoff && op.orgId!=40227" class="_address"><i\n                                    class="fa fa-home"></i>&nbsp;{{(op.address.street!==null)?op.address.street:\'\'}},\n                                {{(op.address.cityname!==null)?op.address.cityname:\'\'}},\n                                {{(op.address.stateval!==null)?op.address.stateval:\'\'}}\n                                {{(op.address.postalcode!==null)?op.address.postalcode:\'\'}}</p>\n                            \x3c!-- <p *ngIf="op.phoneNumber" class="_phone_number"><i class="fa fa-phone"></i>&nbsp;({{op.phoneNumber.substr(0,3)}}) {{op.phoneNumber.substr(3,3)}}-{{op.phoneNumber.substr(6,4)}}</p> --\x3e\n                            <p *ngIf="op.phoneNumber" class="_phone_number"><i class="fa fa-phone"></i>\n                                {{op.phoneNumber}}</p>\n                                <p class="_website" *ngIf="op.website"><i class="fa fa-globe"></i>&nbsp; <a\n                                    *ngIf="op.website && op.website.includes(\'http\')"\n                                    [attr.href]="op.website" class="website_col" target="_blank">{{op.website}}</a><a\n                                    *ngIf="op.website && !op.website.includes(\'http\')"\n                                    [attr.href]="\'//\'+op.website" class="website_col" target="_blank">{{op.website}}</a><span\n                                    *ngIf="!op.website"> Not available</span></p>\n                            <div class="row" *ngIf="op.treatments">\n                                <div class="col-md-12">\n                                    <p><b>Services offered:&nbsp;</b>\n                                        <span *ngFor="let tr of op.treatments;let i=index;" class="_treatments">\n                                            {{tr.value}} <span *ngIf="i!=op.treatments.length-1">, </span>\n                                        </span>\n                                    </p>\n                                </div>\n                            </div>\n                            <div class="row" *ngIf="op.payments;">\n                                <div class="col-md-12">\n                                    <p><b>Payments:</b> &nbsp;<span *ngFor="let tr of op.payments;let i=index;" class="_treatments">\n                                            <span class="trtmnt">{{tr.value}}</span>\n                                            <span *ngIf="i!=op.payments.length-1">, </span>\n                                        </span>\n                                    </p>\n                                </div>\n                            </div>\n                            <div class="row" *ngIf="op.genderserved">\n                                <div class="col-md-10">\n                                    <p><b>Genders served:&nbsp;</b>\n                                        <span *ngFor="let tr of op.genderserved;let i=index;" class="_genderserved">\n                                            <span *ngIf="op.genderserved.length==1" class="trtmnt">{{tr.value}}</span>\n                                            <span *ngIf="i==0 && tr.value==\'Women\' && op.genderserved.length>1" class="trtmnt">Men</span>\n                                            <span *ngIf="i==1 && tr.value==\'Men\' && op.genderserved.length>1" class="trtmnt">Women</span>\n                                            <span *ngIf="(i==0 && tr.value!=\'Women\' && op.genderserved.length>1) || (i==1 && tr.value!=\'Men\' && op.genderserved.length>1)"  class="trtmnt">{{(tr.value)}}</span>\n                                            <span *ngIf="i!=op.genderserved.length-1">, </span>\n                                        </span>\n                                        \x3c!-- <span class="_treatments">{{op.gender.value}}</span> --\x3e\n                                    </p>\n                                </div>\n                            </div>\n                            <div class="row">\n                                <div class="col-md-10" *ngIf="op.age">\n                                    <p><b>Ages served:&nbsp;</b>\n                                        <span class="_treatments">{{op.age.value}}</span>\n                                    </p>\n                                </div>\n                                \n                                <div *ngIf="op.bsasFunded && op.age"  class="col-md-12">\n                                    <p class="pull-right _bsas1" style="float: right !important;"><img style="width: 155px;height: 45px;"\n                                            src="assets/images/BSAS_blue.svg"\n                                            alt="BSAS Funded"></p>\n                                </div>\n                                <div *ngIf="op.bsasFunded && !op.age"  class="col-md-12">\n                                    <p class="pull-right _bsas1" style="float: right !important;"><img style="width: 155px;height: 45px;"\n                                            src="assets/images/BSAS_blue.svg"\n                                            alt="BSAS Funded"></p>\n                                </div>\n                                <div  class="col-md-12" *ngIf="op.atlasurlexist && op.matchatlasdata">\n                                    <p class="pull-right" style="float: right !important;"><a target="_blank" href="{{op.atlasenurl}}"><img src="assets/images/atlaslogo.svg" style="width:155px;height: 45px;margin:6px -6px 0 0;" /></a></p>\n                                </div>\n                            </div>\n                            \n                            <div class="row">\n                                <div class="col-md-6" *ngIf="checkintakephone(op.phone)">\n                                    <p style="margin-right: 0px;"><b>Intake Hours (Phone):&nbsp;</b></p>            \n                                </div>\n                                <div class="col-md-6" *ngIf="op.phone" style="margin-left: 37%;margin-top: -28px;">\n                                    <p style="margin-left: 0px;" *ngIf="op.phone.everyday" class="">{{op.phone.everyday}}</p>\n                                    <p style="margin-left: 0px;" *ngIf="op.phone.weekdays" class="">{{op.phone.weekdays}}</p>\n                                    <p style="margin-left: 0px;" *ngIf="op.phone.monday" class="">{{op.phone.monday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.phone.tuesday" class="">{{op.phone.tuesday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.phone.wednesday" class="">{{op.phone.wednesday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.phone.thursday" class="">{{op.phone.thursday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.phone.friday" class="">{{op.phone.friday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.phone.saturday" class="">{{op.phone.saturday}}</p>\n                                </div>\n                            </div>\n                            <div class="row">\n                                <div class="col-md-6" *ngIf="checkintakewalkine(op.walkin)">\n                                    <p style="margin-right: 0px;"><b>Intake Hours (Walk-in):&nbsp;</b></p>            \n                                </div>\n                                <div class="col-md-6" *ngIf="op.walkin" style="margin-left: 38%;margin-top: -28px;">\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.everyday" class="">{{op.walkin.everyday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.weekdays" class="">{{op.walkin.weekdays}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.monday" class="">{{op.walkin.monday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.tuesday" class="">{{op.walkin.tuesday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.wednesday" class="">{{op.walkin.wednesday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.thursday" class="">{{op.walkin.thursday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.friday" class="">{{op.walkin.friday}}</p>\n                                    <p style="margin-left: 0px;"  *ngIf="op.walkin.saturday" class="">{{op.walkin.saturday}}</p>\n                                </div>\n                            </div>\n\n                            \x3c!-- <div class="row">\n                                <div class="col-md-12">\n                                    <p>\n                                        <span class="museo500-regular"><img src="assets/images/atlas-logo.png" style="height: 22px;margin-top:-4px;" /><font style="font-size: 1em; color:#279184;">Click to Learn more about the quality of this facility.</font><img src="assets/images/search-icon.png" style="height: 25px;" /></span>\n                                    </p>\n                                </div>\n                            </div> --\x3e\n                        </div>\n                        \x3c!-- <div class="hria_result_box" (mouseover)="mouseover(2)" (mouseout)="mouseout(2)" data-priority="0" data-id="14442" style="break-after: auto;" data-distance="40.89">\n                                <h3>\n                                    <div>\n                                        <input name="selected[]" id="selected14442" class="checkbox-custom" type="checkbox" value="14442">\n                                        <label title="Veteran\'s Center for Addiction Treatment - Detox" for="selected14442" class="checkbox-custom-label org-label">\n                                            <a href="https://mahelplineonline.custhelp.com/app/account/provider_details/org_id/14442" target="_blank" class="_org">Veteran\'s Center for Addiction Treatment - Detox</a>\n                                        </label>\n                                    </div>\n                                </h3>\n                                <p class="_address"><i class="fa fa-home"></i> 940 Belmont Street, Brockton, MA 02302</p>\n                                <p class="_phone_number"><i class="fa fa-phone"></i> (508) 583-4500</p>                                <p class="_fax"><i class="fa fa-fax"></i> (508) 895-0261</p>                                <p class="_website"><i class="fa fa-globe"></i> <a href="http://www.boston.va.gov/">www.boston.va.gov</a></p>\n                                    <div class="row">\n                                        <div class="col-md-10">\n                                            <p><b>Treatments offered:</b>\n    <span class="_treatments">\n        <a href="https://mahelplineonline.custhelp.com/app/account/answers/answer_id/6" target="_blank">Detox - Veterans</a>,                                          \n    </span></p>\n    </div>\n<div class="col-md-2"></div>\n</div> \n                    </div> --\x3e\n\n\n                        \x3c!-- <div class="hria_result_box" (mouseover)="mouseover(3)" (mouseout)="mouseout(3)" data-priority="" data-id="15430" style="break-after: auto;" data-distance="21.91">\n                        <h3>\n                            <div>\n                                <input name="selected[]" id="selected15430" class="checkbox-custom" type="checkbox" value="15430">\n                                <label title="ATR Intake - New Bedford" for="selected15430" class="checkbox-custom-label org-label">\n                                    <a href="https://mahelplineonline.custhelp.com/app/account/provider_details/org_id/15430" target="_blank" class="_org">ATR Intake - New Bedford</a>\n                                </label>\n                            </div>\n                        </h3>\n                        <p class="_address"><i class="fa fa-home"></i> 13 North 6th Street, New Bedford, MA 02740</p>\n                        <p class="_phone_number"><i class="fa fa-phone"></i> (508) 742-6640</p>                                                                <p class="_website"><i class="fa fa-globe"></i> <a href="https://www.ma-atr.org/about-atr/">www.ma-atr.org</a></p>\n                            <div class="row">\n                                <div class="col-md-10">\n                                    <p><b>Treatments offered:</b>\n                                    <span class="_treatments">\n                                        <a href="https://mahelplineonline.custhelp.com/app/account/answers/answer_id/5" target="_blank">ATR Intake</a>,                                          \n                                    </span></p>\n                                    </div>\n                                    <div class="col-md-2"><p class="pull-right _bsas"><img width="60px" height="36" src="https://helplinema.org/wp-content/uploads/2016/06/bsas-logo.png" alt="BSAS Funded"></p></div>\n                            </div> \n                    </div>  --\x3e\n\n                    </div>\n                </div>\n            </div>\n            <div class="col-sm-6">\n                <div id="map" *ngIf="opa_result.length==0" style="width:100%;height:530px;display: none;"></div>\n                <div id="map" *ngIf="opa_result.length>0" style="width:100%;height:530px;"></div>\n            </div>\n        </div>\n    </div>\n    \x3c!-- <div id="map"></div> --\x3e\n    \x3c!-- Modal --\x3e\n    <div id="email_modal" class="modal fade" role="dialog">\n        <div class="modal-dialog">\n            \x3c!-- Modal content--\x3e\n            <div class="modal-content" style="width: 600px;left: 50%;transform: translate(-50%);">\n                <form id="send_mail_form" method="post" action="">\n                    <div class="modal-header">\n                        <h4 class="modal-title">Send results by email</h4>\n                        <button type="button" class="close" style="margin-top:-18px;" data-dismiss="modal">\xd7</button>\n                    </div>\n                    <div class="modal-body">\n                        <input type="email" placeholder="Enter your email" name="email" id="email"\n                            class="form-control" />\n                        <span style="color: red; font-weight: 100;" id="emailError"></span>\n                    </div>\n                    <div class="modal-footer" style="justify-content: flex-end;">\n                        <button type="submit" id="sendemail" (click)="shareData()" [disabled]="mail_submit" class="btn purple-bg">Send</button>&nbsp;<img *ngIf="mailLoader" src="assets/images/loader.gif"\n                        style="padding-right: 6px; height:20px;" />\n                    </div>\n                    <div id="mailSuccess" style="height:30px; padding-left:20px;display:none;">Email has been sent.\n                    </div>\n                </form>\n            </div>\n        </div>\n        \x3c!--button id="down_server">Down Server</button--\x3e\n    </div>\n    <div class="modal fade bs-example-modal-sm in" id="loginSignup" tabindex="-1" style="display: none;">\n        <div class="modal-dialog modal-sm" id="yui_3_17_2_10_1621849182615_138">\n            <div class="modal-content clearfix" style="width: 300px;left: 50%;transform: translate(-50%);">\n                <form method="post" [formGroup]="login_form" (ngSubmit)="loginSubmit()">\n                    <div class="col-sm-12" id="yui_3_17_2_10_1621849182615_136">\n                        <h3>Login to your account</h3>\n                        <div class="form-group" id="yui_3_17_2_10_1621849182615_135">\n                            <label for="modal_un" style="font-size: 16px;">Email Address: <span\n                                    class="red">*</span></label>\n                            <input type="text" formControlName="modal_un" name="modal_un" id="modal_un"\n                                class="form-control">\n                            <div class="" *ngIf="submitted2 && f2.modal_un?.errors">\n                                <small class="text-danger" *ngIf="f2.modal_un.errors.required">Please enter email\n                                    address</small>\n                            </div>\n                            <div class="" *ngIf="submitted2 && f2.modal_un?.errors && !f2.modal_un.errors.required">\n                                <small class="text-danger" *ngIf="f2.modal_un.invalid">Please enter valid email\n                                    address</small>\n                            </div>\n                        </div>\n                        <div class="form-group" id="yui_3_17_2_10_1621849182615_143">\n                            <label for="modal_pw" style="font-size: 16px;">Password: <span class="red">*</span></label>\n                            <input type="password" formControlName="modal_pw" name="modal_pw" id="modal_pw"\n                                class="form-control">\n                            <div class="" *ngIf="submitted2 && f2.modal_pw?.errors">\n                                <small class="text-danger" *ngIf="f2.modal_pw.errors.required">Please enter\n                                    password</small>\n                            </div>\n                        </div>\n                        <div class="form-group text-center" id="yui_3_17_2_10_1621849182615_151">\n                            <button data-dismiss="modal" class="button button_small"\n                                id="yui_3_17_2_10_1621849182615_158">Cancel</button>&nbsp;<button id="modal_login"\n                                class="button button_small">Login</button>&nbsp;\n                            <input type="hidden" id="modal_incident" name="modal_incident" value="MTU3NjI1">\n                        </div>\n                        <div class="form-group text-right" style="font-size: 16px;">\n                            Don\'t have an account? Click <strong><a href="">here</a></strong> to sign up. It\'s free to\n                            do so.\n                        </div>\n                    </div>\n                </form>\n            </div>\n        </div>\n    </div>',styles:['@charset "UTF-8";\n.ng-select .ng-arrow-wrapper .ng-arrow {\n  display: none;\n}\n.ng-select span.ng-arrow-wrapper:before {\n  content: "\uf0ab";\n  display: inline-block;\n  font: normal normal normal 14px/1 FontAwesome;\n  font-size: inherit;\n  text-rendering: auto;\n}\n::ng-deep .ui-widget-header {\n  border: 1px solid #dddddd !important;\n  background: #8c5c8d !important;\n  color: #fff !important;\n  font-weight: bold;\n}\n::ng-deep .ui-dialog {\n  margin-left: 26%;\n  margin-top: 20%;\n}\n::ng-deep input[type=text] {\n  height: auto !important;\n}\n::ng-deep .purple-bg:focus {\n  color: #fff !important;\n}\n::ng-deep .hria_result_box h3, ::ng-deep .hria_result_box p {\n  font-size: 16px !important;\n  overflow-wrap: break-word;\n}\n::ng-deep .ui-dialog {\n  z-index: 9999999 !important;\n}\n::ng-deep .btn-group-xs > .btn, .btn-xs {\n  font-size: 15px;\n}\n::ng-deep #loader {\n  height: 2000px;\n  text-align: center;\n  background-color: #eae5e5;\n  position: absolute;\n  width: 100%;\n  left: 0px;\n  top: 0px;\n  z-index: 999999999 !important;\n  padding-top: 20%;\n}\n::ng-deep #psd_agent_nav {\n  display: none !important;\n}\n::ng-deep #block-44 {\n  display: block !important;\n}\n::ng-deep .footerlang {\n  display: block !important;\n}\n.bsas_content {\n  padding-left: 164px;\n  font-size: 1.12em;\n}\n#bsasImg {\n  float: left;\n}\n@media (max-width: 768px) {\n  #bsasImg {\n    float: none !important;\n  }\n\n  #atlasImg {\n    height: 52px;\n    float: none !important;\n  }\n\n  #atlasImg + p {\n    padding-left: 0px !important;\n  }\n\n  .bsas_content {\n    padding-left: 0px !important;\n  }\n\n  button._share_result {\n    margin-bottom: 1px;\n  }\n\n  .modal-dialog, .modal-content {\n    width: auto !important;\n  }\n}\n@media (max-width: 648px) {\n  .pull-right {\n    float: left !important;\n  }\n}']})],Iz);let Az=class{constructor(t,e,n){this._Activatedroute=t,this.router=e,this.httpService=n,this.baseurl=Xf}ngOnInit(){this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.reqnumber=t.get("incidentid")}),this.postObj={answerid:this.reqnumber},this.httpService.post(this.baseurl+"/v1/open/answer",this.postObj,{responseType:"text"}).subscribe(t=>{if(console.log("data",t),t.includes("incidentid")){console.log("incident");var e=t.split(":").pop();console.log(e);e=t.split(":").pop();this.router.navigate(["/spa_result/incident_id/"+e])}else{this.Data=t;var n=this.Data.split(":");console.log(n),this.servicname=n[1].split("|").shift(),console.log(this.servicname);e=this.Data.split("|").pop();console.log(e),this.descriptin=e.split(":").pop(),console.log(e)}})}ngAfterContentInit(){this.myCipher=(t=>{const e=t=>t.split("").map(t=>t.charCodeAt(0)),n=t=>("0"+Number(t).toString(16)).substr(-2),i=n=>e(t).reduce((t,e)=>t^e,n);return t=>t.split("").map(e).map(i).map(n).join("")})("39383828696a286364286566286778287072abcdefhjklmnopxyz@!=-()")}};Az.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:Wf.Router},{type:Yf.HttpClient}],Az=Hh([Object(s.Component)({selector:"app-answer",template:'<div class="container body">\t\t\n    \n    <div class="col-sm-12">\n     <h3>Service Descriptions</h3>\n     <table class="table table-bordered">\n         <tbody><tr>\n             <td><b>Service Name</b></td>\n             <td>{{servicname}}</td>\n         </tr>\n         <tr>\n             <td><b>Description</b></td>\n             <td>{{descriptin}}</td>\n         </tr>\n     </tbody></table>\n    \n     <div class="row mt-40"></div>\n     </div>\n    </div>\n\t\n',styles:[""]})],Az);let Dz=class{constructor(t,e,n){this._Activatedroute=t,this.router=e,this.httpService=n,this.baseurl=Xf}ngOnInit(){this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.reqnumber=t.get("incidentid")}),this.postObj={answerid:this.reqnumber},this.httpService.post(this.baseurl+"/v1/open/answer",this.postObj,{responseType:"text"}).subscribe(t=>{if(console.log("data",t),t.includes("incidentid")){console.log("incident");var e=t.split(":").pop();console.log(e);e=t.split(":").pop();this.router.navigate(["/es/spa_result/incident_id/"+e])}else{this.Data=t;var n=this.Data.split(":");console.log(n),this.servicname=n[1].split("|").shift(),console.log(this.servicname);e=this.Data.split("|").pop();console.log(e),this.descriptin=e.split(":").pop(),console.log(e)}})}ngAfterContentInit(){this.myCipher=(t=>{const e=t=>t.split("").map(t=>t.charCodeAt(0)),n=t=>("0"+Number(t).toString(16)).substr(-2),i=n=>e(t).reduce((t,e)=>t^e,n);return t=>t.split("").map(e).map(i).map(n).join("")})("39383828696a286364286566286778287072abcdefhjklmnopxyz@!=-()")}};Dz.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:Wf.Router},{type:Yf.HttpClient}],Dz=Hh([Object(s.Component)({selector:"app-es-answer",template:'<div class="container body">\t\t\n    \n    <div class="col-sm-12">\n     <h3>Descripciones de servicio</h3>\n     <table class="table table-bordered">\n         <tbody><tr>\n             <td><b>Nombre del Servicio</b></td>\n             <td>{{servicname}}</td>\n         </tr>\n         <tr>\n             <td><b>Descripci\xf3n</b></td>\n             <td>{{descriptin}}</td>\n         </tr>\n     </tbody></table>\n    \n     <div class="row mt-40"></div>\n     </div>\n    </div>\n\t\n',styles:[""]})],Dz);let Tz=class{constructor(t){this.router=t}ngOnInit(){this.router.navigate(["/login"])}};Tz.ctorParameters=()=>[{type:Wf.Router}],Tz=Hh([Object(s.Component)({selector:"app-loading",template:'<div style="width:100%;text-align:center">\n    <img src="../../../assets/images/Curve-Loading.gif" /> \n</div>\n',styles:[""]})],Tz);let Oz=class{constructor(t){this._Activatedroute=t}ngOnInit(){this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.reqnumber=t.get("id")})}};Oz.ctorParameters=()=>[{type:Wf.ActivatedRoute}],Oz=Hh([Object(s.Component)({selector:"app-makearequest-confirm",template:'<div class="container body">\n    <div class="row">\n        <div class="col-sm-12">\n            <div class="page_heading">Service Request Confirmation</div>\n        </div>\n        \n        <div class="col-sm-12 top10">\n                    <div class="alert alert-success">\n                        <i class="fa fa-check">&nbsp;</i>\n                        Your request has been received and the Helpline Administrator notified.  The service request number is <strong>{{reqnumber}}</strong>. You can return to your <a [routerLink]="[\'/overview\']">account home</a> page.</div>\n                    \n        </div>\n    </div>\n</div>',styles:[".page_heading {\n  font-size: 32px;\n  color: #9c6b9e;\n}\n\n.alert-success {\n  background-color: #949c17;\n  border: 1px solid #949c17;\n  color: #fff;\n}\n\n.alert {\n  margin-bottom: 10px;\n  padding: 8px;\n  font-size: 16px;\n}\n\n.alert-success a {\n  color: blue;\n}"]})],Oz);const Pz={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})};let Nz=class{constructor(t){this.http=t,this.backendUrl=Xf}submitdatacorrection(t){return this.http.post(this.backendUrl+"/v1/open/datacorrection",t,Pz)}getallincidents(){return this.http.get(this.backendUrl+"/v1/open/alldatacorrections",Pz)}getmyincident(t){return this.http.get(this.backendUrl+"/v1/open/datacorrection/"+t,Pz)}getPrograms(){return this.http.get(this.backendUrl+"/v1/open/programs",Pz)}};Nz.ctorParameters=()=>[{type:Yf.HttpClient}],Nz=Hh([Object(s.Injectable)({providedIn:"root"})],Nz);let Mz=class{constructor(t,e,n,i,s){this.route=t,this.router=e,this.fb=n,this.datacorrectionservice=i,this.titleService=s,this.allcasestype=!1,this.relatedcasestype=!0,this.myControl=new ef,this.filteredOptions=[],this.prodSuggestion=!1,this.titleService.setTitle("Data Correction - Massachusetts Substance Use Helpline")}ngOnInit(){this.registerForm=this.fb.group({first:["",im.required],last:["",im.required],email:["",im.required],probType:["",im.required],subject:["",im.required],desc:["",im.required]}),this.sub=this.route.queryParams.subscribe(t=>{this.providerid=t.provider_id,this.iid=t.iid,this.ac_id=t.ac_id,console.log(this.ac_id),console.log(this.providerid),console.log(this.iid)}),this.datacorrectionservice.getPrograms().subscribe(t=>{this.programs=t,console.log(t),null!=this.providerid&&(this.providername=this.programs.filter(t=>t.id==this.providerid)[0].name,this.registerForm.controls.subject.setValue(this.providername),console.log(this.providername))}),this.filteredOptions=this.registerForm.get("subject").valueChanges.pipe(Object(yg.a)(""),Object($h.a)(t=>t.length>=1?this.filter(t):[])),console.log(this.filteredOptions),this.relatedcases()}filter(t){return this.programs.filter(e=>0===e.name.toLowerCase().indexOf(t.toLowerCase()))}get f(){return this.registerForm.controls}regSubmit(){var t,e;if(this.submitted=!0,console.log(this.ac_id),""==this.ac_id||null==this.ac_id){if(this.f.desc.invalid||this.f.probType.invalid||""==this.providername||this.f.first.invalid||this.f.last.invalid||this.f.email.invalid)return void console.log("invalid form no ac_id")}else if(this.f.probType.invalid||""==this.providername||this.f.desc.invalid)return void console.log("invalid form");console.log(this.registerForm.value),console.log(this.providerid);let n=this.providername?this.providername:this.registerForm.value.subject;e={iid:null!=this.iid?this.iid:"",contactid:null!=this.ac_id?this.ac_id:"",firstname:this.registerForm.value.first,lastname:this.registerForm.value.last,email:this.registerForm.value.email,providerid:this.providerid?this.providerid:"Add New Program"!=this.registerForm.controls.probType.value?null===(t=this.programs.filter(t=>t.name==this.registerForm.value.subject)[0])||void 0===t?void 0:t.id:"",problemtype:this.registerForm.value.probType,subject:n,notes:"Problem Type: "+this.registerForm.value.probType+"<br/>Provider Name: "+n+"<br/>"+this.registerForm.value.desc},console.log(e),this.datacorrectionservice.submitdatacorrection(e).subscribe(t=>{console.log(t),t&&this.router.navigate(["data-correction-record-submission"])})}relatedcases(){this.relatedcasestype=!0,this.allcasestype=!1,console.log(this.providerid),this.datacorrectionservice.getallincidents().subscribe(t=>{console.log(t),this.relatedcasesdata=t,this.providercases=this.relatedcasesdata.filter(t=>t.organizationid==this.providerid&&null!=t.organizationid),console.log(this.providercases)})}allcases(){this.relatedcasestype=!1,this.allcasestype=!0,this.datacorrectionservice.getallincidents().subscribe(t=>{this.allcasesdata=t,this.allcasesdata=this.allcasesdata.sort(function(t,e){if(t.id>e.id)return-1})})}ngAfterViewInit(){}changeProb(){this.prodSuggestion=!1,"Add New Program"==this.registerForm.controls.probType.value&&(this.prodSuggestion=!0)}};Mz.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:Wf.Router},{type:Uf},{type:Nz},{type:wh}],Mz=Hh([Object(s.Component)({selector:"app-data-correction",template:'\n\n\n\x3c!-- <div class="container">\n\t<div class="row">\n\t\t<div class="col-md-12">\n\t\t\t<span> Record has been submitted successfully</span>\n\t\t</div>\n\t</div>\n</div>\t --\x3e\n\x3c!-- <?php\n}else{\n$ProviderID = $this->data[\'Provider\'];\n//$ProviderID = \'"\'.$this->data[\'Provider\'].\'"\';\n?> --\x3e\n\n\t\n<div class="container">\n\t<div class="row">\n\t\t<div class="col-md-12">\n\t\t\t<h1 class="heading">Submit a request</h1>\n\t\t</div>\t\n\t</div>\n\t<br>\t\n\t<div class="row">\n\t\t<div class="col-md-4">\t\n\t\t\t<form id="datacorrection" [formGroup]="registerForm" (ngSubmit)="regSubmit()">\n\t\t\t<div *ngIf="!ac_id">\n\t\t\t\t<div class="form-group">\n\t\t\t\t\t<span class="h4">First Name <span class="red text_small required">*</span></span>\t\t\t\t\t\t\n\t\t\t\t\t \x3c!--<label> First Name <span class="required">*</span></label>--\x3e\n\t\t\t\t\t<input type="text" class="form-control" id="first" name="first" formControlName="first"/>\n\t\t\t\t\t<div *ngIf="submitted && f.first?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.first.errors.required">Please enter firstname</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group">\t\t\t\t\t\t\n\t\t\t\t\t\x3c!--<label> Last Name <span class="required">*</span></label>--\x3e\n\t\t\t\t\t<span class="h4">Last Name <span class="red text_small required">*</span></span>\n\t\t\t\t\t<input type="text" class="form-control" id="last" name="last" formControlName="last"/>\n\t\t\t\t\t<div *ngIf="submitted && f.last?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.last.errors.required">Please enter lastname</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group">\t\t\t\t\t\t\n\t\t\t\t\t\x3c!--<label> Email <span class="required">*</span></label>--\x3e\n\t\t\t\t\t<span class="h4">Email <span class="red text_small required">*</span></span>\n\t\t\t\t\t<input type="text" class="form-control" id="email" name="email" formControlName="email"/>\n\t\t\t\t\t<div *ngIf="submitted && f.email?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.email.errors.required">Please enter Email</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t\t<div class="form-group">\t\t\t\t\t\t\n\t\t\t\t\t\x3c!--<label> Problem Type <span class="required">*</span> </label>--\x3e\n\t\t\t\t\t<span class="h4">Problem Type <span class="red text_small required">*</span></span>\n\t\t\t\t\t<select class="form-control" id="probType" name="probType"  (change)="changeProb()" formControlName="probType">\n\t\t\t\t\t\t<option value=""> --- </option>\n\t\t\t\t\t\t<option value="Program has Incorrect Phone Number" >Program has Incorrect Phone Number</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Address" >Program has Incorrect Address</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Hours" >Program has Incorrect Hours</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Insurance" >Program has Incorrect Insurance</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Website" >Program has Incorrect Website</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Treatment" >Program has Incorrect Treatment</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Substances" >Program has Incorrect Substances</option>\n\t\t\t\t\t\t<option value="Program has Incorrect Gender Served" >Program has Incorrect Gender Served</option>\n\t\t\t\t\t\t<option value="Add New Insurance Plan" >Add New Insurance Plan</option>\n\t\t\t\t\t\t<option value="General: Website Issue" >General: Website Issue</option>\n\t\t\t\t\t\t<option value="Program is Closed" >Program is Closed</option>\n\t\t\t\t\t\t<option value="Add New Program" >Add New Program</option>\n\t\t\t\t\t\t<option value="Other" >Other</option>\n\t\t\t\t\t</select>\t\n\t\t\t\t\t<div *ngIf="submitted && f.probType?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.probType.errors.required">Please select Problem Type</small>\n\t\t\t\t\t</div>\t\t\t\t\t\t\t\n\t\t\t\t</div>\n\t\t\t\t\x3c!-- <?php\n\t\t\t\tif(!$this->data[\'Provider\']){\n\t\t\t\t\t$readonly = "";\n\t\t\t\t\t$span = \'<span class="required">*</span>\';\t\n\t\t\t\t}else{\n\t\t\t\t\t$span = "";\n\t\t\t\t\t$readonly = "readonly";\n\t\t\t\t}\t\n\t\t\t?>\t\t --\x3e\n\t\t\t\t<div class="form-group" *ngIf="providername==undefined && !prodSuggestion">\t\t\t\t\t\t\n\t\t\t\t\t<span class="h4">Provider Name <span class="red text_small required">*</span></span>\n\t\t\t\t\t<input #inputField type="text" aria-label="Number" matInput  [matAutocomplete]="auto"    id="subject" name="subject" formControlName="subject" />\n\t\t\t\t\t<mat-autocomplete #auto="matAutocomplete">\n\t\t\t\t\t\t<mat-option *ngFor="let option of filteredOptions | async" value={{option.name}}>\n\t\t\t\t\t\t  {{ option.name }}\n\t\t\t\t\t\t</mat-option>\n\t\t\t\t\t  </mat-autocomplete>\n\t\t\t\t\t  <div *ngIf="submitted && f.subject?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.subject.errors.required">Please enter Provider name</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="form-group" *ngIf="prodSuggestion">\t\t\t\t\t\t\n\t\t\t\t\t<span class="h4">Provider Name <span class="red text_small required">*</span></span>\n\t\t\t\t\t<input type="text" aria-label="Number" id="subject" name="subject" formControlName="subject" />\n\t\t\t\t\t  <div *ngIf="submitted && f.subject?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.subject.errors.required">Please enter Provider name</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\t\n\t\t\t\t<div class="form-group" *ngIf="providername!=undefined">\n\t\t\t\t\t<span class="h4">Provider Name</span>\n\t\t\t\t\t<input type="text" id="subject" name="subject" formControlName="subject" [value]="providername" readonly/>\n\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t<div class="form-group">\t\t\t\t\t\t\n\t\t\t\t\t\x3c!--<label> Notes <span class="required">*</span></label>--\x3e\n\t\t\t\t\t<span class="h4">Notes <span class="red text_small required">*</span></span>\n\t\t\t\t\t<textarea type="textarea" rows="5" class="form-control" id="desc" name="desc" formControlName="desc"></textarea>\n\t\t\t\t\t<div *ngIf="submitted && f.desc?.errors">\n\t\t\t\t\t\t<small class="text-danger ml-1" *ngIf="f.desc.errors.required">Please enter notes</small>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<input type="hidden" value="" id="providerid" name="providerid" />\n\t\t\t\t<input type="hidden" value="" id="iid" name="iid" />\n\t\t\t\t<input type="hidden" value="" id="ac_id" name="ac_id" />\n\t\t\t\t\x3c!-- <?php\n\t\t\t\t\tif(getUrlParm(\'ac_id\')){\n\t\t\t\t\t\tif($this->data[\'cid\']){\t\t\t\t\t\t\t\n\t\t\t\t\t?> --\x3e\n\t\t\t\t\t\t<input type="hidden" value="" id="cid" name="cid" />\n\t\t\t\t\t\x3c!-- <?php\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t?> --\x3e\n\t\t\t\t\t\t<input type="hidden" value="" id="first" name="first" />\n\t\t\t\t\t\t<input type="hidden" value="" id="last" name="last" />\n\t\t\t\t\t\t<input type="hidden" value="" id="email" name="email" />\n\t\t\t\t\t\x3c!-- <?php\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t?>\t --\x3e\n\t\t\t\t<div class="form-group">\n\t\t\t\t\t<input type="submit" value="Submit" class="btn-get-started purple-bg login-btn" id="submit"/>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\t\t<div class="col-md-8">\t\t\t\t\t\n\t\t\t<div class="tab" id="target">\n\t\t\t  <button class="tablinks" [ngClass]="{\'active\': relatedcasestype === false}" (click)="relatedcases()" id="defaultOpen">Related Cases </button>\n\t\t\t  <button class="tablinks" [ngClass]="{\'active\': relatedcasestype === true}" (click)="allcases()">All Cases</button>\n\t\t\t  \n\t\t\t</div>\n\n\t\t\t<div id="providerInc" class="tabcontent_provider" *ngIf ="!allcasestype">\n\t\t\t\t<table id="wl_pending_admission" class ="table table-bordered table-sm psd_agency_program_box table_manage_users">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th><strong>#</strong></th>\n\t\t\t\t\t\t\t<th><strong>Reference</strong></th>\n\t\t\t\t\t\t\t<th><strong>Provider</strong></th>\n\t\t\t\t\t\t\t<th><strong>Problem Type</strong></th>\n\t\t\t\t\t\t\t<th><strong>Status</strong></th>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody id="sortable_pending_admission" >\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr *ngFor="let data of providercases;let i=index"  style="background-color: #f5f5f5;">\n\t\t\t\t\t\t\t\t<td>{{i+1}}</td>\n\t\t\t\t\t\t\t\t<td width=\'20%\'><a href=\'javascript:void(0)\'  [ngbTooltip]="tipcontent" placement="auto" title=\'\'>{{data.incidentrefno}}</a></td>\n\t\t\t\t\t\t\t\t<ng-template #tipcontent>\n\t\t\t\t\t\t\t\t\t <div > \n\t\t\t\t\t\t\t\t<h4 class="head-txt-dc">Description</h4>\n\t\t\t\t\t\t\t\t<div >\n\t\t\t\t\t\t\t\t\t<label class="label-txt">Created Time : {{data.createdtime | date:"MM/dd/yyyy hh:mm a"}} <small class="small"></small></label>\n\t\t\t\t\t\t\t\t\t<label class="label-txt">Notes   : <span style="white-space:pre-wrap" [innerHTML]="data.notes"></span><small class="small"></small></label><hr>\n\t\t\t\t\t\t\t\t\t </div> \n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t<td>{{providername}}</td>\n\t\t\t\t\t\t\t\t<td>{{data.problemtype}}</td>\n\t\t\t\t\t\t\t\t<td>{{data.incidentstatusname}}</td>\n\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\x3c!-- <tr><td colspan="3">No wailist is associated with this Program as yet</td></tr>\t\t\t\t\t\t\t\t --\x3e\n\t\t\t\t\t\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\t\t\t\t\t \n\t\t\t</div>\n\n\t\t\t<div id="CorrList" [ngClass]="allcasestype==true?\'tabcontent_provider\':\'tabcontent\'" >\n\t\t\t  <table id="wl_pending_admission" class ="table table-bordered table-sm psd_agency_program_box table_manage_users">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th><strong>#</strong></th>\n\t\t\t\t\t\t\t<th><strong>Reference</strong></th>\n\t\t\t\t\t\t\t<th><strong>Provider</strong></th>\n\t\t\t\t\t\t\t<th><strong>Problem Type</strong></th>\n\t\t\t\t\t\t\t<th><strong>Status</strong></th>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody id="sortable_pending_admission" *ngIf="allcasestype">\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<tr *ngFor="let data of allcasesdata;let i=index">\n\t\t\t\t\t\t\t\t<td>{{i+1}}</td>\n\t\t\t\t\t\t\t\t<td width=\'20%\'><a href=\'javascript:void(0)\' [ngbTooltip]="tipcontent1" placement="auto" title=\'\'>{{data.incidentrefno}}</a></td>\n\t\t\t\t\t\t\t\t<ng-template #tipcontent1>\n\t\t\t\t\t\t\t\t\t<div > \n\t\t\t\t\t\t\t   <h4 class="head-txt-dc">Description</h4>\n\t\t\t\t\t\t\t   <div >\n\t\t\t\t\t\t\t\t   <label class="label-txt">Created Time : {{data.createdtime | date:"MM/dd/yyyy hh:mm a"}} <small class="small"></small></label>\n\t\t\t\t\t\t\t\t   <label class="label-txt">Notes   : <span style="white-space:pre-wrap" [innerHTML]="data.notes"></span><small class="small"></small></label><hr>\n\t\t\t\t\t\t\t\t\t</div> \n\t\t\t\t\t\t\t   </div>\n\t\t\t\t\t\t\t   </ng-template>\n\t\t\t\t\t\t\t\t<td>{{data.subject}}</td>\n\t\t\t\t\t\t\t\t<td>{{data.problemtype}}</td>\n\t\t\t\t\t\t\t\t<td>{{data.incidentstatusname}}</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\x3c!-- <tr><td colspan="5" style="text-align: center">No results found</td></tr>\t\t\t\t\t\t\t --\x3e\n\t\t\t\t\t\t\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\t\t\t\n\t\t\t\n\t\t</div>\n\t</div>\t\t\n</div>\n\n\n\n',encapsulation:s.ViewEncapsulation.None,styles:['h1.heading {\n  font-size: 2.5em;\n  color: #8c5c8d !important;\n  font-weight: 400;\n  margin: 0;\n}\n\n/* Style the tab */\n\n.tab {\n  overflow: hidden;\n  border: 1px solid #ccc;\n  border-bottom: none;\n  background-color: #f1f1f1;\n  border-radius: 5px;\n  border-bottom-left-radius: 0px;\n  border-bottom-right-radius: 0px;\n}\n\n.btn-get-started {\n  font-family: "Gilroy Medium", sans-serif;\n  /* text-transform: uppercase; */\n  letter-spacing: 0;\n  display: inline-block;\n  padding: 6px 22px;\n  border-radius: 50px;\n  transition: 0.5s;\n  font-size: 16px;\n  color: #fff;\n  background: #8c5c8d;\n  border: 2px solid #9281c5;\n  min-width: 50px;\n}\n\n/* Style the buttons inside the tab */\n\n.tab button {\n  background-color: #8c5c8d;\n  width: 50%;\n  float: left;\n  border: none;\n  outline: none;\n  cursor: pointer;\n  padding: 8px 60.5px;\n  transition: 0.3s;\n  font-size: 17px;\n  font-weight: bold;\n  color: white;\n}\n\n@media only screen and (max-width: 1920px) {\n  .tab button {\n    background-color: #8c5c8d;\n    float: left;\n    border: none;\n    outline: none;\n    cursor: pointer;\n    padding: 8px 60.5px;\n    transition: 0.3s;\n    font-size: 17px;\n    font-weight: bold;\n    color: white;\n  }\n}\n\n/* Change background color of buttons on hover */\n\n.tab button:hover {\n  background-color: #ddd;\n}\n\n/* Create an active/current tablink class */\n\n.tab button.active {\n  background-color: #fcfaff;\n  color: #4D5E80;\n}\n\n/* Style the tab content */\n\n.tabcontent {\n  display: none;\n  padding: 6px 12px;\n  border: 1px solid #ccc;\n  border-top: none;\n  margin-bottom: 10px;\n}\n\n.tabcontent_provider {\n  display: block;\n  padding: 6px 12px;\n  border: 1px solid #ccc;\n  border-top: none;\n  margin-bottom: 10px;\n}\n\n#sortable_pending_admission td {\n  padding: 10px !important;\n}\n\n#wl_pending_admission {\n  table-layout: auto !important;\n}\n\n.psd_agency_program_box {\n  background-color: #ffffff !important;\n}\n\n.tabcontent {\n  padding: 6px 5px !important;\n  background-color: white;\n}\n\n.tooltip-span {\n  display: none;\n}\n\n.required {\n  color: #a94442;\n  font-size: 70%;\n}\n\n.head-txt-dc {\n  background: #8c5c8d;\n  color: white;\n  padding: 5px;\n  width: 100%;\n  text-align: left;\n  font-weight: bold;\n}\n\nlabel.label-txt {\n  font-size: 12px;\n  font-weight: bold;\n  margin-bottom: 5px;\n  display: block;\n  line-height: 18px;\n  text-align: left;\n}\n\n.small {\n  font-size: 12px;\n}\n\nhr {\n  margin: 0.5rem 0;\n}\n\n.ui-tooltip {\n  max-height: 300px;\n  overflow-y: auto;\n}\n\n.ui-widget {\n  font-size: 14px !important;\n  color: black !important;\n}\n\n[data-providerid] {\n  display: none;\n}\n\n.table_manage_users th, .table_manage_users td {\n  font-size: 100%;\n}\n\n@media screen and (max-width: 1200px) {\n  .tab button {\n    background-color: #8c5c8d;\n    float: left;\n    border: none;\n    outline: none;\n    cursor: pointer;\n    padding: 8px 107.5px;\n    transition: 0.3s;\n    font-size: 17px;\n    font-weight: bold;\n    color: white;\n  }\n}']})],Mz);let Rz=class{constructor(){}ngOnInit(){}};Rz.ctorParameters=()=>[],Rz=Hh([Object(s.Component)({selector:"app-data-correction-submission",template:'<div class="container" style="margin-top:20px">\n<div class="alert alert-success">\n    <p>Record has been submitted successfully</p>\n    </div>\n</div>',styles:[""]})],Rz);let Lz=class{constructor(t,e,n){this.route=t,this.findhelpService=e,this.titleService=n,this.titleService.setTitle("Provider Details - Massachusetts Substance Use Helpline"),this.prdId=this.route.snapshot.params.id,this.findhelpService.providerDetailsById(this.prdId).subscribe(t=>{console.log("data2",t),this.prDetails=t})}ngOnInit(){}ngAfterViewInit(){var t=0;$("body").on("click","a#collapse",function(){++t%2==0?$(this).html("+"):$(this).html("-")})}removeTags(t){return null!==t&&""!==t&&(t=t.toString()).replace(/(<([^>]+)>)/gi,"")}checkintakephone(t){return void 0!==(null==t?void 0:t.phone)&&!!((null==t?void 0:t.phone.hasOwnProperty("everyday"))||t.phone.hasOwnProperty("weekdays")||t.phone.hasOwnProperty("monday")||t.phone.hasOwnProperty("tuesday")||t.phone.hasOwnProperty("wednesday")||t.phone.hasOwnProperty("thursday")||t.phone.hasOwnProperty("friday")||t.phone.hasOwnProperty("saturday"))}checkintakewalkin(t){return void 0!==(null==t?void 0:t.walkin)&&!!((null==t?void 0:t.walkin.hasOwnProperty("everyday"))||t.walkin.hasOwnProperty("weekdays")||t.walkin.hasOwnProperty("monday")||t.walkin.hasOwnProperty("tuesday")||t.walkin.hasOwnProperty("wednesday")||t.walkin.hasOwnProperty("thursday")||t.walkin.hasOwnProperty("friday")||t.walkin.hasOwnProperty("saturday"))}};Lz.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:F_},{type:wh}],Lz=Hh([Object(s.Component)({selector:"app-provider-details",template:'<div class="container-fluid">\t\t\n    <div class="container"  *ngIf="prDetails">\n        <h2>Provider\'s Information</h2>\n        <div class="row">\n            <div class="col-md-4" *ngIf="prDetails.name!==null && prDetails.name!==undefined && prDetails.name!=\'\'">\n                <p><label>Program:&nbsp;</label>{{prDetails.name}}</p>\n            </div>\n            <div class="col-md-4" *ngIf="prDetails.agencyname!==null && prDetails.agencyname!==undefined && prDetails.agencyname!=\'\'">\n                <p><label>Agency:&nbsp;</label>{{prDetails.agencyname}}</p>\n            </div>\n            <div class="col-md-4">\n                <p><label>Address:&nbsp;</label>{{(prDetails.orgaddr.PhysicalAddress[0].street)?prDetails.orgaddr.PhysicalAddress[0].street+\',\':\'\'}} {{(prDetails.orgaddr.PhysicalAddress[0].cityname)?prDetails.orgaddr.PhysicalAddress[0].cityname+\',\':\'\'}} {{(prDetails.orgaddr.PhysicalAddress[0].stateval)?prDetails.orgaddr.PhysicalAddress[0].stateval+\',\':\'\'}} {{(prDetails.orgaddr.PhysicalAddress[0].postalcode!=\'\')?prDetails.orgaddr.PhysicalAddress[0].postalcode:\'\'}} </p>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-4" *ngIf="prDetails.phonenumber!==null && prDetails.phonenumber!==undefined && prDetails.phonenumber!=\'\'">\n                \x3c!-- <p><label>Phone: </label> ({{prDetails.phonenumber.substr(0,3)}}) {{prDetails.phonenumber.substr(3,3)}}-{{prDetails.phonenumber.substr(6,4)}}</p> --\x3e\n                <p><label>Phone:&nbsp;</label>{{prDetails.phonenumber}}</p>\n            </div>\n            <div class="col-md-4" *ngIf="prDetails.tty!==null && prDetails.tty!==undefined && prDetails.tty!=\'\'">\n                <p><label>TTY:&nbsp;</label>{{prDetails.tty}}</p>\n            </div>\n            <div class="col-md-4" *ngIf="prDetails.fax!==null && prDetails.fax!==undefined && prDetails.fax!=\'\'">\n                <p><label>FAX:&nbsp;</label>{{prDetails.fax}}</p>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-4" *ngIf="prDetails.provideremail!==null && prDetails.provideremail!==undefined && prDetails.provideremail!=\'\'">\n                <p><label>Email:&nbsp;</label>{{prDetails.provideremail}}</p>\n            </div>\n            <div class="col-md-4" *ngIf="prDetails.website!==null && prDetails.website!==undefined && prDetails.website!=\'\'">\n                <p><label>Website: &nbsp;</label><a class="_website"  *ngIf="prDetails.website && !prDetails.website.includes(\'http\')" [attr.href]="\'//\'+prDetails.website" target="_blank">{{prDetails.website}}</a><a class="_website"  *ngIf="prDetails.website && prDetails.website.includes(\'http\')" [attr.href]="prDetails.website" target="_blank">{{prDetails.website}}</a></p>\n            </div>\n            \x3c!-- <div class="col-md-4">\n                <p><label>Languages:</label> English, Spanish</p>\n            </div> --\x3e\n        </div>\n        <div class="row">\n                <div class="col-md-4" *ngIf="prDetails.attrtypeList[\'Gender  Served\']">\n                <p><label>Genders Served:&nbsp;</label> <span *ngFor="let gs of prDetails.attrtypeList[\'Gender  Served\'];let i = index">{{gs.name}}<span *ngIf="prDetails.attrtypeList[\'Gender  Served\'].length-1!=i">, </span></span></p>\n            </div>\n            <div class="col-md-4" *ngIf="prDetails.attrtypeList[\'Age Served\']">\n            <p><label>Ages Served:&nbsp;</label> <span *ngFor="let gs of prDetails.attrtypeList[\'Age Served\'];let i = index">{{gs.name}}<span *ngIf="prDetails.attrtypeList[\'Age Served\'].length-1!=i">, </span></span></p>\n            </div>\n        </div>\n        <div class="row">\n            <div class="col-md-6" style="display: flex;">\n            <div class="" *ngIf="checkintakephone(prDetails.intakes)">\n                <p class="intakehr"><label>Intake Hours (Phone):&nbsp;</label></p>\n            </div>\n            <div class="intakeres" *ngIf="checkintakephone(prDetails.intakes)">\n                <span *ngIf="prDetails.intakes.phone.everyday"\n                    class="_treatments">{{prDetails.intakes.phone.everyday}}</span>\n                <span *ngIf="prDetails.intakes.phone.weekdays"\n                    class="_treatments">{{prDetails.intakes.phone.weekdays}}</span>\n                <span *ngIf="prDetails.intakes.phone.monday"\n                    class="_treatments">{{prDetails.intakes.phone.monday}}</span>\n                <span *ngIf="prDetails.intakes.phone.tuesday"\n                    class="_treatments">{{prDetails.intakes.phone.tuesday}}</span>\n                <span *ngIf="prDetails.intakes.phone.wednasday"\n                    class="_treatments">{{prDetails.intakes.phone.wednasday}}</span>\n                <span *ngIf="prDetails.intakes.phone.thursday"\n                    class="_treatments">{{prDetails.intakes.phone.thursday}}</span>\n                <span *ngIf="prDetails.intakes.phone.friday"\n                    class="_treatments">{{prDetails.intakes.phone.friday}}</span>\n                <span *ngIf="prDetails.intakes.phone.saturday"\n                    class="_treatments">{{prDetails.intakes.phone.saturday}}</span>\n            </div>\n            </div>\n            <div class="col-md-{{(checkintakephone(prDetails.intakes))?6:12}}" style="display: flex;">\n                <div class="" *ngIf="checkintakewalkin(prDetails.intakes)">\n                    <p class="intakehr"><label>Intake Hours (Walk-in):&nbsp;</label></p>\n                </div>\n                <div class="intakeres" *ngIf="checkintakewalkin(prDetails.intakes)">\n                    <span *ngIf="prDetails.intakes.walkin.everyday"\n                        class="_treatments">{{prDetails.intakes.walkin.everyday}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.weekdays"\n                        class="_treatments">{{prDetails.intakes.walkin.weekdays}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.monday"\n                        class="_treatments">{{prDetails.intakes.walkin.monday}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.tuesday"\n                        class="_treatments">{{prDetails.intakes.walkin.tuesday}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.wednasday"\n                        class="_treatments">{{prDetails.intakes.walkin.wednasday}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.thursday"\n                        class="_treatments">{{prDetails.intakes.walkin.thursday}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.friday"\n                        class="_treatments">{{prDetails.intakes.walkin.friday}}</span>\n                    <span *ngIf="prDetails.intakes.walkin.saturday"\n                        class="_treatments">{{prDetails.intakes.walkin.saturday}}</span>\n                </div>\n            </div>\n        </div>\n            <div class="row" *ngIf="prDetails.externaldescription!==null && prDetails.externaldescription!==undefined && prDetails.externaldescription!=\'\'">\n                <div class="col-md-12">\n                <p><label>Description:&nbsp;</label><span><pre [innerHTML]="prDetails.externaldescription"></pre></span></p>\n            </div>\n            </div>\n            <div class="row">\n            <div class="col-md-12" *ngIf="prDetails.admissionprocedure!==null && prDetails.admissionprocedure!==undefined && prDetails.admissionprocedure!=\'\'">\n                <p><label>Admission Procedure:&nbsp;</label><span><pre [innerHTML]="prDetails.admissionprocedure"></pre></span></p>\n            </div>\n            </div>\n                <div class="row" *ngIf="prDetails.attrtypeList.Treatment">\n            <div class="col-md-12">\n                    <p><label>Treatments Available:&nbsp;</label><span *ngFor="let gs of prDetails.attrtypeList.Treatment; let i=index">{{gs.name}}<span *ngIf="prDetails.attrtypeList.Treatment.length-1!=i">, </span></span></p>\n                    </div>\n        </div>\n                        <div class="row" *ngIf="prDetails.attrtypeList[\'Payment\']">\n            <div class="col-md-12">\n                    <p><label>Payment Types:&nbsp;</label><span *ngFor="let gs of prDetails.attrtypeList[\'Payment\']; let i=index">{{gs.name}}<span *ngIf="prDetails.attrtypeList[\'Payment\'].length-1!=i">, </span></span></p>\n                    </div>\n        </div>\n         <div class="row" *ngIf="prDetails.attrtypeList[\'Special Populations\']">\n            <div class="col-md-12">\n                <p><label>Special Populations:&nbsp;</label>\n                    <span *ngFor="let gs of prDetails.attrtypeList[\'Special Populations\']; let i=index">{{gs.name}}<span *ngIf="prDetails.attrtypeList[\'Special Populations\'].length-1!=i">, </span></span> </p>\n            </div>\n        </div>\n        <div class="row" *ngIf="prDetails.attrtypeList.Drug">\n                <div class="col-md-12">\n                            <b><label style="font-size: 16px;">Substances Treated ({{prDetails.attrtypeList.Drug.length}})</label></b>&nbsp;\n            <a class="btn btn-primary" id="collapse" data-toggle="collapse" data-target="#collapseExample" style="color: white;">+</a>\n            </div>\n                 <div class="collapse" id="collapseExample" style="padding-left: 16px; font-size: 16px;">\n                        <span *ngFor="let gs of prDetails.attrtypeList.Drug;let i=index">{{gs.name}}<span *ngIf="prDetails.attrtypeList.Drug.length-1!=i">, </span></span>\n                 </div> \n             </div>\n             \n             <div class="row mt-10" *ngIf="prDetails.atlasenurl && prDetails.matchatlasdata">\n                <div class="col-md-12">\n                    <p>\n                        <span class="museo500-regular"><a style="font-size: 1em; color:#279184;" target="_blank" href="{{prDetails.atlasenurl}}"><img src="assets/images/atlas-logo.png" style="margin-bottom:5px;height: 38px;"/>Click to learn more about the quality of this facility<img src="assets/images/search-icon.png" style="height: 40px;" /> </a></span>\n                    </p>\n                </div>\n            </div>\n        </div>\n    <div>\n    </div>\n    </div>',styles:['.col-md-4 p, .col-md-12 p {\n  font-size: 16px !important;\n}\n\npre {\n  width: 100%;\n  white-space: initial;\n  border: none;\n  font-size: 16px !important;\n  padding: 0px;\n  font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif !important;\n}\n\n::ng-deep #block-44 {\n  display: block !important;\n}\n\n::ng-deep .footerlang {\n  display: block !important;\n}\n\n.intakehr {\n  font-size: 16px !important;\n}\n\n.intakeres {\n  padding-top: 3px;\n}']})],Lz);let Fz=class{constructor(t,e,n,i,s,r,a,o,l){this.fb=t,this.el=e,this.document=n,this.renderer2=i,this.waitlistservice=s,this.router=r,this.route=a,this.findhelpService=o,this.titleService=l,this.markers=[],this.gmarkers=[],this.orgIds=[],this.inc=0,this.submitted=!1,this.selection=[],this.selection2=[],this.selection3=[],this.scategory=[],this.scategory2=[],this.services=[],this.latitude=17.4405,this.longitude=78.4228,this.catObj=[],this.insurance=[],this.opa_result=[],this.city_center=[],this.radius=[],this.count=0,this.listObj=[],this.selected=[],this.left_margin="50",this.height=120,this.line_height=20,this.break_height=20,this.cntr=0,this.me=0,this.ml=0,this.bsas_funded=!1,this.need_care=!1,this.mental_health=!1,this.show_pregnancy=!1,this.homeless=!1,this.treatmentwithmefamily=!1,this.veteran=!1,this.section_msg=!1,this.isSpanish=!1,this.submitted2=!1,this.fromSelfAssessment=!1,this.noTreatments=!1,this.loader=!1,this.mail_submit=!1,this.mailLoader=!1,this.frm_submit=!1,this.opaResultDmy=[],this.backendUrl=Xf,this.loadMap2=()=>{var t=new window.google.maps.Map(this.mapElement.nativeElement,{center:{lat:24.5373,lng:81.3042},zoom:7}),e=new window.google.maps.Marker({position:{lat:24.5373,lng:81.3042},map:t,title:"Hello World!",draggable:!0,animation:window.google.maps.Animation.DROP}),n=new window.google.maps.InfoWindow({content:'<div id="content"><div id="siteNotice"></div><h3 id="thirdHeading" class="thirdHeading">W3path.com</h3><div id="bodyContent"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p></div></div>'});e.addListener("click",function(){n.open(t,e)})},this.titleService.setTitle("Buscar tratamiento - L\xednea de ayuda para el uso de sustancias de Massachusetts"),console.log("In constructor"),null!=this.router.getCurrentNavigation().extras.state?(console.log("redirected from self assessment page ",this.router.getCurrentNavigation().extras.state),this.incidentid=this.router.getCurrentNavigation().extras.state.id):void 0!==this.route.snapshot.params.id&&(this.incidentid=this.route.snapshot.params.id,this.fromSelfAssessment=!1)}get f(){return this.search_form.controls}get f2(){return this.login_form.controls}ngOnInit(){console.log("In ngOnInit"),this.logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAS4AAABACAYAAACkyZrdAAASwElEQVR4nO2dC7QewwHHN4lHQiIu4nGoEkKpejRWtQ0NCfWod+8pgmprI3L0SBvO9aEVj/I50oM6SnDSqnLJot5K6iYU3XJFjlfDyfWOtyuIeCVu/3N3Znd2dmZ39vHd75H5n/M/yd2d9+73+2Zn5pu1rBqqq8vaAv4l/Cf4Qfgl+CO4j/or+H34Kfg2+Bx4X3h4LctlZGRkFBGgsw18AbyYA1RWfwHfBR8Lr13vOhkZGbWoAJjxcFcBWKncC18Eb1LvOhoZGbWIAJSd4fk1AJboZfDZ8Fr1rrORkVGTCgAZCl8MrxgAaPF+Gd6j3vU3MjJqMgEco+EFKYAhA++L4Efhe+Db4Qfo36/BXxeA10r4PHhQvdvCyMioCQRY7AV/KIHJEvivXf6A+rfg1VLSWQP+Lvxr2KWPglkBdit7dOycdt0a8I4D0wpGRkZNI0Bif3g5Bw7y/2vgHxbt/SD+MPgIeG5GeM3j4LUTfA28ZTk1NjIyamrRntaXFBZkLdYMeD1lBNdbG/42vAd8KPUEeCy8YUpe34FvzgAvMps5jMQFtHaGl8AObB4ljYxWVQEK28FLKSSuhUfFArne9vBv4X/Ar8N9Kf4YfhiuwvvAq0vy/T7crQmv61k8AGtfeCV8M1zeLKTttMFjNcN2wD2l5d3sMu0Rl2mT2glAGA6/CL8BT4icdL2N4FPhZzVAleZe+Fp4NyH/1br8FfU6s5fTWDwAqwPug7vhOGjzyHYmw339N1voPsmx8Hg5+bbD3VpphnnP6Y/XCCKwt53e0tqjUcTAE/Vozbit2iaj6b3Xp7wP/XbrDs7XQoDB1fRRbP3goOttDl8Bf1YCsGR+CJ4olGNP+IMUcJEV99uR8IDVYHgehdczpcDLvwgThWNymLALU6bCm2Gy4nx7qcAsUwyorSLbqVLwjOWOzer/UOqn0VptwivtPvTBXZu6AwJ7w9cFM4SutyY8A/6iAJQ+hxfDT8DzqT34RUm698KjufKM6Ur/KdFj8GASHrAaA3/OwWvdQg0ie0xUg6v8mzLsTXUrznc37Ieh3uVSw15+PD293thjnj+UoJ9e0TbJW/aBkN7TQfn3Az78Q+CpwWyh6+0Kv5ADVM/Bl8GHwWPgIcpMXW8QvBl8OHwx/Ay8HD65/5xfrs004DWJJQlYXUTBRXw3rM4/jwYeXKyLLXa/22mP0IArnnd7P2jix/OPMYVfIvnhUaRNVHVKj9eWK7/s+dQNXCMJvPr/cL0TM/ayXoXP7wdVUbneVvBZ8OXwcFq2LeG3E8C1mPUSSS8L/piD1zmFy8QrDVzR5/nuyBiI/w3NYNND/y+/sfyxgx7ucbBbON9Nu9/yD4P/aMPnJT7isN5aVeN4UlqkDHOpe/v/1WkPv17VoF5hOj1BGuHxbkscU1K1pZ9frxUdh2Rh+4KeExtrUdU53p4dwbX30xorOT+LSzccDwvDsDZhefbS/7dxYeL1VdUpvDas7Tu4dCbTdLqt8DE3Gibp+kXrwNJRT1RlBVfW65oovwd0cQZgPQ8fAycuPs0l11sD3o79CTCN45ZnyHwUCwtYzeTAtQLetbRypYNrMv2b3ehzuDDdwY3j35B9yg8L61GF8cJeV/RcHFx+eAYQlk9PpFxh2Dkpx5PSYgPOrM5tVggi3fbg84ymH6ZT5dJo5+LK21INczFteZ1V8mHAAOIDKLnsYv16hL87JOmo6pt2ncW8JlohqMdy14ovX9L1m2xFAdltiV+e0bJkBVf26yqVD60rNYG1FJ4CD04saMkCnE5JWtvFwgFUW3HgIl4IlwPXLI+K0Q85m6Hkv2X6LP4bLhq3XbiwYVj+20+e72Qr+i0eB5efRjsXRnU8Ka25yps5rT30w7CeQpX7ECW3ZVZwiXVOkv/hrnLw4ns5yfWT19evX1J91XHDa5OnvZOvH9+2PbFyxsNnBVf26yqV612gCa07LLIsog4ig/DwIwnwCh7LAKpHBHgdX0oh8oOrmnpho3FDcPHps8e2pHz94+wRY67kBuanrzs0jsvTEtPN0h76YdqtsJfTHQGHSrrgSqpzNEx8yUMIPb6secAlhonXN7lO5NrMsmRLLdLLk3T9Uno60vDE8sdJv5zd3N/Zr2tMrneCBrBWwKexQfN6qcv/XaTqkXE6CwdQnSaA61Xy+8bCBcgPLnaj602f+98+PLg6pDdHCDR+LI2NabBHAL4c/ONm+C2qPp6UVjxv3fbQa7PR1G30w8nGzJLbUr/HJa9zPF5VmpfYG8gHrvARTFVfddxwiUa+HlfS9YvPoiYp/FJTXRNyzdjwQ77rGpHr7WClr88iM30/0a5EjQVAXaUAV3ATkR9gC+AiPqZw5vnB1cZ9w1Tph6Uj4UJXLX7swz8WHTzl840+3oWD+fFxKRJ+IpdH2vGktKrBeR+0bKZT94MUvdnDiYge7u85QvyO1LYM022nYVmvhT2etFnh5Ee8zvFrwQbHxwrHxHbvtUKQtCWAggFzovC3vL6qOkWvTR5wJV0/dm4OPTc5dj9G82KPeb2W+Njtp8sPwOe7roHIz25c7+kUaH0C/0hZ4DoIgNpc0ev6hM2Mkt8twh8I4JqfO1P2jRH2euZwNxU/6zOLHpvFXUgWjs3gsNkh1cA8S6/Xiva6ZgkflCqXb7hiOcy7xwpnu9hsFr/6mx8rUx1PSmt08IEPPwDsZtNtjx4hfRamarHB4tD8ILa6LaOD6OGsVPhhZOnL6yy/JlWhLHMlH9DodQsnVVhbzbLC2Ts2Y8Zfz6T6xusUtukcru3m0mvAt/dkIf4soV7R66e+v5Jn9/x82cww81wrPnOa77oGcr3pGo+H+9EEh8CN1Ou6QdHr2paFIaCS9LrMThKNLP8DODE9YBOIny0zKkmuNwr+KAVc4WI727kI3jYhxQEVXeUvA9dBLAwgdYUEXCfXs9xGRkZF5Hp/SIHWjUFY0tOynX/WsbQxkRX+Xf7OqiK4prAwgNSZEnDdWc9yGxkZ5RVZke7vzpC0En5kf1jbWR9+Gz6uzqWOif4gXATXmew8IDVVAq4P6llmIyOjvHK9X6T0tn4ahLWdK+Gv4JF1LLFUXf4OqiK4ZrDzZO2WBFzEG9ex2EZGRrnkevcnQGt+EM52todXwF79CqsWILVpCrh+pQDX3nUstpGRUWaRR0DXW5kArnDzQNu5iU5LzqxjiRPVFe7UKttccJoCXEfWs8xGRkZZRRaSqqHFL8nflPa2CLiKL9yskQAqTwDX0ewcAFVVgGtKUppGRkaNJn/PdxW4TgzC2c7vrXCx5Q/qWOJEAVR3CeAKtoIGoG5RgGtaUpoyVTaYuia8ruA1BzodhB0miV/EWmOXCDdEEnftrPXPIqS/ToZ6jCgxX1kbx96RUKbIdchzXbj4I8pqD8QdWqT+5L4o+R4dQcB1lwJaX8HhW3xsZxEHroYdzO7yd2xl0CIvnQ0uGAD1XFk9LjTeNLhPcB4AFkoHYS+VxC/ipZr57iyJe3vW+mcR0n8lY12+gl+Hb4anwLk20VO08aFl10/Ic2me68LFXyjEXwHvlbMsM4rUn9wXJd+jCwm4nlOA68EgZ9vZmoMWcbEtkGsogOovHLieZccBp/XgrxXgyry0w4CrKcAlehl8Npzpx/UtAi7id+Fv5ChLQ4JrqQJcZwU5284UAVzFd1Wokbr8t2kzcF3GjgNOhyiglWtW0YCrKcHF/GglQ++rhcBF/Hgl45BGo4LrawW4wg+z7cwWwDU8S8UHUoDVnRy4ghlRwOm6BHB9M2s+BlxNDS4GL61xmhYDF/G1GdNqSHCpBubDcSz+nX6+M3c3B0qA1QIKrbe5nSGGwh8poEX2o8+8c2uDg6sKj8/pcZr5Ngq4JpEPkcTHwefCjyV8AE7VzLfVwEXsZEirFuCaVuAe3dWiOz6I0FoWydl23hfAVd6e7SWLW8d1PjsGMP08obeV6zeXDQ6u47OWI6saCFyp460Isxf8niQuGfNJ7XW1KLi+gHdLT6lm4BqfpT5xud77EnDxm40NEaBFPCkhxboJsNqCQuszeBNyjO7D9WwCuE7Pk5cBV/OAi8bdteLPrInxU7fMaVFwEZMZ1w010mpIcD0vAdfC4DyZQYyD68JimdZGgNUkCq7L2TGA6YgEaBHn2prHgKu5wEXj3ymJn7otcAuDi3genPjimEYF120ScC0IzsvBNa9YprURgDUb/hAeRf4GlIbBLydA68m8eRlwNSW4KpL4l2rEaxVwna+A1x9T0mpIcJ0rAdfzwXnbWUcCri/hmq6SzirAanW4Fw4GHQGm81J6W7nfQmzA1ZTgOnUVB1cbPEcBr58lpNWQ4NpXAq63ImH8bWxEeNX0wmUVgHUAfB/ZUJD8DSiNg1cmQOsd0iPLm58BV1OCa7YkfkUjXquAi/xcZjj8rOTcp/AOirQaElxDrfhbfchMY7jI1HZelYDr1mIZlyu6ieAG5P8A0kbwaym9relpaSZJAZwl9IbJ4iU1ANcieH4Ob50h36YCF8JtVvFXzovx99OI2zLgoue2kaRPvFjWnjUC18Kc9yi3htT17pH0unYMzodv2eBNemGpMxIDITqbuBP5P4C0FtydAq0XOgu+U1EBrrJcrwWoO2fIt2nAhTAbwwskcXvh1F53q4GLnj9YcQ/cDQ8S0qoFuPKau96ud4QEXEcF5/0XY4jgIp6RpTFrLQqtf6VAi3ifonkZcDU2uCr+7gi7VfwB6V5FfWdo5tty4KJhztVpl0YG1xrwuwK4rg7O284hCnAtgzfI0qC1EmA0En5UA1qXlJGfAVfDgCuvSQ9sqGa+rQquwfC9knBfwwdy4RoUXESud7oArleDc7Yzgs4kyuBVCgiKCDDaAV6kAa3H4cx7ZsmkANcz9CJl8TM1ANcD9HhWb5oh32YGF2nzTTLk25LgouHITGOPJOyHFTrmWSNw3ZLzHhUe7f03/bwnwGun4Lzt3KMA18p6/QSIrop34E81oPUSXNqYnAJcZlaxtnkWBRdZOf/nSmSAVyvflgUXDbsjvFwS/umKvwlgA84q8nK9KQK4woVptnO4AlzET8O5lxbkESC0PfywBrCI34C1Z8x0ZMDVVOB6AZ5ZyTBrKuTb0uCi4Scp2q6zGcA1CH6YAxd516K/0NR2Vrf89ymq4PU3lgwgsS68WXkFC0WBdT28QhNai+HSd7Mw4GoYcE0l9RVMdoY4CB5XybnrqZBvy4OLxlGNl77c2OAicr2t4Y85eJ0SnLOdaQngIv4NCwpYtMOz4f3gQvtzd/o/3TkafqBTvYupzPfDG9Cyr5eSTSYZcDUMuLQXoBbId1UB1+rwQwp4NTi4iFzvYA5cb/ePfxGRx0HbeSsFXiexZACN7eCn4F74BvgkeBc4cTan099mmax8nw7fBy/PACviL+HfdbJ9tmzne/DuZTaRAZcBV43zHHBw0XhkzZtsUXQTgIvI9U7l4FUNjpNXkyWDizjopQEeq8Ednf6GfTxc3oQXwPOpH+n0t595NyOkRP+bPE5y5d0H/nvZzWPAZcBV4zzrAi4ad3f4y+YEF1H4A2zyxp9dguO2c68GvK6Ag+0yyIwefAm8rCCYVPbgA+FBXDmn0h6i9jS/rhocXEV2QCVOnXVTgOu/FflupDpOXQ/YYOC6MGc999XMs27govGn1Bhc04rco+m5ut4ZFF6LuIH6TVMG6pk9eAyfHH0MJG+UfroEWH1Cx9H2jJTZdtqs8K3bR+g2cBY1OLiKOnUhqgJcRTxeI89GAldev6KZZ13BRdOQ/Si9LHAVsl7OrncY/Cl8S//MI5HtjEtYlCqurj8Nji38BHDGwCfDt3Ym75vFTNZrPUZ7bvt3irs72M4gi+zOGo7D1WzDQwMuA65VAFzkRbBPNC+4iFxvG9iDZwbHfEis1IAX8UvwsVbCq806/d8akgH9PeGD4EPhH8M2rH7c84G1vxV9qcdN/cdrJAMuA65WBxdN55sV+X79TQIuItcbAk/v/3kQk+2coAku5iXwWfBW2TKXiLxRm0wE2M7/hDxuTAJkGTLgMuBaFcBF05oAr2xecDG53nr9672YbKcdXp4RYMRPwhfAB1g6P9a2nVHwBPg8+D+K3t5VFnnBR42Fxluz4m/Mxjvz7yCLpoOwwyTxizq1/UiYkvNM3Pec5rmOJF7NetVcvmW28TqaeY4U4o3MWOYRZbaVJD3ttZkV/2dDpd6jeesRF/m9onzDwSz+CH4Kng/fAd8Od8EL4N6UuJ/39/6MjIyMMsnfn/66gvDKY9Jz096SxcjIyCgu29kbXjgAwCIvqj1lIB4NjYyMVgXZzmD4SPjxGgDrHfh0ONP2JEZGRkb6Ir8TtJ3L4TcLwIqsB7sFPtgiO1UYGRkZDYj8XtgO8BR4NvwQ/DqFEj/ITlblkwH5G+Az4D0MrIyMjJj+D1F1kw8Pu9nUAAAAAElFTkSuQmCC",this.bsas="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAAA0CAYAAAAHSF9vAAALE0lEQVR42u3be3RNVx7A8XPz8IjQKNI0lYbKkBqp1LQxiEoo4hGDJFY6qi4tFYRW6GSIQVGmqmJpUpVBwqQerRGkSlskFGkbldJS7SqGKdrSibZMRyO73z9+WWuvu87Nvafy0tprfdY9dz9+e5/fPefcc3JXjLpQMguDE9AHQZiL1lI/AX1hgz/qoTk80AS+aICmGCvvW+B22GTbSxvzBJpIbB/p3xprpS4SaWgm7U2QKv2eQoRsN5f+zdEJfaTeR5svGg9irLzGw2bUdpGFH0Qx+mMt7FL/FJ7FVHyCGGRggrwux0z0xUrcjw+xDuNxDN2xDOOlfxuJvRhL0Qszpc4ufR7GYJk/G+mybUdPWZMfWmGltO2TeadjDQYiUtojZQ2jjbpQWMgIDEcXRCJG6lPxGHrjL3gQGyQhqSJe+ibjXszDRERhBlpJzHgkIFT6T0QKAhApdTHakZqORMzCZMRLe1uZww8BWuxpiEW8jO2KEEzBfQhHvHEzFRZ8F8KMW+VWuVXichobtViYvyG8jDpX4nLsKDDxDl7HbPzezVgDsBNXoXANJZgOXwtrykUBJlrclzDk4BsocQoZaGXUiUJCoVwox/OwOYnhidUuYpxFBzfWEwElzsDDzf0YjWtQTvwfiUatF0m4WIDBiEMSNkNp7E5ipECJA+gML7TEFFzAVwhxYz0roTQ93RjzB1yHwnkMhQ9uQwJKpD3OqPUiCReDTdqnQYkCJzG+hMJ3uN2kvRlC3ViLH67iHL6HQo4b49ZCid5OzsAIo04U1wlvgDIoHDf7coQShTe4lmQoZGITFH6Ar4txxVDCw6jTxXXCvbSEv2PS7q2dzl/C+wbW8jEUesEOJUa6GLcHStTx5wTXCY+HEslOYhRCiSW/cB3dofAtvNFc+yB3uxj7NyhxEI2M2i7yB50H0Q5NXSVc2trjHBQ+QgMnO9wTSvOKxSNdvw7naHX7tbuk4ErGNsNXUOJ93EFLjSU3EHGYjjGIRwS8XRzhT6MTBiADP0KhEAEuEpYEpTmAlm4mu7k2V38ndz9pLmJ0RimUOIce1fk3Djuy8RZeQBS8q+A+fAd6wMONWINwGUp85cZO64k9D0+tviXKofCZG3Ha4hiUKMPkqkpyGObgML6WJIff4DX8a5wWpVCaj9HJjXj34ACUuIbhlfS34QQUnjdp3wcluroxvy9egdKshOcvSbI/nsFRKBzBo6hf1V+a0tYRG6HEZdzrRkwvLIYS1zHISd9eUKK9Sfs4KLHcwn4l4gqUSLeS6PuxHtegcBxDYKvuuxTpkwUl8vQmC9f1i04eijZqj955JvZAiVLUtzB/Z1x2+6lVEr0DSlzBVHgZUmoo4XdBiR9hsxB/FZSY4tDmj2tQFgyzuH/DocR2Z4luhtUohxJHEVqj9+F6kUdtcZuF+PdBiS0ObdO1D3E07E68rCfN4v554AIUrpglux8uQGl2orF0qfmEk2AoccVi/KZQYpdDIk5CYaOLGC3wk3bnEWBxDR9Codwx2TP0o1rsg490qa2Ez4IS600/EOfxo6FEllYfAyVi3VjnDiiRYmH+htrZeVJP9gIoB9/irtp6tJcnuPlQ4iraOfSJxWUkwcvkr3/FUCJSa8uDwjdw53lhBJQ4ot+rS4xlaGpyOdEvR2kVyR4FZSK1hv+Wcgol4gtchxKl6GUyfj+UOI9VeBYvSyKUeF4bE4gyKGS4uc4m+B+UCJf6eQ4HxCY8h0X4GEoUob4hP/X/AGXizhpLuHNfYykCK0nEIu20dXQJ4yuZs7OFtb4OJdK1o3gcTkOZuIaX4FtxdC+EMnHeqInCb32IMhGBYAtxGmEApmMJ5mAwGpr07Shz9LC41iBEiU4ObZ7oghQswgLYEeD4RfkplImzxq1S9YXE/gRlohxNXYydi3y0r4F1DsCbeNi4CQvrrlexcR3KiQkugryBLMQgE42xGsORj1dxDw5hEnywRsZmoxXS5L03clGIIOxAnjbXNnSRGDnojsexBjsxGnOwQeoLUISeeFFiTsSTsmZfbJGxbfApllRjwhMrNg5DOXEeTSsJkoe5GIY18EUGZiINr6GXzJGIefgA/shBFEZJrK5IxnhE4xM9AWyHoAARWIER6I1C7JVx47AL7WW+GHREkcReinexDo9ghMQOwglMqqZk/wljKt5Mg6rEVniaBGmBU3gbQZLoHYhEDmZgiSThAEbiDeRK3Xa8iQCJF4w9eA0BWKrNZcMW6X8H9mMbGuGkJLkPlkvcBzAT7bAR6diM9Vq/MHyAFYjGESRWQ7JDcBYtKip88R+oSryKem4Er29hIZ6ZcKhr4yyGXHI89G2TPnEYaOW6Cls1XkZCJLcLHBt6VnYtFwfQspq/WLIRgRikY5AsuhuGwB8vIhUR0qeHjO2GLMRr48MwTcaEYBQayOsCTJOxY7AMzWTcRHTAPxDzC/elLy6iGA3MOgx3lXQJYIetmo6G9zARS7BSJCAWq/EQduNhTMYGtNd+5juAx7FYkhWA9XgUydiKeeiCWZKUGEl+WwShBI/hBdHO4n40wTLJ5XH4V9Y5Fv+FcuEgIqs44a9gF3LwGl7CcozFVOTifiThbSxDJgK1s3QYlsv4dNyGz3EJdyIFWfDBZnRHovQdgW7YjcHoh1WYZOHyNA7noLALLdwZ2BpFUG4oQF943GCybYiW7WjEYiT84SNJD5S1JclrNOzwlXGhGIPGGFjRhggRjDvQXOrtUu+J4eiKYKkPRw+MRkMXa2+MZJyGQhlmwdNKAjxk8Reh3HAS0xFo/EYK+/pHZOI7KLEbHW4kqB9moxTKDeXYh8lobfyKipwJ3bAQX0BpijCoKidrghScgLLgc2QiDncaN1GRy1wHJGE9LkFpypCHPtW9iCiswWUoi85gA1IxEMFGHSjyhReGYViIt/EtlImjmFGzl095yEEsVjk8OFn1PUrwL7yACUhAV/wOjavgIPFHe/REIlKRie34DGVQTlxHEWYi1KgrRXZoMjbhHFQVK8W/cRQl+BAFmkKUiBOyhu+hLCqT2BkYCj/jZigs9G4Mw3xsxSmoOuYqDiEbUxCFRsavpcj9b0cMQQoysBlFOIUfoarQJRzDLqzDc3gCvdAansZvvciHEohQRCAKgzWPwI6hWl0/9EC4JLIZvI1b5SYq/DgMP1HPRV9feKExQtEBbYyaLEzoA88bGG+Dr1FLRX7cLkcp/uyibwGiMAD5uIyRVicswREMgQdsTj9pvZ4kS/9shJv0fQDfoFjee8Fba/eWVz8UOJkvCudRIOO1+Zlb3jtbs/Tx1NZrc5LwCzJXEF7CcTyHUdiJEQ4JD0cOFCYhE8ewGB7uJDwXa/EJ5uANbMdGdEARlmAb1kmS92MvzmCKxEpFvhY7Hf1xEtOwGwXog49QIvNeRGv44BAStYQX4VMkyPg9iEYximT7PbyPp7AKyUjDXjEXhxEAbxyEXUv4VeRhPt5CMD7AP7ECnnrCxVYojJIcPINz6Ocy4RIgDjNRhDWS7ATtQ/hCEv06ctEW7+lHOK9JWGmS8FyxCeuwAkNlzoUokP71sQ39tYSfwXK8KuPXI0vG2jAMf8V9kqA9kqxUFEpdFqZqZ9pmxGkJPy3bTyJX4r6DDZjteEkReVAYW/EBStJDXCV8n7wOQJJMugvZUv8uAjEXO7AImbgb+bId5iT2AvSRPjEolIRG4DCKMRv5TsZH4u+SxEQZvwWdcFA8hL04hN7Sbz7aoUAS9zSSnMxxN47Iti92oxRbkYZUrW++tG1Grmz7So7OYl/Ff+D9DLyp8/GdoyNzAAAAAElFTkSuQmCC",this.phone_icon="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAWABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9qfjr+2J4K/Z0+Ivgrwx4lurqDUfHV2bSxaKJWht+VUSTsWGxC7qoIB5PQAEj1OvAf24v2btY+KMvg/x54NtdOvfH3wxvzqel2V8q+Rq0R2+baszcIzbQUf8AhYdVzuHJ/CH/AIKkWXxT/aP0b4aTfDTx7oGtX9qWvRf2yo+l3AyWWSPg/ZwoyJ8jOV+QZyNqVP2kEofHd39N018t/P5XipLklzP4bL7+v6W8vR2+qqKKKxLCiiigAooooA//2Q==",this.fax_icon="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAXABcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9rv2gP2s/BX7PF9p2ka/rltp/iLxHFL/YlnLbzSC9lXAVSyKVQF2Vcuy5zwa4fxF8Q/jl4Y+DGl+ONP8A+EB8bCS3tdRvNAs9Dm0m4a1dVkm8u7m1KSMMiEkZiO7H3e1fMX/BaL/k7P4F/wDXT/28hr5Th8B+BT8CBemz8M/2z/YJn8z7ZD9o+0fZ5Wzt/tfdv3hePs+c4/dfwHqw9JPDuu3rftdaSmttN7a6+ljKtO1dUelu9t1Hr5X009bn7e+D/FNr448JaXrVi2+y1e0ivbdjjmORA69CR0I6GivHv+CaOf8AhhD4ZZzn+yB19PMfFFRiqap1p047JtfcycNUdSjCct2k/wAD1fxP8M/DfjbWdN1HWfD+iavqGjOZNPur2xinmsGOMtE7qTGTgcqR0HpXIt+xl8HnYk/Cj4akk5JPhiy5/wDIVFFYqTj8Js0nuehaVpVroWmW9lZW0FnZ2kSwwW8EYjigjUYVFUYCqAAABwAKKKKV76se2iP/2Q==",this.search_form=this.fb.group({service_category:[null,[im.required]],more_services:[null,[im.required]],health_insurance:[],city:["",[im.required]],radius:["",[im.required]],gender:[""],age:[null]}),this.login_form=this.fb.group({modal_un:[null,[im.required,im.pattern("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$")]],modal_pw:[null,[im.required]]}),void 0===this.incidentid&&this.waitlistservice.serviceCategorySP().subscribe(t=>{this.catObj=t,console.log("this.catObj",this.catObj);const e=this;let n=Object.keys(this.catObj);console.log("keys",n),n.sort(),n.forEach(function(t){e.scategory2.push({id:t,name:t})}),console.log("self.scategory2",e.scategory2),e.scategory=e.scategory2},t=>{console.log(t.message)}),this.waitlistservice.getInsurance().subscribe(t=>{this.insurance=t},t=>{console.log(t.message)})}ngAfterContentInit(){null!=this.incidentid&&(this.loader=!0,this.frm_submit=!0,this.loadOrganizations()),this.radii=[{id:"2",value:"5 millas"},{id:"3",value:"10 millas"},{id:"4",value:"15 millas"},{id:"5",value:"20 millas"},{id:"6",value:"30 millas"},{id:"7",value:"40 millas"},{id:"8",value:"50 millas"},{id:"9",value:"60 millas"},{id:"10",value:"70 millas"},{id:"11",value:"80 millas"},{id:"12",value:"90 millas"},{id:"13",value:"100 millas"},{id:"1",value:"Todo Massachusetts"}],void 0===this.incidentid&&this.findhelpService.getCities().subscribe(t=>{this.cities=t}),this.gender=[{id:"24",value:"Hombre"},{id:"25",value:"Mujer"},{id:"26",value:"Hombre transg\xe9nero"},{id:"27",value:"Mujer transg\xe9nero"}]}loadOrganizations(){this.findhelpService.getIncidentById(this.incidentid).subscribe(t=>{if(console.log(t),console.log(this.search_form.controls),this.opa_messsage=t.message,null!=t.cityid&&(console.log("city id ",t.cityid),this.findhelpService.getCities().subscribe(e=>{if(this.cities=e,null!=this.cities){let e=this.cities.filter(e=>e.id==t.cityid);console.log("city ",e[0]),null!=e&&this.search_form.controls.city.patchValue(e[0])}})),null!=t.radiusid&&null!=this.radii){let e=this.radii.filter(e=>e.id==t.radiusid);console.log("radius ",e),null!=e&&this.search_form.controls.radius.patchValue(e[0])}null!=t.genderid&&this.search_form.controls.gender.setValue(t.genderid),null!=t.age&&(this.search_form.controls.age.setValue(t.age),this.ageserved=this.f.age.value),this.search_form.updateValueAndValidity(),null!=t.bsasfunded&&(this.bsas_funded=t.bsasfunded),null!=t.mentalhealthcondition&&(this.mental_health=t.mentalhealthcondition),null!=t.opa_notes&&(this.notes=t.opa_notes,console.log("notes ",this.notes)),1==t.pregnant&&(this.show_pregnancy=!0),1==t.homeless&&(this.homeless=!0),1==t.treatmentwithmefamily&&(this.treatmentwithmefamily=!0),1==t.veteran&&(this.veteran=!0)}),console.log(this.search_form),this.findhelpService.getAttributesByIncidentId(this.incidentid).subscribe(t=>{console.log(t),console.log(this.insurance),this.selection3=null!=t.payments?t.payments:[];let e=[],n=[],i=[];this.treatments=t.treatments,null!=t.treatments?(this.noTreatments=!1,t.treatments.forEach(t=>{-1==i.indexOf(t.categoryNamesp)&&(i.push(t.categoryNamesp),e.push({id:t.categoryNamesp,name:t.categoryNamesp})),n.push({id:t.id,name:t.namesp})})):this.noTreatments=!0,this.onChange(e),console.log("this.catObj",e),this.selection=e,this.selection2=n});const t=this;this.findhelpService.getExternalSearchResultByIncidentId(this.incidentid).subscribe(e=>{let n=[];e.forEach(e=>{!0===e.priorityprovider?t.opaResultDmy.push(e):n.push(e)}),console.log("pprovider",t.opaResultDmy),t.opaResultDmy.length>0&&(n=n.sort(function(t,e){if(t.orgName<e.orgName)return-1})),this.opa_result=t.opaResultDmy.concat(n),0==t.opaResultDmy.length&&(this.opa_result=this.opa_result.sort(function(t,e){if(t.orgName<e.orgName)return-1})),console.log("opa_result",this.opa_result),setTimeout(()=>{t.loadMap()},1e3),console.log("this.opa_result",this.opa_result),0==this.opa_result.length&&(this.loader=!1,this.frm_submit=!1,console.log("No organizations found for the provided search criteria"),$("#noresults").show())})}loadMap(){this.map=new google.maps.Map(document.getElementById("map"),{zoom:5}),this.bounds=new google.maps.LatLngBounds;var t=$('[name="city"] :selected').text();console.log(t);if(1==$('[name="radius"] :selected').val()&&(t=t),this.radius=parseInt($('[name="radius"] :selected').text().match(/\d+/)),"All of Masachusetts"==$('[name="radius"] :selected').text())new google.maps.KmlLayer({url:"https://nearestate.in/ma.kml",map:this.map});if(t||974==$('[name="choose_area_search_type"]').val()||1==$('[name="radius"] :selected').val()){$("._distance_sort").show();const e=this;$.getJSON("https://maps.googleapis.com/maps/api/geocode/json?address="+t+", Massachusetts&key=AIzaSyCcZBjQq8GUmtPJIhlKy1V94jhu4q16lS8",function(t){var n=t.results[0].geometry.bounds;null==n&&(n=t.results[0].geometry.viewport);var i=t.results[0].geometry.location;if(e.map.setCenter(i),e.city_center=i,new google.maps.Marker({map:e.map,icon:"https://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=%E2%80%A2|8c5c8d",position:i,title:i.orgName,zIndex:99999}),e.radius){var s=1609.34*e.radius,r=new google.maps.Circle({center:i,radius:s}).getBounds(),a={north:r.getNorthEast().lat(),south:r.getSouthWest().lat(),east:r.getNorthEast().lng(),west:r.getSouthWest().lng()};s=1609.34*e.radius;new google.maps.Circle({fillOpacity:.1,strokeOpacity:.5,strokeColor:"#ff0000",fillColor:"#FF0000",strokeWeight:0,map:e.map,center:e.city_center,radius:s})}else a={north:n.northeast.lat,south:n.southwest.lat,east:n.northeast.lng,west:n.southwest.lng};e.process_list(a)})}else this.process_list([])}process_list(t){var e=0,n=0;const i=this;console.log("this.opa_result2",this.opa_result),i.listObj=[],this.opa_result.forEach(t=>{null==i.listObj[t.orgId]&&i.listObj[t.orgId];var e="";null!==t.address.street&&(e+=t.address.street),null!==t.address.cityname&&(""!=e&&(e+=","),e+=t.address.cityname),null!==t.address.stateval&&(""!=e&&(e+=","),e+=t.address.stateval),null!==t.address.postalcode&&(""!=e&&(e+=" "),e+=t.address.postalcode),i.listObj[t.orgId]={orgName:t.orgName,address:e,latitude:t.latitude,longitude:t.longitude,id:t.orgId,website:null!=t.website?t.website:"Not Available",phone_number:t.phoneNumber,mappingstatus:t.mappingstatus}}),console.log("listObj",i.listObj);var s=i.listObj;console.log("square_bounds",t),console.log("org_list",s);const r=this;for(var a in s)t?(console.log("ms",this.in_bounds(t,{lat:s[a].latitude,lng:s[a].longitude},s[a].id)),this.in_bounds(t,{lat:s[a].latitude,lng:s[a].longitude},s[a].id)?(!0===s[a].mappingstatus&&r.place_marker(s[a]),$('.hria_result_box[data-id="'+s[a].id+'"]').show(),n++):!1===s[a].mappingstatus?(n++,$('.hria_result_box[data-id="'+s[a].id+'"]').show()):$('.hria_result_box[data-id="'+s[a].id+'"]').remove()):(!0===s[a].mappingstatus&&r.place_marker(s[a]),!1===s[a].mappingstatus&&n++,$('.hria_result_box[data-id="'+s[a].id+'"]').show()),this.orgIds[e++]=a;this.loader=!1,this.frm_submit=!1,$("body").on("mouseenter",".hria_result_box",function(t){r.me++,1==r.me&&(console.log(r.me),t.preventDefault(),t.stopPropagation(),console.log("ddd",$(this).attr("data-id")),r.markers[$(this).attr("data-id")].setAnimation(google.maps.Animation.BOUNCE))}),$("body").on("mouseleave",".hria_result_box",function(t){r.ml++,1==r.ml&&(t.preventDefault(),t.stopPropagation(),console.log("ddd2",$(this).attr("data-id")),r.markers[$(this).attr("data-id")].setAnimation(null),r.me=0,r.ml=0)}),$("._results_row").show(),$("#noresults").hide(),$("._result_summary").show(),n&&t?(console.log(t),$("._count").html(n)):t&&!n?(this.loader=!1,this.frm_submit=!1,$("#noresults").show(),$("._results_row,._result_summary").hide()):$("#noresults").hide()}in_bounds(t,e,n){var i=this.latlng_distance(this.city_center.lat,this.city_center.lng,e.lat,e.lng);return console.log("distance",i),console.log("this.radius",this.radius),$('.hria_result_box[data-id="'+n+'"]').attr("data-distance",Number(i).toFixed(2)).find("._distance").text(Number(i).toFixed(2)+" mi"),!!isNaN(this.radius)||i<=this.radius}place_marker(t){google.maps.event.addListenerOnce(this.map,"bounds_changed",function(){e.map.setZoom(9)}),console.log("map",this.map),console.log("markers",this.markers);const e=this;var n=new google.maps.LatLng(t.latitude,t.longitude);this.map.setCenter(n),console.log("self.markers",e.markers),console.log("location.id",t),console.log("position",t.latitude,t.longitude),e.markers[t.id]=new google.maps.Marker({map:this.map,position:n,title:t.orgName,zIndex:99999}),e.markers[t.id].setAnimation(null);var i='<div class="infowindow"><h3 class="iw-title" title="'+t.orgName+'">'+t.orgName+'</h3><div class="iw-content"><p title="'+t.address+'"><i class="fa fa-home">&nbsp;</i>'+t.address+'</p><p><i class="fa fa-phone">&nbsp;</i>'+t.phone_number+'</p><p title="'+t.website+'"><i class="fa fa-globe">&nbsp;</i><a href="'+t.website+'">'+t.website+'</a></p><p class="text-right"><a target="_blank" href="https://www.google.co.in/maps/dir//'+t.address+"/@"+t.latitude+","+t.longitude+',17z">Get Directions</a></div></div>',s=new google.maps.InfoWindow({content:i});e.markers[t.id].addListener("click",function(){s.open(this.map,e.markers[t.id])}),this.count++,this.bounds.extend(n),this.count>1&&this.map.fitBounds(this.bounds)}latlng_distance(t,e,n,i){var s=.017453292519943295,r=Math.cos,a=.5-r((n-t)*s)/2+r(t*s)*r(n*s)*(1-r((i-e)*s))/2;return 12742*Math.asin(Math.sqrt(a))*.621371}toggleBounce(t){console.log("markermarker",t),null!==t.getAnimation()?t.setAnimation(null):t.setAnimation(google.maps.Animation.BOUNCE)}createMarker(t,e){var n=new google.maps.Marker({position:t,map:this.map,zoom:5});const i=this;return google.maps.event.addListener(n,"mouseover",function(){i.infowindow.setContent(e),i.infowindow.open(i.map,n),n.setAnimation(google.maps.Animation.BOUNCE)}),google.maps.event.addListener(n,"mouseout",function(){n.setAnimation(null),i.infowindow.open()}),n}loadScript(t){return new Promise((e,n)=>{const i=this.renderer2.createElement("script");i.type="text/javascript",i.src=t,i.text="",i.onload=e,i.onerror=n,this.renderer2.appendChild(this.document.head,i)})}onChange(t){this.waitlistservice.serviceCategorySP().subscribe(e=>{this.catObj=e;const n=this;let i=Object.keys(this.catObj);i.sort(),i.forEach(function(t){n.scategory2.push({id:t,name:t})}),n.scategory=n.scategory2,this.services=[],t.forEach(function(t){var e=t.id;console.log("self.catObj",n.catObj),console.log("key",e),e in n.catObj&&n.catObj.hasOwnProperty(e)&&n.catObj[e].forEach(t=>{n.services.push(t)})})},t=>{console.log(t.message)})}onChange2(t){this.section_msg=!1,t.forEach(t=>{20!=t.id&&912!=t.id||(this.section_msg=!0)})}onRemove(t){const e=this;var n=t.value.name;"Court Involved Services"==n&&(this.section_msg=!1),console.log("key",n),""!=this.incidentid&&this.catObj.length>0&&(this.selection2=this.catObj.filter(t=>t.categoryName!=n)),n in e.catObj&&e.catObj.hasOwnProperty(n)&&e.catObj[n].forEach(t=>{console.log("element2",t.id),console.log("this.selection2",this.selection2),this.selection2=this.selection2.filter(e=>e.id!=t.id)})}onChange3(t){console.log(this.selection3)}loginSubmit(){this.submitted2=!0,this.search_form.invalid&&this.el.nativeElement.querySelectorAll("input.ng-invalid,select.ng-invalid")[0].focus()}frmSubmit(){if(this.cntr++,this.submitted=!0,this.search_form.invalid)return console.log(this.el),void this.el.nativeElement.querySelectorAll("input.ng-invalid,select.ng-invalid")[0].focus();{this.loader=!0,this.frm_submit=!0;let n=this.search_form.controls.age.value;var t=[];this.selection3.forEach(e=>{t.push(e.id)});var e=[];this.selection2.forEach(t=>{e.push(t.id)});let i={attributes:{treatmentids:e,gender:""!=this.search_form.controls.gender.value?parseInt(this.search_form.controls.gender.value):"",age:n,paymentids:t,mentalHealth:this.mental_health,needCare:this.need_care},radius:{id:parseInt(this.search_form.controls.radius.value.id),valueen:this.search_form.controls.radius.value.value},city:{id:parseInt(this.search_form.controls.city.value.id),valueen:this.search_form.controls.city.value.value},bsasFunded:this.bsas_funded?this.bsas_funded:""};console.log("postObj",i),this.waitlistservice.getOpaData(i).subscribe(t=>{this.ageserved=this.f.age.value,sessionStorage.clear(),console.log("datafff",t),this.incidentid=t.incident.ref;let e="/es/spa_result/incident_id/"+this.incidentid;this.reloadCurrentRoute(e)},t=>{console.log(t.message)})}}reloadCurrentRoute(t){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([t])})}renderMap(){}mOver(t){if(t>0){let e={attrid:t,langid:1051};this.waitlistservice.getAnswer(e).subscribe(t=>{console.log("data44",t),""!=t&&($("#dialogModal").html(t),$("#dialogModal").dialog({modal:!0,height:"auto",width:500,create:function(){$(".ui-dialog").find(".ui-dialog-titlebar").css({"background-image":"none","background-color":"white",border:"none"})}}))},t=>{console.log(t.message)})}}mOut(){$("#dialogModal").parent(".ui-dialog").hide()}mouseout(t){google.maps.event.trigger(this.gmarkers["Location "+t],"mouseout")}mouseover(t){google.maps.event.trigger(this.gmarkers["Location "+t],"mouseover")}ngAfterViewInit(){setTimeout(()=>{e.router.url.indexOf("/es")>-1&&(e.isSpanish=!0)},500),this.token=localStorage.getItem("msal.idtoken"),console.log("token",this.token),$("button._advanced_options").click();const t=this;$("body").on("click","._alpha_sort",function(){t.inc++;var e=[];$(".hria_result_box").each(function(){var n=[];n.push($("._org",this).text()),n.push($(this)),e.push(n),t.inc%2==0?e.sort():e.reverse()}),$(".hria_result_box").remove();for(var n=0;n<e.length;n++)$("._hria_result_container").append(e[n][1])}),$("._distance_sort").on("click",function(){var t=$("._hria_result_container");t.find(".hria_result_box").sort(function(t,e){return+t.dataset.distance-+e.dataset.distance}).appendTo(t)});const e=this;$("body").on("click",".ui-icon-closethick",function(){$("#dialogModal").parent(".ui-dialog").hide()}),$("body").on("click","._share_result",function(){if($('[name="selected[]"]:checked').length?$('[name="selected[]"]:checked').each(function(){e.selected.push(this.value)}):$('[name="selected[]"]').each(function(){e.selected.push(this.value)}),"pdf"==$(this).attr("data-action"))e.generatePDF();else{if("true"!==$(this).attr("data-login"))return $("input#email").val(),$("#mailSuccess").hide(),$(".modal-body,.modal-footer").show(),$("#email_modal").modal("show"),!1;$.ajax({type:"post",data:{action:$(this).attr("data-action"),selected:this.selected,incident_id:$('[name="incident_id"]').val()},url:"/cc/AjaxCustom/share_result",dataType:"json",success:function(t){$("#email_modal").modal("show"),t.error?$("#send_mail_form .modal-body").html(t.error):$("#send_mail_form .modal-body").html(t.result),$(".modal-footer").hide()}})}}),$("body").on("click","#sendemail",function(){}),$("body").find("#email").on("input",function(){var t=document.getElementById("email").value;return $("span#emailError").text(""),""==t?($("span#emailError").text("Plase enter email address"),!1):/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t)?void 0:($("span#emailError").text("Plase enter valid email address"),!1)})}sendMail(){$("#email_modal").modal("show")}shareData(){var t=document.getElementById("email").value;if(""==t)return $("span#emailError").text("Plase enter email address"),!1;if(!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(t))return $("span#emailError").text("Plase enter valid email address"),!1;{this.mailLoader=!0,this.mail_submit=!0;let e=[];$('[name="selected[]"]:checked').length?$('[name="selected[]"]:checked').each(function(){e.push(this.value)}):$('[name="selected[]"]').each(function(){e.push(this.value)});let n={email:t,orgId:e,ref:this.incidentid};this.waitlistservice.shareResults(n).subscribe(t=>{console.log("data",t),$(".modal-body,.modal-footer").hide(),$("#mailSuccess").show(),this.mailLoader=!1,this.mail_submit=!1},t=>{}),console.log("postObj",n)}}generatePDF(){var t=[];$("#service_sub_categories .ms-sel-item ").each(function(){t.push($(this).text().trim())}),this.doc=new HB("p","pt","a4"),this.doc.setFont("helvetica"),this.pageHeight=this.doc.internal.pageSize.height-20,this.pageWidth=this.doc.internal.pageSize.width-50;var e=120;this.set_header();t=[];$("#service_sub_categories .ms-sel-item ").each(function(){t.push($(this).text().trim())});var n=$('[name="selected[]"]:checked').length,i=!!n;n||(n=$('[name="selected[]"]').length),this.doc.setFontSize(10),this.doc.setFont("verdana","bold"),this.doc.setTextColor(92,107,128),this.doc.text("Services: ",this.left_margin,e),this.doc.setFont("verdana","normal"),this.doc.text(t.join(", "),this.left_margin+50,e);e+=20,this.doc.text("Total Results: ",this.pageWidth-100,e);let s=this.pageWidth-100;this.doc.text("Total Results: ",s,e),this.doc.setFont("verdana","normal");let r=this.pageWidth-30;this.doc.text(n.toString(),r,e);var a=$('[name="city"] :selected').text(),o=a||"Massachusetts",l=parseInt($('[name="radius"] :selected').text().match(/\d+/));o=l?"Within "+l+" miles of "+a:$('[name="dph_region"] :selected').text()?$('[name="dph_region"] :selected').text():"Massachusetts",this.doc.setFont("verdana","bold"),this.doc.text("Region: ",this.left_margin,e),this.doc.setFont("verdana","normal"),this.doc.text(o,this.left_margin+40,e),e+=10,this.draw_line(),e+=this.line_height;const c=this;$(".hria_result_box").each(function(){if(i&&!$(this).find('[name="selected[]"]:checked').length)return!0;c.check_height(40),c.doc.setFontSize(10),c.doc.setFont("verdana","bold"),c.doc.setTextColor(92,107,128),c.doc.textWithLink($(this).find("._org").text().trim(),c.left_margin,e,{url:$(this).find("._org").attr("href")}),$(this).find("._bsas").length&&c.doc.addImage(c.bsas,"JPEG",c.pageWidth-50,e,40,25),e+=c.line_height,c.doc.setFont("verdana","normal"),c.check_height(0),$(this).find("._address").text().trim().indexOf("\n")>-1?c.doc.text(c.left_margin,e,$(this).find("._address").text().trim().replace("\n","")):c.doc.text($(this).find("._address").text().trim(),c.left_margin,e);var t=$(this).find("._phone_number").text().trim();t&&(e+=c.line_height,c.check_height(0),c.doc.addImage(c.phone_icon,"JPEG",c.left_margin,e-10,15,16),c.doc.text("      "+t,c.left_margin,e));var n=$(this).find("._fax").text().trim();n&&(e+=c.line_height,c.check_height(0),c.doc.addImage(c.fax_icon,"JPEG",c.left_margin,e-10,15,16),c.doc.text(n,c.left_margin,e)),c.check_height(20);var s=$(this).find("._website a").text(),r=$(this).find("._website a").prop("href");s&&(s=s.trim(),e+=20,c.doc.setTextColor(140,92,141),c.doc.text(r,c.left_margin,e)),c.doc.setTextColor(92,107,128);var a=$(this).find("._treatments").text().trim();a&&(e+=20,c.check_height(0),c.doc.text(c.left_margin,e,""),c.doc.setFont("verdana","bold"),c.doc.text("Treatments offered: ",c.left_margin,e),c.doc.setFont("verdana","normal"),c.doc.text("                                   "+a,c.left_margin,e));var o=$(this).find("._payments").text().trim();o&&(e+=20,c.check_height(0),c.doc.text("Treatments offered: ",c.left_margin,e),c.doc.setFont("verdana","bold"),c.doc.text("Payments accepted: ",c.left_margin,e),c.doc.setFont("verdana","normal"),c.doc.text("                                   "+o,c.left_margin,e)),e+=15,c.draw_line(),e+=20}),this.doc.save("Search-Results-"+(new Date).getTime()+".pdf")}set_header(){this.doc.addImage(this.logo,"JPEG",170,20,240,50)}draw_line(){this.doc.setLineWidth(.1),this.doc.setDrawColor(204,204,204),this.doc.line(this.left_margin,this.height,this.pageWidth,this.height)}check_height(t){void 0===t&&(t=0),this.height+t>this.pageHeight&&(this.doc.addPage(),this.height=120,this.set_header())}};Fz.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:Document,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.Renderer2},{type:Zj},{type:Wf.Router},{type:Wf.ActivatedRoute},{type:F_},{type:wh}],Fz.propDecorators={mapElement:[{type:s.ViewChild,args:["mapRef",{static:!0}]}]},Fz=Hh([Object(s.Component)({selector:"app-es-spa-results",template:'<div class="container body">\t\t\n    <div id="marker_labels"></div>\n    <div ng-app="mahelplineonline" ng-controller="interviewResultCtrl" ng-init="data = {}" class="ng-scope">\n        <div class="row mt10">       \n            <div class="col-sm-7">\n            </div>\n            <div class="col-sm-5 text-right">\n                                        </div>\n    </div>\n    <div class="row mt10 opa_result_header" *ngIf="!incidentid" style="">\n        <div class="col-md-12"><h1 class="heading">B\xfasqueda de servicios</h1></div>\n    </div>\n    <div class="row mt10 searchResult" *ngIf="incidentid">\n        <div class="col-md-12"><h1 class="heading">Resultados de b\xfasqueda</h1></div>\n        \x3c!-- <div class="col-md-6 text-right"><rn:widget path="standard/chat/ConditionalChatLink" label_available_immediately_template="" /></div> --\x3e\n    </div>\n    <div class="col-md-12" *ngIf="opa_messsage!=null">\n        <div class="alert alert-warning message_value" [innerHTML]="opa_messsage | sanitizedHtml"></div>\n    </div>\n    <div class="row mt10 showDescription" style="display:none">\n       <div class="col-md-12"><h1 class="heading">Descripci\xf3n de servicios y programas relacionados</h1></div>.\n    </div>\n    <div class="row _assessment mt10" style="display:none">\n        <div class="col-md-12"><h1 class="heading">Resultados de b\xfasqueda</h1></div>\n        <div class="col-md-12">\n                        \x3c!--p class="mb0 mt10 _assessment alert alert-warning text-bold">Based on your answers, the services below may be helpful. You can add or remove services for new results, or <a class="click-here" href="/app/account/opa_interview">click here</a> to start over. If you want to learn more about services and your eligibility, call the Helpline at 800.327.5050.</p--\x3e\n                <p class="mb0 mt10 _assessment alert alert-warning text-bold"> No se encontraron resultados para sus respuestas. Hay ayuda disponible. Llame a la l\xednea de ayuda al 800.327.5050 para conocer m\xe1s sobre los servicios y sobre su elegibilidad.  Tambi\xe9n puede <a class="click-here" href="/app/es/account/opa_interview">hacer clic aqu\xed</a> para comenzar de nuevo o buscar otros servicios a continuaci\xf3n.</p>\n                                   </div>\n                   </div>\n                   <div class="row mt10">\n                                                                                                                                                                   <div class="col-md-12">\n                                            \x3c!--div class="page_heading">Search results</div--\x3e\n                                    <p class="mt10 _non_assessment alert alert-warning _default" *ngIf="section_msg">Si no est\xe1 seguro acerca de qu\xe9 buscar, <a class="click-here" href="/app/es/account/opa_interview">haga clic aqu\xed</a> y lo ayudaremos con algunas opciones.</p>\n                    <p class="mt10 alert alert-warning _description" *ngIf="section_msg">A continuaci\xf3n hay una lista de programas que ofrecen este servicio. Puede restringir o cambiar su b\xfasqueda a continuaci\xf3n.</p>\n                </div>\n            </div>\n            \x3c!--pre>Array\n    (\n        [attrs] => Array\n            (\n                [default_ajax_endpoint] => /ci/ajax/widget\n            )\n    \n        [info] => Array\n            (\n                [w_id] => 1\n                [contextData] => W10=\n                [contextToken] => fU12AsNst47MwHiWGPx4Eo1Ax1M0CEvn9B4XHQz2x0RucWBd6zNPk3xa5h8c_DXAUXn~t7PAmDsNkXDdOI0O5M8YIkcO9zrf4169ZDM60s~vqySQ5oKOyOLtt8kCHO_fhpdhTz4XvYDuk!\n                [timestamp] => 1620126193\n                [controller_path] => custom/spanish/opa_result\n                [view_path] => custom/spanish/opa_result\n                [js_path] => custom/spanish/opa_result\n                [presentation_css] => Array\n                    (\n                        [0] => assets/themes/standard/widgetCss/opa_result.css\n                    )\n    \n                [base_css] => Array\n                    (\n                        [0] => custom/spanish/opa_result/base.css\n                    )\n    \n                [version] => 1.0\n                [requires] => Array\n                    (\n                        [jsModule] => Array\n                            (\n                                [0] => standard\n                                [1] => mobile\n                            )\n    \n                    )\n    \n                [relativePath] => custom/spanish/opa_result\n                [widget_name] => opa_result\n                [controller_name] => opa_result\n                [js_name] => Custom.Widgets.spanish.opa_result\n                [widget_path] => \n            )\n    \n        [js] => Array\n            (\n            )\n    \n        [name] => opa_result_1\n        [constraints] => Array\n            (\n            )\n    \n        [alreadySaved] => \n        [incident_id] => \n    )\n    </pre--\x3e\n         \x3c!--  <pre>Count : 0<br/></pre> --\x3e\n            <form method="post" id="search_form" [formGroup]="search_form" (ngSubmit)="frmSubmit()">\n                <div class="row">\n                    <div class="col-sm-12">Las opciones que tienen un asterisco (*) se deben completar.</div>\n                </div>\n                <div class="row">\n                    <div id="dialogModal" title="Description" style="display: none;"></div>\n                    <div class="col-md-6 form-group">\n                        <span class="h4">Seleccione una categor\xeda de servicio <span class="red text_small">*</span> <span style="font-weight:400">(\x3c!-- <a target="_blank" href="http://896.d3c.mwp.accessdomain.com/service-descriptions/">Click here</a> to view service descriptions --\x3eHaga clic en un servicio para ver su descripci\xf3n)</span></span>\n                        <ng-select [items]="scategory"\n                        dropdownPosition="bottom"\n                        bindLabel="name"\n                        placeholder="Seleccione una opci\xf3n"\n                        appendTo="body"\n                        multiple="true"\n                        (change)="onChange(selection)"\n                        [(ngModel)]="selection"\n                        (remove)="onRemove($event)"\n                        formControlName="service_category"\n                        [closeOnSelect]="true"\n                        [hideSelected]="true"\n                        [clearable]="false"\n                        >\n                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                            <span class="ng-value-label"> {{item.name}}</span>\n                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                        </ng-template>\n                        </ng-select>\n                        <div class="" *ngIf="submitted && f.service_category?.errors">\n                            <small class="text-danger" *ngIf="f.service_category.errors.required">Por favor seleccione una opci\xf3n</small>\n                        </div>\n                    </div>\n                    <div class="col-md-6 form-group">\n                        <span class="h4">Seleccione uno o m\xe1s servicios <span class="red text_small">*</span></span>\n                        <ng-select [items]="services"\n                        dropdownPosition="bottom"\n                        bindLabel="name"\n                        placeholder="Seleccione una opci\xf3n"\n                        appendTo="body"\n                        multiple="true"\n                        (change)="onChange2(selection2)"\n                        [(ngModel)]="selection2"\n                        formControlName="more_services"\n                        [closeOnSelect]="true"\n                        [hideSelected]="true"\n                        [clearable]="false"\n                        >\n                        <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                            <span class="ng-value-label"><a href="javascript:void(0);" (click)="mOver(item.id)"> {{item.name}} </a></span>\n                            <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                        </ng-template>\n                        </ng-select>\n                        <div class="" *ngIf="submitted && f.more_services?.errors">\n                            <small class="text-danger" *ngIf="f.more_services.errors.required">Por favor seleccione una opci\xf3n</small>\n                        </div>\n                                                                \n                    </div>\n                </div>\n                <div class="row" ng-init="">\n                \x3c!--div class="col-md-6 form-group">\n                    <span class="h4">Select geographic area type to search <span class="red text_small">*</span></span>\n                    <select name="choose_area_search_type" ng-model="data.choose_area_search_type" class="minimal required">\n                        <option ng-selected="{{type.id == data.choose_area_search_type}}" ng-repeat="type in area_search_types" value="{{type.id}}">{{type.value}}</option>\n                    </select>\n                </div--\x3e\n                \x3c!--div class="col-md-6 form-group" ng-if="data.choose_area_search_type==\'972\'"  >\n                    <span class="h4">Choose region <span class="red text_small">*</span></span>\n                    <select name="dph_region" ng-model="data.dph_region" class="required">\n                        <option value=""></option>\n                        <option value="967">Western MA</option>\n                        <option value="963">Central MA</option>\n                        <option value="965">Metro West</option>\n                        <option value="964">North East</option>\n                        <option value="962">Boston</option>\n                        <option value="966">South East</option>\n                    </select>\n                </div--\x3e\n            </div>\n            \x3c!--div class="row" ng-if="data.choose_area_search_type==\'973\'"--\x3e\n            <div class="row">\n                <div class="col-md-6 form-group" ng-init="">\n                    <span class="h4">Seleccione la ciudad  <span class="red text_small">*</span></span>\n                    <select name="city" formControlName="city"  class="">\n                        <option value="">Seleccione una opci\xf3n</option>\n                        <option *ngFor="let item of cities" [ngValue]="item">{{item.value}}</option>\n                    </select>\n                    <div class="" *ngIf="submitted && f.city?.errors">\n                        <small class="text-danger" *ngIf="f.city.errors.required">Por favor seleccione una opci\xf3n</small>\n                    </div>\n                </div>\n                <div class="col-md-6 form-group" ng-init="">\n                    <span class="h4">Seleccione cu\xe1n lejos buscar <span class="red text_small">*</span></span>\n                    <select name="radius" formControlName="radius">\n                        <option value="">Seleccione una opci\xf3n</option>\n                        <option *ngFor="let item of radii" [ngValue]="item">{{item.value}}</option>\n                    </select>\n                    <div class="" *ngIf="submitted && f.radius?.errors">\n                        <small class="text-danger" *ngIf="f.radius.errors.required">Por favor seleccione una opci\xf3n</small>\n                    </div>\n                </div>\n            </div>\n            \x3c!-- <button type="button" class="btn btn-clear mt10 _advanced_options" data-toggle="collapse" data-target="#advanced_options">Opciones avanzadas </button> --\x3e\n            <h4 class="mt10" style="color: #8c5c8d;">Opciones avanzadas </h4>\n            <div id="advanced_options">\n                <div class="row">\n                    <div class="col-md-6" ng-init="">\n                        <span class="h4">Seleccione el sexo</span>\n                        <select name="gender" id="gender" formControlName="gender">\n                            <option value="">Seleccione una opci\xf3n</option>\n                            <option *ngFor="let option of gender" [value]="option.id">{{option.value}}</option>\n                        </select>\n                    </div>\n                    <div class="col-md-6">\n                        <span class="h4">Ingrese la edad</span>\n                    \x3c!--select ng-model="data.age" class="">\n                        <option></option>\n                        <option>Below 10</option>\n                        <option ng-repeat="i in [].constructor(90) track by $index">{{$index + 11}}</option>\n                    </select--\x3e\n                    <input type="number" class="form-control" name="age" id="age" \n                        formControlName="age"/>\n                </div>\n            </div>\n            <div class="row"> \n                <div class="col-md-6">\n                  <span class="h4">Seguro/cobertura m\xe9dica (deje en blanco si no posee)</span>\n                  <ng-select [items]="insurance"\n                    dropdownPosition="bottom"\n                    bindLabel="name"\n                    placeholder="Seleccione una opci\xf3n"\n                    appendTo="body"\n                    multiple="true"\n                    (change)="onChange3(selection3)"\n                    [(ngModel)]="selection3"\n                    formControlName="health_insurance"\n                    [closeOnSelect]="true"\n                    [hideSelected]="true"\n                    [clearable]="false"\n                    >\n                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                        <span class="ng-value-label"> {{item.name}}</span>\n                        <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                    </ng-template>\n                    </ng-select>            \n              </div>\n          </div>\n          <div class="row mt-10">\n            <div class="col-md-12"><span class="h4">Seleccione cualquiera de las siguientes opciones que corresponda:</span></div>\n            <div class="col-md-6">\n                    \x3c!-- <input id="checkbox_mental_health" name="mental_health" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.mental_health" value="yes">\n                    <label for="checkbox_mental_health" class="checkbox-custom-label">Diagn\xf3stico de enfermedad mental</label> --\x3e\n                    \x3c!-- <input id="checkbox_mental_health" id="mental_health" name="mental_health" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="mental_health"> \n                    <label for="checkbox_mental_health" class="checkbox-custom-label">Diagn\xf3stico de enfermedad mental</label> --\x3e\n                    <div class="custom-control custom-checkbox" style="margin-bottom: 5px;">\n                        <input type="checkbox" [(ngModel)]="mental_health" [ngModelOptions]="{standalone: true}" class="custom-control-input" id="mental_health">\n                        <label class="custom-control-label" style="font-weight:\n                        500;font-size:1.1em;" for="mental_health">Diagn\xf3stico de enfermedad mental</label>\n                    </div>\n                \x3c!-- ngIf: data.gender ==426 ||data.gender ==428 --\x3e\n                <div class="custom-control custom-checkbox">\n                    <input type="checkbox" [(ngModel)]="need_care" [ngModelOptions]="{standalone: true}" class="custom-control-input" id="need_care">\n                    <label class="custom-control-label" style="font-weight:\n                    500;font-size:1.1em;" for="need_care">Necesidad de cuidados de enfermer\xeda por una enfermedad mental grave</label>\n                </div>\n                    \x3c!-- <input id="checkbox_need_care" name="need_care" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.need_care" value="yes"> \n                    <label for="checkbox_need_care" class="checkbox-custom-label">Necesidad de cuidados de enfermer\xeda por una enfermedad mental grave </label> --\x3e\n                    \x3c!-- <input id="checkbox_need_care" id="need_care" name="need_care" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="need_care"> \n                    <label for="checkbox_need_care" class="checkbox-custom-label">Necesidad de cuidados de enfermer\xeda por una enfermedad mental grave</label> --\x3e\n                    \x3c!--  <label for="checkbox-6" class="checkbox-custom-label">{{i_am}} a veteran of the U.S. Armed Forces</label> --\x3e    \n            </div>\n            <div class="col-md-6">\n                <div class="row">\n                    <div class="form-group">\n                            <div class="custom-control custom-checkbox">\n                                <input type="checkbox" [(ngModel)]="bsas_funded" [ngModelOptions]="{standalone: true}" class="custom-control-input" id="show_bsas_funded">\n                                <label class="custom-control-label" style="font-weight:\n                                500;font-size:1.21em;" for="show_bsas_funded">Mostrar solo programas financiados por BSAS</label>\n                            </div>\n                            </div>\n                    \x3c!-- <div class="col-md-12" ng-init="">\n                        <div>\n                            <input name="show_bsas_funded" id="show_bsas_funded" type="checkbox" \n                            [(ngModel)]="bsas_funded" [ngModelOptions]="{standalone: true}">\n                            <label for="checkbox-1" class="checkbox-custom-label">Only show BSAS-funded programs</label>\n                        </div>\n                    </div> --\x3e\n                    \x3c!-- <div class="col-md-12"><img width="100px" src="https://helplinema.org/wp-content/uploads/2016/06/bsas-logo.png" alt="BSAS Funded" style="float:left">\n                        <p style="padding-left:120px;font-size: 1.12em;">  Los programas con el logotipo de BSAS cuentan con la financiaci\xf3n de la Oficina de Servicios para Adicci\xf3n a Sustancias del Departamento de Salud P\xfablica. Estos programas brindan servicios a los residentes de Massachusetts que no tengan cobertura m\xe9dica.</p></div> --\x3e\n                    <div class="col-md-10"></div>\n                </div>\n            </div>\n        </div>\n    </div>\n    <div class="row">\n        <div class="col-md-6 mt10">\n            <div class="row">\n                <div class="col-md-12">\n                   \x3c!-- <input type="submit" value="Enviar" class="btn purple-bg"> &nbsp;\n                   <input type="reset" value="Borrar formulario" class="btn purple-bg _clearForm" ng-click="data.choose_area_search_type = \'\'"> --\x3e\n\n                   <input type="submit" id="search-btn" [disabled]="frm_submit" value="Enviar" class="btn btn-md purple-bg"> &nbsp;<img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n                   <input type="reset" value="Borrar formulario" class="btn grey-bg _clearForm" ng-click="data.choose_area_search_type = \'\'">\n\n               </div>\n               <div class="col-md-12 mt-20"><p class="search-message" style="display: none;">Haga clic en Buscar para buscar nuevamente</p></div>\n           </div>\n       </div>\n       <div class="col-md-6"><img width="158px" src="/assets/images/BSAS_blue.svg" id="bsaslogo" alt="BSAS Funded" style="float:left">\n        <p style="padding-left:120px;font-size: 1.12em;" id="bsascontent">  Los programas con el logotipo de BSAS cuentan con la financiaci\xf3n de la Oficina de Servicios para Adicci\xf3n a Sustancias del Departamento de Salud P\xfablica. Estos programas brindan servicios a los residentes de Massachusetts que no tengan cobertura m\xe9dica.</p></div>\n       \x3c!-- <div class="col-md-6">\n            <img src="assets/images/atlaslogo.png" style="height: 52px;float: left;" /><p style="padding-left:221px;font-size: 1.12em;"> A platform that can help you compare treatment facilities to see which are providing high-quality addiction care based on the Shatterproof National Principles of Care\xa9.</p>\n        </div> --\x3e\n    </div>\n    </form>\n        </div> \n        <div class="col-md-12" id="noresults" style="display:none;"><div class="alert alert-danger text-center">No se encontraron resultados para tu b\xfasqueda. Para obtener m\xe1s opciones, puede cambiar sus selecciones anteriores o llamar a la l\xednea de ayuda al 800.327.5050.</div></div> \n        <div class="_search_results">\n                <div class="row top10" *ngIf="opa_result.length>0">\n                    <div class="col-md-12"> \n                        <div class="alert alert-info blue-bg pad5 pl10 _result_summary">\n                            <div class="pull-left" style="line-height:38px; font-size: 16px;">Encontramos <span class="_count">{{opa_result.length}}</span> resultados para sus selecciones </div>\n                            <div class="btn-group pull-right">\n                                <button data-action="pdf" title="Download result as PDF" class="btn text-color btn-md white-bg btn-xs _share_result" style="border-right: 1px solid #00b5cb;margin-right: 1px;">\n                                    <i class="fa fa-file-pdf-o" aria-hidden="true"></i> Descargar como PDF\n                                </button>\n                                    <button data-login="false" data-action="email" title="Send result as email" (click)="sendMail()" class="btn text-color btn-md white-bg btn-xs _share_result">\n                                    <i class="fa fa-share" aria-hidden="true"></i> Enviar por correo electr\xf3nico\n                                </button>\n                        </div>\n                        <div class="btn-group pull-right mr-5">\n                            <button data-action="sort" class="btn text-color btn-md white-bg btn-xs _alpha_sort" style="border-right: 1px solid #00b5cb;margin-right: 1px;">\n                                <i class="fa fa-sort-alpha-asc" aria-hidden="true"></i> Clasificar por nombre\n                            </button>\n                                                </div>\n                            <div class="clearfix"></div>\n                        </div>\n                    </div>\n                </div>\n                \x3c!-- <a href="javascript:google.maps.event.trigger(gmarkers[\'Location 1\'],\'mouseover\',\'mouseout\');" (mouseover)="mouseover()" (mouseout)="mouseout()"class="button3">Location 1</a> --\x3e\n                <div class="row _results_row">\n                    <div class="col-sm-6" *ngIf="opa_result.length>0" id="pdf_content">\n                        <div class="row">\n                        <div class="_hria_result_container col-sm-12" style="height:530px;overflow-y: scroll;">\n                                <div *ngFor="let op of opa_result" class="hria_result_box" (mouseover)="mouseover(1)" (mouseout)="mouseout(1)" data-priority="0" [attr.data-id]="op.orgId" style="break-after: auto;" [attr.data-distance]="">\n                                <h3>\n                                    <div>\n                                        <input name="selected[]" id="selected{{op.orgId}}" class="checkbox-custom" type="checkbox" value="{{op.orgId}}">\n                                        <label title="Veteran\'s Center for Addiction Program - Detox" for="selected{{op.orgId}}" class="checkbox-custom-label org-label">\n                                            <a href="/es/provider_details/{{op.orgId}}" target="_blank" class="_org">{{op.orgName}}</a>\n                                        </label>\n                                    </div>\n                                </h3>\n                                <p *ngIf="op.address" class="_address"><i class="fa fa-home"></i>&nbsp;{{(op.address.street!==null)?op.address.street:\'\'}}, {{(op.address.cityname!==null)?op.address.cityname:\'\'}}, {{(op.address.stateval!==null)?op.address.stateval:\'\'}} {{(op.address.postalcode!==null)?op.address.postalcode:\'\'}}</p>\n                                \x3c!-- <p *ngIf="op.phoneNumber" class="_phone_number"><i class="fa fa-phone"></i>&nbsp;({{op.phoneNumber.substr(0,3)}}) {{op.phoneNumber.substr(3,3)}}-{{op.phoneNumber.substr(6,4)}}</p> --\x3e\n                                <p *ngIf="op.phoneNumber" class="_phone_number"><i class="fa fa-phone"></i> {{op.phoneNumber}}</p>\n                                <p class="_website" *ngIf="op.website"><i class="fa fa-globe"></i>&nbsp; <a *ngIf="op.website" target="_blank"  href="{{op.website}}">{{op.website}}</a><span *ngIf="!op.website"> Not available</span></p>\n                                    <div class="row" >\n                                        <div class="col-md-10" *ngIf="op.treatments">\n                                            <p><b>Tratamientos ofrecidos:&nbsp;</b>\n                                                <span *ngFor="let tr of op.treatments;let i=index;" class="_treatments">\n                                                    {{tr.valuesp}} <span *ngIf="i!=op.treatments.length-1">,</span>\n                                                </span>\n                                            </p>\n                                        </div>\n                                        <div *ngIf="op.bsasFunded" class="col-md-2"><p class="pull-right _bsas"><img width="60px" height="36" src="/assets/images/BSAS_blue.svg" alt="BSAS Funded"></p></div>\n                                    </div>\n                                    <div class="row">\n                                        <div class="col-md-12" *ngIf="op.payments;">\n                                            <p><b>Pagos aceptados:</b> &nbsp;<span *ngFor="let tr of op.payments;let i=index;" class="_treatments">\n                                                    <span class="trtmnt">{{tr.value}}</span>\n                                                    <span *ngIf="i!=op.payments.length-1">,</span>\n                                                </span>\n                                            </p>\n                                        </div>\n                                    </div>\n                                    <div class="row" *ngIf="op.gender">\n                                        <div class="col-md-10">\n                                            <p><b>G\xe9neros atendidos:&nbsp;</b>\n                                                <span class="_treatments">{{op.gender.valuesp}}</span></p> \n                                        </div>\n                                    </div>\n                                    <div class="row">\n                                        <div class="col-md-10" *ngIf="op.age">\n                                            <p><b>Edades atendidas:&nbsp;</b> \n                                                <span class="_treatments">{{op.age.valuesp}}</span>\n                                            </p> \n                                        </div> \n                                    </div> \n                                    \x3c!-- <div class="row">\n                                        <div *ngIf="op.atlasurlexist"  class="col-md-12">\n                                            <p class="pull-right"><a target="_blank" href="{{op.atlasenurl}}"><img src="assets/images/atlaslogo.png" style="width:155px;margin:\n                                                6px -6px 0 0;" /></a></p>\n                                        </div>\n                                    </div> --\x3e\n                            </div>\n                            \x3c!-- <div class="hria_result_box" (mouseover)="mouseover(2)" (mouseout)="mouseout(2)" data-priority="0" data-id="14442" style="break-after: auto;" data-distance="40.89">\n                                        <h3>\n                                            <div>\n                                                <input name="selected[]" id="selected14442" class="checkbox-custom" type="checkbox" value="14442">\n                                                <label title="Veteran\'s Center for Addiction Treatment - Detox" for="selected14442" class="checkbox-custom-label org-label">\n                                                    <a href="https://mahelplineonline.custhelp.com/app/account/provider_details/org_id/14442" target="_blank" class="_org">Veteran\'s Center for Addiction Treatment - Detox</a>\n                                                </label>\n                                            </div>\n                                        </h3>\n                                        <p class="_address"><i class="fa fa-home"></i> 940 Belmont Street, Brockton, MA 02302</p>\n                                        <p class="_phone_number"><i class="fa fa-phone"></i> (508) 583-4500</p>                                <p class="_fax"><i class="fa fa-fax"></i> (508) 895-0261</p>                                <p class="_website"><i class="fa fa-globe"></i> <a href="http://www.boston.va.gov/">www.boston.va.gov</a></p>\n                                            <div class="row">\n                                                <div class="col-md-10">\n                                                    <p><b>Treatments offered:</b>\n            <span class="_treatments">\n                <a href="https://mahelplineonline.custhelp.com/app/account/answers/answer_id/6" target="_blank">Detox - Veterans</a>,                                          \n            </span></p>\n            </div>\n        <div class="col-md-2"></div>\n        </div> \n                            </div> --\x3e\n                            \n    \n                            \x3c!-- <div class="hria_result_box" (mouseover)="mouseover(3)" (mouseout)="mouseout(3)" data-priority="" data-id="15430" style="break-after: auto;" data-distance="21.91">\n                                <h3>\n                                    <div>\n                                        <input name="selected[]" id="selected15430" class="checkbox-custom" type="checkbox" value="15430">\n                                        <label title="ATR Intake - New Bedford" for="selected15430" class="checkbox-custom-label org-label">\n                                            <a href="https://mahelplineonline.custhelp.com/app/account/provider_details/org_id/15430" target="_blank" class="_org">ATR Intake - New Bedford</a>\n                                        </label>\n                                    </div>\n                                </h3>\n                                <p class="_address"><i class="fa fa-home"></i> 13 North 6th Street, New Bedford, MA 02740</p>\n                                <p class="_phone_number"><i class="fa fa-phone"></i> (508) 742-6640</p>                                                                <p class="_website"><i class="fa fa-globe"></i> <a href="https://www.ma-atr.org/about-atr/">www.ma-atr.org</a></p>\n                                    <div class="row">\n                                        <div class="col-md-10">\n                                            <p><b>Treatments offered:</b>\n                                            <span class="_treatments">\n                                                <a href="https://mahelplineonline.custhelp.com/app/account/answers/answer_id/5" target="_blank">ATR Intake</a>,                                          \n                                            </span></p>\n                                            </div>\n                                            <div class="col-md-2"><p class="pull-right _bsas"><img width="60px" height="36" src="https://helplinema.org/wp-content/uploads/2016/06/bsas-logo.png" alt="BSAS Funded"></p></div>\n                                    </div> \n                            </div>  --\x3e\n    \n                        </div>\n                        </div>\n                    </div>\n                    <div class="col-sm-6">\n                        <div id="map" *ngIf="opa_result.length==0" style="width:100%;height:530px;display: none;"></div>\n                        <div id="map" *ngIf="opa_result.length>0" style="width:100%;height:530px;"></div>\n                    </div>\n                </div>\n            </div>\n        \x3c!-- Modal --\x3e\n        <div id="email_modal" class="modal fade" role="dialog">\n            <div class="modal-dialog">\n                \x3c!-- Modal content--\x3e\n                <div class="modal-content" style="width: 600px;left: 50%;transform: translate(-50%);">\n                    <form id="send_mail_form" method="post" action="">\n                        <div class="modal-header">\n                            <h4 class="modal-title">Enviar resultados por correo electr\xf3nico</h4>\n                            <button type="button" class="close" style="margin-top:-18px;" data-dismiss="modal">\xd7</button>\n                        </div>\n                        <div class="modal-body">\n                            <input type="email" placeholder="Enter your email" name="email" id="email" class="form-control" />\n                            <span style="color: red; font-weight: 100;" id="emailError"></span>\n                        </div>\n                        <div class="modal-footer" style="justify-content: flex-end;">\n                            <button type="submit" id="sendemail" (click)="shareData()" [disabled]="mail_submit" class="btn purple-bg">Enviar</button>&nbsp;<img *ngIf="mailLoader" src="assets/images/loader.gif"\n                            style="padding-right: 6px; height:20px;" />\n                        </div>\n                    </form>\n                </div>\n            </div>\n        </div>\n        \x3c!--button id="down_server">Down Server</button--\x3e\n    </div>',styles:['@charset "UTF-8";\n.ng-select .ng-arrow-wrapper .ng-arrow {\n  display: none;\n}\n.ng-select span.ng-arrow-wrapper:before {\n  content: "\uf0ab";\n  display: inline-block;\n  font: normal normal normal 14px/1 FontAwesome;\n  font-size: inherit;\n  text-rendering: auto;\n}\n::ng-deep .grey-bg {\n  background: grey;\n  color: white;\n  padding: 6px 6px;\n}\n::ng-deep input[type=text] {\n  height: auto !important;\n}\n.ng-select .ng-arrow-wrapper .ng-arrow {\n  display: none;\n}\n.ng-select span.ng-arrow-wrapper:before {\n  content: "\uf0ab";\n  display: inline-block;\n  font: normal normal normal 14px/1 FontAwesome;\n  font-size: inherit;\n  text-rendering: auto;\n}\n::ng-deep .ui-widget-header {\n  border: 1px solid #dddddd !important;\n  background: #8c5c8d !important;\n  color: #fff !important;\n  font-weight: bold;\n}\n::ng-deep .ui-dialog {\n  margin-left: 26%;\n  margin-top: 20%;\n}\n::ng-deep input[type=text] {\n  height: auto !important;\n}\n::ng-deep .purple-bg:focus {\n  color: #fff !important;\n}\n::ng-deep .hria_result_box h3, ::ng-deep .hria_result_box p {\n  font-size: 16px !important;\n}\n::ng-deep .ui-dialog {\n  z-index: 9999999 !important;\n}\n::ng-deep .btn-group-xs > .btn, .btn-xs {\n  font-size: 15px;\n}\n::ng-deep #loader {\n  height: 2000px;\n  text-align: center;\n  background-color: #eae5e5;\n  position: absolute;\n  width: 100%;\n  left: 0px;\n  top: 0px;\n  z-index: 999999999 !important;\n  padding-top: 20%;\n}\n::ng-deep #block-44 {\n  display: block !important;\n}\n::ng-deep .footerlang {\n  display: block !important;\n}\n@media (max-width: 768px) {\n  #bsaslogo {\n    float: none !important;\n  }\n\n  #bsascontent {\n    padding-left: 0px !important;\n  }\n\n  .bsas_content {\n    padding-left: 0px !important;\n  }\n\n  button._share_result {\n    margin-bottom: 1px;\n  }\n}\n@media (max-width: 648px) {\n  .pull-right {\n    float: left !important;\n  }\n}']})],Fz);let jz=class{constructor(t,e,n,i,s){this.fb=t,this.el=e,this.findhelpService=n,this.router=i,this.titleService=s,this.selection=[],this.submitted=!1,this.concern_error=!1,this.insurance_error=!1,this.frm_submit=!1,this.substances=[],this.selectedRaceEthnicities=[],this.pageredirecting=!1,this.compare=[],this.substance_text="\xbfHa consumido",this.do_you="do you",this.do_you_have="Do you have",this.do_you_have_healthinsurance="\xbfTiene seguro o cobertura m\xe9dica?",this.you="you",this.PersonInfo_Option1="En la actualidad, recibo tratamiento o lo necesito por una enfermedad mental",this.PersonInfo_Option2="No tengo hogar",this.PersonInfo_Option3="Estoy embarazada",this.PersonInfo_Option4="Tengo hijos a quienes me gustar\xeda llevar al tratamiento",this.PersonInfo_Option5="He prestado servicio en la fuerzas armadas de los Estados Unidos",this.raceEthnicitytxt="\xbfCu\xe1l es su raza/etnia?",this.treatment_times="\xbfCu\xe1ntas veces usted ha intentado recibir tratamiento en su vida?/\xbfCu\xe1ntas veces esta persona ha intentado recibir tratamiento en su vida?",this.prefferd_lang="\xbfCu\xe1l es su idioma preferido?",this.i_am="I am",this.myself="I",this.your="your",this.your_healthinsurance_name="\xbfCu\xe1l es su seguro o cobertura m\xe9dica?",this.have_you="have you",this.have_children="I have children that I want to take into treatment with me",this.apply_to_you="a usted",this.clearFormArray=t=>{for(;0!==t.length;)t.removeAt(0)},this.titleService.setTitle("Evaluaci\xf3n - L\xednea de ayuda de uso de sustancias de Massachusetts")}ngOnInit(){this.selfAssesmentForm=this.fb.group({relation_to_person:[],to_whom:[null,[im.required]],substance:[null,[im.required]],concern:[null],concernItems:new sf([]),gender:[null,[im.required]],health_coverage:[null],age:[null,[im.required]],city:[null,[im.required]],distance:[null,[im.required]],health_insurance:[null],no_of_treatment_attempts:[],employed:[],preferredLanguage:[]})}ngAfterContentInit(){this.otherNeeds=[{id:"1",key:"infacility",incidentKey:"mentalhealthcondition",label:"En la actualidad, recibo tratamiento o lo necesito por una enfermedad mental",isChecked:!1},{id:"2",key:"homeless",incidentKey:"homeless",label:"No tengo hogar",isChecked:!1},{id:"3",key:"pregnancy",incidentKey:"pregnant",label:"Estoy embarazada",isChecked:!1},{id:"4",key:"families",incidentKey:"treatmentwithmefamily",label:"Tengo hijos a quienes me gustar\xeda llevar al tratamiento",isChecked:!1},{id:"5",key:"veteran",incidentKey:"veteran",label:"He prestado servicio en la fuerzas armadas de los Estados Unidos",isChecked:!1}],this.raceEthnicity=[{id:"2",key:"american",label:"India Americana o Nativa de Alaska",isChecked:!1},{id:"1",key:"asian",label:"Asi\xe1tica",isChecked:!1},{id:"3",key:"african",label:"Negra o africana americana",isChecked:!1},{id:"4",key:"latino",label:"Latino",isChecked:!1},{id:"5",key:"hawaiian",label:"Nativa de Hawaii/ Islas del Pac\xedfico",isChecked:!1},{id:"6",key:"white",label:"Blanca",isChecked:!1}],this.radii=[{id:"2",value:"5 millas"},{id:"3",value:"10 millas"},{id:"4",value:"15 millas"},{id:"5",value:"20 millas"},{id:"6",value:"30 millas"},{id:"7",value:"40 millas"},{id:"8",value:"50 millas"},{id:"9",value:"60 millas"},{id:"10",value:"70 millas"},{id:"11",value:"80 millas"},{id:"12",value:"90 millas"},{id:"13",value:"100 millas"},{id:"1",value:"Todo Massachusetts"}],this.compare={"Dentro de los \xfaltimos 3 d\xedas":"Within the past 3 days","Hace m\xe1s de 3 d\xedas, pero dentro del \xfaltimo mes":"More than 3 days ago, but within the past month","Entre el \xfaltimo mes y los \xfaltimos 3 meses":"Within the past 1-3 months","Hace m\xe1s de 3 meses":"More than 3 months ago","Todos los d\xedas o m\xe1s seguido":"Daily or more often","De 4 a 6 d\xedas la mayor\xeda de las semanas":"4-6 days most weeks","3 d\xedas o menos la mayor\xeda de las semanas":"3 days or fewer most weeks"},this.lastUsed=[{id:"1",value:"Dentro de los \xfaltimos 3 d\xedas"},{id:"2",value:"Hace m\xe1s de 3 d\xedas, pero dentro del \xfaltimo mes"},{id:"3",value:"Entre el \xfaltimo mes y los \xfaltimos 3 meses"},{id:"4",value:"Hace m\xe1s de 3 meses"}],this.howOftenUsed=[{id:"1",value:"Todos los d\xedas o m\xe1s seguido"},{id:"2",value:"De 4 a 6 d\xedas la mayor\xeda de las semanas"},{id:"3",value:"3 d\xedas o menos la mayor\xeda de las semanas"}],this.employed=[{id:"466",value:"S\xed, a tiempo completo"},{id:"59",value:"S\xed, a tiempo parcial"},{id:"58",value:"No"}],this.languages=[{id:"429",value:"English"},{id:"837",value:"Spanish"},{id:"799",value:"Albanian"},{id:"800",value:"Arabic"},{id:"1052",value:"ASL (Hearing Impaired)"},{id:"825",value:"Polish"},{id:"810",value:"French"},{id:"801",value:"Bosnian"},{id:"813",value:"German"},{id:"824",value:"Portuguese"},{id:"812",value:"Greek"},{id:"805",value:"Creole"},{id:"802",value:"Cambodian"},{id:"826",value:"Russian"},{id:"807",value:"Danish"},{id:"803",value:"Cantonese"},{id:"828",value:"Somali"},{id:"808",value:"Egyptian"},{id:"806",value:"Cape Verdean"},{id:"814",value:"Haitian Creole"},{id:"818",value:"Japanese"},{id:"815",value:"Hebrew"},{id:"829",value:"Swahili"},{id:"809",value:"Farsi"},{id:"817",value:"Indian"},{id:"816",value:"Italian"},{id:"819",value:"Khmer"},{id:"811",value:"Finnish"},{id:"830",value:"Vietnamese"},{id:"820",value:"Korean"},{id:"821",value:"Laotian"},{id:"822",value:"Mandarin"},{id:"823",value:"Nigerian"},{id:"1027",value:"Other"}],this.gender=[{id:"24",value:"Hombre"},{id:"25",value:"Mujer"},{id:"26",value:"Hombre transg\xe9nero"},{id:"27",value:"Mujer transg\xe9nero"}],this.findhelpService.getSubstances().subscribe(t=>{this.substances=[];let e=[];e=t,e.forEach(t=>{this.substances.push({id:t.id,name:t.namesp,namesp:t.namesp,drugcategory:t.drugcategory,ref:t.ref})})}),this.findhelpService.getPayments().subscribe(t=>{this.insurances=t}),this.findhelpService.getCities().subscribe(t=>{console.log(t),this.cities=t})}ngAfterViewInit(){document.getElementById("preferredLanguage").value="837";this.myCipher=(t=>{const e=t=>t.split("").map(t=>t.charCodeAt(0)),n=t=>("0"+Number(t).toString(16)).substr(-2),i=n=>e(t).reduce((t,e)=>t^e,n);return t=>t.split("").map(e).map(i).map(n).join("")})("39383828696a286364286566286778287072abcdefhjklmnopxyz@!=-()")}get selfAssesmentFormData(){return this.selfAssesmentForm.controls}createConcernItem(t){return new nf({id:new ef(null!=t?t.id:""),name:new ef(null!=t?t.name:""),category:new ef(null!=t?t.drugcategory:""),lastUse:new ef("",im.required),howOften:new ef("",im.required)})}get concernDetailsArray(){return this.selfAssesmentForm.get("concernItems")}onAdd(t){console.log("added ",t),console.log("array ",this.concernDetailsArray),this.concernDetailsArray.push(this.createConcernItem(t))}someText(t){1==t?(this.substance_text="\xbfHa consumido",this.do_you="do you",this.do_you_have="Do you have",this.do_you_have_healthinsurance="\xbfTiene seguro o cobertura m\xe9dica?",this.you="you",this.PersonInfo_Option1="En la actualidad, recibo tratamiento o lo necesito por una enfermedad mental",this.PersonInfo_Option2="No tengo hogar",this.PersonInfo_Option3="Estoy embarazada",this.PersonInfo_Option4="Tengo hijos a quienes me gustar\xeda llevar al tratamiento",this.PersonInfo_Option5="He prestado servicio en la fuerzas armadas de los Estados Unidos",this.raceEthnicitytxt="\xbfCu\xe1l es su raza/etnia?",this.treatment_times="\xbfCu\xe1ntas veces usted ha intentado recibir tratamiento en su vida?/\xbfCu\xe1ntas veces esta persona ha intentado recibir tratamiento en su vida?",this.prefferd_lang="\xbfCu\xe1l es su idioma preferido?",this.i_am="I am",this.myself="I",this.your="your",this.your_healthinsurance_name="\xbfCu\xe1l es su seguro o cobertura m\xe9dica?",this.have_you="have you",this.have_children="I have children that I want to take into treatment with me",this.apply_to_you="a usted",document.getElementById("itemLabel-0").innerText="En la actualidad, recibo tratamiento o lo necesito por una enfermedad mental",document.getElementById("itemLabel-1").innerText="No tengo hogar",document.getElementById("itemLabel-2").innerText="Estoy embarazada",document.getElementById("itemLabel-3").innerText="Tengo hijos a quienes me gustar\xeda llevar al tratamiento",document.getElementById("itemLabel-4").innerText="He prestado servicio en la fuerzas armadas de los Estados Unidos"):(this.substance_text="\xbfEsta persona ha consumido",this.do_you="do they",this.you="they",this.do_you_have="Do they have",this.do_you_have_healthinsurance="\xbfLa persona tiene seguro o cobertura m\xe9dica?",this.myself="They",this.PersonInfo_Option1="En la actualidad, recibe tratamiento o lo necesito por una enfermedad mental",this.PersonInfo_Option2="No tiene hogar",this.PersonInfo_Option3="Est\xe1 embarazada",this.PersonInfo_Option4="Tiene hijos a quienes le gustar\xeda llevar al tratamiento",this.PersonInfo_Option5="Ha prestado servicio en la fuerzas armadas de los Estados Unidos",this.raceEthnicitytxt="\xbfCu\xe1l es la raza/etnia de la persona?",this.treatment_times="\xbfCu\xe1ntas veces usted ha intentado recibir tratamiento en su vida?",this.prefferd_lang="\xbfCu\xe1l es su idioma preferido?/\xbfCu\xe1l es el idioma preferido de esta persona?",this.i_am="They are",this.your="their",this.your_healthinsurance_name="\xbfQu\xe9 seguro o cobertura m\xe9dica tiene?",this.have_you="have they",this.have_children="They have children they would like to bring into treatment with them",this.apply_to_you="esta persona",document.getElementById("itemLabel-0").innerText="En la actualidad, recibe tratamiento o lo necesito por una enfermedad mental",document.getElementById("itemLabel-1").innerText="No tiene hogar",document.getElementById("itemLabel-2").innerText="Est\xe1 embarazada",document.getElementById("itemLabel-3").innerText="Tiene hijos a quienes le gustar\xeda llevar al tratamiento",document.getElementById("itemLabel-4").innerText="Ha prestado servicio en la fuerzas armadas de los Estados Unidos")}onRemove(t){console.log("removed ",t),this.concernDetailsArray.removeAt(this.concernDetailsArray.value.findIndex(e=>e.id==t.value.id)),console.log(this.concernDetailsArray)}onConcernChange(t){this.concern_error=!1,0==t.length&&(this.concern_error=!0)}onInsuranceChange(t){this.insurance_error=!1,0==t.length&&(this.insurance_error=!0)}getHelpPayload(){this.selfAssesmentFormData;return{}}getOpaResultPayload(){let t=[];return this.concernDetailsArray.controls.forEach(e=>{const n={attrid:e.value.id,drugcategory:e.value.category?e.value.category:"",drug:e.value.name?e.value.name:"",timeoflastuseid:e.value.lastUse?e.value.lastUse:"",frequencyid:e.value.howOften?e.value.howOften:"",age:this.selfAssesmentFormData.age.value?this.selfAssesmentFormData.age.value:""};this.otherNeeds.forEach(t=>{"infacility"==t.key?n[t.key]=!1:n[t.key]=t.isChecked}),t.push(n)}),t}getDrugList(){let t=[];return this.selfAssesmentFormData.concernItems.value.forEach(e=>{let n={attrid:e.id,drugname:e.name,lastusage:e.lastUse,oftenusage:e.howOften};t.push(n)}),t}getInsurances(){let t=[];return this.selfAssesmentFormData.health_insurance.value.forEach(e=>{t.push(e.id)}),t}getSelfAssessmentPayload(){let t=this.selfAssesmentFormData.age.value;console.log(this.selfAssesmentFormData);let e={meorsomeone:{id:null!=this.selfAssesmentFormData.to_whom.value?this.selfAssesmentFormData.to_whom.value:""},relationship:{id:null!=this.selfAssesmentFormData.relation_to_person.value?this.selfAssesmentFormData.relation_to_person.value:""},isSubstanceUsed:null!=this.selfAssesmentFormData.substance.value?parseInt(this.selfAssesmentFormData.substance.value):"",primarydruglist:null!=this.selfAssesmentFormData.concern.value?this.getDrugList():[],gender:null!=this.selfAssesmentFormData.gender.value?this.selfAssesmentFormData.gender.value:"",age:null!=t?t:"",city:{id:null!=this.selfAssesmentFormData.city.value?this.selfAssesmentFormData.city.value.id:"",valueen:null!=this.selfAssesmentFormData.city.value?this.selfAssesmentFormData.city.value.value:""},radius:{id:null!=this.selfAssesmentFormData.distance.value?this.selfAssesmentFormData.distance.value.id:"",valueen:null!=this.selfAssesmentFormData.distance.value?this.selfAssesmentFormData.distance.value.value:""},healthCoverage:null!=this.selfAssesmentFormData.health_coverage.value?parseInt(this.selfAssesmentFormData.health_coverage.value):"",healthInsurances:null!=this.selfAssesmentFormData.health_insurance.value?this.getInsurances():[],nooftreatmentattempts:null!=this.selfAssesmentFormData.no_of_treatment_attempts.value?this.selfAssesmentFormData.no_of_treatment_attempts.value:"",employed:{id:null!=this.selfAssesmentFormData.employed.value?this.selfAssesmentFormData.employed.value:""},preferredLanguage:null!=this.selfAssesmentFormData.preferredLanguage.value?this.selfAssesmentFormData.preferredLanguage.value:"",langid:827};return this.otherNeeds.forEach(t=>{e[t.incidentKey]=t.isChecked}),this.selectedRaceEthnicities=[],this.raceEthnicity.forEach(t=>{t.isChecked&&this.selectedRaceEthnicities.push(t.id)}),console.log(this.selectedRaceEthnicities),e.raceEthnicity=this.selectedRaceEthnicities,e}submitHelpfrm(){if(this.submitted=!0,this.selfAssesmentForm.invalid){0==this.selfAssesmentFormData.substance.value&&(console.log("no primary drugs"),this.clearFormArray(this.concernDetailsArray),console.log(this.concernDetailsArray));let t={oparequest:this.getOpaResultPayload(),assessment:this.getSelfAssessmentPayload()};return console.log(t),void console.log("invalid form")}{if(console.log(this.selfAssesmentFormData),1==this.selfAssesmentFormData.health_coverage.value&&null==this.selfAssesmentFormData.health_insurance.value)return this.insurance_error=!0,console.log("insurance_error ",this.insurance_error),setTimeout(function(){$("body").find(".ng-input").find("input").focus()},1e3),!1;if(1==this.selfAssesmentFormData.substance.value){if(null==this.selfAssesmentFormData.concern.value)return this.concern_error=!0,console.log("concern_error",this.concern_error),setTimeout(function(){$("body").find(".ng-input").find("input").focus()},1e3),!1}else 0==this.selfAssesmentFormData.substance.value&&(console.log("no primary drugs"),this.clearFormArray(this.concernDetailsArray),console.log(this.concernDetailsArray));this.pageredirecting=!0,this.frm_submit=!0;let t={oparequest:this.getOpaResultPayload(),assessment:this.getSelfAssessmentPayload()};console.log(t),this.findhelpService.doSelfAssessment(t).subscribe(t=>{console.log(t),this.router.navigate(["es/spa_result/incident_id/",t.ref])})}}numberOnly(t){const e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}};jz.ctorParameters=()=>[{type:Uf},{type:s.ElementRef},{type:F_},{type:Wf.Router},{type:wh}],jz=Hh([Object(s.Component)({selector:"app-es-findhelp",template:'<div class="container" id="div1">\t\t\n    <div id="rn_opa_interview_php_1" class="rn_opa_interview_php">\n        <div ng-app="mahelplineonline" ng-controller="interviewCtrl" id="div1" class="ng-scope">\n            <form name="interview" [formGroup]="selfAssesmentForm" (ngSubmit)="submitHelpfrm()" id="interview_form">\n                <div class="row mt10">\n                    <div class="col-md-12"><h1 class="heading" style="font-size: 2.8em !important">Encuentre ayuda</h1></div>\n                    <div class="col-md-12">\n                        <p class="mt10"><b>Encuentre servicios al instante:</b>  Responda las siguientes preguntas para encontrar servicios para usted o para alguien por quien se preocupa. Todas las respuestas son confidenciales.</p>\n                        <p>Si ya sabe qu\xe9 busca, <a href="/es/spa_result" class="click-here">haga clic aqu\xed</a> para buscar los servicios usted mismo.</p>\n                    </div>\n                </div>\n                <hr class="mb0">\n                <div class="row">\n                        <div class="col-md-12"><span class="h4">\xbfEsto es para usted o para otra persona?</span></div>\n                        <div class="col-md-1">\n                            <label class="control control--radio">Para m\xed\n                                <input type="radio" formControlName="to_whom" [(ngModel)]="to_whom" (click)="someText(1)" name="to_whom" value="1">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2">\n                            <label class="control control--radio">Para otra persona\n                                <input type="radio" [(ngModel)]="to_whom"  name="to_whom" (click)="someText(2)" formControlName="to_whom" value="2">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div style="width: 100%;padding-left:2%; display:inline-block;"\n                            *ngIf="submitted && selfAssesmentFormData.to_whom?.errors">\n                            <small class="text-danger" *ngIf="selfAssesmentFormData.to_whom.errors.required">Por favor seleccione una opci\xf3n</small>\n                        </div>\n                    <div class="col-md-12 ng-scope" *ngIf = "to_whom==2">\n                        <p class="alert light-gray-bg black-text">La mayor\xeda de los tratamientos por uso de sustancias son voluntarios, lo que significa que una persona debe querer recibir el tratamiento para obtener los servicios. Esta evaluaci\xf3n recomienda servicios para personas que quieren tratamiento. En el caso de aquellos que no quieren tratamiento, hay otras opciones disponibles. Llame a la l\xednea de ayuda al 800.327.5050 para obtener m\xe1s informaci\xf3n.</p>\n                    </div>\n                    \x3c!-- ngIf: data.to_whom == \'someone\' --\x3e\n                </div>\n                <div class="row ng-scope" *ngIf = "to_whom==2">\n                        <div class="col-md-4">\n                            <span class="h4">\xbfQu\xe9 relaci\xf3n tiene con la persona que est\xe1 buscando ayuda? (opcional)</span>\n                            <select formControlName="relation_to_person" class="">\n                                <option [ngValue]="null">-- Seleccione --</option>\n                               <option value="1030">Mis padres</option>\n                                <option value="1031">Mis hermanos</option>\n                                <option value="1032">Mi c\xf3nyuge/pareja/prometido(a)</option>\n                                <option value="1033">Otro familiar</option>\n                                <option value="1034">Mi amigo</option>\n                                <option value="1035">Mi compa\xf1ero de trabajo</option>\n                                <option value="1036">Mi cliente/paciente</option>\n                                <option value="1037">Otro</option>\n                            </select>\n                        </div>\n                        \x3c!--div class="col-md-4">\n                            <span class="h4">Enter the name of the person?</span>\n                            <input type="text" ng-model="data.name" class=""/>\n                        </div--\x3e\n                        <div class="col-md-8"></div>\n                </div>\n                \x3c!-- ngIf: data.to_whom == \'someone\' --\x3e\n                <div class="row">\n                        <div class="col-md-12">\n                            <span class="h4 ng-binding">{{substance_text}} alguna sustancia en los \xfaltimos 6&nbsp;meses?</span>\n                        </div>\n                        <div class="col-md-1">\n                            <label class="control control--radio">S\xed\n                                <input type="radio" name="substance" value="1"  formControlName="substance">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2">\n                            <label class="control control--radio">No\n                                <input type="radio" name="substance" value="0"  formControlName="substance">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.substance?.errors">\n                            <small class="text-danger" *ngIf="selfAssesmentFormData.substance.errors.required">Por favor seleccione una opci\xf3n</small>\n                        </div>\n                </div>\n                <div class="row ng-scope" *ngIf="selfAssesmentFormData.substance.value==1">\n                    <div class="col-md-4">\n                        <span class="h4">\xbfQu\xe9 sustancia(s) consumi\xf3?</span>\n                        <ng-select [items]="substances" dropdownPosition="bottom" bindLabel="name" placeholder="Seleccione una opci\xf3n" appendTo="body"\n                            multiple="true" (add)="onAdd($event)" (remove)="onRemove($event)" \n                            (change)="onConcernChange($event)" formControlName="concern"\n                            [closeOnSelect]="true" [hideSelected]="true" [clearable]="false">\n                            <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                <span class="ng-value-label"> {{item.namesp}}</span>\n                                <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                            </ng-template>\n                        </ng-select>\n                        <div class="col-md-12" style="margin-left: -12px;" *ngIf="submitted && concern_error==true">\n                            <small class="text-danger">Seleccione al menos una sustancia</small>\n                        </div>\n                        \x3c!-- <div class="ms-ctn form-control " style="" id="substances"><span class="ms-helper"></span><div class="ms-sel-ctn"><input type="text" class="" placeholder="Escriba o haga clic aqu\xed para ver el men\xfa desplegable de sustancias" style="width: 68px;"><div style="display: none;"></div></div><div class="ms-trigger"><div class="ms-trigger-ico"></div></div></div> --\x3e\n                        <div>\n                        </div>\n                    </div>\n                    <div class="col-md-8"></div>\n                </div>\n                <div class="row" *ngIf="selfAssesmentFormData.substance.value==1">\x3c!--*ngIf="concernDetailsArray.length>0"--\x3e\n                    <div formArrayName="concernItems"\n                        *ngFor="let list of concernDetailsArray.controls; let i = index;">\n                        <div class="form-group" [formGroupName]="i">\n                            <div class="col-md-6">\n                                <span class="h4 ng-binding">Cu\xe1ndo fue la \xfaltima vez que us\xf3 {{list.value.name}}?</span>\n                                <select formControlName="lastUse" class="validate[required] ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched"> --\x3e\n                                    <option [ngValue]="null">-- Seleccione --</option>\n                                    <option *ngFor="let item of lastUsed" [value]="item.id">{{item.value}}</option>\n                                </select>\n                                <div class="col-md-12" *ngIf="submitted && list.controls.lastUse?.errors">\n                                    <small class="text-danger" *ngIf="list.controls.lastUse.errors.required">\n                                        Este campo es obligatorio\n                                    </small>\n                                </div>\n                            </div>\n                            <div class="col-md-6">\n                                <span class="h4 ng-binding">Cada cu\xe1nto la usa/usaba {{list.value.name}}?</span>\n                                <select formControlName="howOften" class="validate[required] ng-valid ng-not-empty ng-dirty ng-valid-parse ng-touched"> --\x3e\n                                    <option [ngValue]="null">-- Seleccione --</option>\n                                    <option *ngFor="let item of howOftenUsed" [value]="item.id">{{item.value}}</option>\n                                </select>\n                                <div class="col-md-12" *ngIf="submitted && list.controls.howOften?.errors">\n                                    <small class="text-danger" *ngIf="list.controls.howOften.errors.required">\n                                        Este campo es obligatorio\n                                    </small>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                \x3c!--div class="row" ng-show="data.check_substance_used == \'yes\'">\n                    <div class="col-md-6">\n                        <span class="h4">How many times {{you}} sought the treatment before?</span>\n                        <input type="text" class="form-control" ng-model="treatment_count" />\n                    </div>\n                </div--\x3e\n                \x3c!-- ngRepeat: substance in selected_substances --\x3e\n            <hr class="mb0">\n            <div class="row mt-10">\n                        <div class="col-md-12">\n                            <span class="h4">\xbfCu\xe1l es su sexo?</span>\n                        </div>\n                         \n                         \n                        <div class="col-md-12" *ngFor="let item of gender">\n                            <label class="control control--radio">{{item.value}}\n                                <input type="radio" name="gender" [value]="item.id" formControlName="gender"\n                                    id="form-validation-field-4">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.gender?.errors">\n                            <small class="text-danger" *ngIf="selfAssesmentFormData.gender.errors.required">Por favor seleccione una opci\xf3n</small>\n                        </div>\n                    </div>\n                <div class="row mt-10">\n                    <div class="col-md-4">\n                        <span class="h4">\xbfQu\xe9 edad tiene?</span>\n                        <input type="text" (keypress)="numberOnly($event)" maxlength="2" name="age" formControlName="age" />\n                    </div>\n                    <div class="col-md-8">\n                    </div>\n                </div>\n                <div class="row mt-10">\n                    <div class="col-md-4">\n                            <span class="h4">\xbfEn qu\xe9 ciudad vive?</span>\n                            <select name="city" formControlName="city">\n                                <option [ngValue]="null">-- Ciudad selecta --</option>\n                                <option *ngFor="let item of cities" [ngValue]="item">{{item.value}}</option>\n                            </select>\n                        </div>\n                        <div class="col-md-8">\n                        </div>\n                        <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.city?.errors">\n                            <small class="text-danger" *ngIf="selfAssesmentFormData.city.errors.required">Este campo es obligatorio</small>\n                        </div>\n                </div>\n        <div class="row mt-10">\n                        <div class="col-md-4">\n                            <span class="h4">\xbfCu\xe1n lejos puede viajar para recibir ayuda?</span>\n                            <select formControlName="distance">\n                                <option [ngValue]="null">-- seleccionar distancia --</option>\n                                <option *ngFor="let item of radii" [ngValue]="item">{{item.value}}</option>\n                            </select>\n                        </div>\n                        <div class="col-md-8">\n                        </div>\n                        <div class="col-md-12" *ngIf="submitted && selfAssesmentFormData.distance?.errors">\n                            <small class="text-danger" *ngIf="selfAssesmentFormData.distance.errors.required">Este campo es obligatorio</small>\n                        </div>\n                </div>\n                <div class="row mt-10">\n                    <div class="col-md-12"><span class="h4 ng-binding">Elija cualquiera de las siguientes opciones que corresponda {{apply_to_you}}.(opcional)</span></div>\n                    <div style="width: 100%;" *ngFor="let item of otherNeeds; let i = index;">\n                        <input id="checkbox-{{i}}" class="checkbox-custom" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.isChecked">\n                        <label for="checkbox-{{i}}" id="itemLabel-{{i}}" class="checkbox-custom-label ng-binding">{{item.label}}</label>\n                    </div>\n                </div>\n                \x3c!--div class="row">\n                    <div class="col-md-12">\n                        <span class="h4">Provide the information below to help find appropriate treatment services for you:</span>\n                    </div>\n                </div--\x3e\n                <div class="row mt-10">\n                        <div class="col-md-12">\n                            <span class="h4 ng-binding">{{do_you_have_healthinsurance}}</span>\n                        </div>\n                        <div class="col-md-1">\n                            <label class="control control--radio">S\xed\n                                <input type="radio" name="health_coverage"  checked="checked" formControlName="health_coverage"  value="1">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-1">\n                            <label class="control control--radio">No\n                                <input type="radio" name="health_coverage" formControlName="health_coverage" value="0">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                </div>\n                <div class="row" *ngIf="selfAssesmentFormData.health_coverage.value==1">\n                        <div class="col-md-6">\n                            <span class="h4 ng-binding">{{your_healthinsurance_name}}</span>\n                            <ng-select [items]="insurances" dropdownPosition="bottom" dropdownPosition="bottom" bindLabel="name" placeholder="Seleccione una opci\xf3n"\n                                appendTo="body" multiple="true" (change)="onInsuranceChange($event)" \n                                formControlName="health_insurance" [closeOnSelect]="true"\n                                [hideSelected]="true" [clearable]="false">\n                                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                                    <span class="ng-value-label"> {{item.name}}</span>\n                                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                                </ng-template>\n                            </ng-select>\n                            <div class="col-md-12" style="margin-left: -13px;" *ngIf="submitted && insurance_error==true">\n                                <small class="text-danger">Seleccione al menos un seguro</small>\n                            </div>\n                            <div></div>\n                        </div>\n                </div>\n                <input type="hidden" ng-model="data.insurances" class="ng-pristine ng-untouched ng-valid ng-not-empty">\n                \x3c!-- ngIf: data.health_coverage == \'no\' --\x3e\n                <div class="row ng-scope" *ngIf="selfAssesmentFormData.health_coverage.value==0">\n                    <div class="col-md-12">\n                        <div class="alert light-gray-bg black-text" style="font-size: 16px;">Los residentes de Massachusetts tienen derecho a recibir tratamiento por el uso de sustancias, sin importar si tienen seguro o si pueden pagarlo. La Oficina de Servicios para Adicci\xf3n a Sustancias del Departamento de Salud P\xfablica financia los servicios de tratamiento para los residentes de Massachusetts que no tengan cobertura m\xe9dica</div>\n                    </div>\n                </div>\n                <hr class="mb0">\n                <div class="row">\n                    <div class="col-md-12">\n                        <span class="h4 highlight">Responda las siguientes preguntas para ayudarnos a brindar una mejor atenci\xf3n a los usuarios de la l\xednea de ayuda. Lo siguiente es OPCIONAL y no afecta su elegibilidad para recibir servicios.</span>\n                    </div>\n                </div>\n                <div class="row">\n                    <div class="form-group">\n                        <div class="col-md-12">\n                            <span class="h4 ng-binding">{{raceEthnicitytxt}}</span>\n                            <div *ngFor="let item of raceEthnicity; let i = index;">\n                                <input id="race-checkbox-{{i}}" class="checkbox-custom" type="checkbox" [ngModelOptions]="{standalone: true}" [(ngModel)]="item.isChecked">\n                                <label for="race-checkbox-{{i}}" class="checkbox-custom-label ng-binding">{{item.label}}</label>\n                            </div>\n                         \x3c!--   <label ng-repeat="role in roles">\n                             <input type="checkbox"  value="{{role.id}}" ng-click="change(role.id)"> {{role.name}}\n                        </label> --\x3e\n                \x3c!-- <div>\n                        <input id="checkbox-7" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.americanindian" ng-true-value="true">\n                        <label for="checkbox-7" class="checkbox-custom-label">India Americana o Nativa de Alaska</label>\n                    </div>  \n                    <div>\n                        <input id="checkbox-8" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.asian" ng-true-value="true">\n                        <label for="checkbox-8" class="checkbox-custom-label">Asi\xe1tica</label>\n                    </div> \n                    <div>\n                        <input id="checkbox-9" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.african" ng-true-value="true">\n                        <label for="checkbox-9" class="checkbox-custom-label">Negra o africana americana</label>\n                    </div> \n                    <div>\n                        <input id="checkbox-10" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.latino" ng-true-value="true">\n                        <label for="checkbox-10" class="checkbox-custom-label">Latino</label>\n                    </div> \n                    <div>\n                        <input id="checkbox-11" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.nativehawai" ng-true-value="true">\n                        <label for="checkbox-11" class="checkbox-custom-label">Nativa de Hawaii/ Islas del Pac\xedfico</label>\n                    </div> \n                    <div>\n                        <input id="checkbox-12" class="checkbox-custom ng-pristine ng-untouched ng-valid ng-empty" type="checkbox" ng-model="data.white" ng-true-value="true">\n                        <label for="checkbox-12" class="checkbox-custom-label">Blanca</label>\n                    </div>    --\x3e\n                           \x3c!--  <div id="race" class="form-control"></div> --\x3e\n                        </div>\n                        <div class="col-md-8">\n                        </div>\n                    </div>\n                </div>\n                 <div class="row">\n                        <div class="col-md-6">\n                         <span class="h4 ng-binding">{{treatment_times}}</span>\n                            <input  type="text" formControlName = "no_of_treatment_attempts"> \n                          </div>\n                          <div class="col-md-6">\n                          </div>\n                      </div>\n               \x3c!--  <div class="row">\n                    <div class="form-group">\n                        <div class="col-md-6">\n                            <span class="h4">{{raceEthnicity}}</span>\n                            <div id="race" class="form-control"></div>\n                        </div>\n                        <div class="col-md-6">\n                            <span class="h4">{{treatment_times}}</span>\n                            <input class="form-control" type="text" ng-model="data.treatment_attempts"/>\n                        </div>\n                    </div>\n                </div>--\x3e\n                 <div class="row">\n                        <div class="col-md-12">\n                            <span class="h4">\xbfTrabaja en la actualidad?</span>\n                        </div>\n                         \x3c!-- <div class="col-md-12">\n                            <label class="control control--radio">S\xed, a tiempo completo\n                                <input type="radio" name="employed" value="466" formControlName = "employed"> \n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-12">\n                            <label class="control control--radio">S\xed, a tiempo parcial\n                                <input type="radio" name="employed" value="59" formControlName = "employed"> \n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-12">\n                            <label class="control control--radio">No\n                                <input type="radio" name="employed" value="58" formControlName = "employed"> \n                                <div class="control__indicator"></div>\n                            </label>\n                        </div> --\x3e\n                        <div class="col-md-12" *ngFor="let item of employed">\n                            <label class="control control--radio">{{item.value}}\n                                <input type="radio" name="employed" [value]="item.id" formControlName = "employed">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                </div>\n                <div class="row">\n                    <div class="col-md-4">\n                        <span class="h4 ng-binding">{{prefferd_lang}}</span>\n                        <select formControlName = "preferredLanguage" id="preferredLanguage">\n                            <option [ngValue]="null">-- Seleccione --</option>\n                            <option *ngFor="let item of languages" [value]="item.id">{{item.value}}</option>\n                        </select>\n                    </div>\n                </div>\n                <hr>\n                <button class="btn purple-bg" [disabled]="frm_submit" ng-click="submit_interview()">Enviar</button>&nbsp;&nbsp;<label class="label label-success" *ngIf="pageredirecting">Redirecting...</label>\n                <input type="reset" value="Borrar formulario" class="btn purple-bg _clearForm" ng-click="clearForm()">\n                </form>\n                </div>\n        </div>\n    \x3c!--rn:widget path="/custom/hria/test_soap"--\x3e\n    </div>',styles:["#div1 {\n  margin-bottom: 10px;\n}\n\n.btn-md {\n  padding: 8px 20px;\n}\n\n.grey-bg {\n  background: grey;\n  color: white;\n  padding: 6px 6px;\n}\n\n::ng-deep .container {\n  max-width: 1170px !important;\n}\n\n.col-md-12 p {\n  font-size: 16px !important;\n}\n\n::ng-deep #block-44 {\n  display: block !important;\n}\n\n::ng-deep .footerlang {\n  display: block !important;\n}\n\n.click-here, .click-here:hover {\n  color: #382F44 !important;\n}"]})],jz);let Vz=class{constructor(t,e){this.fb=t,this.el=e,this.submitted=!1,this.gambling_four=!1,this.to_gambling_five_error=!1,this.to_gambling_six_error=!1,this.response1=!1,this.response2=!1,this.response3=!1,this.response4=!1}get f(){return this.pg_form.controls}ngOnInit(){this.pg_form=this.fb.group({to_gambling_one:[null,[im.required]],to_gambling_two:[null,[im.required]],to_gambling_three:[null,[im.required]],to_gambling_four:[null,[im.required]],to_gambling_five:[null],to_gambling_six:[null]})}gmbVal(t){this.gambling_four=t}pg_interview(){if(this.submitted=!0,"Yes"==this.pg_form.controls.to_gambling_four.value&&(this.to_gambling_five_error=!0,this.to_gambling_six_error=!0,null!==this.pg_form.controls.to_gambling_five.value&&(this.to_gambling_five_error=!1),null!==this.pg_form.controls.to_gambling_six.value&&(this.to_gambling_six_error=!1)),this.pg_form.invalid);else if(null!==this.pg_form.controls.to_gambling_five.value&&null!==this.pg_form.controls.to_gambling_six.value){this.response1=!1,this.response2=!1,this.response3=!1,this.response4=!1;let t=this.pg_form.controls.to_gambling_one.value,e=this.pg_form.controls.to_gambling_two.value,n=this.pg_form.controls.to_gambling_three.value,i=this.pg_form.controls.to_gambling_four.value,s=this.pg_form.controls.to_gambling_five.value,r=this.pg_form.controls.to_gambling_six.value;"Yes"!=t&&"Yes"!=e&&"Yes"!=n||"Yes"!=s&&"Yes"!=r||(this.response1=!0),"No"==t&&"No"==e&&"No"==n&&"No"==s&&"No"==i&&(this.response2=!0),"Yes"!=t&&"Yes"!=e&&"Yes"!=n||"No"!=s||"No"!=i||(this.response3=!0),"No"!=t||"No"!=e||"No"!=n||"Yes"!=s&&"Yes"!=i||(this.response4=!0)}}};Vz.ctorParameters=()=>[{type:Uf},{type:s.ElementRef}],Vz=Hh([Object(s.Component)({selector:"app-pghelpline",template:'<div class="container body" id="yui_3_17_2_10_1621337009624_140">\n    <div id="screener">\n        <div ng-app="mahelplineonline" ng-controller="pgscreenerCtrl" id="div1" class="ng-scope">\n            <form name="pg_interview"  [formGroup]="pg_form" (ngSubmit)="pg_interview()" id="pg_interview_form">\n                    <div class="row">\n                            <div class="col-sm-12">\n                                <div id="err_location" tabindex="0">\n                                </div>\n                            </div>\n                    </div>\n                <div class="row mt10">\n                    <div class="col-md-12"><h1 class="heading">Problem Gambling Helpline</h1></div>\n                    <div class="col-md-12">\n                     \n                    </div>\n                </div>\n                <hr class="mb0">\n                <div class="row" id="yui_3_17_2_10_1621337009624_139">\n                    <div class="form-group" id="yui_3_17_2_10_1621337009624_138">\n                        <div class="col-md-12"><span class="h4">During the past 12 months, have you become restless, irritable, or anxious when trying to stop/cut down on gambling? </span></div>\n                        <div class="col-md-1" id="yui_3_17_2_10_1621337009624_137">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_136">Yes\n                                <input type="radio" formControlName="to_gambling_one" name="to_gambling_one" value="Yes">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2" id="yui_3_17_2_10_1621337009624_150">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_149">No\n                                <input type="radio" formControlName="to_gambling_one" name="to_gambling_one" value="No">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class="" *ngIf="submitted && f.to_gambling_one?.errors">\n                    <small class="text-danger" *ngIf="f.to_gambling_one.errors.required">Please select an option</small>\n                </div>\n                <br>\n                <div class="row" id="yui_3_17_2_10_1621337009624_162">\n                    <div class="form-group" id="yui_3_17_2_10_1621337009624_161">\n                        <div class="col-md-12"><span class="h4">During the past 12 months, have you tried to keep your family or friends from knowing how much you gambled? </span></div>\n                        <div class="col-md-1" id="yui_3_17_2_10_1621337009624_160">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_159">Yes\n                                <input type="radio" formControlName="to_gambling_two" name="to_gambling_two" value="Yes">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2" id="yui_3_17_2_10_1621337009624_171">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_170">No\n                                <input type="radio" formControlName="to_gambling_two" name="to_gambling_two" value="No">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class="" *ngIf="submitted && f.to_gambling_two?.errors">\n                    <small class="text-danger" *ngIf="f.to_gambling_two.errors.required">Please select an option</small>\n                </div>\n    <br>\n                <div class="row" id="yui_3_17_2_10_1621337009624_184">\n                    <div class="form-group" id="yui_3_17_2_10_1621337009624_183">\n                        <div class="col-md-12"><span class="h4">During the past 12 months did you have such financial trouble as a result of your gambling that you had to get help with living expenses from family, friends, or welfare?</span></div>\n                        <div class="col-md-1" id="yui_3_17_2_10_1621337009624_182">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_181">Yes\n                                <input type="radio" formControlName="to_gambling_three"  name="to_gambling_three" value="Yes">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2" id="yui_3_17_2_10_1621337009624_193">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_192">No\n                                <input type="radio" formControlName="to_gambling_three" name="to_gambling_three" value="No">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div> \n                    </div>\n                </div>\n                <div class="" *ngIf="submitted && f.to_gambling_three?.errors">\n                    <small class="text-danger" *ngIf="f.to_gambling_three.errors.required">Please select an option</small>\n                </div>\n                <br>\n                <div class="row" id="yui_3_17_2_10_1621337009624_206">\n                    <div class="form-group" id="yui_3_17_2_10_1621337009624_205">\n                        <div class="col-md-12"><span class="h4">Many people who have problems with gambling also have problems with drinking and/or drug use. Would you like to answer two questions about these experiences? </span></div>\n                        <div class="col-md-1" id="yui_3_17_2_10_1621337009624_204">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_203">Yes\n                                <input type="radio" name="to_gambling_four" value="Yes" (click)="gmbVal(1)" formControlName="to_gambling_four">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2" id="yui_3_17_2_10_1621337009624_215">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_214">No\n                                <input type="radio" name="to_gambling_four" value="No" (click)="gmbVal(0)" formControlName="to_gambling_four">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class="" *ngIf="submitted && f.to_gambling_four?.errors">\n                    <small class="text-danger" *ngIf="f.to_gambling_four.errors.required">Please select an option</small>\n                </div>\n                <br>\n                <div *ngIf="gambling_four">\n                <div class="row" id="que_5">\n                    <div class="form-group" id="yui_3_17_2_10_1621337009624_229">\n                        <div class="col-md-12"><span class="h4">During the past 12 months have you used drugs or substances more than you meant to? </span></div>\n                        <div class="col-md-1" id="yui_3_17_2_10_1621337009624_228">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_227">Yes\n                                <input type="radio"  name="to_gambling_five" value="Yes" formControlName="to_gambling_five">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2">\n                            <label class="control control--radio">No\n                                <input type="radio" formControlName="to_gambling_five" name="to_gambling_five" value="No">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class="" *ngIf="submitted && to_gambling_five_error">\n                    <small class="text-danger">Please select an option</small>\n                </div>\n                </div>\n                <br>\n                <div *ngIf="gambling_four">\n                <div class="row" id="que_6">\n                    <div class="form-group" id="yui_3_17_2_10_1621337009624_241">\n                        <div class="col-md-12"><span class="h4">During the past 12 months did you ever feel you should cut down on your drinking or drug use? </span></div>\n                        <div class="col-md-1" id="yui_3_17_2_10_1621337009624_240">\n                            <label class="control control--radio" id="yui_3_17_2_10_1621337009624_239">Yes\n                                <input type="radio"  name="to_gambling_six" value="Yes" formControlName="to_gambling_six">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                        <div class="col-md-2">\n                            <label class="control control--radio">No\n                                <input type="radio" name="to_gambling_six" value="No" formControlName="to_gambling_six">\n                                <div class="control__indicator"></div>\n                            </label>\n                        </div>\n                    </div>\n                </div>\n                <div class="" *ngIf="submitted && to_gambling_six_error">\n                    <small class="text-danger">Please select an option</small>\n                </div>\n                </div>\n                <br>\n                <button class="btn btn-md purple-bg" ng-click="submit_interview()">Submit</button>\n                <input type="reset" value="Clear Form" class="btn grey-bg _clearForm" (click)="gambling_four=0;" id="yui_3_17_2_10_1621337009624_245">\n                </form>\n                </div>\n                <br>\n                <div id="response1" *ngIf="response1">\n                    <p style="color: black">\n                    <span class="dot mt-10"></span>Based on your responses, <b>you are at risk of problem gambling.</b> You might want to consider limiting your exposure to gambling. You could limit your exposure to gambling by avoiding gambling venues, like casinos, and websites. You also might want to hang out with people who do not push you to gamble. Consider filling your time with enjoyable activities that 1 involve gambling. It may be helpful to you to seek information, resources, and support from the options below. <br>\n                     </p><p style="padding: 0 9%;color: black">\n                    <span class="inner-circle mt-10" style="text-align: center;"></span><a>Click here</a> to call or chat with a Helpline Specialist who can answer questions and provide resources about problem gambling and substance use.<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> for available Outpatient Counseling for Gambling resources<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> available Gambling Self-Help and Recovery Support resources<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> to learn more about Problem Gambling Treatment<br>\n                </p>\n                    <span class="dot mt-10"> </span><a>Click here</a> Based on your responses you <b>may be at risk for developing a problem related to substance use.</b> It may be helpful to you to connect with the MA Substance Use Helpline. You can find more resources, information, and support by visiting the MA Substance Use Helpline at <a>HelplineMA.org</a>\n                    <p></p>\n                </div>\n    \n                 <div id="response2" *ngIf="response2">\n                    <p style="color: black">\n                    <span class="dot mt-10"></span>Based on your responses, you are <b>at low risk of problem gambling.</b>  It may be helpful to you to learn more about problem gambling or to connect with one of our Helpline Specialists. <br>\n                    </p><p style="padding: 0 9%;color: black">\n                    <span class="inner-circle mt-10" style="text-align: center;"></span><a>Click here</a> to call or chat with a Helpline Specialist who can answer questions and provide resources about problem gambling and substance use.<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> for available Outpatient Counseling for Gambling resources<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> available Gambling Self-Help and Recovery Support resources<br>\n                </p>\n                    <span class="dot mt-10"> </span>Based on your responses, you are at low risk for a problem related to substance use\n                    <p></p>\n                </div>\n    \n                 <div id="response3" *ngIf="response3">\n                    <p style="color: black">\n                    <span class="dot mt-10"></span>Based on your responses, you are <b>at low risk of problem gambling.</b>You might want to consider limiting your exposure to gambling. You could limit your exposure to gambling by avoiding gambling venues, like casinos and websites. You also might want to hang out with people who do not push you to gamble. Consider filling your time with enjoyable activities that don\u2019t involve gambling. It may be helpful to you to seek information, resources, and support from the options below. <br>\n                    </p><p style="padding: 0 9%;color: black">\n                    <span class="inner-circle mt-10" style="text-align: center;"></span><a>Click here</a> to call or chat with a Helpline Specialist.<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> for available Outpatient Counseling for Gambling resources<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> for available Gambling Self-Help and Recovery Support resources <br>\n                     <span class="inner-circle mt-10"></span><a>Click here</a> to learn more about Problem Gambling Treatment<br>\n                </p>\n                    <span class="dot mt-10"> </span>Based on your responses, you are at low risk for a problem related to substance use\n                    <p></p>\n                </div>\n    \n                 <div id="response4" *ngIf="response4">\n                    <p style="color: black">\n                    <span class="dot mt-10"></span>Based on your responses, you are <b>at low risk of problem gambling.</b>  It may be helpful to you to learn more about problem gambling and other resources (below), or to connect with one of our Helpline specialists. <br>\n                    </p><p style="padding: 0 9%;color: black">\n                    <span class="inner-circle mt-10" style="text-align: center;"></span><a>Click here</a> to learn more About Problem Gambling.<br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> for available Gambling Self-Help and Recovery Support resources <br>\n                    <span class="inner-circle mt-10"></span><a>Click here</a> to call or chat with MA PG Helpline Specialists<br>\n                </p>\n                    <span class="dot mt-10"> </span>Based on your responses you<b> may be at risk for developing a problem related to substance use.</b> It may be helpful to you to connect with the MA Substance Use Helpline. You can find more resources, information, and support by visiting the MA Substance Use Helpline at HelplineMA.org. \n                    <p></p>\n                </div>\n        </div>\n    </div>',styles:["form span, form .h4 {\n  font-size: 15px !important;\n}\n\n.dot {\n  height: 10px;\n  width: 15px;\n  background-color: black;\n  border-radius: 50%;\n  display: inline-block;\n  margin-right: 12px;\n}\n\n.mt-10 {\n  margin-top: 15px;\n}\n\n.inner-circle {\n  display: inline-block;\n  width: 12px;\n  height: 10px;\n  border-radius: 50%;\n  border-style: solid;\n  border-width: 2px;\n  margin-right: 12px;\n}"]})],Vz);let Bz=class{constructor(t,e,n){this.route=t,this.findhelpService=e,this.titleService=n,this.titleService.setTitle("Detalles del proveedor - L\xednea de ayuda para el uso de sustancias de Massachusetts"),this.prdId=this.route.snapshot.params.id,this.findhelpService.providerDetailsById(this.prdId).subscribe(t=>{console.log("data2",t),this.prDetails=t})}ngOnInit(){}ngAfterViewInit(){var t=0;$("body").on("click","a#collapse",function(){++t%2==0?$(this).html("+"):$(this).html("-")})}removeTags(t){return null!==t&&""!==t&&(t=t.toString()).replace(/(<([^>]+)>)/gi,"")}};Bz.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:F_},{type:wh}],Bz=Hh([Object(s.Component)({selector:"app-es-provider-details",template:'<div class="container-fluid">\t\t\n        <div class="container"  *ngIf="prDetails">\n            <h2>Provider\'s Information</h2>\n            <div class="row">\n                <div class="col-md-4" *ngIf="prDetails.name!==null && prDetails.name!==undefined && prDetails.name!=\'\'">\n                    <p><label>Programa:&nbsp;</label>{{prDetails.name}}</p>\n                </div>\n                <div class="col-md-4" *ngIf="prDetails.agencyname!==null && prDetails.agencyname!==undefined && prDetails.agencyname!=\'\'">\n                    <p><label>Agencia:&nbsp;</label>{{prDetails.agencyname}}</p>\n                </div>\n                <div class="col-md-4">\n                    <p><label>Direcci\xf3n:&nbsp;</label>{{(prDetails.orgaddr.PhysicalAddress[0].street)?prDetails.orgaddr.PhysicalAddress[0].street+\',\':\'\'}} {{(prDetails.orgaddr.PhysicalAddress[0].cityname)?prDetails.orgaddr.PhysicalAddress[0].cityname+\',\':\'\'}} {{(prDetails.orgaddr.PhysicalAddress[0].stateval)?prDetails.orgaddr.PhysicalAddress[0].stateval+\',\':\'\'}} {{(prDetails.orgaddr.PhysicalAddress[0].postalcode!=\'\')?prDetails.orgaddr.PhysicalAddress[0].postalcode:\'\'}} </p>\n                </div>\n            </div>\n            <div class="row">\n                <div class="col-md-4" *ngIf="prDetails.phonenumber!==null && prDetails.phonenumber!==undefined && prDetails.phonenumber!=\'\'">\n                    \x3c!-- <p><label>Phone: </label> ({{prDetails.phonenumber.substr(0,3)}}) {{prDetails.phonenumber.substr(3,3)}}-{{prDetails.phonenumber.substr(6,4)}}</p> --\x3e\n                    <p><label>Tel\xe9fono:&nbsp;</label>{{prDetails.phonenumber}}</p>\n                </div>\n                <div class="col-md-4" *ngIf="prDetails.tty!==null && prDetails.tty!==undefined && prDetails.tty!=\'\'">\n                    <p><label>TTY:&nbsp;</label>{{prDetails.tty}}</p>\n                </div>\n                <div class="col-md-4" *ngIf="prDetails.fax!==null && prDetails.fax!==undefined && prDetails.fax!=\'\'">\n                    <p><label>FAX:&nbsp;</label>{{prDetails.fax}}</p>\n                </div>\n            </div>\n            <div class="row">\n                <div class="col-md-4" *ngIf="prDetails.provideremail!==null && prDetails.provideremail!==undefined && prDetails.provideremail!=\'\'">\n                    <p><label>Correo electr\xf3nico:&nbsp;</label>{{prDetails.provideremail}}</p>\n                </div>\n                <div class="col-md-4" *ngIf="prDetails.website!==null && prDetails.website!==undefined && prDetails.website!=\'\'">\n                    <p><label>Sitio web: &nbsp;</label><a class="_website"  *ngIf="prDetails.website && !prDetails.website.includes(\'http\')" [attr.href]="\'//\'+prDetails.website" target="_blank">{{prDetails.website}}</a><a class="_website"  *ngIf="prDetails.website && prDetails.website.includes(\'http\')" [attr.href]="prDetails.website" target="_blank">{{prDetails.website}}</a></p>\n                </div>\n                \x3c!-- <div class="col-md-4">\n                    <p><label>Languages:</label> English, Spanish</p>\n                </div> --\x3e\n            </div>\n            <div class="row">\n                    <div class="col-md-4" *ngIf="prDetails.attrtypeList[\'Gender  Served\']">\n                    <p><label>G\xe9neros atendidos:&nbsp;</label> <span *ngFor="let gs of prDetails.attrtypeList[\'Gender  Served\'];let i = index">{{gs.namesp}}<span *ngIf="prDetails.attrtypeList[\'Gender  Served\'].length-1!=i">, </span></span></p>\n                </div>\n                <div class="col-md-4" *ngIf="prDetails.attrtypeList[\'Age Served\']">\n                <p><label>Edades atendidas:&nbsp;</label> <span *ngFor="let gs of prDetails.attrtypeList[\'Age Served\'];let i = index">{{gs.namesp}}<span *ngIf="prDetails.attrtypeList[\'Age Served\'].length-1!=i">, </span></span></p>\n                </div>\n                    </div>\n                <div class="row" *ngIf="prDetails.externaldescription!==null && prDetails.externaldescription!==undefined && prDetails.externaldescription!=\'\'">\n                    <div class="col-md-12">\n                    <p><label>Descripci\xf3n:&nbsp;</label>{{removeTags(prDetails.externaldescription)}}</p>\n                </div>\n                </div>\n                <div class="row">\n                <div class="col-md-12" *ngIf="prDetails.admissionprocedure!==null && prDetails.admissionprocedure!==undefined && prDetails.admissionprocedure!=\'\'">\n                    <p><label>Procedimiento de Admisi\xf3n:&nbsp;</label>{{removeTags(prDetails.admissionprocedure)}}</p>\n                </div>\n                </div>\n                    <div class="row" *ngIf="prDetails.attrtypeList.Treatment">\n                <div class="col-md-12">\n                        <p><label>Tratamientos Disponibles:&nbsp;</label><span *ngFor="let gs of prDetails.attrtypeList.Treatment; let i=index">{{gs.namesp}}<span *ngIf="prDetails.attrtypeList.Treatment.length-1!=i">, </span></span></p>\n                        </div>\n            </div>\n                            <div class="row" *ngIf="prDetails.attrtypeList[\'Payment\']">\n                <div class="col-md-12">\n                        <p><label>Formas de pago:&nbsp;</label><span *ngFor="let gs of prDetails.attrtypeList[\'Payment\']; let i=index">{{gs.name}}<span *ngIf="prDetails.attrtypeList[\'Payment\'].length-1!=i">, </span></span></p>\n                        </div>\n            </div>\n             <div class="row" *ngIf="prDetails.attrtypeList[\'Special Populations\']">\n                <div class="col-md-12">\n                    <p><label>Caracter\xedsticas del cliente:&nbsp;</label>\n                        <span *ngFor="let gs of prDetails.attrtypeList[\'Special Populations\']; let i=index">{{gs.name}}<span *ngIf="prDetails.attrtypeList[\'Special Populations\'].length-1!=i">, </span></span> </p>\n                </div>\n            </div>\n            <div class="row" *ngIf="prDetails.attrtypeList.Drug">\n                    <div class="col-md-12">\n                                <b><label style="font-size: 16px;">Sustancias tratadas ({{prDetails.attrtypeList.Drug.length}})</label></b>&nbsp;\n                <a class="btn btn-primary" id="collapse" data-toggle="collapse" data-target="#collapseExample" style="color: white;">+</a>\n                </div>\n                     <div class="collapse" id="collapseExample" style="padding-left: 16px; font-size: 16px;">\n                            <span *ngFor="let gs of prDetails.attrtypeList.Drug;let i=index">{{gs.namesp}}<span *ngIf="prDetails.attrtypeList.Drug.length-1!=i">, </span></span>\n                     </div> \n                 </div>\n                 \x3c!-- <div class="row mt-10" *ngIf="prDetails.atlasenurl">\n                    <div class="col-md-12">\n                        <p>\n                            <span class="museo500-regular"><a style="font-size: 1em; color:#279184;" target="_blank" href="{{prDetails.atlasenurl}}"><img src="assets/images/atlas-logo.png" style="margin-bottom:5px;height: 38px;"/>Haga clic para obtener m\xe1s informaci\xf3n sobre la calidad de esta instalaci\xf3n.<img src="assets/images/search-icon.png" style="height: 40px;" /> </a></span>\n                        </p>\n                    </div>\n                </div> --\x3e\n            </div>\n        <div>\n        </div>\n        </div>',styles:[".col-md-4 p, .col-md-12 p {\n  font-size: 16px !important;\n}\n\n::ng-deep #block-44 {\n  display: block !important;\n}\n\n::ng-deep .footerlang {\n  display: block !important;\n}"]})],Bz);let Hz=class{constructor(t,e,n,i){this.titleService=t,this.el=e,this.fb=n,this.reportService=i,this.displayedColumns=["id","prog_name","address","ppopulation","screeninglog"],this.users=[],this.gnselection=[],this.ppselection=[],this.rpselection=[],this.genderArray=[],this.pripopulationArray=[],this.ftabl=!1,this.sectbl=!1,this.gender="",this.pripop="",this.frmDate="",this.toDate="",this.max_loader=!0,this.srh_loader=!1,this.srh_disabled=!1,this.dateTime="",this.btnTxt="",this.items=[{id:24,name:"Men"},{id:25,name:"Women"},{id:26,name:"Transgender Men"},{id:27,name:"Transgender Women"}],this.ppopulation=[{id:1,name:"Postpartum Women"},{id:2,name:"Injection Drug Users"},{id:3,name:"Pregnant Women"},{id:4,name:"None of these"}],this.allregions=[{id:1,name:"Region 1: Western Mass"},{id:2,name:"Region 2: Central Mass"},{id:3,name:"Region 3: Northeast"},{id:4,name:"Region 4: Metro West"},{id:5,name:"Region 5: Southeast"},{id:6,name:"Region 6: Boston Region"}]}ngOnInit(){this.report3Form=this.fb.group({gender:[],ppopulation:[]})}ngAfterViewInit(){let t=(new Date).toLocaleString();this.dateTime="Report generated on ("+t+")",this.max_loader=!1,$("input[type='text']").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.frmDate="",this.toDate="",""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.genderArray=[],this.pripopulationArray=[],this.gnselection.forEach(t=>{this.genderArray.push(t.name)}),this.dataSource.paginator.pageSize=this.users.length,this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.ftabl=!0,this.ppselection.forEach(t=>{this.pripopulationArray.push(t.name)}),this.genderArray.length>0&&(this.gender=this.genderArray.join(","),this.sectbl=!0),this.pripopulationArray.length>0&&(this.pripop=this.pripopulationArray.join(","),this.sectbl=!0),setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"Removed_report.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}onChange(t){this.ppopulation=[{id:827,name:"Postpartum Women"},{id:1,name:"Injection Drug Users"},{id:2,name:"Pregnant Women"},{id:3,name:"None of these"},{id:4,name:"Pregnant women with injecting drug use"}],1==t.length&&"Men"==t[0].name&&(this.ppopulation=[{id:2,name:"Injection Drug Users"},{id:4,name:"None of these"}]),this.btnTxt="Apply Filters",0==this.gnselection.length&&0==this.ppselection.length&&(this.btnTxt="Run Report")}onRemove(t){this.ppselection=[]}export(){$("body").find("button.exportBtn").click()}report3Submit(){}inputChange(){}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}searchReports(){this.srh_loader=!0,this.srh_disabled=!0,this.genderArray=[],this.pripopulationArray=[];let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");this.gnselection.forEach(t=>{this.genderArray.push(t.id)}),this.ppselection.forEach(t=>{this.pripopulationArray.push(t.id)}),1==this.genderArray.length&&this.genderArray.indexOf(24)>-1&&0==this.ppselection.length&&(this.pripopulationArray=[2,4]);let n={gender:this.genderArray,prioritypopulation:this.pripopulationArray,startdate:t?t.value:"",enddate:e?e.value:""};console.log("postObj",n);const i=this;this.reportService.getscreeningreport(n).subscribe(t=>{i.max_loader=!1,i.users=t.rows,i.dataSource=new JD(i.users),i.dataSource.paginator=i.paginator,i.dataSource.sort=i.sort,i.srh_loader=!1,i.srh_disabled=!1,console.log("reportData",t)})}};Hz.ctorParameters=()=>[{type:wh},{type:s.ElementRef},{type:Uf},{type:eT}],Hz.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},Hz=Hh([Object(s.Component)({selector:"app-screening-report",template:'<div class="container body" style="margin-top:10px;">\n    <div class="container" style="margin: 5px auto 20px;">\n      <div class="row d-flex m-0" style="width:100%; border: solid 1px #fff;">\n    <div class="sidenav col-md-3 p-0">\n    <a [routerLink]="[\'/reports\']" class="">Average wait time by waitlist</a>\n    <a [routerLink]="[\'/reports\',100938]" class="" style="line-height:28px !important;padding-top: 5px;padding-bottom: 5px;">Average wait time across the region/state</a>\n    <a [routerLink]="[\'/reports\',100937]" class="">Admitted report</a>\n    <a [routerLink]="[\'/reports\',100942]" class="">Removed report</a>\n    <a [routerLink]="[\'/reports\',100941]" class="">Waiting report</a>\n    <a [routerLink]="[\'/reports\',100940]" class="">Interim services report</a>\n    <a [routerLink]="[\'/reports\',100954]" class="">Capacity management report based on funding source</a>\n    <a [routerLink]="[\'/reports\',100999]" style="line-height:28px !important;" class="active">Screening log</a>\n    </div>\n    <div class="col-md-9 con-tab">\n        <p id="reportTitle" style="margin-bottom: -8px; margin-top: 10px;margin-left: 15px;">Screening log  Report</p>\n        \x3c!--<span>(By default, all options are selected. Use the text boxes to filter the reports)</span>--\x3e\n        <form [formGroup]="report3Form" (ngSubmit)="report3Submit()" autocomplete="off">\n        <div class="row m-0 p-3" style="clear:both;">\n        <div class="row reportfilter" style="width:100% !important;"> \n        <div style="width:100%;font-weight:bold;font-size:14px;margin:-9px 2px 5px -6px;">Search Filters</div> \n        <div class="col-md-3 p-0">\n            <label class="labelcls">From Date</label> \n             <div><input type="text" data-label="Admitted Date" name="filter0[]" placeholder="MM/DD/YYYY" autocomplete="off"(change)="inputChange()" (keypress)="keyPress($event)" id="sl_fromDate" maxlength="10" class="input-group datetimepicker filterval" bsDatepicker /></div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.ActionDate">\n            <input type="hidden" name="Operator0" value="RANGE">\n            <input type="hidden" name="DataType0" value="DATE">        \n        </div>\n        <div class="col-md-3"><label class="labelcls">To Date</label><div><input type="text" name="to_filter0[]" autocomplete="off" (keypress)="keyPress($event)"  maxlength="10" class="input-group datetimepicker filterval" bsDatepicker data-label="To Date" id="sl_toDate" placeholder="MM/DD/YYYY"></div></div>\n           <div class="col-md-3 p-0">\n            <label class="labelcls">Gender</label> \n             <div>\n                <ng-select [items]="items"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(gnselection)"\n                [(ngModel)]="gnselection"\n                formControlName="gender"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                (remove)="onRemove($event)"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n                </ng-select>\n        \n             \x3c!-- <select class="form-control chosen-select filterval angular-chosen" data-label="Gender" data-placeholder="Select an option" multiple="" name="filter0[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="1">Male</option><option value="2">Female</option><option value="821">Transgender man</option><option value="822">Transgender woman</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            </div>\n            <input type="hidden" name="prompt0" value="HRIA$Contact_WaitList.Gender">\n            <input type="hidden" name="Operator0" value="IN LIST">\n            <input type="hidden" name="DataType0" value="MENU">        \n            </div>        \n            <div class="col-md-3 ">\n            <label class="labelcls">Priority Population</label>   \n             <div style="width: 165px;" class="txtField">       \n             \x3c!-- <select class="form-control chosen-select filterval" data-label="Priority Population" data-placeholder="Select an option" multiple="" name="filter1[]" style="height: 28px; font-size: 14px;">           --\x3e\n              \x3c!-- <option value="827">Postpartum woman</option><option value="1">Injection drug user</option><option value="2">Pregnant woman</option><option value="3">None of these</option><option value="~any~">All   --\x3e\n            \x3c!-- </option></select> --\x3e\n            <ng-select [items]="ppopulation"\n                dropdownPosition="bottom"\n                bindLabel="name"\n                placeholder="Select an option"\n                appendTo="body"\n                multiple="true"\n                (change)="onChange(ppselection)"\n                [(ngModel)]="ppselection"\n                formControlName="ppopulation"\n                [closeOnSelect]="true"\n                [hideSelected]="true"\n                [clearable]="false"\n                >\n                <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                    <span class="ng-value-label"> {{item.name}}</span>\n                    <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                </ng-template>\n            </ng-select>\n            </div>\n            <input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n            <input type="hidden" name="Operator1" value="IN LIST">\n            <input type="hidden" name="DataType1" value="MENU">        \n            </div>\n            \x3c!-- <div class="col-md-3 p-0">\n                <label class="labelcls">Status</label>   \n                 <div style="width: 165px;">       \n                <ng-select [items]="reportstatus"\n                    dropdownPosition="bottom"\n                    bindLabel="name"\n                    placeholder="Select an option"\n                    appendTo="body"\n                    multiple="true"\n                    (change)="onChange(rpselection)"\n                    [(ngModel)]="rpselection"\n                    formControlName="reportstatus"\n                    [closeOnSelect]="true"\n                    [hideSelected]="true"\n                    [clearable]="false"\n                    >\n                    <ng-template ng-label-tmp let-item="item" let-clear="clear">\n                        <span class="ng-value-label"> {{item.name}}</span>\n                        <span class="ng-value-icon right" (click)="clear(item)" aria-hidden="true">\xd7</span>\n                    </ng-template>\n                </ng-select>\n                </div>\n                <input type="hidden" name="prompt1" value="HRIA$CW_PriorityPopulatio.PriorityPopula">\n                <input type="hidden" name="Operator1" value="IN LIST">\n                <input type="hidden" name="DataType1" value="MENU">        \n                </div> --\x3e\n\n            <input type="hidden" name="cid" value="c_id">\n            <input type="hidden" id="reportId" name="reportId" value="100999">\n            <input type="hidden" name="filterLength" value="2">\n            <div class="col-md-12"> \n                <button class="btn" id="search-btn" [disabled]="srh_disabled" (click)="searchReports()" style="float:right !important;">{{btnTxt||\'Run Report\'}}&nbsp;&nbsp;<span *ngIf="srh_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></button>\n            </div> \n            </div>\n            \x3c!-- <mat-form-field style="float: right;">\n                <mat-label>Search</mat-label>\n                <input matInput (keyup)="applyFilter($event)" autocomplete="off" placeholder="Search" #input>\n                <svg  style="float: right; margin:7px -163px 0px 0px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                    <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                </svg>\n            </mat-form-field> --\x3e\n            <div class="mat-elevation-z8" #TABLE style="width: 100%;">\n                <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>Removed report</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="ftabl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>{{dateTime}}</b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width: 100%;" *ngIf="sectbl">\n                    <tbody>\n                        <tr>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"><b><span *ngIf="genderArray.length>0">Gender: {{gender}};</span> <span *ngIf="pripopulationArray.length>0">Priority Population: {{pripop}};</span><span *ngIf="frmDate && toDate">From Date: {{frmDate}}; To Date: {{toDate}}</span></b></td>\n                        <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                        </tr>\n                    </tbody>\n                </table>\n                <table style="width:100%;" class="custom-table mt-20" mat-table [dataSource]="dataSource" matSort>\n                <ng-container matColumnDef="id" style="display: none;">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Organization ID</th>\n                    <td mat-cell *matCellDef="let row"> {{row[0]}} </td>\n                </ng-container>    \n                        \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="prog_name">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header>Program Name </th>\n                    <td mat-cell *matCellDef="let row">{{row[1]}}</td>\n                </ng-container>\n                <ng-container matColumnDef="address">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Address </th>\n                    <td mat-cell *matCellDef="let row"> {{row[2]}} </td>\n                </ng-container>\n                    \x3c!-- Progress Column --\x3e\n                    <ng-container matColumnDef="ppopulation">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header> Priority Population </th>\n                    <td mat-cell *matCellDef="let row"> {{row[3]}} </td>\n                    </ng-container>\n                    <ng-container matColumnDef="screeninglog">\n                    <th mat-header-cell *matHeaderCellDef mat-sort-header style="border-right: none !important;">Screening Log</th>\n                    <td mat-cell *matCellDef="let row" style="border-right: none !important;"> {{row[4]}} </td>\n                    </ng-container>\n                        <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                        <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                        \x3c!-- Row shown when there is no matching data. --\x3e\n                        \x3c!-- <tr class="mat-row" *matNoDataRow>\n                         <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                        </tr> --\x3e\n                    </table>\n                    <table style="background-color: #fff;">\n                        <tr class="mat-row" *ngIf="users.length === 0">\n                        <td class="mat-cell"  colspan="4" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No records found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                        </tr>\n                    </table>\n                <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n                <span><button class="dt-button buttons-excel export-btn" (click)="export();" tabindex="0" aria-controls="example" type="button"><svg width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">\n                    <path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>\n                    <path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>\n                  </svg>\n                <span> Download</span></button></span>\n            </div>\n            \x3c!-- <table id="example" class="table table-bordered table-responsive nowrap dataTable no-footer" cellspacing="0" width="100%" role="grid" aria-describedby="example_info" style="width: 100%;"><thead><tr role="row"><th class="sorting_asc" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Organization ID: activate to sort column descending" style="width: 114px;">Organization ID</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Program Name: activate to sort column ascending" style="width: 308px;">Program Name</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="PriorityPopulation: activate to sort column ascending" style="width: 131px;">PriorityPopulation</th><th class="sorting" tabindex="0" aria-controls="example" rowspan="1" colspan="1" aria-label="Admitted: activate to sort column ascending" style="width: 68px;">Admitted</th></tr></thead><tbody><tr role="row" class="odd"><td class="sorting_1">13281</td><td>McCleary Manor</td><td>Injection drug user</td><td>1</td></tr><tr role="row" class="even"><td class="sorting_1">13585</td><td>Granada House</td><td>Injection drug user</td><td>26</td></tr><tr role="row" class="odd"><td class="sorting_1">13585</td><td>Granada House</td><td>None of these</td><td>28</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>No Value</td><td>2</td></tr><tr role="row" class="odd"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>None of these</td><td>2</td></tr><tr role="row" class="even"><td class="sorting_1">15569</td><td>Apricot Residential Program (TEST PROGRAM)</td><td>Pregnant woman</td><td>1</td></tr></tbody></table> --\x3e\n            \x3c!-- <div class="col-12" id="dataTable" style="top:10px;">         --\x3e\n            \x3c!-- </div>         --\x3e\n        </div> \n        </form> \t\n    </div>\n    </div>\n    </div>\n    </div>',styles:['.ng-select{position:relative}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:0;pointer-events:none}.ng-select.ng-select-opened.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:1;pointer-events:auto}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#40a9ff;box-shadow:0 0 0 2px rgba(24,144,255,0.2)}.ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(180deg);opacity:1}[dir="rtl"] .ng-select.ng-select-opened>.ng-select-container .ng-arrow-wrapper{transform:rotate(-180deg)}.ng-select.ng-select-focused .ng-select-container{border-color:#40a9ff}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f5f5f5}.ng-select.ng-select-disabled>.ng-select-container:hover{border:1px solid #d9d9d9;cursor:not-allowed}.ng-select.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{color:rgba(0,0,0,0.25)}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-clear-wrapper{opacity:1}.ng-select.ng-select-clearable .ng-select-container.ng-has-value:hover .ng-arrow-wrapper{opacity:0;pointer-events:none}.ng-select .ng-select-container{color:rgba(0,0,0,0.65);background-color:#fff;border-radius:4px;border:1px solid #d9d9d9;min-height:30px;align-items:center;transition:all 0.3s;box-sizing:border-box;padding-right:11px;padding-left:11px}.ng-select .ng-select-container .ng-input{line-height:22px}.ng-select .ng-select-container .ng-input input{color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container{align-items:center}.ng-select .ng-select-container .ng-value-container .ng-value{font-size:14px;color:rgba(0,0,0,0.65)}.ng-select .ng-select-container .ng-value-container .ng-placeholder{font-size:14px;color:rgba(153,153,153,0.65)}.ng-select.ng-select-single.ng-select-opened .ng-select-container .ng-value{opacity:0.4}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:2px;left:0;padding-left:10px;padding-right:50px}[dir="rtl"] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f5f5f5}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container{min-height:32px;padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container{padding-right:5px;padding-left:11px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{margin-left:0;margin-right:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-bottom:3px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-top:3px;margin-right:4px;font-size:0.9em;background-color:#fafafa;border:1px solid #e8e8e8;border-radius:2px;height:24px;line-height:22px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:4px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f5f5f5;color:rgba(0,0,0,0.25)}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir="rtl"] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:50%;height:20px;margin-top:-10px;margin-left:6px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{height:24px;margin-top:3px}.ng-select .ng-clear-wrapper{opacity:0;color:#a6a6a6;background:rgba(0,0,0,0.25);width:12px;height:12px;text-align:center;border-radius:12px;vertical-align:middle;transition:color .3s ease;position:absolute;right:13px}[dir="rtl"] .ng-select .ng-clear-wrapper{left:13px;right:auto}.ng-select .ng-clear-wrapper:hover{background:rgba(0,0,0,0.45)}.ng-select .ng-clear-wrapper .ng-clear{color:#fff;font-size:9px;position:absolute;left:3px;line-height:12px}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir="rtl"] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:16px;height:26px;transition:transform 0.3s}.ng-select .ng-arrow-wrapper .ng-arrow{border-style:solid;border-width:0.1rem 0.1rem 0 0;height:8px;width:8px;top:-2px;transform:rotate(135deg);color:rgba(0,0,0,0.25)}.ng-dropdown-panel{background-color:#fff;box-shadow:0 2px 8px rgba(0,0,0,0.15);border-radius:4px;margin-top:4px;margin-bottom:4px;left:0}.ng-dropdown-panel.ng-select-bottom{top:100%;border-top-color:#f3f3f3}.ng-dropdown-panel.ng-select-top{bottom:100%;border-bottom-color:#f3f3f3}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #d9d9d9;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:4px 12px;color:rgba(0,0,0,0.45);cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default;color:rgba(0,0,0,0.45)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:rgba(0,0,0,0.65);padding:5px 12px;transition:background .3s ease}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fafafa;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:rgba(0,0,0,0.65);background-color:#e6f7ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#e6f7ff;color:rgba(0,0,0,0.65)}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:rgba(0,0,0,0.25);cursor:not-allowed}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:20px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:20px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label{font-size:14px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir="rtl"] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir="rtl"] .ng-dropdown-panel{direction:rtl;text-align:right}.make-request-radio > label {\n  display: block;\n  margin-bottom: 0;\n}.row {\n  display: flex;\n  flex-wrap: wrap;\n}body {\n  /*line-height:1.3 !important;*/\n  font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif !important;\n}/*li.menu-item a {  font-size: 1em}*/.chosen-container-multi .chosen-choices li.search-choice {\n  line-height: 16px;\n}.sidenav {\n  float: left;\n  /*width: 200px;*/\n  position: relative;\n  z-index: 1;\n  top: 0;\n  left: 0;\n  /* background-color: #eceaf3; */\n  overflow-x: hidden;\n  padding-top: 16px;\n  /* border: solid 1px #9281c5;*/\n  border-right: solid 1px lightgray;\n}#search-btn {\n  background-color: #8c5c8d;\n  float: left;\n  color: #fff;\n  margin-top: 20px;\n  padding: 4px 12px;\n}.bg-white {\n  background: white;\n}/*.con-tab{border:solid 1px #9281c5; border-left: none}*/table.custom-table {\n  width: 100%;\n  z-index: 1 !important;\n}.sidenav a {\n  padding: 10px;\n  text-decoration: none;\n  font-size: 16px;\n  color: #000;\n  display: block;\n  line-height: 45px !important;\n  /* border-bottom: solid 1px #dcdcdc; */\n}.sidenav a:hover, .sidenav a.active {\n  color: #0000FF;\n  font-weight: bold;\n  text-decoration: underline;\n}.main {\n  width: 100%;\n  height: auto;\n  padding: 5px 10px;\n  border: solid 1px #9281c5;\n  border-left: none;\n  /*background-color:#efefea;*/\n}input[type=search] {\n  height: 28px;\n  border: solid 1px #d4c7c7;\n}input[type=text] {\n  height: 30px;\n}table#example, #example_info, #example_paginate {\n  font-size: 12px !important;\n}#example_info {\n  color: #9281c5;\n  font-weight: bold;\n}table.dataTable tbody th, table.dataTable tbody td {\n  padding: 1px 10px !important;\n}button.buttons-csv, button.buttons-excel {\n  background-color: #4D5E80;\n  background-image: none;\n  cursor: pointer;\n  /* border-radius: .45rem; */\n  padding: 0 10px 0 10px;\n  background: #8c5c8d !important;\n  color: #fff !important;\n}button.buttons-csv span, button.buttons-excel span {\n  font-weight: 100 !important;\n}button.dt-button.buttons-excel.buttons-html5:hover {\n  background-color: #9281c5;\n  background-image: none;\n}button.buttons-csv > span, button.buttons-excel > span {\n  color: #fff !important;\n}div.dt-buttons {\n  float: right !important;\n  padding-left: 10px;\n}#ui-datepicker-div {\n  font-size: 12px !important;\n}th {\n  line-height: 30px !important;\n}button.buttons-csv, button.buttons-excel {\n  padding: 3px;\n}.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {\n  line-height: 30px;\n}table.dataTable thead th, table.dataTable thead td {\n  padding: 0 18px !important;\n}.dataTables_wrapper .dataTables_paginate .paginate_button.current {\n  background: #9281c5 !important;\n  color: white !important;\n}.dataTables_wrapper .dataTables_paginate .paginate_button {\n  padding: 0 10px !important;\n}.d-flex {\n  display: flex;\n}#reportTitle {\n  font-weight: bold;\n  font-size: 1.5em;\n}ul.psd_agent_nav {\n  margin-right: 5px !important;\n}/*table.dataTable.nowrap th, table.dataTable.nowrap td {\n    white-space: pre-wrap !important;\n}\n.container{overflow:auto;}\n.container-fluid{float:right;}\ntable.dataTable thead tr {\n    background-color: #ffffff;\n}*/li.menu-item a {\n  color: #5c6b80 !important;\n}div.dt-buttons {\n  display: none !important;\n}.reportfilter {\n  border: solid 1px #e4dbdb;\n  padding: 12px;\n}caption {\n  display: none;\n}@media only screen and (min-width: 768px) {\n  span#headerIcons li {\n    font-size: 1em;\n    font-family: "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;\n  }\n\n  .col-md-3 {\n    max-width: 26% !important;\n  }\n}@media only screen and (max-width: 768px) {\n  button.export-btn {\n    margin-top: 5px !important;\n  }\n\n  .con-tab {\n    margin: 0px !important;\n    padding: 0 !important;\n  }\n\n  .col-md-3 {\n    padding: 0 !important;\n  }\n\n  .txtField {\n    width: 100% !important;\n  }\n\n  #reportTitle {\n    font-size: 1rem !important;\n  }\n\n  ::ng-deep .mat-paginator-page-size {\n    margin-right: 0px !important;\n  }\n\n  ::ng-deep .mat-paginator-page-size-label {\n    margin: 0px !important;\n  }\n\n  .col-md-3, .col-md-9 {\n    max-width: 100% !important;\n    flex: 0 0 100% !important;\n  }\n\n  .container {\n    padding: 0px !important;\n  }\n\n  .sidenav a {\n    line-height: 15px !important;\n  }\n\n  ::ng-deep .mat-elevation-z8 {\n    overflow: auto !important;\n  }\n}@media only screen and (min-width: 768px) and (max-width: 1192px) {\n  .con-tab .col-md-3, .con-tab .col-md-9 {\n    max-width: 50% !important;\n    flex: 0 0 50% !important;\n  }\n\n  .txtField {\n    width: 100% !important;\n  }\n}@media screen and (max-height: 450px) {\n  .sidenav {\n    padding-top: 15px;\n  }\n\n  .sidenav a {\n    font-size: 18px;\n  }\n}.xdsoft_datetimepicker .xdsoft_datepicker.active + .xdsoft_timepicker {\n  display: none !important;\n}label {\n  font-size: 15px;\n  font-weight: 700;\n}tfoot {\n  display: none;\n}:host ::ng-deep div.dt-buttons {\n  display: none !important;\n}:host ::ng-deep .dataTables_wrapper {\n  top: 10px;\n}:host ::ng-deep #example_info {\n  color: #9281c5;\n  font-weight: bold;\n  font-size: 12px;\n}:host ::ng-deep #example_paginate {\n  font-size: 12px;\n}:host ::ng-deep .dataTables_wrapper .dataTables_paginate .paginate_button.current {\n  background: #9281c5 !important;\n  color: white !important;\n}:host ::ng-deep #example_wrapper {\n  width: 98% !important;\n}button.exportBtn {\n  display: none;\n}button.export-btn {\n  display: block;\n  font-size: 14px;\n  padding: 4px 12px;\n  float: left;\n  margin-top: -46px;\n  margin-left: 5px;\n}.reportfilter {\n  width: 100% !important;\n  margin-left: 0px !important;\n}::ng-deep .mat-paginator-page-size {\n  align-items: center !important;\n}::ng-deep .mat-paginator-page-size-select {\n  margin: -5px 4px 0 4px !important;\n}']})],Hz);const zz=[{path:"",component:Tz,pathMatch:"full"},{path:"login",component:ag,pathMatch:"full",canActivate:[Kf.MsalGuard]},{path:"account-assistance",component:og},{path:"createaccount",component:cg},{path:"findhelp",component:uV},{path:"spa_result",component:Iz},{path:"spa_result/incident_id/:id",component:Iz},{path:"create-citizen-account",component:dg},{path:"programinfo",component:B_,canActivate:[Kf.MsalGuard]},{path:"attributes",component:kw,canActivate:[Kf.MsalGuard]},{path:"providerpage",component:Ew,canActivate:[Kf.MsalGuard]},{path:"providerpage/:id",component:Ew,canActivate:[Kf.MsalGuard]},{path:"my_account",component:dV,canActivate:[Kf.MsalGuard]},{path:"reports",component:Iw,children:[{path:"",component:Mj,canActivate:[Kf.MsalGuard]},{path:"100938",component:Rj,canActivate:[Kf.MsalGuard]},{path:"100937",component:Lj,canActivate:[Kf.MsalGuard]},{path:"100942",component:Fj,canActivate:[Kf.MsalGuard]},{path:"100941",component:jj,canActivate:[Kf.MsalGuard]},{path:"100940",component:Vj,canActivate:[Kf.MsalGuard]},{path:"100954",component:Bj,canActivate:[Kf.MsalGuard]},{path:"100999",component:Hz,canActivate:[Kf.MsalGuard]}]},{path:"myrequests",component:Uj,canActivate:[Kf.MsalGuard]},{path:"manageusers",component:Gj,canActivate:[Kf.MsalGuard]},{path:"requestdetail/:any",component:pV,canActivate:[Kf.MsalGuard]},{path:"waitlist/:id",component:nV,canActivate:[Kf.MsalGuard]},{path:"overview",component:rV,canActivate:[Kf.MsalGuard]},{path:"makearequest",component:lV,canActivate:[Kf.MsalGuard]},{path:"answer/:incidentid",component:Az},{path:"es/answer/:incidentid",component:Dz},{path:"makearequest-confirm/:id",component:Oz,canActivate:[Kf.MsalGuard]},{path:"data-correction",component:Mz},{path:"data-correction-record-submission",component:Rz},{path:"provider_details/:id",component:Lz},{path:"es/provider_details/:id",component:Bz},{path:"es/spa_result",component:Fz},{path:"es/spa_result/incident_id/:id",component:Fz},{path:"es/findhelp",component:jz},{path:"pg-helpline",component:Vz},{path:"**",component:cV}];let Uz=class{};Uz=Hh([Object(s.NgModule)({imports:[Wf.RouterModule.forRoot(zz)],exports:[Wf.RouterModule]})],Uz);let qz=class{constructor(t,e,n,i){this.bservice=t,this.router=e,this.msalService=n,this.authService=i,this.title="mahelplineportal",this.isPg=!1;e.events.pipe(Object(Cg.a)(t=>t instanceof Wf.NavigationEnd)).subscribe(t=>{this.updatetokenSilent()}),this.routerSubscription=this.router.events.subscribe(t=>{(null==t?void 0:t.url)&&t.url.indexOf("/pg-")>-1&&(this.isPg=!0)}),this.bservice.subscribe("msal:loginSuccess",t=>{console.log("login sucess",t),this.authService.login()}),this.bservice.subscribe("msal:loginFailure",t=>{t._errorDesc.includes("AADB2C90118")?(console.log("forgot password"),localStorage.setItem("custom.recovery.password.flow","true"),this.msalService.authority=ng,this.msalService.loginRedirect()):this.msalService.loginRedirect()})}ngOnInit(){sessionStorage.clear()}updatetokenSilent(){var t=localStorage.getItem("msal.idtoken");t&&(t=t.split(".")[1],t=atob(t),1e3*JSON.parse(t).exp<Date.now()&&this.msalService.acquireTokenSilent([ig],this.msalService.authority,this.msalService.getUser()).then(t=>{localStorage.setItem("msal.idtoken",t)}).catch(t=>{console.log("error in getting silent token",t)}))}ngOnDestroy(){this.routerSubscription.unsubscribe()}};qz.ctorParameters=()=>[{type:Kf.BroadcastService},{type:Wf.Router},{type:Kf.MsalService},{type:sg}],qz=Hh([Object(s.Component)({selector:"app-root",template:'<div class="container-fluid p-0" style="overflow: hidden;">\n  <div class="row">\n    <div class="col-sm-12">\n     <app-header *ngIf="!isPg"></app-header>\n     <app-pg-header *ngIf="isPg"></app-pg-header>\n     <router-outlet></router-outlet>\n     <app-footer *ngIf="!isPg"></app-footer>\n     <app-pg-footer *ngIf="isPg"></app-pg-footer>\n    </div>\n  </div>\n</div>',styles:["@media (max-width: 768px) {\n  ::ng-deep h1.heading {\n    font-size: 2.1rem !important;\n  }\n}"]})],qz);let $z=class{constructor(t,e,n){this.authService=t,this.router=e,this.loginServices=n,this.isLogin=!1,this.isSpanish=!1,this.isPg=!1,this.redirectUrl="",this.spUrl=!1,this.cntr=0,this.getLoggedName(),localStorage.setItem("previndex","-1")}ngOnInit(){console.log("loggin:",this.isLoggedIn)}onSearchForTreatmentClick(){}getLoggedName(){const t=this;this.isLoggedIn=this.authService.isLoggedIn();var e=localStorage.getItem("msal.idtoken");if(e){e=e.split(".")[1],e=atob(e);JSON.parse(e);this.authService.getMe().subscribe(e=>{console.log(e),t.contacttypeid=e.contacttypeid,localStorage.setItem("contacttypeid",e.contacttypeid),localStorage.setItem("contactid",e.id),localStorage.setItem("firstname",e.firstname),localStorage.setItem("lastname",e.lastname),localStorage.setItem("email",e.email),localStorage.setItem("userid",e.id),localStorage.setItem("objectid",e.objectid),this.name=e.firstname+" "+e.lastname,console.log(this.name)})}}ngAfterViewInit(){const t=this;setTimeout(()=>{if(t.router.url.indexOf("/pg")>-1&&(t.isPg=!0),t.router.url.indexOf("/es")>-1){if(t.isSpanish=!0,t.router.url.indexOf("findhelp")>-1&&(t.redirectUrl="/findhelp",setTimeout(()=>{$("ul#main-menu li").eq(0).find("a").addClass("activepage"),$(".dropdown-menu").eq(0).find("li").eq(5).addClass("menu-item-current")},100)),t.router.url.indexOf("spa_result")>-1&&(t.redirectUrl="/spa_result"),t.router.url.indexOf("provider_details")>-1){let e=t.router.url.split("/")[3];t.redirectUrl="/provider_details/"+e}}else if(t.router.url.indexOf("findhelp")>-1&&(t.redirectUrl="es/findhelp",$("ul#main-menu li").eq(0).find("a").addClass("activepage"),$(".dropdown-menu").eq(0).find("li").eq(5).addClass("menu-item-current")),t.router.url.indexOf("spa_result")>-1&&(this.spUrl=!0,t.redirectUrl="es/spa_result"),t.router.url.indexOf("provider_details")>-1){let e=t.router.url.split("/")[2];t.redirectUrl="es/provider_details/"+e}},500);var e=-1;$("body").on("mouseover","a.nav-link",function(t){t.preventDefault(),t.stopPropagation();var n=$("a.nav-link").index(this);$(this).addClass("show"),$(this).next("ul.dropdown-menu").addClass("show"),e>-1&&e!=n&&($("a.nav-link").eq(e).removeClass("show"),$("a.nav-link").eq(e).next("ul.dropdown-menu").removeClass("show")),n>-1&&(e=n)});var n=navigator.userAgent,i=/android|iphone|kindle|ipad/i.test(n);$("body").on("click","a.nav-link",function(t){if(i){t.preventDefault(),t.stopPropagation();let n=localStorage.getItem("previndex");var e=$("a.nav-link").index(this);e==n&&$(this).hasClass("show")?($(this).removeClass("show"),$(this).next("ul.dropdown-menu").removeClass("show")):($(this).addClass("show"),$(this).next("ul.dropdown-menu").addClass("show")),localStorage.setItem("previndex",e)}}),$("body").on("click","button.navbar-toggler",function(){$("#main-menu").toggleClass("custom-menu")}),$("body").mouseover(function(t){console.log("fff",t.target.classList),t.target.classList.contains("dropdown-toggle")||t.target.classList.contains("nav-link")||t.target.classList.contains("dropdown-item")||t.target.classList.contains("navbar")||t.target.classList.contains("dropdown-menu")||t.target.classList.contains("menu-item")||t.target.classList.contains("navbar-light")||t.target.classList.contains("navbar-expand-md")||t.target.classList.contains("scrolled")||($("a.nav-link").removeClass("show"),$("a.nav-link").next("ul.dropdown-menu").removeClass("show"))}),$(window).on("load resize",function(e){t.divHeight=$("#wrapper-navbar").height(),$("body").css("padding-top",$("#wrapper-navbar").height())})}logout(){this.authService.logout()}ngOnDestroy(){}mobileMenu(){"none"==document.getElementById("navbarNavDropdown").style.display||""==document.getElementById("navbarNavDropdown").style.display?document.getElementById("navbarNavDropdown").style.display="block":document.getElementById("navbarNavDropdown").style.display="none"}language(t){""!=this.redirectUrl&&(location.href=this.redirectUrl)}login(){location.href="/"}toggleBanner(){this.cntr++,$(".mtsnb-container").toggle(),$("a.mtsnb-show").toggleClass("plus"),$("nav#main-nav").toggleClass("top-banner"),$(".header").toggleClass("in-banner"),$("#mtsnbtop").toggleClass("mtsnbtop"),$("#psd_agent_nav").toggleClass("nav2"),$("body").css("padding-top",$("#wrapper-navbar").height())}};$z.ctorParameters=()=>[{type:sg},{type:Wf.Router},{type:rg}],$z=Hh([Object(s.Component)({selector:"app-header",template:'\x3c!-- <div id="simple-banner" *ngIf="spUrl" class="simple-banner">\n  <div class="simple-banner-text">\n    <span>\n    Service information may change due to COVID-19. Please contact programs to verify their open hours and any other operational changes.\n    </span>\n  </div>\n</div> --\x3e\n<header *ngIf="!isSpanish && !isPg" class="header" role="banner" itemscope="" itemtype="http://schema.org/WPHeader">\n  \x3c!-- <div id="inner-header" class="cf">\n      <p id="logo" class="h1" itemscope="" itemtype="http://schema.org/Organization"> <a  href="https://helplinema.org" rel="nofollow"> <img src="https://helplinema.org/wp-content/themes/Helpline/library/images/HelplineLogo.png" alt="Helpline logo"> </a> \n      <a _ngcontent-xum-c1="" rel="nofollow" href="https://gamblinghelplinema.org"><img alt="PG logo" id="pglogo" src="./assets/images/pg-logov2.png" style="height: 64px;"></a></p>\n      <span id="headerIcons" style="margin:.2em 2em 0 0;">\n      <a *ngIf="spUrl" href="{{redirectUrl}}"><button type="button" style="background-color: #A770A1;padding: 0.5em;color: #fff;margin-bottom: 1em;border: none;float: right;font-size: .75em;">Espa\xf1ol</button></a>  \n      <ul>\n        <li><a href="tel:8003275050" class="external" target="_blank"><img src="https://helplinema.org/wp-content/uploads/2016/06/DarkerPhone.png" alt="phoneIcon">800.327.5050</a></li>\n      </ul>\n      </span>\n      <nav role="navigation" itemscope="" itemtype="http://schema.org/SiteNavigationElement">\n        <ul id="menu-main-menu-1" class="nav top-nav cf">\n          <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-7002">\n            <a (click)="onSearchForTreatmentClick()">Find help</a>\n            <ul class="sub-menu">\n              <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9234"><a href="https://helplinema.org/i-need-help" target="_blank">I need help</a></li>\n              <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9234"><a href="https://helplinema.org/find-help/my-loved-one-needs-help">My loved one needs help</a></li>\n              <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9234"><a href="https://helplinema.org/find-help/my-client-needs-help" target="_blank">My client needs help</a></li>\n              <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9234"><a href="https://gamblinghelplinema.org/" target="_blank">Problem gambling help</a></li>\n              <li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9234"><a [routerLink]="[\'/findhelp\']">Search for services</a></li>\n            </ul>\n          </li>\n          <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-7001"> <a>Treatment & Recovery</a>\n              <ul class="sub-menu">\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9573"><a href="https://helplinema.org/learn-more/treatment/" target="_blank">Treatment</a></li>\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9573"><a href="https://helplinema.org/learn-more/treatment/recovery/" target="_blank">Recovery</a></li>\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9573"><a href="https://helplinema.org/treatment-recovery/youth-young-adult-services" target="_blank">Youth & young adult services</a></li>\n              </ul>\n          </li>\n          <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-6971"> <a>Stay safe</a>\n            <ul class="sub-menu">\n                <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9543"><a href="https://helplinema.org/stay-safe/harm-reduction/" target="_blank">Harm reduction</a></li>\n                <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9543"><a href="https://helplinema.org/learn-more/overdose-prevention/" target="_blank">Overdose prevention</a></li>\n            </ul>\n          </li>\n          <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-6971"><a>About us</a>\n              <ul class="sub-menu">\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9543"><a href="https://helplinema.org/about/about-the-helpline" target="_blank">About the Helpline</a></li>\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9543"><a href="https://helplinema.org/about/careers/" target="_blank">Careers</a></li>\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9543"><a href="https://helplinema.org/about/helpline-champions-program/" target="_blank">Helpline Champions Program</a></li>\n                  <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9543"><a href="https://massclearinghouse.ehs.state.ma.us/category/HELPLINE2.html" target="_blank">Order materials</a></li>\n              </ul>\n          </li>\n            <li *ngIf="!isLoggedIn"  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1242"> <a href="/login">Provider login</a>\n            </li>\n            <li *ngIf="isLoggedIn"  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-1242"> <a href="" (click)="logout()">Logout</a></li>\n        </ul>\n      </nav>\n    </div> --\x3e\n  <header id="wrapper-navbar">\n    <a class="skip-link visually-hidden-focusable" href="#content"></a>\n    \x3c!-- <div class="mtsnb mtsnb-top mtsnb-absolute mtsnb-shown" id="mtsnbtop" data-mtsnb-id="2777" style="background-color:#e8aa7c;color:#382f44;">\n      <div class="mtsnb-container-outer">\n        <div class="mtsnb-container mtsnb-clearfix" style="display: block;">\n            <div class="mtsnb-button-type mtsnb-content"><span class="mtsnb-text"></span><a href="javascript:void(0);" style="font-size: 16px !important;font-weight: normal;" class="mtsnb-link">  ATTENTION: Several service providers in MA are no longer able to provide medications for a variety of reasons. If you are affected, click here to learn more and find a new provider for buprenorphine (Suboxone), injectable buprenorphine (Sublocade), and naltrexone.</a></div></div>\n            <a href="javascript:void(0);" class="mtsnb-show" (click)="toggleBanner();" style="background-color:#e8aa7c;color:#382f44; text-decoration: none;"><span>+</span></a>\n        </div>\n    </div> --\x3e\n    <nav id="main-nav" class="navbar navbar-light navbar-expand-md scrolled" aria-labelledby="main-nav-label">\n      <h2 id="main-nav-label" class="screen-reader-text"></h2>\n      <div class="p-0 container-fluid d-grid">\n        <div class="navbar-brand">\n          <a class="custom-logo-link" class="headerLogo" rel="home" href="https://helplinema.org" itemprop="url">\n            <img src="/assets/images/HelplineLogo.png" class="img-fluid logo1" alt="MA Helpline" decoding="async"\n              width="270" height="60">\n            <img src="/assets/images/Logo2.svg" class="img-fluid logo2" alt="MA Helpline" decoding="async">\n          </a></div>\n        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"\n          (click)="mobileMenu();" aria-controls="navbarNavDropdown" aria-expanded="false"\n          aria-label="Toggle navigation">\n          <span class="navbar-toggler-icon"></span>\n        </button>\n        <div id="navbarNavDropdown" class="collapse navbar-collapse">\n          <ul id="main-menu" class="navbar-nav ms-auto">\n            <li itemscope="itemscope" itemtype="https://helplinema.org/find-help/i-need-help/"\n              id="menu-item-362"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-362 nav-item">\n              <a title="Find Help" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-362">Find help</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-362">\n                <li itemscope="itemscope" itemtype="https://helplinema.org/find-help/i-need-help"\n                  id="menu-item-183"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-183 nav-item"><a\n                    style="font-size:18px !important" title="I lost access to MAT"\n                    href="https://helplinema.org/disruption-of-access-to-medication-providers/" class="dropdown-item">\n                    I lost access to MAT</a></li>\n                <li itemscope="itemscope" itemtype="https://helplinema.org/find-help/i-need-help"\n                  id="menu-item-183"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-183 nav-item"><a\n                    style="font-size:18px !important" title="I need help"\n                    href="https://helplinema.org/find-help/i-need-help/" class="dropdown-item">I\n                    need help</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-182"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-182 nav-item"><a\n                    style="font-size:18px !important" title="My loved one needs help"\n                    href="https://helplinema.org/find-help/my-loved-one-needs-help/"\n                    class="dropdown-item">My loved one needs help</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-181"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-181 nav-item"><a\n                    style="font-size:18px !important" title="My client needs help"\n                    href="https://helplinema.org/find-help/my-client-needs-help/"\n                    class="dropdown-item">My client needs help</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-455"\n                  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-455 nav-item"><a\n                    style="font-size:18px !important" title="Problem gambling help" target="_blank"\n                    rel="noopener noreferrer" href="https://gamblinghelplinema.org/" class="dropdown-item">Problem\n                    gambling help</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-456"\n                  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-456 nav-item"><a\n                    style="font-size:18px !important" title="Search for services" target="_blank"\n                    rel="noopener noreferrer" [routerLink]="[\'/findhelp\']" class="dropdown-item">Search for services</a>\n                </li>\n              </ul>\n            </li>\n            <li itemscope="itemscope" itemtype="https://helplinema.org/learn-more/treatment/" id="menu-item-869"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-869 nav-item">\n              <a title="Treatment &amp; recovery" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown"\n                aria-haspopup="true" aria-expanded="false" class="dropdown-toggle nav-link"\n                id="menu-item-dropdown-869">Treatment &amp; recovery</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-869">\n                <li itemscope="itemscope" itemtype="https://helplinema.org/learn-more/treatment/" id="menu-item-175"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-175 nav-item"><a\n                    style="font-size:18px !important" title="Treatment"\n                    href="https://helplinema.org/treatment-recovery/treatment/"\n                    class="dropdown-item">Treatment</a></li>\n                <li itemscope="itemscope" itemtype="https://helplinema.org/learn-more/treatment/recovery/"\n                  id="menu-item-174"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-174 nav-item"><a\n                    style="font-size:18px !important" title="Recovery"\n                    href="https://helplinema.org/treatment-recovery/recovery/"\n                    class="dropdown-item">Recovery</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-173"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-173 nav-item"><a\n                    style="font-size:18px !important" title="Youth &amp; young adult services"\n                    href="https://helplinema.org/treatment-recovery/youth-young-adult-services/"\n                    class="dropdown-item">Youth &amp; young adult services</a></li>\n              </ul>\n            </li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-870"\n              class="menu-item menu-item-type-custom menu-item-object-custom current-menu-ancestor current-menu-parent menu-item-has-children dropdown active menu-item-870 nav-item">\n              <a title="Stay Safe" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-870">Stay safe</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-870">\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-171"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-170 nav-item"><a\n                    style="font-size:18px !important" title="Harm reduction"\n                    href="https://helplinema.org/stay-safe/harm-reduction/" class="dropdown-item"\n                    aria-current="page">Harm reduction</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-170"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-170 nav-item"><a\n                    style="font-size:18px !important" title="Overdose prevention"\n                    href="https://helplinema.org/stay-safe/overdose-prevention/"\n                    class="dropdown-item">Overdose prevention</a></li>\n              </ul>\n            </li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-871"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-871 nav-item">\n              <a title="About Us" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-871">About us</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-871">\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-180"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-180 nav-item"><a\n                    style="font-size:18px !important" title="About the Helpline"\n                    href="https://helplinema.org/about/about-the-helpline/"\n                    class="dropdown-item">About the helpline</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-179"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-179 nav-item"><a\n                    style="font-size:18px !important" title="Careers"\n                    href="https://helplinema.org/about/careers/" class="dropdown-item">Careers</a>\n                </li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-178"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-178 nav-item"><a\n                    style="font-size:18px !important" title="Helpline Champions Program"\n                    href="https://helplinema.org/about/helpline-champions-program/"\n                    class="dropdown-item">Helpline champions program</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-185"\n                  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-185 nav-item"><a\n                    style="font-size:18px !important" title="Order Materials" target="_blank"\n                    rel="noopener noreferrer" href="https://massclearinghouse.ehs.state.ma.us/category/HELPLINE2.html"\n                    class="dropdown-item">Order materials</a></li>\n              </ul>\n            </li>\n            \x3c!-- <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-232"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-232 nav-item"><a\n                *ngIf="!isLoggedIn" title="Providers" rel="noopener noreferrer" href="javascript:void(0);" (click)="login()"\n                class="nav-link">Providers</a><a *ngIf="isLoggedIn" title="Providers"\n                rel="noopener noreferrer" class="nav-link" href="javascript:void(0);" (click)="logout()">Logout</a></li> --\x3e\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-871"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-871 nav-item">\n              <a title="Providers" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-871">Providers</a>\n              <ul class="dropdown-menu prviders" aria-labelledby="menu-item-dropdown-871">\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-180"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-180 nav-item"><a\n                    style="font-size:18px !important" title="Community-Based OTP Dose Verification"\n                    href="https://helplinema.org/community-based-opioid-treatment-program-otp-dose-verification/"\n                    class="dropdown-item">Community-Based OTP Dose Verification</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-179"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-179 nav-item">\n                  <a\n                  *ngIf="!isLoggedIn" class="dropdown-item" title="Provider Portal" rel="noopener noreferrer" href="javascript:void(0);" (click)="login()">Provider Portal</a><a *ngIf="isLoggedIn" title="Logout"\n                  rel="noopener noreferrer" class="dropdown-item" href="javascript:void(0);" (click)="logout()">Logout</a>\n                </li>\n              </ul>\n            </li>\n          </ul>\n        </div>\n        <div id="block-41" class="widget widget_block widget_text">\n          <p style="margin-left:1px;"><a href="tel:800.327.5050" data-type="tel"\n              style="margin-right:1.889rem;" class="msgtag" data-id="tel:800.327.5050">Call now: <span class="phone-col">800.327.5050</span></a> <a\n              href="sms:800327;?&amp;body=HOPE" class="msgtag" data-type="URL"\n              data-id="sms:800327;?&amp;body=HOPE">Text: \u201c<span class="phone-col">HOPE\u201d to 800327</span></a></p>\n        </div>\n        <div id="block-44" class="widget widget_block widget_text" style="display: none;">\n          <p style="margin-right: -5.6px;margin-top: -14px;"><a href="javascript:void(0);" class="msgtag" (click)="language(\'es\');">Espa\xf1ol</a></p>\n        </div>\n      </div>\n    </nav>\n  </header>\n</header>\n\n<header *ngIf="isSpanish" class="header" role="banner" itemscope="" itemtype="http://schema.org/WPHeader">\n  <header id="wrapper-navbar">\n    \x3c!-- <div class="mtsnb mtsnb-top mtsnb-absolute mtsnb-shown" id="mtsnbtop" data-mtsnb-id="2777" style="background-color:#e8aa7c;color:#382f44;">\n      <div class="mtsnb-container-outer">\n        <div class="mtsnb-container mtsnb-clearfix" style="display: block;">\n            <div class="mtsnb-button-type mtsnb-content"><span class="mtsnb-text"></span><a href="javascript:void(0);" style="font-size: 16px !important;font-weight: normal;" class="mtsnb-link">  ATTENTION: Several service providers in MA are no longer able to provide medications for a variety of reasons. If you are affected, click here to learn more and find a new provider for buprenorphine (Suboxone), injectable buprenorphine (Sublocade), and naltrexone.</a></div></div>\n            <a href="javascript:void(0);" class="mtsnb-show" (click)="toggleBanner();" style="background-color:#e8aa7c;color:#382f44; text-decoration: none;"><span>+</span></a>\n        </div>\n    </div> --\x3e\n    <a class="skip-link visually-hidden-focusable" href="#content"></a>\n    <nav id="main-nav" class="navbar navbar-light navbar-expand-md scrolled" aria-labelledby="main-nav-label">\n      <h2 id="main-nav-label" class="screen-reader-text"></h2>\n      <div class="p-0 container-fluid d-grid">\n        <div class="navbar-brand"><a class="custom-logo-link" class="spanishLogo" rel="home" href="https://helplinema.org/?lang=es" itemprop="url">\n            <img src="/assets/images/spanish_logo_light.svg" class="img-fluid logo1" alt="MA Helpline" decoding="async" width="270" height="60">\n            <img src="/assets/images/spanish_logo_dark.svg" class="img-fluid logo2" alt="MA Helpline" decoding="async">\n          </a>\n        </div>\n        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"\n          (click)="mobileMenu();" aria-controls="navbarNavDropdown" aria-expanded="false"\n          aria-label="Toggle navigation">\n          <span class="navbar-toggler-icon"></span>\n        </button>\n        <div id="navbarNavDropdown" class="collapse navbar-collapse">\n          <ul id="main-menu" class="navbar-nav ms-auto">\n            <li itemscope="itemscope" itemtype="https://helplinema.org/buscar-ayuda/necesito-ayuda/?lang=es"\n              id="menu-item-362"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-362 nav-item">\n              <a title="Buscar ayuda" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-362">Buscar ayuda</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-362">\n                <li itemscope="itemscope" itemtype="https://helplinema.org/interrupcion-del-acceso-a-los-proveedores-de-medicamentos/?lang=es"\n                  id="menu-item-183"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-183 nav-item"><a\n                    style="font-size:1.1rem !important" title="Perd\xed el acceso a MAT"\n                    href="https://helplinema.org/interrupcion-del-acceso-a-los-proveedores-de-medicamentos/?lang=es" class="dropdown-item">Perd\xed el acceso a MAT</a></li>\n                <li itemscope="itemscope" itemtype="https://helplinema.org/buscar-ayuda/necesito-ayuda/?lang=es"\n                  id="menu-item-183"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-183 nav-item"><a\n                    style="font-size:1.1rem !important" title="Necesito ayuda"\n                    href="https://helplinema.org/buscar-ayuda/necesito-ayuda/?lang=es" class="dropdown-item">Necesito ayuda</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-182"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-182 nav-item"><a\n                    style="font-size:1.1rem !important" title="Un ser querido necesita ayuda"\n                    href="https://helplinema.org/buscar-ayuda/un-ser-querido-necesita-ayuda/?lang=es"\n                    class="dropdown-item">Un ser querido necesita ayuda</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-181"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-181 nav-item"><a\n                    style="font-size:1.1rem !important" title="Mi cliente necesita ayuda"\n                    href="https://helplinema.org/buscar-ayuda/mi-cliente-necesita-ayuda/?lang=es"\n                    class="dropdown-item">Mi cliente necesita ayuda</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-455"\n                  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-455 nav-item"><a\n                    style="font-size:1.1rem !important" title="Ayuda para los problemas con los juegos de apuestas" target="_blank"\n                    rel="noopener noreferrer" href="https://gamblinghelplinema.org/" class="dropdown-item">Ayuda para los problemas con los juegos de apuestas</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-456"\n                  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-456 nav-item"><a\n                    style="font-size:1.1rem !important" title="Buscar servicios" target="_blank"\n                    rel="noopener noreferrer" [routerLink]="[\'es/findhelp\']" class="dropdown-item">Buscar servicios</a>\n                </li>\n              </ul>\n            </li>\n            <li itemscope="itemscope" itemtype="https://helplinema.org/tratamiento-y-recuperacion/tratamiento/?lang=es" id="menu-item-869"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-869 nav-item">\n              <a title="Tratamiento y recuperaci\xf3n" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown"\n                aria-haspopup="true" aria-expanded="false" class="dropdown-toggle nav-link"\n                id="menu-item-dropdown-869">Tratamiento y recuperaci\xf3n</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-869">\n                <li itemscope="itemscope" itemtype="https://helplinema.org/tratamiento-y-recuperacion/tratamiento/?lang=es" id="menu-item-175"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-175 nav-item"><a\n                    style="font-size:1.1rem !important" title="Tratamiento"\n                    href="https://helplinema.org/tratamiento-y-recuperacion/tratamiento/?lang=es"\n                    class="dropdown-item">Tratamiento</a></li>\n                <li itemscope="itemscope" itemtype="https://helplinema.org/tratamiento-y-recuperacion/recuperacion/?lang=es"\n                  id="menu-item-174"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-174 nav-item"><a\n                    style="font-size:1.1rem !important" title="Recuperaci\xf3n"\n                    href="https://helplinema.org/tratamiento-y-recuperacion/recuperacion/?lang=es"\n                    class="dropdown-item">Recuperaci\xf3n</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-173"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-173 nav-item"><a\n                    style="font-size:1.1rem !important" title="Servicios para adolescentes y j\xf3venes adultos"\n                    href="https://helplinema.org/tratamiento-y-recuperacion/servicios-para-adolescentes-y-jovenes-adultos/?lang=es"\n                    class="dropdown-item">Servicios para adolescentes y j\xf3venes adultos</a></li>\n              </ul>\n            </li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-870"\n              class="menu-item menu-item-type-custom menu-item-object-custom current-menu-ancestor current-menu-parent menu-item-has-children dropdown active menu-item-870 nav-item">\n              <a title="Mantente seguro" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-870">Mantente seguro</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-870">\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-171"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-170 nav-item"><a\n                    style="font-size:1.1rem !important" title="Reducci\xf3n del da\xf1o"\n                    href="https://helplinema.org/mantente-seguro/reduccion-del-dano/?lang=es" class="dropdown-item"\n                    aria-current="page">Reducci\xf3n del da\xf1o</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-170"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-170 nav-item"><a\n                    style="font-size:1.1rem !important" title="Prevenci\xf3n de sobredosis"\n                    href="https://helplinema.org/mantente-seguro/prevencion-de-sobredosis/?lang=es"\n                    class="dropdown-item">Prevenci\xf3n de sobredosis</a></li>\n              </ul>\n            </li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-871"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-871 nav-item">\n              <a title="Qui\xe9nes somos" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-871">Qui\xe9nes somos</a>\n              <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-871">\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-180"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-180 nav-item"><a\n                    style="font-size:1.1rem !important" title="Acerca de la l\xednea de ayuda"\n                    href="https://helplinema.org/quienes-somos/acerca-de-la-linea-de-ayuda/?lang=es"\n                    class="dropdown-item">Acerca de la l\xednea de ayuda</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-179"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-179 nav-item"><a\n                    style="font-size:1.1rem !important" title="Oportunidades de trabajo"\n                    href="https://helplinema.org/quienes-somos/oportunidades-de-trabajo/?lang=es" class="dropdown-item">Oportunidades de trabajo</a>\n                </li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-178"\n                  class="menu-item menu-item-type-post_type menu-item-object-page menu-item-178 nav-item"><a\n                    style="font-size:1.1rem !important" title="Programa de campeones de la l\xednea de ayuda"\n                    href="https://helplinema.org/quienes-somos/programa-de-campeones-de-la-linea-de-ayuda/?lang=es"\n                    class="dropdown-item">Programa de campeones de la l\xednea de ayuda</a></li>\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-185"\n                  class="menu-item menu-item-type-custom menu-item-object-custom menu-item-185 nav-item"><a\n                    style="font-size:1.1rem !important" title="Solicitar materiales" target="_blank"\n                    rel="noopener noreferrer" href="https://massclearinghouse.ehs.state.ma.us/category/HELPLINE2.html"\n                    class="dropdown-item">Solicitar materiales</a></li>\n              </ul>\n            </li>\n            \x3c!-- <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-232"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-232 nav-item"><a\n                *ngIf="!isLoggedIn" title="Proveedores" rel="noopener noreferrer" href="javascript:void(0);" (click)="login()"\n                class="nav-link">Proveedores</a><a *ngIf="isLoggedIn" title="cerrar sesi\xf3n"\n                rel="noopener noreferrer" class="nav-link" href="javascript:void(0);" (click)="logout()">cerrar sesi\xf3n</a></li> --\x3e\n                <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-871"\n                class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-871 nav-item">\n                <a title="Proveedores" href="javascript:void(0);" data-toggle="dropdown" data-bs-toggle="dropdown" aria-haspopup="true"\n                  aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-871">Proveedores</a>\n                <ul class="dropdown-menu prviders2" aria-labelledby="menu-item-dropdown-871">\n                  <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-180"\n                    class="menu-item menu-item-type-post_type menu-item-object-page menu-item-180 nav-item"><a\n                      style="font-size:1.1rem !important" title="Verificaci\xf3n de dosis de OTP comunitarios"\n                      href="https://helplinema.org/verificacion-de-dosis-de-programas-de-tratamiento-de-opioides-otp-comunitarios/?lang=es"\n                      class="dropdown-item">Verificaci\xf3n de dosis de OTP comunitarios</a></li>\n                  <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-179"\n                    class="menu-item menu-item-type-post_type menu-item-object-page menu-item-179 nav-item">\n                    <a *ngIf="!isLoggedIn" class="dropdown-item" title="Portal de proveedores" rel="noopener noreferrer" href="javascript:void(0);" (click)="login()"\n                    style="font-size:1.1rem !important">Portal de proveedores</a><a *ngIf="isLoggedIn" title="cerrar sesi\xf3n"\n                    rel="noopener noreferrer" style="font-size:1.1rem !important" class="dropdown-item" href="javascript:void(0);" (click)="logout()">cerrar sesi\xf3n</a>\n                  </li>\n                </ul>\n              </li>  \n          </ul>\n        </div>\n        <div id="block-41" class="widget widget_block widget_text">\n          <p style="margin-left:1px;"> <a href="tel:800.327.5050" data-type="tel"\n              style="margin-right:1.6rem; color: #382f44;" class="msgtag" data-id="tel:800.327.5050"> Tel\xe9fono: <span class="phone-col">800.327.5050</span></a>  \n              \x3c!-- Texto: <a\n              href="sms:800327;?&amp;body=HOPE" style="color:#382f44;" class="msgtag"  data-type="URL"\n              data-id="sms:800327;?&amp;body=HOPE">"HOPE" a 800327</a> --\x3e\n            </p>\n        </div>\n        <div id="block-44" class="widget widget_block widget_text">\n          <p style="margin-right: -5.6px;margin-top: -14px;"><a href="javascript:void(0);" class="msgtag" (click)="language(\'en\');">English</a></p>\n        </div>\n      </div>\n    </nav>\n  </header>\n</header>\n<nav id="psd_agent_nav" class="nav2" *ngIf="isLoggedIn && !isSpanish && !isPg">\n  <div class="container-fluid">\n    <div class="row" style="float: right; margin-right:30px;">\n      <div class="">\n        <ul class="psd_agent_nav">\n          <li><a [routerLink]="[\'/overview\']">Home</a></li>\n          <li *ngIf="contacttypeid!=4 && contacttypeid!=1"><a href="/myrequests">My Requests</a></li>\n          <li *ngIf="contacttypeid!=4 && contacttypeid!=1"><a [routerLink]="[\'/reports\']">Reports</a></li>\n          <li *ngIf="contacttypeid!=4 && contacttypeid!=1"><a [routerLink]="[\'/manageusers\']">Manage Users</a></li>\n          <li *ngIf="contacttypeid!=4 && contacttypeid!=1"><a href="/makearequest">Make a Request</a></li>\n          <li class="psd_cname"><b>|</b><img src="assets/images/icons/pad.png" alt="" /><span><a class=""\n                href="/my_account">{{name}}</a></span></li>\n          \x3c!-- <button mat-button (click)="onLogout()" *ngIf="isLoggedIn$">Logout</button> --\x3e\n        </ul>\n      </div>\n    </div>\n  </div>\n</nav>\n\x3c!-- <header *ngIf="isPg" style="background-color: #f7f7f6;" class="header" role="banner" itemscope="" itemtype="http://schema.org/WPHeader"> --\x3e\n\x3c!-- <div id="inner-header" class="cf"> --\x3e\n\x3c!-- <p id="logo" style="margin: 0px; width: 30%;" class="h1" itemscope="" itemtype="http://schema.org/Organization"> <a [routerLink]="[\'/overview\']" rel="nofollow"> <img src="./assets/images/pg_logo.PNG" alt="PG logo"> </a> </p> --\x3e\n\x3c!-- <span id="headerIcons" style="font-size: 1.1em;width: 14.5%;padding-top: 20px;"> --\x3e\n\x3c!-- <a>Call us:<font style="color: #0099b8;"> 800-327-5050</font></a> --\x3e\n\x3c!-- </span> --\x3e\n\x3c!-- </div> --\x3e\n\x3c!-- <nav role="navigation" itemscope="" itemtype="http://schema.org/SiteNavigationElement"> --\x3e\n\x3c!-- <ul id="menu-main-menu-1" class="nav top-nav cf"> --\x3e\n\x3c!-- <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-6991"> <a href="">Find help</a> </li> --\x3e\n\x3c!-- <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-6991"> <a href="">About problem gambling</a> </li> --\x3e\n\x3c!-- <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-6991"> <a href="">About treatment</a> </li> --\x3e\n\x3c!-- <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-6991"> <a href="">About us</a> </li> --\x3e\n\x3c!-- <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-6991"> <a href="">For providers</a> </li> --\x3e\n\x3c!-- </ul>   --\x3e\n\x3c!-- </nav>     --\x3e\n\x3c!-- </header> --\x3e\n<header *ngIf="isPg" id="pgHeader" class="header" role="banner" itemscope="" itemtype="http://schema.org/WPHeader">\n  <div id="inner-header" class="cf">\n    <p id="logo" style="margin: 0px; width: 30%;margin-top: .5em" class="h1" itemscope=""\n      itemtype="http://schema.org/Organization"> <a href="https://gamblinghelplinema.org" rel="nofollow"> <img\n          src="./assets/images/pg-logov2.png" id="pglogo" alt="PG logo"> </a> </p>\n    <span id="headerIcons" style="padding-top: 10px; color: #212529; margin-bottom: 1em;">\n      <a class="kaleko-bold">call us:<font id="displyPhone" style="color: #212529;"> 800\u2022327\u20225050</font></a>\n    </span>\n  </div>\n  <nav role="navigation" id="main-nav" itemscope="" itemtype="http://schema.org/SiteNavigationElement">\n    <ul id="menu-main-menu-1" class="nav top-nav top-navpg cf pg-nav">\n      <li class="dropdown-toggle dropdown-toggle-split" id="menu-item-656"> <a href="" id="menu-item-656"\n          class="eina-semibold txt-transform main-txt" data-toggle="dropdown" aria-haspopup="true"\n          aria-expanded="false">Find Help</a>\n\n        \x3c!-- <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-656" class="dropdown-toggle dropdown-toggle-split"><a title="Find Help" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" class="dropdown-toggle nav-link" id="menu-item-dropdown-656">Find Help</a>   --\x3e\n\n        <div class="dropdown-menu" aria-labelledby="menu-item-656" role="menu">\n          <a title="Find Help (For Me)" href="https://gamblinghelplinema.org/i-need-help/" class="dropdown-item">I need\n            help</a>\n          <a title="Find help (for my loved one)" href="https://gamblinghelplinema.org/my-loved-one-needs-help/"\n            class="dropdown-item">My loved one needs help</a>\n          <a title="Find help (for my client)" href="https://gamblinghelplinema.org/my-client-needs-help/"\n            class="dropdown-item">My client needs help</a>\n        </div>\n\n      </li>\n      <li class="menu-item menu-item-type-post_type menu-item-object-page"> <a\n          href="https://gamblinghelplinema.org/about-problem-gambling/"\n          class="eina-semibold txt-transform main-txt">About Problem Gambling</a> </li>\n      <li class="menu-item menu-item-type-post_type menu-item-object-page"> <a\n          href="https://gamblinghelplinema.org/about-treatment/" class="eina-semibold txt-transform main-txt">About\n          Treatment</a> </li>\n      <li class="menu-item menu-item-type-post_type menu-item-object-page"> <a\n          href="https://gamblinghelplinema.org/about-us/" class="eina-semibold txt-transform main-txt">About Us</a>\n      </li>\n      <li class="dropdown-toggle dropdown-toggle-split" id="dropdownMenuReferencefp"> <a href=""\n          id="dropdownMenuReferencefp" class="eina-semibold txt-transform main-txt" data-toggle="dropdown"\n          aria-haspopup="true" aria-expanded="false">For Providers</a>\n        <ul class="dropdown-menu" id="promenu" aria-labelledby="menu-item-dropdown-651" role="menu">\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-724"\n            class="ta-center menu-item menu-item-type-post_type menu-item-object-page menu-item-724 nav-item"><a\n              title="TA Center" id="tacenter" href="https://gamblinghelplinema.org/ta-center/" class="dropdown-item">TA\n              Center</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-721"\n            class="menu-item menu-item-type-custom menu-item-object-custom menu-item-721 nav-item"><a\n              title="Upcoming Trainings" href="https://gamblinghelplinema.org/trainings/" class="dropdown-item">Upcoming\n              Trainings</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-718"\n            class="menu-item menu-item-type-post_type menu-item-object-page menu-item-718 nav-item"><a title="Resources"\n              href="https://gamblinghelplinema.org/resources/" class="dropdown-item">Resources</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-725"\n            class="menu-item menu-item-type-post_type menu-item-object-page menu-item-725 nav-item"><a\n              title="MAPGS certification" href="https://gamblinghelplinema.org/mapgs-certification/"\n              class="dropdown-item">MA PGS certification</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-663"\n            class="portal menu-item menu-item-type-custom menu-item-object-custom menu-item-663 nav-item"><a\n              title="Provider Portal" id="pportal" href="https://tst-mahelpline.thesmartice.com/"\n              class="dropdown-item">Provider Portal</a></li>\n        </ul>\n      </li>\n    </ul>\n  </nav>\n</header>\n<header style="background-color: #f7f7f6;" *ngIf="isPg" class="mobileHeader">\n  <nav class="navbar navbar-expand-lg navbar-light bg-light eina-bold">\n    <a class="navbar-brand" href="#" style="margin-top: .5em; height: 100%;"><img src="./assets/images/pg-logo.png"\n        alt="PG logo"></a>\n    <div id="baner-txt">\n      <a class="kaleko-bold">Call us:<font style="color: #0099b8;"> 800\u2022327\u20225050</font></a>\n    </div>\n    <div id="navbar">\n      <button class="navbar-toggler" (click)="mobileMenu()" type="button" data-toggle="collapse"\n        data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">\n        <span class="navbar-toggler-icon"></span>\n      </button>\n    </div>\n    <div class="collapse navbar-collapse" id="navbarNav">\n      <ul id="main-menu" class="navbar-nav ml-auto">\n        <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-656"\n          class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-656 nav-item">\n          <a title="Find Help" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"\n            class="dropdown-toggle nav-link" id="menu-item-dropdown-656">Find Help</a>\n          <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-656" role="menu">\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-652"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-652 nav-item"><a\n                title="I need help" href="https://gamblinghelplinema.org/i-need-help/" class="dropdown-item">I need\n                help</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-649"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-649 nav-item"><a\n                title="My loved one needs help" href="https://gamblinghelplinema.org/my-loved-one-needs-help/"\n                class="dropdown-item">My loved one needs help</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-648"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-648 nav-item"><a\n                title="My client needs help" href="https://gamblinghelplinema.org/my-client-needs-help/"\n                class="dropdown-item">My client needs help</a></li>\n          </ul>\n        </li>\n        <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-537"\n          class="menu-item menu-item-type-post_type menu-item-object-page menu-item-537 nav-item"><a\n            title="About Problem Gambling" href="https://gamblinghelplinema.org/about-problem-gambling/"\n            class="nav-link">About Problem Gambling</a></li>\n        <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-538"\n          class="menu-item menu-item-type-post_type menu-item-object-page menu-item-538 nav-item"><a\n            title="About Treatment" href="https://gamblinghelplinema.org/about-treatment/" class="nav-link">About\n            Treatment</a></li>\n        <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-647"\n          class="menu-item menu-item-type-post_type menu-item-object-page menu-item-647 nav-item"><a title="About Us"\n            href="https://gamblinghelplinema.org/about-us/" class="nav-link">About Us</a></li>\n        <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-651"\n          class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-651 nav-item">\n          <a title="For Providers" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"\n            class="dropdown-toggle nav-link" id="menu-item-dropdown-651">For Providers</a>\n          <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-651" role="menu">\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-724"\n              class="ta-center menu-item menu-item-type-post_type menu-item-object-page menu-item-724 nav-item"><a\n                title="TA Center" id="tacenter" href="https://gamblinghelplinema.org/ta-center/"\n                class="dropdown-item">TA Center</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-721"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-721 nav-item"><a\n                title="Upcoming Trainings" href="/trainings/" class="dropdown-item">Upcoming Trainings</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-718"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-718 nav-item"><a\n                title="Resources" href="https://gamblinghelplinema.org/resources/" class="dropdown-item">Resources</a>\n            </li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-725"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-725 nav-item"><a\n                title="MA PGS certification" href="https://gamblinghelplinema.org/mapgs-certification/"\n                class="dropdown-item">MA PGS Certification</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-663"\n              class="portal menu-item menu-item-type-custom menu-item-object-custom menu-item-663 nav-item"><a\n                title="Provider Portal" id="pportal" href="https://tst-mahelpline.thesmartice.com/"\n                class="dropdown-item">Provider Portal</a></li>\n          </ul>\n        </li>\n      </ul>\n    </div>\n  </nav>\n</header>',styles:["@font-face {\n  font-family: \"Eina-Bold\";\n  src: url(\"/assets/pg-fonts/Eina04Bold/font.woff\") format(\"woff\");\n}\n.eina-bold {\n  font-family: \"Eina-Bold\";\n}\n@font-face {\n  font-family: \"Kaleko-Bold\";\n  src: url(\"/assets/pg-fonts/Kaleko105Bold/font.woff\") format(\"woff\");\n}\n.kaleko-bold {\n  font-family: \"Kaleko-Bold\";\n  font-size: 18px;\n}\n@font-face {\n  font-family: \"Eina-SemiBold\";\n  src: url(\"/assets/pg-fonts/Eina04SemiBold/font.woff\") format(\"woff\");\n}\n@font-face {\n  font-family: \"proxima-nova\";\n  src: url(\"https://use.typekit.net/af/78aca8/00000000000000007735e60d/30/l?subset_id=2&fvd=n6&v=3\") format(\"woff2\"), url(\"https://use.typekit.net/af/78aca8/00000000000000007735e60d/30/d?subset_id=2&fvd=n6&v=3\") format(\"woff\"), url(\"https://use.typekit.net/af/78aca8/00000000000000007735e60d/30/a?subset_id=2&fvd=n6&v=3\") format(\"opentype\");\n  font-display: auto;\n  font-style: normal;\n  font-weight: 600;\n  font-stretch: normal;\n}\n.eina-semibold {\n  font-family: \"Eina-SemiBold\";\n  font-size: 14px !important;\n}\nbody {\n  font-family: \"proxima-nova\", Arial, Helvetica, sans-serif;\n  color: #382f44;\n}\n#main-nav a {\n  margin: auto;\n  font-family: \"proxima-nova\", Arial, Helvetica, sans-serif;\n  color: #382f44;\n  text-transform: initial;\n  font-size: 16px;\n}\n.txt-transform {\n  text-transform: none;\n}\n.nav-header-left {\n  margin-left: 38%;\n}\n::ng-deep .nav li ul.sub-menu li a, ::ng-deep .nav li ul.children li a {\n  font-size: 0.8em !important;\n}\n::ng-deep #simple-banner {\n  background: #4d5e80;\n  text-align: center;\n  color: white;\n}\n.pg-nav {\n  float: right !important;\n}\n.mobileHeader {\n  display: none !important;\n}\n.navbar-toggler {\n  float: right;\n}\n#navbar {\n  width: 100%;\n}\nli.nav-item {\n  border: solid 1px gray;\n}\na.nav-link {\n  color: #000;\n  padding-left: 0 !important;\n  padding-top: 5px !important;\n}\nul.navbar-nav {\n  margin-top: 0px;\n  margin-left: -10px !important;\n  margin-right: -10px;\n}\n.navbar-brand {\n  margin: auto;\n  padding: 3px 5px !important;\n  /*margin-top: -28px !important;*/\n}\n@media only screen and (min-width: 768px) {\n  .mobileHeader {\n    display: none !important;\n  }\n\n  .header {\n    display: block;\n  }\n\n  a.nav-link.show {\n    top: -0.25rem;\n  }\n\n  ul.prviders {\n    left: -285px;\n  }\n\n  ul.prviders2 {\n    left: -263px;\n  }\n}\n.top-nav .dropdown-toggle::after {\n  position: absolute;\n  right: 10px;\n  top: 50%;\n}\n.top-navpg a {\n  background: url('ellipse.6d406768a6194105af9e.svg') 8px 65px no-repeat;\n}\n.top-navpg a:hover {\n  background-position: 8px bottom;\n}\n.dropdown-toggle a {\n  padding-left: 5px;\n}\na#tacenter {\n  background-image: url('ta-center.9a53a919c22865051b48.png');\n  background-position: 0.5em center;\n  background-repeat: no-repeat;\n  border-bottom: 2px solid #dfe2ea;\n}\na#pportal {\n  background-image: url('portal.b3436ad0f30fdc5a1778.png');\n  background-position: 0.5em center;\n  background-repeat: no-repeat;\n}\n.pg-nav li:last-child ul {\n  margin-left: -250px !important;\n}\n.pg-nav li:last-child ul li {\n  grid-column: 1;\n}\n.pg-nav li:last-child ul li:last-child {\n  grid-column: 2;\n  grid-row: 1;\n}\n.pg-nav li:last-child ul li:last-child a,\n.pg-nav li:last-child ul li:first-child a {\n  padding-left: 50px;\n}\n.pg-nav li:last-child ul li:last-child a:hover,\n.pg-nav li:last-child ul li:first-child a:hover {\n  background-position: 0.5em bottom !important;\n}\nli.nav-item {\n  border: none !important;\n}\nul.show {\n  display: grid !important;\n}\na.main-txt {\n  font-size: 16px !important;\n}\n#pportal, #tacenter {\n  padding-left: 50px;\n}\n#baner-txt {\n  width: 100%;\n  text-align: center;\n}\nspan#headerIcons font:hover {\n  color: #0070ff !important;\n}\nul.pg-nav {\n  margin-top: -18px;\n}\n#pgHeader {\n  background-color: #fff;\n  height: 108px;\n}\nimg#pglogo {\n  height: 66px;\n  width: 250px;\n}\n.header {\n  position: fixed !important;\n  top: 0;\n  width: 100%;\n  z-index: 9;\n  height: auto !important;\n}\nheader {\n  padding-top: 0;\n}\n@media screen and (min-width: 768px) and (max-width: 1160px) {\n  .pg-nav {\n    margin-top: 0;\n  }\n\n  #pgHeader {\n    height: 136px;\n  }\n\n  ul.pg-nav {\n    margin-top: 0px;\n  }\n}\n@media only screen and (min-width: 1506px) {\n  header {\n    position: relative;\n  }\n}\n.navbar-light {\n  background-color: #f9f4f4;\n  color: #382f44;\n}\n.navbar {\n  font-weight: 600;\n  background-color: #F9F4F4 !important;\n}\n.navbar-light a.dropdown-item:hover {\n  color: #a770a1 !important;\n}\n.navbar-light a.dropdown-item {\n  color: #f9f4f4 !important;\n}\n.navbar {\n  text-transform: none !important;\n}\n.navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand {\n  margin-left: initial !important;\n  height: auto;\n}\n#navbarNavDropdown {\n  margin-top: -26px;\n}\n.navbar-brand {\n  margin-top: 39px;\n}\nul.dropdown-menu li a {\n  font-size: 16px !important;\n  font-weight: normal !important;\n  font-family: \"proxima-nova\", Arial, Helvetica, sans-serif !important;\n}\n.dropdown-item {\n  display: block;\n  width: 100%;\n  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);\n  clear: both;\n  font-weight: 400;\n  color: var(--bs-dropdown-link-color);\n  text-align: inherit;\n  text-decoration: none;\n  white-space: nowrap;\n  background-color: transparent;\n  border: 0;\n}\n.dropdown-menu a {\n  font-size: 1.1rem !important;\n}\n.navbar .navbar-nav > li:not(:first-of-type) {\n  margin: 0 0 0 2.055rem !important;\n}\n@media (min-width: 1181px) and (max-width: 1210px) {\n  .navbar .navbar-nav > li:not(:first-of-type) {\n    margin: 0 0 0 1rem !important;\n  }\n}\n@media (min-width: 993px) and (max-width: 1180px) {\n  .navbar .navbar-nav > li:not(:first-of-type) {\n    margin: 0 0 0 0rem !important;\n  }\n}\n.nav-link {\n  font-size: 15.1px !important;\n  font-weight: var(--bs-nav-link-font-weight) !important;\n}\n#block-41 {\n  margin-top: 32px !important;\n  margin-left: 4px !important;\n  padding-left: 0;\n}\n.navbar .widget:not(:last-of-type) a {\n  margin-right: 1rem;\n}\n.navbar {\n  font-weight: 600 !important;\n}\n#block-41 p a {\n  font-size: 18px !important;\n}\n#block-41 > p {\n  font-weight: 600 !important;\n  font-size: 18px !important;\n}\n#main-menu a {\n  font-size: 18px !important;\n}\n.navbar .widget:last-of-type a {\n  border: 1px solid;\n  border-radius: 10em;\n  padding: 0.375rem 2rem;\n  display: inline-block;\n  position: relative;\n}\na, .wp-block-buttons .wp-block-button__link {\n  font-size: 1.1rem !important;\n}\n@media (min-width: 1445px) {\n  .navbar {\n    padding: 0.5rem 8.4rem 0rem !important;\n  }\n}\nul.dropdown-menu a {\n  font-size: 1.1rem !important;\n}\n.dropdown-menu.show {\n  max-height: 500px !important;\n  opacity: 100% !important;\n}\na.dropdown-item {\n  padding: 12px 30px;\n}\n@media (max-width: 1600px) {\n  .navbar-brand {\n    margin-top: 38px;\n  }\n\n  .navbar .widget:last-of-type a {\n    padding: 0.385rem 2rem;\n  }\n\n  #block-41 {\n    margin-top: 18px !important;\n  }\n\n  #navbarNavDropdown {\n    margin-top: -26px;\n  }\n}\n@media (min-width: 1700px) {\n  .mtsnb-show {\n    right: 126px !important;\n  }\n\n  #block-41 {\n    margin-top: 26px !important;\n  }\n\n  #block-44 a {\n    padding: 0.36rem 2rem !important;\n  }\n\n  #block-44 p {\n    margin-top: -8px !important;\n  }\n\n  .navbar-brand {\n    padding: 6px 0 !important;\n  }\n}\n.psd_agent_nav li a {\n  font-size: 15px !important;\n}\nheader {\n  font-family: \"proxima-nova\", Arial, Helvetica, sans-serif !important;\n  color: #382f44 !important;\n}\na.skip-link:not(:focus):not(:focus-within) {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\nheader a, .wp-block-buttons .wp-block-button__link {\n  transition: all 0.2s ease-in-out;\n  text-decoration: none;\n  color: #382f44;\n  background-color: rgba(0, 0, 0, 0);\n  font-weight: 600;\n  font-size: 1.1rem;\n}\n@media (min-width: 768px) {\n  #block-44 {\n    grid-area: 1/3/2/4 !important;\n    margin-left: auto !important;\n  }\n\n  #block-44 a:hover {\n    color: #f9f4f4;\n    background-color: #382f44;\n    text-decoration: none;\n  }\n\n  #block-44 a {\n    color: #382f44;\n    border: 1px solid;\n    border-radius: 10em;\n    padding: 0.39rem 2rem;\n    display: inline-block;\n    position: static;\n    text-decoration: none;\n    text-align: center;\n    letter-spacing: 0px;\n    font-size: 18px !important;\n    font-weight: 600;\n    border-radius: 20px;\n    padding: 5px 35px 5px 35px;\n  }\n\n  .navbar {\n    background-color: #fff;\n    width: 100%;\n    z-index: 999;\n    transition: all 0.3s ease-in-out;\n    position: relative;\n  }\n\n  .navbar-expand-md {\n    flex-wrap: nowrap;\n    justify-content: flex-start;\n  }\n\n  .navbar-brand {\n    grid-area: 1/1/3/2;\n    text-align: left;\n    margin: auto 0;\n  }\n\n  .navbar a {\n    position: relative;\n    transition: all 0.3s ease-in-out;\n    top: 0;\n  }\n\n  .navbar-brand {\n    padding-top: var(--bs-navbar-brand-padding-y);\n    padding-bottom: var(--bs-navbar-brand-padding-y);\n    margin-right: var(--bs-navbar-brand-margin-end);\n    font-size: var(--bs-navbar-brand-font-size);\n    color: var(--bs-navbar-brand-color);\n    text-decoration: none;\n    white-space: nowrap;\n  }\n\n  .navbar a {\n    position: relative;\n    transition: all 0.3s ease-in-out;\n    top: 0;\n  }\n\n  .navbar-brand .logo1 {\n    display: none;\n  }\n\n  .img-fluid {\n    max-width: 100%;\n    height: auto;\n  }\n\n  .navbar.scrolled .logo2 {\n    display: block;\n  }\n\n  .navbar #navbarNavDropdown {\n    grid-area: 2/2/3/4;\n  }\n\n  .navbar-expand-md .navbar-collapse {\n    display: flex !important;\n    flex-basis: auto;\n  }\n\n  .navbar.scrolled {\n    mix-blend-mode: normal;\n    background-color: #f9f4f4;\n    color: #382f44;\n  }\n\n  .navbar-expand-md .navbar-nav {\n    flex-direction: row;\n  }\n\n  .ms-auto {\n    margin-left: auto !important;\n  }\n\n  .navbar-nav {\n    --bs-nav-link-padding-x: 0;\n    --bs-nav-link-padding-y: 0.5rem;\n    --bs-nav-link-font-weight: ;\n    --bs-nav-link-color: var(--bs-navbar-color);\n    --bs-nav-link-hover-color: var(--bs-navbar-hover-color);\n    --bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);\n    display: flex;\n    flex-direction: column;\n    padding-left: 0;\n    margin-bottom: 0;\n    list-style: none;\n  }\n\n  .navbar.scrolled {\n    mix-blend-mode: normal;\n    background-color: #f9f4f4;\n    color: #382f44;\n  }\n\n  .navbar #navbarNavDropdown {\n    grid-area: 2/2/3/4;\n  }\n\n  .navbar-expand-md .navbar-nav {\n    flex-direction: row;\n  }\n\n  .navbar .widget:last-of-type {\n    grid-area: 1/3/2/4;\n    margin-left: auto;\n  }\n\n  .navbar a {\n    position: relative;\n    transition: all 0.3s ease-in-out;\n    top: 0;\n  }\n\n  .navbar.scrolled .dropdown-menu a {\n    color: #f9f4f4;\n  }\n\n  .navbar-brand {\n    grid-area: 1/1/3/2 !important;\n    text-align: left !important;\n    margin: auto 0 !important;\n  }\n\n  .navbar .widget:not(:first-of-type) {\n    grid-area: 1/2/2/3 !important;\n  }\n}\n.navbar {\n  font-weight: 600;\n}\n.screen-reader-text {\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border: 0 !important;\n}\n.navbar .d-grid {\n  grid-template-columns: 1fr auto auto;\n  grid-template-rows: repeat(2, auto);\n}\n.navbar > .container, .navbar > .container-fluid, .navbar > .container-lg, .navbar > .container-md, .navbar > .container-sm, .navbar > .container-xl, .navbar > .container-xxl {\n  display: flex;\n  flex-wrap: inherit;\n  align-items: center;\n  justify-content: space-between;\n}\n.d-grid {\n  display: grid !important;\n}\n#full-width-page-wrapper {\n  padding: 0;\n}\n.navbar-brand {\n  padding-top: var(--bs-navbar-brand-padding-y);\n  padding-bottom: var(--bs-navbar-brand-padding-y);\n  margin-right: var(--bs-navbar-brand-margin-end);\n  font-size: var(--bs-navbar-brand-font-size);\n  color: var(--bs-navbar-brand-color);\n  text-decoration: none;\n  white-space: nowrap;\n}\n[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {\n  cursor: pointer;\n}\n.navbar-toggler {\n  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);\n  font-size: var(--bs-navbar-toggler-font-size);\n  line-height: 1;\n  color: var(--bs-navbar-color);\n  background-color: transparent;\n  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);\n  border-radius: var(--bs-navbar-toggler-border-radius);\n  transition: var(--bs-navbar-toggler-transition);\n}\n.navbar {\n  font-weight: 600;\n}\nul.navbar-nav {\n  margin-top: 0.5px;\n  margin-left: -10px !important;\n  margin-right: -10.5px;\n}\nli.nav-item[_ngcontent-sqs-c1] {\n  border: none !important;\n}\n.navbar .widget:last-of-type a {\n  border: 1px solid;\n  border-radius: 10em;\n  padding: 0.375rem 2rem;\n  display: inline-block;\n  position: static;\n}\n#block-41 p {\n  margin-top: 0;\n  margin-bottom: 1rem;\n}\n.navbar .widget:not(:last-of-type) a {\n  margin-right: 1rem;\n}\n.dropdown-menu.show {\n  max-height: 500px;\n  opacity: 100%;\n}\n.dropdown-menu.show {\n  display: block;\n}\n.dropdown-menu {\n  top: 100%;\n  left: 0;\n  margin-top: var(--bs-dropdown-spacer);\n}\n.dropdown-item {\n  display: block;\n  width: 100%;\n  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);\n  clear: both;\n  font-weight: 400;\n  color: var(--bs-dropdown-link-color);\n  text-align: inherit;\n  text-decoration: none;\n  white-space: nowrap;\n  background-color: transparent;\n  border: 0;\n}\n.dropdown-menu {\n  background-color: #382f44;\n  border: none;\n  display: block;\n  max-height: 0px;\n  opacity: 0;\n  overflow: hidden;\n  padding: 0;\n}\n.navbar .widget:last-of-type a {\n  border: 1px solid;\n  border-radius: 10em;\n  padding: 0.375rem 2rem;\n  display: inline-block;\n  position: static;\n}\nul.dropdown-menu li a.dropdown-item:hover {\n  background-color: #e9ecef;\n}\nul.dropdown-menu li {\n  color: #382f44;\n}\n.navbar-brand {\n  padding-top: var(--bs-navbar-brand-padding-y);\n  padding-bottom: var(--bs-navbar-brand-padding-y);\n  margin-right: var(--bs-navbar-brand-margin-end);\n  font-size: var(--bs-navbar-brand-font-size);\n  color: var(--bs-navbar-brand-color);\n  text-decoration: none;\n  white-space: nowrap;\n}\n.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {\n  --bs-gutter-x: 1.5rem;\n  --bs-gutter-y: 0;\n  width: 100%;\n  padding-right: calc(var(--bs-gutter-x) * .5);\n  padding-left: calc(var(--bs-gutter-x) * .5);\n  margin-right: auto;\n  margin-left: auto;\n}\n.navbar {\n  background-color: #382f44;\n  width: 100%;\n  z-index: 999;\n  transition: all 0.3s ease-in-out;\n  position: relative;\n}\n.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {\n  color: inherit;\n}\n.navbar a {\n  position: relative;\n  transition: all 0.3s ease-in-out;\n  top: 0;\n}\n.navbar a:hover, .navbar a[aria-expanded=true] {\n  top: -0.25rem;\n}\na.nav-link.show {\n  top: -0.25rem;\n}\n.navbar .dropdown-menu a:hover {\n  top: 0;\n}\n.navbar .d-grid {\n  grid-template-columns: 1fr auto auto;\n  grid-template-rows: repeat(2, auto);\n}\n.navbar-expand-md .navbar-nav .nav-link {\n  padding: 0;\n}\n.navbar-brand {\n  grid-area: 1/1/3/2;\n  text-align: left;\n  margin: auto 0;\n}\n.navbar .widget:not(:first-of-type) {\n  grid-area: 1/2/2/3;\n}\n.navbar .widget:last-of-type {\n  grid-area: 1/3/2/4;\n  margin-left: auto;\n}\n.navbar #navbarNavDropdown {\n  grid-area: 2/2/3/4;\n}\n.entry-content > *:not(.wp-block-media-text) {\n  padding: 1.75rem;\n}\n#single-wrapper .entry-title, #single-wrapper .wp-post-image, #single-wrapper .entry-meta {\n  padding: 0 1.75rem;\n}\nbody.understrap-no-sidebar .alignfull:not(.wp-block-media-text), body.understrap-no-sidebar .alignwide:not(.wp-block-media-text), body.understrap-no-sidebar .wp-block-cover.alignfull, body.understrap-no-sidebar .wp-block-cover.alignwide {\n  padding: 1.75rem;\n}\nbody.understrap-no-sidebar .alignfull.wp-block-media-text, body.understrap-no-sidebar .alignwide.wp-block-media-text {\n  padding: 0;\n}\nbody.understrap-no-sidebar .alignfull.wp-block-media-text .wp-block-media-text__content, body.understrap-no-sidebar .alignwide.wp-block-media-text .wp-block-media-text__content {\n  padding: 1.75rem;\n}\n#full-width-page-wrapper .entry-content > #videocol .wp-block-column:first-child {\n  padding-bottom: 1.75rem;\n  padding-top: 1.75rem;\n  padding-right: 1.75rem;\n  padding-left: 1.75rem;\n}\n#page-wrapper, #single-wrapper {\n  padding-top: 10rem;\n}\n#full-width-page-wrapper .entry-content > *:first-child .wp-block-cover__inner-container {\n  padding-top: 10rem;\n}\n.wp-block-cover.wp-block-cover__inner-container {\n  padding-right: 12%;\n  padding-left: 12%;\n}\n.wp-block-columns.data {\n  flex-wrap: wrap !important;\n}\n.wp-block-columns.data .wp-block-column:first-child {\n  flex: 1 1 100%;\n}\nli.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-has-children.dropdown {\n  padding-bottom: 23px;\n}\n::ng-deep .ng-select.ng-select-opened .ng-select-container {\n  z-index: 99 !important;\n}\n@media only screen and (max-width: 992px) {\n  button.navbar-toggler {\n    font-size: 16px;\n    padding: 4px 12px;\n    border-radius: 0px;\n    border: solid 1px #1e2125;\n    background-color: #e2e2e2;\n    margin-left: auto;\n  }\n}\n@media only screen and (max-width: 767px) {\n  .mobileHeader {\n    display: block !important;\n  }\n\n  .header {\n    display: block !important;\n  }\n\n  .container-fluid {\n    display: contents !important;\n    overflow: hidden !important;\n  }\n\n  nav {\n    z-index: 9999;\n  }\n\n  #navbarNavDropdown {\n    margin-top: 0 !important;\n  }\n\n  .navbar-brand {\n    width: 80%;\n  }\n\n  ::ng-deep header .container {\n    margin-top: 124px !important;\n    background-color: #fff;\n  }\n\n  ul.navbar-nav {\n    margin-left: 10px !important;\n  }\n\n  ul.dropdown-menu.show {\n    margin-left: 0px !important;\n  }\n\n  #main-nav {\n    display: flex;\n    padding: 22px 10px;\n  }\n\n  .navbar-brand .logo2 {\n    display: none;\n  }\n\n  header {\n    padding-top: 0;\n  }\n  header .navbar {\n    justify-content: flex-start;\n  }\n\n  .dropdown-menu.show {\n    position: relative;\n  }\n\n  .img-fluid.logo1 {\n    display: none !important;\n  }\n\n  .img-fluid.logo2 {\n    display: block !important;\n  }\n\n  img.logo2 {\n    padding-left: 15px;\n  }\n\n  a.msgtag {\n    display: block;\n    width: 100%;\n    text-align: center;\n  }\n\n  #psd_agent_nav {\n    height: auto;\n  }\n}\n.dropdown-menu {\n  z-index: -1;\n}\na.nav-link.activepage {\n  text-decoration: underline !important;\n}\na:after {\n  background-position: bottom left !important;\n  background-repeat: no-repeat !important;\n  height: 15px !important;\n  width: 15px !important;\n  min-width: 15px !important;\n  margin: -23px -3px -6.5px 7px;\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23F9F4F4' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A\") !important;\n}\na:after {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23382F44' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A\") !important;\n}\na.show:after {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%2393628E' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A\") !important;\n  transform: rotateX(180deg) !important;\n  transition: all 0.3s ease-in-out;\n}\n.dropdown-toggle::after {\n  border-top: 0px !important;\n  width: 25.1px !important;\n  margin-left: -5px;\n  border-left: 0.6em solid transparent !important;\n  border-right: 0em solid transparent !important;\n}\na span {\n  color: #382f44 !important;\n}\na.nav-link.show {\n  color: #b98db4 !important;\n}\nspan.phone-col {\n  font-size: 20px;\n}\nul li.menu-item-current {\n  background-color: #e9ecef;\n}\nul li.menu-item-current a {\n  color: #a770a1 !important;\n}\n#psd_agent_nav.nav2 {\n  margin-top: 8px !important;\n}\na.headerLogo {\n  display: inline-block;\n  width: auto;\n  margin: 0.2px !important;\n  height: 60px;\n  width: 269.2px;\n  -o-object-fit: contain;\n     object-fit: contain;\n}\na.spanishLogo {\n  display: inline-block;\n  width: auto;\n  height: 60px;\n  width: 269.3px;\n  -o-object-fit: contain;\n  object-fit: contain;\n  margin-top: 0.8px !important;\n}\nheader .mtsnb {\n  position: relative;\n  min-height: 0;\n}\n.mtsnb {\n  position: relative;\n  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.05);\n}\n.mtsnb-shown {\n  transition: transform ease 0.3s;\n  transform: translateY(0%) translate3d(0, 0, 0);\n}\n.mtsnb {\n  text-align: center;\n  position: relative !important;\n  top: 0;\n  width: 100%;\n  z-index: 9999;\n  transition: all 0.25s linear;\n  -webkit-backface-visibility: hidden;\n  min-height: 30px;\n}\nheader .mtsnb a:link:hover, header .mtsnb a:visited:hover {\n  color: #382f44;\n}\n.mtsnb .mtsnb-container {\n  width: 1080px;\n  font-size: 16px !important;\n}\n.mtsnb-container {\n  margin: auto;\n}\n.mtsnb-hide {\n  display: none;\n}\n.mtsnb-show {\n  display: inline-block;\n  transform: rotate(45deg) translate3d(0, 0, 0);\n  top: 36%;\n  font-size: 18px !important;\n}\n.mtsnb-hide {\n  top: 50%;\n  background: transparent;\n  margin-top: -9px !important;\n}\n.mtsnb-hide, .mtsnb-show {\n  position: absolute;\n  right: 20px;\n  background-color: inherit;\n  color: #fff;\n  font-size: 18px !important;\n  line-height: 50px;\n  text-align: center;\n  box-sizing: initial;\n  line-height: 1;\n}\n.mtsnb a:link:hover, header .mtsnb a:visited:hover {\n  color: #382f44;\n  text-decoration: none;\n}\n.mtsnb .mtsnb-container {\n  position: relative;\n  margin-right: auto;\n  margin-left: auto;\n  max-width: 100%;\n  width: 1000px !important;\n  padding: 11px 21px 9px;\n  line-height: 1.4;\n}\n.mtsnb-show.plus {\n  transform: translateY(100%) translate3d(0, 0, 0);\n  padding: 10px;\n  top: -40px;\n  right: 10px;\n}\n.mtsnb-hidden .mtsnb-show {\n  transition: transform ease 0.3s;\n  padding: 10px;\n}\n.top-banner {\n  margin-top: 0px !important;\n}\n.mtsnbtop {\n  min-height: 0px !important;\n}\n.header {\n  background-color: #f9f4f4;\n}\n#main-nav .navbar-brand a {\n  width: 270px;\n  height: 60px;\n  display: block;\n  margin-top: -6px;\n  background-size: cover;\n}\nimg.logo2 {\n  margin-top: -5px;\n  margin-left: -0.1px;\n  height: 59.65px;\n}\n@media (min-width: 576px) and (max-width: 992px) {\n  ::ng-deep .container {\n    max-width: 100% !important;\n  }\n}\n@media only screen and (max-width: 767px) {\n  .top-banner {\n    margin-top: 0px !important;\n  }\n\n  .mtsnb .mtsnb-container {\n    padding: 10px 40px;\n  }\n\n  .mtsnb-show {\n    right: 28px;\n  }\n\n  .in-banner {\n    margin-bottom: 0px;\n  }\n\n  .headerLogo, .spanishLogo {\n    width: 100% !important;\n  }\n\n  .dropdown-menu.show {\n    top: 0px !important;\n  }\n\n  img.logo1, #block-41 {\n    display: none !important;\n  }\n\n  #main-menu, .dropdown-menu.show {\n    padding-left: 0px !important;\n  }\n}\n@media only screen and (min-width: 664px) and (max-width: 770px) {\n  .mtsnb .mtsnb-container {\n    width: 85%;\n    padding: 11px 10px 9px;\n  }\n\n  img.logo1, #block-41 {\n    display: none !important;\n  }\n\n  .nebuLogo {\n    text-align: center;\n  }\n}\n@media only screen and (min-width: 1256px) and (max-width: 1400px) {\n  .navbar {\n    padding: 2rem 2rem 1.5rem !important;\n  }\n}\n@media only screen and (min-width: 770px) and (max-width: 1200px) {\n  a.nav-link {\n    padding-left: 7px !important;\n  }\n}\n@media only screen and (min-width: 760px) and (max-width: 766px) {\n  button.navbar-toggler {\n    display: block !important;\n  }\n}\n@media only screen and (min-width: 767px) and (max-width: 992px) {\n  .navbar-nav {\n    flex-direction: column !important;\n    margin-left: 23px !important;\n  }\n\n  #main-menu {\n    display: none;\n  }\n\n  .d-grid {\n    display: block !important;\n  }\n\n  .navbar-brand {\n    width: 100%;\n  }\n\n  .navbar-toggler {\n    margin-top: -55px;\n    display: block !important;\n  }\n\n  #block-41 {\n    display: none !important;\n  }\n}\n@media only screen and (min-width: 992px) and (max-width: 995px) {\n  #main-menu a {\n    font-size: 14px !important;\n  }\n}\n@media only screen and (min-width: 600px) and (max-width: 1150px) {\n  .mtsnb .mtsnb-container {\n    padding: 10px 40px;\n  }\n}\n@media only screen and (min-width: 666px) and (max-width: 767px) {\n  .header {\n    margin-bottom: 0;\n  }\n}\n@media only screen and (min-width: 995px) and (max-width: 1100px) {\n  #main-menu a {\n    font-size: 14px !important;\n  }\n}\n@media (min-width: 1101px) and (max-width: 1300px) {\n  #main-menu a {\n    font-size: 17px !important;\n  }\n}\n@media (min-width: 1445px) and (max-width: 1464px) {\n  .navbar {\n    padding: 2rem 7rem 1.5rem !important;\n  }\n}\n@media only screen and (min-width: 770px) and (max-width: 992px) {\n  button.navbar-toggler {\n    display: block !important;\n  }\n}\n@media only screen and (min-width: 605px) and (max-width: 996px) {\n  a.mtsnb-show {\n    right: 20px;\n  }\n}\n@media (max-width: 993px) {\n  .navbar .navbar-nav > li:not(:first-of-type) {\n    margin: 0 !important;\n  }\n\n  .navbar .navbar-nav > li {\n    padding: 18px 0px;\n  }\n\n  #main-menu, .dropdown-menu.show {\n    width: 100%;\n    z-index: 9;\n    padding-left: 25px;\n  }\n\n  #main-nav a {\n    white-space: pre-wrap;\n  }\n\n  .psd_agent_nav {\n    margin-top: 21px !important;\n    margin-left: 37px;\n  }\n\n  .navbar {\n    padding: 30px 10px;\n  }\n\n  #main-nav a {\n    color: #f9f4f4;\n  }\n\n  #navbarNavDropdown {\n    background: #382f44;\n  }\n\n  a.dropdown-toggle.nav-link:after {\n    background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23F9F4F4' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E%0A\") !important;\n    right: 31px;\n    position: absolute;\n    top: -8px;\n    height: 30px !important;\n    width: 30px !important;\n    background-size: contain;\n    margin: 0;\n    background-position: center;\n    background-repeat: no-repeat;\n    transition: all 0.4s ease;\n  }\n\n  a.dropdown-toggle.nav-link.show:after {\n    transform: rotate(180deg) !important;\n  }\n\n  button.navbar-toggler {\n    background-color: transparent !important;\n  }\n\n  .spanishLogo {\n    margin: 0.2px !important;\n  }\n\n  #psd_agent_nav {\n    height: auto !important;\n  }\n\n  a.msgtag {\n    color: #382f44 !important;\n  }\n\n  #block-44 p {\n    margin-top: 0px !important;\n    float: right !important;\n  }\n}\n.mtsnb-text {\n  margin: 0.2em 0.5em;\n}\n.custom-menu {\n  display: flex !important;\n  padding-top: 20px;\n}\n.navbar {\n  margin-bottom: -4px !important;\n}\n.mtsnb {\n  position: absolute;\n  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.05);\n}\n.mtsnb .mtsnb-container {\n  width: 1080px;\n  font-size: 16px;\n}\n.mtsnb a {\n  color: #000000;\n}\n.mtsnb .mtsnb-button {\n  background-color: #f4f4f4;\n}"]})],$z);let Wz=class{constructor(t){this.router=t,this.isSpanish=!1,this.isPg=!1,this.redirectUrl=""}ngOnInit(){}ngAfterViewInit(){const t=this;setTimeout(()=>{if(this.router.url.indexOf("/pg")>-1&&(this.isPg=!0),t.router.url.indexOf("/es")>-1){if(t.isSpanish=!0,t.router.url.indexOf("findhelp")>-1&&(t.redirectUrl="/findhelp"),t.router.url.indexOf("spa_result")>-1&&(t.redirectUrl="/spa_result"),t.router.url.indexOf("provider_details")>-1){let e=t.router.url.split("/")[3];t.redirectUrl="/provider_details/"+e}}else if(t.router.url.indexOf("findhelp")>-1&&(t.redirectUrl="es/findhelp"),t.router.url.indexOf("spa_result")>-1&&(t.redirectUrl="es/spa_result"),t.router.url.indexOf("provider_details")>-1){let e=t.router.url.split("/")[2];t.redirectUrl="es/provider_details/"+e}},500)}language(t){""!=this.redirectUrl&&(location.href=this.redirectUrl)}};function Yz(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Gz(t){return"string"==typeof t}function Kz(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function Zz(t){return t&&t.getTime&&!isNaN(t.getTime())}function Xz(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Qz(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Jz(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function tU(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function eU(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function nU(t){return void 0===t}function iU(t){const e=+t;let n=0;return 0!==e&&isFinite(e)&&(n=Yz(e)),n}Wz.ctorParameters=()=>[{type:Wf.Router}],Wz=Hh([Object(s.Component)({selector:"app-footer",template:'<div class="container-fluid p-0">\n  \x3c!-- <footer class="footer" *ngIf="!isPg" role="contentinfo" itemscope="" itemtype="http://schema.org/WPFooter">\n    <div class="top-footer">\n      <div id="top" class="wrap">\n        <nav role="navigation">\n          <div class="footer-links cf">\n            <ul id="menu-footer" *ngIf="!isSpanish" class="nav footer-nav cf">\n              <li id="menu-item-81" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-81"> <a\n                  href="https://helplinema.org/privacy/">Privacy Policy</a> </li>\n              <li id="menu-item-80" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-80"> <a\n                  href="https://helplinema.org/terms-of-use/">Terms and Conditions</a> </li>\n              <li id="menu-item-79" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-79"> <a\n                  href="https://helplinema.org/accessibility/">Accessibility Policy</a> </li>\n              <li id="menu-item-3332" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3332">\n                <a href="https://helplinema.org/contact-us/">Contact us</a> </li>\n            </ul>\n            <ul id="menu-footer-spanish" *ngIf="isSpanish" class="nav footer-nav cf">\n              <li id="menu-item-10021" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-10021">\n                <a href="https://helplinema.org/politica-de-privacidad/?lang=es&amp;_ga=2.105122880.2121920157.1620021204-1892090274.1584526538"\n                  class="external" target="_blank">Pol\xedtica de privacidad</a></li>\n              <li id="menu-item-10022" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-10022">\n                <a href="https://helplinema.org/terminos-y-condiciones/?lang=es" class="external"\n                  target="_blank">T\xe9rminos y condiciones</a></li>\n              <li id="menu-item-10023" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-10023">\n                <a href="https://helplinema.org/politica-de-accesibilidad/?lang=es" class="external"\n                  target="_blank">Pol\xedtica de accesibilidad</a></li>\n              <li id="menu-item-10024" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-10024">\n                <a href="https://helplinema.org/contactenos/?lang=es" class="external" target="_blank">Cont\xe1ctenos</a>\n              </li>\n            </ul>\n          </div>\n        </nav>\n        <div class="footerSocialMedia"> <a href="https://www.facebook.com/MASubstanceUseHelpline/" class="external"\n            target="_blank"> <img src="https://helplinema.org/wp-content/uploads/2016/06/facebook.png"\n              alt="Facebook Logo"> </a><a href="https://twitter.com/TheHelpline" class="external" target="_blank"> <img\n              src="https://helplinema.org/wp-content/uploads/2016/06/twitter.png" alt="Twitter Logo"> </a> </div>\n      </div>\n      <div id="bottom" class="wrap">\n        <ul>\n          <li> <a href="http://www.mass.gov/eohhs/gov/departments/dph/" class="external" target="_blank"><img\n                src="https://helplinema.org/wp-content/uploads/2016/06/round-logo.png" alt="MDPH Logo"></a> </li>\n          <li> <a href="http://www.mass.gov/eohhs/gov/departments/dph/programs/substance-abuse/" class="external"\n              target="_blank"><img src="https://helplinema.org/wp-content/uploads/2016/06/bsas-logo.png"\n                alt="BSAS Logo"></a> </li>\n          <li> <a href="http://hria.org" class="external" target="_blank"> <img\n                src="https://helplinema.org/wp-content/uploads/2016/06/hria_logo.png" alt="HRiA Logo"> </a> </li>\n        </ul>\n      </div>\n    </div>\n    <div id="inner-footer" class="wrap cf">\n      <p class="source-org copyright">&copy; 2021 Health Resources in Action.</p>\n    </div>\n  </footer> --\x3e\n\n  <footer class="footer">\n    <div class="container mx-auto">\n      <div class="top-section">\n        <div class="footer-logo-container">\n          <a id="footer-logo" href="https://helplinema.org/">\n            <img  *ngIf="!isSpanish" src="./assets/images/ma-helpline-logo-white.svg" alt="MA Helpline">\n            <img *ngIf="isSpanish" src="./assets/images/Helpline_logo_white_horiz_SPN_HEX.svg" alt="MA Helpline">\n          </a>\n        </div>\n        <div class="footer-menu">\n          <div class="menu-footer-container">\n            <ul *ngIf="!isSpanish" id="menu-footer" class="menu">\n              <li id="menu-item-133" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-133"><a\n                  href="https://helplinema.org/contact-us/">Contact Us</a></li>\n              <li id="menu-item-132" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-132"><a\n                  href="https://helplinema.org/accessibility-policy/">Accessibility Policy</a></li>\n              <li id="menu-item-134"\n                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-privacy-policy menu-item-134">\n                <a rel="privacy-policy" href="https://helplinema.org/privacy-policy/">Privacy\n                  Policy</a></li>\n              <li id="menu-item-131" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-131"><a\n                  href="https://helplinema.org/terms-conditions/">Terms &amp; Conditions</a></li>\n              <li id="menu-item-1195" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1195 footerlang" style="display: none;"><a\n                  href="javascript:void(0);" (click)="language(\'es\');">Espa\xf1ol</a></li>\n            </ul>\n\n            <ul id="menu-footer-spanish" *ngIf="isSpanish" class="menu">\n              <li id="menu-item-1467" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1467"><a\n                  href="https://helplinema.org/contactenos/">Cont\xe1ctenos</a></li>\n              <li id="menu-item-1468" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1468"><a\n                  href="https://helplinema.org/politica-de-accesibilidad/">Pol\xedtica de\n                  accesibilidad</a></li>\n              <li id="menu-item-1469" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1469"><a\n                  rel="privacy-policy"\n                  href="https://helplinema.org/politica-de-privacidad/">Pol\xedtica de\n                  privacidad</a></li>\n              <li id="menu-item-1470" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-1470"><a\n                  href="https://helplinema.org/terminos-y-condiciones/">T\xe9rminos y\n                  condiciones</a></li>\n              <li id="menu-item-1447" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-1447 footerlang" style="display: none;"><a\n                  href="javascript:void(0);" (click)="language(\'en\');">English</a></li>\n            </ul>\n\n          </div>\n        </div>\n      </div>\n      <div class="middle-section">\n        <div class="affiliations-container">\n          <a href="https://www.mass.gov/orgs/bureau-of-substance-addiction-services" target="_blank">\n            <img src="./assets/images/bsaslogo.png" alt="Bureau of Substance Addiction Services (BSAS)">\n          </a>\n          <a href="https://hria.org/" target="_blank">\n\t\t\t\t\t\t<img src="./assets/images/HRiA-Logo-Full-White.svg" alt="Health Resources in Action">\n\t\t\t\t\t</a>\n        </div>\n        \n        <div class="socials-container">\n          <div class="socials-inner">\n            <p *ngIf="!isSpanish" style="margin-bottom: 0px;">Be social with us.</p>\n            <p *ngIf="isSpanish" style="margin-bottom: 0px;">S\xe9 social con nosotros.</p>\n            <ul class="social-links">\n              <li>\n                <a href="https://www.facebook.com/MASubstanceUseHelpline/" class="facebook-icon">Visit Our FACEBOOK\n                  Page</a>\n              </li>\n              <li>\n                <a href="https://twitter.com/TheHelpline" class="twitter-icon">Visit Our TWITTER Page</a>\n              </li>\n              <li>\n                <a href="https://www.youtube.com/playlist?list=PL54knlBH64ADN5s8LVnhLeXazX_dWzmp_"\n                  class="youtube-icon">Visit Our YOUTUBE Page</a>\n              </li>\n            </ul>\n          </div>\n\n        </div>\n      </div>\n      \x3c!-- <div class="nebuLogo mt-20"><a href="https://nebulogic.com" target="_blank"><img src="/assets/images/footer-nl-logo.png" style="width: 150px;"></a></div> --\x3e\n      <div class="bottom-section">\n        <p style="margin-bottom: 0px;">\n          \xa9 Health Resources in Action 2023 </p>\n      </div>\n    </div>\n  </footer>\n</div>',styles:["@charset \"UTF-8\";\n.footer {\n  clear: both;\n  background-color: #606060;\n  color: #e5e4e0;\n  margin-top: 1.5em;\n}\n.top-footer #top nav {\n  float: left;\n  margin-top: 0.5em;\n  width: 650px;\n  text-align: left;\n}\n.top-footer {\n  background-color: #e5e4e0;\n  color: #606060;\n}\nfooter {\n  display: block;\n}\n.relative-parent {\n  position: relative;\n  background-color: #313d59;\n  padding-bottom: 20px;\n}\nimg#background-img {\n  position: absolute;\n  top: -46px;\n  right: 0;\n  z-index: 1;\n}\n::ng-deep a.navLinks {\n  color: #fff !important;\n}\n#foterNav {\n  float: right !important;\n  padding-top: 20px;\n  font-size: 12px;\n}\np.cpyright {\n  color: #fff;\n  font-size: 12px;\n}\n@font-face {\n  font-family: \"Eina-SemiBold\";\n  src: url(\"/assets/pg-fonts/Eina04SemiBold/font.woff\") format(\"woff\");\n}\n.eina-semibold {\n  font-family: \"Eina-SemiBold\";\n  font-size: 14px !important;\n}\n@font-face {\n  font-family: \"Eina-Regular\";\n  src: url(\"/assets/pg-fonts/Eina04Regular/font.woff\") format(\"woff\");\n}\n.eina-regular {\n  font-family: \"Eina-Regular\";\n  font-size: 12px;\n}\n#top nav li a.eina-semibold {\n  color: #fff;\n  background-color: #313d59 !important;\n  text-transform: none !important;\n}\n.social-icons {\n  color: #f7911e;\n  font-size: 20px;\n}\n.social-icons a {\n  margin-left: 20px;\n}\n.social-icons a:hover {\n  opacity: 0.6;\n  cursor: pointer;\n}\n.social-column {\n  display: flex;\n  margin-top: auto;\n}\n.ml-auto {\n  margin-left: auto;\n  line-height: 28px;\n}\n.pgwrap {\n  padding: 30px 20px !important;\n  width: 100% !important;\n}\n@media only screen and (max-width: 600px) {\n  #foterNav {\n    width: auto !important;\n  }\n}\n#socialIcon {\n  margin: 60px 0px 0px 137px;\n}\n@media only screen and (max-width: 600px) {\n  #socialIcon {\n    margin: auto;\n  }\n}\n@media only screen and (min-width: 992px) {\n  #socialIcon {\n    margin: 60px 0px 0px 137px;\n  }\n}\n@media only screen and (max-width: 768px) {\n  ul#menu-footer li {\n    display: block !important;\n    width: 100%;\n  }\n\n  ul#menu-social-media {\n    justify-content: flex-start !important;\n    font-size: 1em !important;\n  }\n\n  ul#menu-social-media li a {\n    font-size: 1em !important;\n    padding: 0 19px !important;\n  }\n\n  .nebuLogo {\n    padding-top: 26px;\n  }\n\n  ul#menu-footer li.menu-item a {\n    text-align: left !important;\n  }\n}\n@media (min-width: 1200px) {\n  #wrapper-footer {\n    height: 595px !important;\n  }\n}\n#wrapper-footer {\n  background-color: #382f44;\n  color: #f9f4f4;\n}\n.wrapper {\n  padding: 1.5rem 0;\n}\nbody {\n  font-family: \"proxima-nova\", Arial, Helvetica, sans-serif;\n  color: #382f44;\n}\n.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {\n  --bs-gutter-x: 1.5rem;\n  --bs-gutter-y: 0;\n  width: 100%;\n  padding-right: calc(var(--bs-gutter-x) * .5);\n  padding-left: calc(var(--bs-gutter-x) * .5);\n  margin-right: auto;\n  margin-left: auto;\n}\n@media (min-width: 768px) {\n  .site-footer {\n    display: grid;\n    grid-template-columns: repeat(2, auto);\n    grid-template-rows: repeat(2, auto);\n  }\n}\n@media (min-width: 768px) {\n  .site-footer div:nth-child(1) {\n    grid-area: 1/1/2/2;\n    margin-bottom: 2rem !important;\n  }\n}\n@media (min-width: 768px) {\n  .site-footer div:nth-child(2) {\n    grid-area: 1/2/2/3;\n  }\n\n  .site-footer div:nth-child(3) {\n    grid-area: 2/1/3/2;\n    margin-top: auto;\n  }\n\n  .site-footer div:nth-child(4) {\n    grid-area: 2/2/3/3;\n    margin-top: auto;\n  }\n\n  .site-footer {\n    display: grid;\n    grid-template-columns: repeat(2, auto);\n    grid-template-rows: repeat(2, auto);\n  }\n\n  .site-footer .menu {\n    display: flex;\n    text-align: right;\n  }\n\n  .site-footer .menu li {\n    flex: auto;\n    margin: 0;\n  }\n}\n.wp-block-image > figure, figure.wp-block-image {\n  display: block;\n}\n.site-footer .menu {\n  list-style: none;\n  padding: 0;\n}\ndl, ol, ul {\n  margin-top: 0;\n  margin-bottom: 1rem;\n}\n#wrapper-footer a {\n  color: #f9f4f4;\n}\na, .wp-block-buttons .wp-block-button__link {\n  transition: all 0.2s ease-in-out;\n  text-decoration: none;\n  color: #382f44;\n  background-color: rgba(0, 0, 0, 0);\n  font-weight: 600;\n  font-size: 1.1rem;\n}\n#menu-social-media {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: baseline;\n  justify-content: flex-end;\n}\n#menu-social-media li {\n  margin: 0;\n  flex: 0 0 auto;\n  text-align: center;\n}\n#menu-social-media a {\n  display: block;\n  width: 1.5em;\n  height: 1.5em;\n  font-size: 2.3em !important;\n  padding: 0 2rem;\n  overflow: hidden;\n}\n#wrapper-footer a {\n  color: #f9f4f4;\n}\n#menu-social-media::before {\n  content: \"Be social with us.\";\n  font-size: 1.5rem;\n}\n#menu-social-media a[href*=facebook]::before {\n  content: \"\uf09a\";\n}\n#menu-social-media a[href*=twitter]::before {\n  content: \"\uf099\";\n}\n#menu-social-media a[href*=youtube]::before {\n  content: \"\uf167\";\n}\n#menu-social-media a::before {\n  display: inline-block;\n  font-family: \"FontAwesome\";\n}\n.wp-block-image > figure, figure.wp-block-image {\n  display: block;\n}\n#wrapper-footer a {\n  color: #f9f4f4;\n}\n#secondary img, article img, figure, img, img.wp-post-image {\n  max-width: 100%;\n  height: auto;\n}\nfigure {\n  margin: 0 0 1rem;\n}\na:hover, .wp-block-buttons .wp-block-button__link:hover {\n  color: #a770a1;\n}\n.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link {\n  background-color: #7f547b;\n  border: none;\n  color: #f9f4f4;\n  border-radius: 10em;\n  padding: 0.375rem 2rem;\n}\na:hover {\n  color: #a770a1 !important;\n}\n#block-38 {\n  margin-bottom: -20px;\n}\nli.menu-item a {\n  text-align: right !important;\n}\n#menu-footer li a {\n  font-size: 1.1rem !important;\n  font-weight: 600 !important;\n}\n.menu-social-media-container {\n  margin-bottom: -38px !important;\n}\n@media only screen and (min-width: 768px) {\n  .widget {\n    padding: 0 !important;\n    margin: 0 !important;\n  }\n\n  ul#menu-social-media li.menu-item a {\n    padding: 0 2rem !important;\n  }\n}\n#nav_menu-4 {\n  margin-top: auto !important;\n}\nli.menu-item a {\n  padding: 0px !important;\n}\n@media (min-width: 1200px) {\n  #wrapper-footer {\n    padding: 7rem;\n  }\n}\n#wrapper-footer {\n  background-color: #382f44;\n  color: #f9f4f4;\n}\n#block-38 {\n  padding-top: 8px !important;\n}\n#block-38 {\n  margin-bottom: -20px !important;\n}\n#nav_menu-4 {\n  margin-bottom: -29px !important;\n}\n.social-links li a.facebook-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='FB' xmlns='http://www.w3.org/2000/svg' width='24' height='24.001' viewBox='0 0 24 24.001'%3E%3Cpath id='FB_rest' data-name='FB rest' d='M130.231,640.174H108.88a1.325,1.325,0,0,0-1.325,1.325V662.85a1.325,1.325,0,0,0,1.325,1.324h11.675v-9h-3v-4h3v-2.6c0-3.1,1.779-4.788,4.375-4.788a22.655,22.655,0,0,1,2.625.143v3.24h-1.238c-1.476,0-1.762.7-1.762,1.731v2.269h3.213l-.467,4h-2.746v9h5.676a1.324,1.324,0,0,0,1.324-1.324V641.5A1.325,1.325,0,0,0,130.231,640.174Z' transform='translate(-107.555 -640.173)' fill='%23F9F4F4'/%3E%3Cg id='FB_active' data-name='FB active' transform='translate(-107.555 -674.174)' opacity='0'%3E%3Cpath id='Blue' d='M1.324,0H22.675A1.325,1.325,0,0,1,24,1.325V22.676A1.324,1.324,0,0,1,22.676,24H1.325A1.325,1.325,0,0,1,0,22.675V1.324A1.324,1.324,0,0,1,1.324,0Z' transform='translate(107.555 674.174)' fill='%233d5a98'/%3E%3Cpath id='f' d='M124.555,698.174v-9H127.3l.467-4h-3.213v-2.269c0-1.029.286-1.731,1.762-1.731h1.238v-3.24a22.655,22.655,0,0,0-2.625-.143c-2.6,0-4.375,1.688-4.375,4.788v2.6h-3v4h3v9Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.facebook-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='FB' xmlns='http://www.w3.org/2000/svg' width='24' height='24.001' viewBox='0 0 24 24.001'%3E%3Cpath id='FB_rest' data-name='FB rest' d='M130.231,640.174H108.88a1.325,1.325,0,0,0-1.325,1.325V662.85a1.325,1.325,0,0,0,1.325,1.324h11.675v-9h-3v-4h3v-2.6c0-3.1,1.779-4.788,4.375-4.788a22.655,22.655,0,0,1,2.625.143v3.24h-1.238c-1.476,0-1.762.7-1.762,1.731v2.269h3.213l-.467,4h-2.746v9h5.676a1.324,1.324,0,0,0,1.324-1.324V641.5A1.325,1.325,0,0,0,130.231,640.174Z' transform='translate(-107.555 -640.173)' fill='%233D5A98'/%3E%3Cg id='FB_active' data-name='FB active' transform='translate(-107.555 -674.174)' opacity='0'%3E%3Cpath id='Blue' d='M1.324,0H22.675A1.325,1.325,0,0,1,24,1.325V22.676A1.324,1.324,0,0,1,22.676,24H1.325A1.325,1.325,0,0,1,0,22.675V1.324A1.324,1.324,0,0,1,1.324,0Z' transform='translate(107.555 674.174)' fill='%233d5a98'/%3E%3Cpath id='f' d='M124.555,698.174v-9H127.3l.467-4h-3.213v-2.269c0-1.029.286-1.731,1.762-1.731h1.238v-3.24a22.655,22.655,0,0,0-2.625-.143c-2.6,0-4.375,1.688-4.375,4.788v2.6h-3v4h3v9Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.twitter-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1227' viewBox='0 0 1200 1227' fill='none'%3E%3Cpath d='M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z' fill='%23F9F4F4'/%3E%3C/svg%3E\");\n}\n.social-links li a.twitter-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1227' viewBox='0 0 1200 1227' fill='none'%3E%3Cpath d='M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z' fill='%23000000'/%3E%3C/svg%3E\");\n}\n.social-links li a.linkedin-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='LinkedIn' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath id='LinkedIn_rest' data-name='LinkedIn rest' d='M182.532,664.174h20.047a1.976,1.976,0,0,0,1.976-1.976V642.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V662.2A1.977,1.977,0,0,0,182.532,664.174Zm7.2-14.823h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V649.351Zm-5.647,11.294h3.529V649.351h-3.529ZM188,645.468a2.153,2.153,0,1,1-2.153-2.153A2.154,2.154,0,0,1,188,645.468Z' transform='translate(-180.555 -640.174)' fill='%23F9F4F4' fill-rule='evenodd'/%3E%3Cg id='LinkedIn_active' data-name='LinkedIn active' transform='translate(-180.555 -674.174)' opacity='0'%3E%3Cpath id='Path_268' data-name='Path 268' d='M182.532,698.174h20.047a1.976,1.976,0,0,0,1.976-1.976V676.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V696.2A1.977,1.977,0,0,0,182.532,698.174Z' fill='%232867b2' fill-rule='evenodd'/%3E%3Cpath id='Path_269' data-name='Path 269' d='M189.732,683.351h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V683.351Z' fill='%23fff' fill-rule='evenodd'/%3E%3Crect id='Rectangle_37' data-name='Rectangle 37' width='3.529' height='11.294' transform='translate(184.085 683.351)' fill='%23fff'/%3E%3Ccircle id='Ellipse_18' data-name='Ellipse 18' cx='2.153' cy='2.153' r='2.153' transform='translate(183.696 677.315)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.linkedin-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='LinkedIn' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath id='LinkedIn_rest' data-name='LinkedIn rest' d='M182.532,664.174h20.047a1.976,1.976,0,0,0,1.976-1.976V642.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V662.2A1.977,1.977,0,0,0,182.532,664.174Zm7.2-14.823h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V649.351Zm-5.647,11.294h3.529V649.351h-3.529ZM188,645.468a2.153,2.153,0,1,1-2.153-2.153A2.154,2.154,0,0,1,188,645.468Z' transform='translate(-180.555 -640.174)' fill='%232867B2' fill-rule='evenodd'/%3E%3Cg id='LinkedIn_active' data-name='LinkedIn active' transform='translate(-180.555 -674.174)' opacity='0'%3E%3Cpath id='Path_268' data-name='Path 268' d='M182.532,698.174h20.047a1.976,1.976,0,0,0,1.976-1.976V676.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V696.2A1.977,1.977,0,0,0,182.532,698.174Z' fill='%232867b2' fill-rule='evenodd'/%3E%3Cpath id='Path_269' data-name='Path 269' d='M189.732,683.351h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V683.351Z' fill='%23fff' fill-rule='evenodd'/%3E%3Crect id='Rectangle_37' data-name='Rectangle 37' width='3.529' height='11.294' transform='translate(184.085 683.351)' fill='%23fff'/%3E%3Ccircle id='Ellipse_18' data-name='Ellipse 18' cx='2.153' cy='2.153' r='2.153' transform='translate(183.696 677.315)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.youtube-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='YouTube' xmlns='http://www.w3.org/2000/svg' width='34' height='24' viewBox='0 0 34 24'%3E%3Cpath id='YouTube_rest' data-name='YouTube rest' d='M247.845,643.922a4.279,4.279,0,0,0-3.006-3.032c-2.652-.716-13.284-.716-13.284-.716s-10.632,0-13.284.716a4.279,4.279,0,0,0-3,3.032,48.248,48.248,0,0,0,0,16.505,4.278,4.278,0,0,0,3,3.031c2.652.716,13.284.716,13.284.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.031,48.316,48.316,0,0,0,0-16.505Zm-19.29,13.317v-10.13l8.9,5.065Z' transform='translate(-214.555 -640.174)' fill='%23F9F4F4'/%3E%3Cg id='YouTube_active' data-name='YouTube active' transform='translate(-214.555 -674.174)' opacity='0'%3E%3Cpath id='Path_270' data-name='Path 270' d='M247.845,677.922a4.276,4.276,0,0,0-3.006-3.031c-2.652-.717-13.284-.717-13.284-.717s-10.632,0-13.283.717a4.276,4.276,0,0,0-3.006,3.031,48.242,48.242,0,0,0,0,16.5,4.277,4.277,0,0,0,3.006,3.032c2.651.716,13.283.716,13.283.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.032,48.31,48.31,0,0,0,0-16.5Z' fill='red'/%3E%3Cpath id='Path_271' data-name='Path 271' d='M228.555,691.239l8.9-5.065-8.9-5.065Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.youtube-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='YouTube' xmlns='http://www.w3.org/2000/svg' width='34' height='24' viewBox='0 0 34 24'%3E%3Cpath id='YouTube_rest' data-name='YouTube rest' d='M247.845,643.922a4.279,4.279,0,0,0-3.006-3.032c-2.652-.716-13.284-.716-13.284-.716s-10.632,0-13.284.716a4.279,4.279,0,0,0-3,3.032,48.248,48.248,0,0,0,0,16.505,4.278,4.278,0,0,0,3,3.031c2.652.716,13.284.716,13.284.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.031,48.316,48.316,0,0,0,0-16.505Zm-19.29,13.317v-10.13l8.9,5.065Z' transform='translate(-214.555 -640.174)' fill='%23FF0000'/%3E%3Cg id='YouTube_active' data-name='YouTube active' transform='translate(-214.555 -674.174)' opacity='0'%3E%3Cpath id='Path_270' data-name='Path 270' d='M247.845,677.922a4.276,4.276,0,0,0-3.006-3.031c-2.652-.717-13.284-.717-13.284-.717s-10.632,0-13.283.717a4.276,4.276,0,0,0-3.006,3.031,48.242,48.242,0,0,0,0,16.5,4.277,4.277,0,0,0,3.006,3.032c2.651.716,13.283.716,13.283.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.032,48.31,48.31,0,0,0,0-16.5Z' fill='red'/%3E%3Cpath id='Path_271' data-name='Path 271' d='M228.555,691.239l8.9-5.065-8.9-5.065Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.instagram-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='25' height='25' viewBox='0 0 25 25'%3E%3Cdefs%3E%3ClinearGradient id='linear-gradient' x1='0.086' y1='0.92' x2='0.899' y2='0.072' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23ffd521'/%3E%3Cstop offset='0.05' stop-color='%23ffd521'/%3E%3Cstop offset='0.501' stop-color='%23f50000'/%3E%3Cstop offset='0.95' stop-color='%23b900b4'/%3E%3Cstop offset='1' stop-color='%23b900b4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='IG' transform='translate(0.5 0.5)'%3E%3Cg id='IG_rest' data-name='IG rest' transform='translate(-258.555 -640.173)'%3E%3Cpath id='Path_272' data-name='Path 272' d='M278.4,645.769a1.441,1.441,0,1,0-1.441,1.439,1.441,1.441,0,0,0,1.441-1.439' fill='%23f9f4f4'/%3E%3Cpath id='Path_273' data-name='Path 273' d='M280.322,657.023a6.7,6.7,0,0,1-.412,2.228,3.7,3.7,0,0,1-.9,1.38,3.665,3.665,0,0,1-1.377.9,6.685,6.685,0,0,1-2.231.417c-1.265.056-1.64.068-4.847.068s-3.583-.012-4.848-.068a6.649,6.649,0,0,1-2.227-.417,3.966,3.966,0,0,1-2.279-2.275,6.645,6.645,0,0,1-.412-2.228c-.061-1.265-.072-1.646-.072-4.847s.011-3.586.072-4.851a6.686,6.686,0,0,1,.412-2.231,3.651,3.651,0,0,1,.9-1.377,3.7,3.7,0,0,1,1.38-.9,6.645,6.645,0,0,1,2.227-.414c1.265-.056,1.643-.07,4.848-.07s3.582.014,4.847.07a6.681,6.681,0,0,1,2.231.414,4.006,4.006,0,0,1,2.278,2.275,6.74,6.74,0,0,1,.412,2.231c.058,1.265.073,1.643.073,4.851s-.015,3.582-.073,4.847Zm2.16-9.8a8.708,8.708,0,0,0-.56-2.913,5.847,5.847,0,0,0-1.382-2.128,5.912,5.912,0,0,0-2.124-1.383,8.773,8.773,0,0,0-2.914-.556c-1.279-.062-1.688-.073-4.948-.073s-3.67.011-4.949.073a8.8,8.8,0,0,0-2.913.556,6.137,6.137,0,0,0-3.507,3.511,8.862,8.862,0,0,0-.56,2.913c-.056,1.279-.07,1.688-.07,4.949s.014,3.666.07,4.945a8.913,8.913,0,0,0,.56,2.914,6.156,6.156,0,0,0,3.507,3.509,8.848,8.848,0,0,0,2.913.557c1.279.059,1.691.073,4.949.073s3.669-.014,4.948-.073a8.822,8.822,0,0,0,2.914-.557,6.136,6.136,0,0,0,3.506-3.509,8.758,8.758,0,0,0,.56-2.914c.059-1.279.073-1.688.073-4.945s-.014-3.67-.073-4.949Z' fill='%23f9f4f4'/%3E%3Cpath id='Path_274' data-name='Path 274' d='M270.554,656.172a4,4,0,1,1,4-4A4,4,0,0,1,270.554,656.172Zm0-10.162a6.163,6.163,0,1,0,6.163,6.166A6.163,6.163,0,0,0,270.554,646.01Z' fill='%23f9f4f4'/%3E%3C/g%3E%3Cpath id='IG_active' data-name='IG active' d='M-920.395-4575.9a8.85,8.85,0,0,1-2.913-.557,5.9,5.9,0,0,1-2.123-1.385,5.881,5.881,0,0,1-1.384-2.124,8.874,8.874,0,0,1-.56-2.914c-.057-1.279-.07-1.688-.07-4.946s.014-3.67.07-4.949a8.814,8.814,0,0,1,.56-2.913,5.886,5.886,0,0,1,1.384-2.129,5.929,5.929,0,0,1,2.123-1.383,8.791,8.791,0,0,1,2.913-.555c1.279-.062,1.691-.074,4.949-.074s3.669.012,4.948.074a8.762,8.762,0,0,1,2.914.555,5.913,5.913,0,0,1,2.124,1.383,5.853,5.853,0,0,1,1.383,2.129,8.753,8.753,0,0,1,.56,2.913c.059,1.279.073,1.688.073,4.949s-.014,3.667-.073,4.946a8.813,8.813,0,0,1-.56,2.914,5.848,5.848,0,0,1-1.383,2.124,5.888,5.888,0,0,1-2.124,1.385,8.82,8.82,0,0,1-2.914.557c-1.279.059-1.688.073-4.948.073S-919.116-4575.84-920.395-4575.9Zm.1-21.7a6.7,6.7,0,0,0-2.227.414,3.725,3.725,0,0,0-1.38.9,3.665,3.665,0,0,0-.9,1.377,6.7,6.7,0,0,0-.412,2.231c-.061,1.265-.072,1.643-.072,4.851s.01,3.582.072,4.848a6.658,6.658,0,0,0,.412,2.228,3.668,3.668,0,0,0,.9,1.379,3.664,3.664,0,0,0,1.38.895,6.663,6.663,0,0,0,2.227.418c1.265.055,1.644.067,4.849.067s3.582-.012,4.847-.067a6.69,6.69,0,0,0,2.23-.418,3.655,3.655,0,0,0,1.377-.895,3.7,3.7,0,0,0,.9-1.379,6.717,6.717,0,0,0,.412-2.228c.058-1.266.073-1.646.073-4.848s-.015-3.585-.073-4.851a6.756,6.756,0,0,0-.412-2.231,3.7,3.7,0,0,0-.9-1.377,3.717,3.717,0,0,0-1.377-.9,6.722,6.722,0,0,0-2.23-.414c-1.265-.055-1.64-.07-4.847-.07S-919.029-4597.65-920.295-4597.6Zm-1.311,9.771a6.162,6.162,0,0,1,6.16-6.166,6.165,6.165,0,0,1,6.163,6.166,6.164,6.164,0,0,1-6.163,6.16A6.16,6.16,0,0,1-921.606-4587.824Zm2.16,0a4,4,0,0,0,4,4,4,4,0,0,0,4-4,4,4,0,0,0-4-4A4,4,0,0,0-919.446-4587.824Zm8.965-6.407a1.441,1.441,0,0,1,1.441-1.442,1.441,1.441,0,0,1,1.441,1.442,1.44,1.44,0,0,1-1.441,1.439A1.441,1.441,0,0,1-910.481-4594.231Z' transform='translate(927.445 4599.827)' stroke='rgba(0,0,0,0)' stroke-miterlimit='10' stroke-width='1' opacity='0' fill='url(%23linear-gradient)'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.social-links li a.instagram-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='25' height='25' viewBox='0 0 25 25'%3E%3Cdefs%3E%3ClinearGradient id='linear-gradient' x1='0.086' y1='0.92' x2='0.899' y2='0.072' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23ffd521'/%3E%3Cstop offset='0.05' stop-color='%23ffd521'/%3E%3Cstop offset='0.501' stop-color='%23f50000'/%3E%3Cstop offset='0.95' stop-color='%23b900b4'/%3E%3Cstop offset='1' stop-color='%23b900b4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='IG' transform='translate(0.5 0.5)'%3E%3Cg id='IG_rest' data-name='IG rest' transform='translate(-258.555 -640.173)' opacity='0'%3E%3Cpath id='Path_272' data-name='Path 272' d='M278.4,645.769a1.441,1.441,0,1,0-1.441,1.439,1.441,1.441,0,0,0,1.441-1.439' fill='%23f9f4f4'/%3E%3Cpath id='Path_273' data-name='Path 273' d='M280.322,657.023a6.7,6.7,0,0,1-.412,2.228,3.7,3.7,0,0,1-.9,1.38,3.665,3.665,0,0,1-1.377.9,6.685,6.685,0,0,1-2.231.417c-1.265.056-1.64.068-4.847.068s-3.583-.012-4.848-.068a6.649,6.649,0,0,1-2.227-.417,3.966,3.966,0,0,1-2.279-2.275,6.645,6.645,0,0,1-.412-2.228c-.061-1.265-.072-1.646-.072-4.847s.011-3.586.072-4.851a6.686,6.686,0,0,1,.412-2.231,3.651,3.651,0,0,1,.9-1.377,3.7,3.7,0,0,1,1.38-.9,6.645,6.645,0,0,1,2.227-.414c1.265-.056,1.643-.07,4.848-.07s3.582.014,4.847.07a6.681,6.681,0,0,1,2.231.414,4.006,4.006,0,0,1,2.278,2.275,6.74,6.74,0,0,1,.412,2.231c.058,1.265.073,1.643.073,4.851s-.015,3.582-.073,4.847Zm2.16-9.8a8.708,8.708,0,0,0-.56-2.913,5.847,5.847,0,0,0-1.382-2.128,5.912,5.912,0,0,0-2.124-1.383,8.773,8.773,0,0,0-2.914-.556c-1.279-.062-1.688-.073-4.948-.073s-3.67.011-4.949.073a8.8,8.8,0,0,0-2.913.556,6.137,6.137,0,0,0-3.507,3.511,8.862,8.862,0,0,0-.56,2.913c-.056,1.279-.07,1.688-.07,4.949s.014,3.666.07,4.945a8.913,8.913,0,0,0,.56,2.914,6.156,6.156,0,0,0,3.507,3.509,8.848,8.848,0,0,0,2.913.557c1.279.059,1.691.073,4.949.073s3.669-.014,4.948-.073a8.822,8.822,0,0,0,2.914-.557,6.136,6.136,0,0,0,3.506-3.509,8.758,8.758,0,0,0,.56-2.914c.059-1.279.073-1.688.073-4.945s-.014-3.67-.073-4.949Z' fill='%23f9f4f4'/%3E%3Cpath id='Path_274' data-name='Path 274' d='M270.554,656.172a4,4,0,1,1,4-4A4,4,0,0,1,270.554,656.172Zm0-10.162a6.163,6.163,0,1,0,6.163,6.166A6.163,6.163,0,0,0,270.554,646.01Z' fill='%23f9f4f4'/%3E%3C/g%3E%3Cpath id='IG_active' data-name='IG active' d='M-920.395-4575.9a8.85,8.85,0,0,1-2.913-.557,5.9,5.9,0,0,1-2.123-1.385,5.881,5.881,0,0,1-1.384-2.124,8.874,8.874,0,0,1-.56-2.914c-.057-1.279-.07-1.688-.07-4.946s.014-3.67.07-4.949a8.814,8.814,0,0,1,.56-2.913,5.886,5.886,0,0,1,1.384-2.129,5.929,5.929,0,0,1,2.123-1.383,8.791,8.791,0,0,1,2.913-.555c1.279-.062,1.691-.074,4.949-.074s3.669.012,4.948.074a8.762,8.762,0,0,1,2.914.555,5.913,5.913,0,0,1,2.124,1.383,5.853,5.853,0,0,1,1.383,2.129,8.753,8.753,0,0,1,.56,2.913c.059,1.279.073,1.688.073,4.949s-.014,3.667-.073,4.946a8.813,8.813,0,0,1-.56,2.914,5.848,5.848,0,0,1-1.383,2.124,5.888,5.888,0,0,1-2.124,1.385,8.82,8.82,0,0,1-2.914.557c-1.279.059-1.688.073-4.948.073S-919.116-4575.84-920.395-4575.9Zm.1-21.7a6.7,6.7,0,0,0-2.227.414,3.725,3.725,0,0,0-1.38.9,3.665,3.665,0,0,0-.9,1.377,6.7,6.7,0,0,0-.412,2.231c-.061,1.265-.072,1.643-.072,4.851s.01,3.582.072,4.848a6.658,6.658,0,0,0,.412,2.228,3.668,3.668,0,0,0,.9,1.379,3.664,3.664,0,0,0,1.38.895,6.663,6.663,0,0,0,2.227.418c1.265.055,1.644.067,4.849.067s3.582-.012,4.847-.067a6.69,6.69,0,0,0,2.23-.418,3.655,3.655,0,0,0,1.377-.895,3.7,3.7,0,0,0,.9-1.379,6.717,6.717,0,0,0,.412-2.228c.058-1.266.073-1.646.073-4.848s-.015-3.585-.073-4.851a6.756,6.756,0,0,0-.412-2.231,3.7,3.7,0,0,0-.9-1.377,3.717,3.717,0,0,0-1.377-.9,6.722,6.722,0,0,0-2.23-.414c-1.265-.055-1.64-.07-4.847-.07S-919.029-4597.65-920.295-4597.6Zm-1.311,9.771a6.162,6.162,0,0,1,6.16-6.166,6.165,6.165,0,0,1,6.163,6.166,6.164,6.164,0,0,1-6.163,6.16A6.16,6.16,0,0,1-921.606-4587.824Zm2.16,0a4,4,0,0,0,4,4,4,4,0,0,0,4-4,4,4,0,0,0-4-4A4,4,0,0,0-919.446-4587.824Zm8.965-6.407a1.441,1.441,0,0,1,1.441-1.442,1.441,1.441,0,0,1,1.441,1.442,1.44,1.44,0,0,1-1.441,1.439A1.441,1.441,0,0,1-910.481-4594.231Z' transform='translate(927.445 4599.827)' stroke='rgba(0,0,0,0)' stroke-miterlimit='10' stroke-width='1' fill='url(%23linear-gradient)'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\np#socials-container {\n  font-weight: 600;\n  font-size: 30px;\n  line-height: 30px;\n  color: #f9f9f9;\n  margin-right: 30px;\n  float: left;\n}\n.social-links li a {\n  display: block;\n  font-size: 0;\n  background-position: center;\n  background-size: contain;\n  background-repeat: no-repeat;\n  height: 25px;\n  width: 25px;\n  min-width: 25px;\n  transition: all 0.3s ease-in-out;\n}\n.social-links {\n  display: flex;\n  align-items: center;\n  gap: 36px;\n  list-style: none;\n  padding: 0;\n  margin: 0;\n}\n.footer {\n  padding: 120px 0;\n  background-color: #382f44;\n}\n@media screen and (max-width: 768px) {\n  .footer {\n    padding: 50px 0;\n  }\n}\n.footer .top-section {\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n  width: 100%;\n  gap: 50px;\n}\n@media screen and (max-width: 1200px) {\n  .footer .top-section {\n    flex-direction: column;\n  }\n}\n@media screen and (max-width: 768px) {\n  .footer .top-section {\n    gap: 25px;\n  }\n}\n@media screen and (max-width: 768px) {\n  .footer .top-section .footer-logo-container {\n    display: flex;\n    justify-content: center;\n    text-align: center;\n    width: 100%;\n  }\n}\n.footer .top-section .footer-logo-container #footer-logo {\n  display: block;\n  width: 270px;\n  height: 60px;\n}\n.footer .top-section .footer-logo-container #footer-logo img {\n  width: 100%;\n  height: 100%;\n  -o-object-fit: contain;\n  object-fit: contain;\n}\n.footer .top-section .footer-menu {\n  color: #f9f9f9;\n}\n@media screen and (max-width: 768px) {\n  .footer .top-section .footer-menu {\n    width: 100%;\n  }\n}\n.footer .top-section .footer-menu .menu-footer-container ul,\n.footer .top-section .footer-menu .menu-footer-spanish-container ul {\n  display: flex;\n  align-items: center;\n  flex-wrap: wrap;\n  row-gap: 25px;\n  list-style: none;\n  padding: 0;\n  margin: 0;\n}\n@media screen and (max-width: 1200px) {\n  .footer .top-section .footer-menu .menu-footer-container ul,\n.footer .top-section .footer-menu .menu-footer-spanish-container ul {\n    margin-left: -25px;\n  }\n}\n@media screen and (max-width: 768px) {\n  .footer .top-section .footer-menu .menu-footer-container ul,\n.footer .top-section .footer-menu .menu-footer-spanish-container ul {\n    flex-direction: column;\n    align-items: flex-start;\n  }\n}\n@media screen and (max-width: 768px) {\n  .footer .top-section .footer-menu .menu-footer-container ul,\n.footer .top-section .footer-menu .menu-footer-spanish-container ul {\n    align-items: center;\n  }\n}\n.footer .top-section .footer-menu .menu-footer-container ul li,\n.footer .top-section .footer-menu .menu-footer-spanish-container ul li {\n  font-size: 18px;\n  line-height: 23px;\n  font-weight: 600;\n  padding: 0 25px;\n  transform: translateY(0);\n  transition: all 0.3s ease-in-out;\n  letter-spacing: 0.18px;\n}\n.footer .top-section .footer-menu .menu-footer-container ul li:hover,\n.footer .top-section .footer-menu .menu-footer-spanish-container ul li:hover {\n  transform: translateY(-5px);\n}\n.footer .middle-section {\n  margin-top: 100px;\n  display: flex;\n  align-items: stretch;\n  justify-content: space-between;\n  gap: 50px;\n}\n@media screen and (max-width: 768px) {\n  .footer .middle-section {\n    margin-top: 25px;\n    flex-direction: column;\n    justify-content: center;\n    align-items: center;\n  }\n}\n.footer .middle-section .affiliations-container {\n  display: flex;\n  flex-direction: column;\n  gap: 40px;\n}\n@media screen and (max-width: 768px) {\n  .footer .middle-section .affiliations-container {\n    gap: 25px;\n  }\n}\n.footer .middle-section .socials-container {\n  display: flex;\n  align-items: flex-end;\n}\n.footer .middle-section .socials-container p {\n  font-weight: 600;\n  font-size: 30px;\n  line-height: 30px;\n  color: #f9f9f9;\n  margin-right: 30px;\n}\n.footer .middle-section .socials-container .socials-inner {\n  display: flex;\n  align-items: center;\n}\n@media screen and (max-width: 768px) {\n  .footer .middle-section .socials-container .socials-inner {\n    flex-direction: column;\n    gap: 25px;\n  }\n}\n@media screen and (max-width: 768px) {\n  .footer .middle-section .socials-container .socials-inner p {\n    font-size: 18px;\n  }\n}\n.footer .middle-section .socials-container .social-links {\n  display: flex;\n  align-items: center;\n  gap: 36px;\n  list-style: none;\n  padding: 0;\n  margin: 0;\n}\n.footer .middle-section .socials-container .social-links li {\n  padding: 0;\n  margin: 0;\n}\n.footer .middle-section .socials-container .social-links li a {\n  display: block;\n  font-size: 0;\n  background-position: center;\n  background-size: contain;\n  background-repeat: no-repeat;\n  height: 25px;\n  width: 25px;\n  min-width: 25px;\n  transition: all 0.3s ease-in-out;\n}\n.footer .middle-section .socials-container .social-links li a.facebook-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='FB' xmlns='http://www.w3.org/2000/svg' width='24' height='24.001' viewBox='0 0 24 24.001'%3E%3Cpath id='FB_rest' data-name='FB rest' d='M130.231,640.174H108.88a1.325,1.325,0,0,0-1.325,1.325V662.85a1.325,1.325,0,0,0,1.325,1.324h11.675v-9h-3v-4h3v-2.6c0-3.1,1.779-4.788,4.375-4.788a22.655,22.655,0,0,1,2.625.143v3.24h-1.238c-1.476,0-1.762.7-1.762,1.731v2.269h3.213l-.467,4h-2.746v9h5.676a1.324,1.324,0,0,0,1.324-1.324V641.5A1.325,1.325,0,0,0,130.231,640.174Z' transform='translate(-107.555 -640.173)' fill='%23F9F4F4'/%3E%3Cg id='FB_active' data-name='FB active' transform='translate(-107.555 -674.174)' opacity='0'%3E%3Cpath id='Blue' d='M1.324,0H22.675A1.325,1.325,0,0,1,24,1.325V22.676A1.324,1.324,0,0,1,22.676,24H1.325A1.325,1.325,0,0,1,0,22.675V1.324A1.324,1.324,0,0,1,1.324,0Z' transform='translate(107.555 674.174)' fill='%233d5a98'/%3E%3Cpath id='f' d='M124.555,698.174v-9H127.3l.467-4h-3.213v-2.269c0-1.029.286-1.731,1.762-1.731h1.238v-3.24a22.655,22.655,0,0,0-2.625-.143c-2.6,0-4.375,1.688-4.375,4.788v2.6h-3v4h3v9Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.facebook-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='FB' xmlns='http://www.w3.org/2000/svg' width='24' height='24.001' viewBox='0 0 24 24.001'%3E%3Cpath id='FB_rest' data-name='FB rest' d='M130.231,640.174H108.88a1.325,1.325,0,0,0-1.325,1.325V662.85a1.325,1.325,0,0,0,1.325,1.324h11.675v-9h-3v-4h3v-2.6c0-3.1,1.779-4.788,4.375-4.788a22.655,22.655,0,0,1,2.625.143v3.24h-1.238c-1.476,0-1.762.7-1.762,1.731v2.269h3.213l-.467,4h-2.746v9h5.676a1.324,1.324,0,0,0,1.324-1.324V641.5A1.325,1.325,0,0,0,130.231,640.174Z' transform='translate(-107.555 -640.173)' fill='%233D5A98'/%3E%3Cg id='FB_active' data-name='FB active' transform='translate(-107.555 -674.174)' opacity='0'%3E%3Cpath id='Blue' d='M1.324,0H22.675A1.325,1.325,0,0,1,24,1.325V22.676A1.324,1.324,0,0,1,22.676,24H1.325A1.325,1.325,0,0,1,0,22.675V1.324A1.324,1.324,0,0,1,1.324,0Z' transform='translate(107.555 674.174)' fill='%233d5a98'/%3E%3Cpath id='f' d='M124.555,698.174v-9H127.3l.467-4h-3.213v-2.269c0-1.029.286-1.731,1.762-1.731h1.238v-3.24a22.655,22.655,0,0,0-2.625-.143c-2.6,0-4.375,1.688-4.375,4.788v2.6h-3v4h3v9Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.twitter-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1227' viewBox='0 0 1200 1227' fill='none'%3E%3Cpath d='M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z' fill='%23F9F4F4'/%3E%3C/svg%3E\");\n}\n.footer .middle-section .socials-container .social-links li a.twitter-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1227' viewBox='0 0 1200 1227' fill='none'%3E%3Cpath d='M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z' fill='%23000000'/%3E%3C/svg%3E\");\n}\n.footer .middle-section .socials-container .social-links li a.linkedin-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='LinkedIn' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath id='LinkedIn_rest' data-name='LinkedIn rest' d='M182.532,664.174h20.047a1.976,1.976,0,0,0,1.976-1.976V642.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V662.2A1.977,1.977,0,0,0,182.532,664.174Zm7.2-14.823h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V649.351Zm-5.647,11.294h3.529V649.351h-3.529ZM188,645.468a2.153,2.153,0,1,1-2.153-2.153A2.154,2.154,0,0,1,188,645.468Z' transform='translate(-180.555 -640.174)' fill='%23F9F4F4' fill-rule='evenodd'/%3E%3Cg id='LinkedIn_active' data-name='LinkedIn active' transform='translate(-180.555 -674.174)' opacity='0'%3E%3Cpath id='Path_268' data-name='Path 268' d='M182.532,698.174h20.047a1.976,1.976,0,0,0,1.976-1.976V676.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V696.2A1.977,1.977,0,0,0,182.532,698.174Z' fill='%232867b2' fill-rule='evenodd'/%3E%3Cpath id='Path_269' data-name='Path 269' d='M189.732,683.351h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V683.351Z' fill='%23fff' fill-rule='evenodd'/%3E%3Crect id='Rectangle_37' data-name='Rectangle 37' width='3.529' height='11.294' transform='translate(184.085 683.351)' fill='%23fff'/%3E%3Ccircle id='Ellipse_18' data-name='Ellipse 18' cx='2.153' cy='2.153' r='2.153' transform='translate(183.696 677.315)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.linkedin-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='LinkedIn' xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath id='LinkedIn_rest' data-name='LinkedIn rest' d='M182.532,664.174h20.047a1.976,1.976,0,0,0,1.976-1.976V642.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V662.2A1.977,1.977,0,0,0,182.532,664.174Zm7.2-14.823h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V649.351Zm-5.647,11.294h3.529V649.351h-3.529ZM188,645.468a2.153,2.153,0,1,1-2.153-2.153A2.154,2.154,0,0,1,188,645.468Z' transform='translate(-180.555 -640.174)' fill='%232867B2' fill-rule='evenodd'/%3E%3Cg id='LinkedIn_active' data-name='LinkedIn active' transform='translate(-180.555 -674.174)' opacity='0'%3E%3Cpath id='Path_268' data-name='Path 268' d='M182.532,698.174h20.047a1.976,1.976,0,0,0,1.976-1.976V676.151a1.977,1.977,0,0,0-1.976-1.977H182.532a1.977,1.977,0,0,0-1.977,1.977V696.2A1.977,1.977,0,0,0,182.532,698.174Z' fill='%232867b2' fill-rule='evenodd'/%3E%3Cpath id='Path_269' data-name='Path 269' d='M189.732,683.351h3.353v1.688a3.912,3.912,0,0,1,3.281-1.865c2.835,0,4.66,1.8,4.66,5.063v6.408H197.5v-5.658c0-1.875-.75-2.9-2.118-2.9-1.223,0-2.1.827-2.118,2.9v5.658h-3.529V683.351Z' fill='%23fff' fill-rule='evenodd'/%3E%3Crect id='Rectangle_37' data-name='Rectangle 37' width='3.529' height='11.294' transform='translate(184.085 683.351)' fill='%23fff'/%3E%3Ccircle id='Ellipse_18' data-name='Ellipse 18' cx='2.153' cy='2.153' r='2.153' transform='translate(183.696 677.315)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.youtube-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='YouTube' xmlns='http://www.w3.org/2000/svg' width='34' height='24' viewBox='0 0 34 24'%3E%3Cpath id='YouTube_rest' data-name='YouTube rest' d='M247.845,643.922a4.279,4.279,0,0,0-3.006-3.032c-2.652-.716-13.284-.716-13.284-.716s-10.632,0-13.284.716a4.279,4.279,0,0,0-3,3.032,48.248,48.248,0,0,0,0,16.505,4.278,4.278,0,0,0,3,3.031c2.652.716,13.284.716,13.284.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.031,48.316,48.316,0,0,0,0-16.505Zm-19.29,13.317v-10.13l8.9,5.065Z' transform='translate(-214.555 -640.174)' fill='%23F9F4F4'/%3E%3Cg id='YouTube_active' data-name='YouTube active' transform='translate(-214.555 -674.174)' opacity='0'%3E%3Cpath id='Path_270' data-name='Path 270' d='M247.845,677.922a4.276,4.276,0,0,0-3.006-3.031c-2.652-.717-13.284-.717-13.284-.717s-10.632,0-13.283.717a4.276,4.276,0,0,0-3.006,3.031,48.242,48.242,0,0,0,0,16.5,4.277,4.277,0,0,0,3.006,3.032c2.651.716,13.283.716,13.283.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.032,48.31,48.31,0,0,0,0-16.5Z' fill='red'/%3E%3Cpath id='Path_271' data-name='Path 271' d='M228.555,691.239l8.9-5.065-8.9-5.065Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.youtube-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg id='YouTube' xmlns='http://www.w3.org/2000/svg' width='34' height='24' viewBox='0 0 34 24'%3E%3Cpath id='YouTube_rest' data-name='YouTube rest' d='M247.845,643.922a4.279,4.279,0,0,0-3.006-3.032c-2.652-.716-13.284-.716-13.284-.716s-10.632,0-13.284.716a4.279,4.279,0,0,0-3,3.032,48.248,48.248,0,0,0,0,16.505,4.278,4.278,0,0,0,3,3.031c2.652.716,13.284.716,13.284.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.031,48.316,48.316,0,0,0,0-16.505Zm-19.29,13.317v-10.13l8.9,5.065Z' transform='translate(-214.555 -640.174)' fill='%23FF0000'/%3E%3Cg id='YouTube_active' data-name='YouTube active' transform='translate(-214.555 -674.174)' opacity='0'%3E%3Cpath id='Path_270' data-name='Path 270' d='M247.845,677.922a4.276,4.276,0,0,0-3.006-3.031c-2.652-.717-13.284-.717-13.284-.717s-10.632,0-13.283.717a4.276,4.276,0,0,0-3.006,3.031,48.242,48.242,0,0,0,0,16.5,4.277,4.277,0,0,0,3.006,3.032c2.651.716,13.283.716,13.283.716s10.632,0,13.284-.716a4.277,4.277,0,0,0,3.006-3.032,48.31,48.31,0,0,0,0-16.5Z' fill='red'/%3E%3Cpath id='Path_271' data-name='Path 271' d='M228.555,691.239l8.9-5.065-8.9-5.065Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.instagram-icon {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='25' height='25' viewBox='0 0 25 25'%3E%3Cdefs%3E%3ClinearGradient id='linear-gradient' x1='0.086' y1='0.92' x2='0.899' y2='0.072' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23ffd521'/%3E%3Cstop offset='0.05' stop-color='%23ffd521'/%3E%3Cstop offset='0.501' stop-color='%23f50000'/%3E%3Cstop offset='0.95' stop-color='%23b900b4'/%3E%3Cstop offset='1' stop-color='%23b900b4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='IG' transform='translate(0.5 0.5)'%3E%3Cg id='IG_rest' data-name='IG rest' transform='translate(-258.555 -640.173)'%3E%3Cpath id='Path_272' data-name='Path 272' d='M278.4,645.769a1.441,1.441,0,1,0-1.441,1.439,1.441,1.441,0,0,0,1.441-1.439' fill='%23f9f4f4'/%3E%3Cpath id='Path_273' data-name='Path 273' d='M280.322,657.023a6.7,6.7,0,0,1-.412,2.228,3.7,3.7,0,0,1-.9,1.38,3.665,3.665,0,0,1-1.377.9,6.685,6.685,0,0,1-2.231.417c-1.265.056-1.64.068-4.847.068s-3.583-.012-4.848-.068a6.649,6.649,0,0,1-2.227-.417,3.966,3.966,0,0,1-2.279-2.275,6.645,6.645,0,0,1-.412-2.228c-.061-1.265-.072-1.646-.072-4.847s.011-3.586.072-4.851a6.686,6.686,0,0,1,.412-2.231,3.651,3.651,0,0,1,.9-1.377,3.7,3.7,0,0,1,1.38-.9,6.645,6.645,0,0,1,2.227-.414c1.265-.056,1.643-.07,4.848-.07s3.582.014,4.847.07a6.681,6.681,0,0,1,2.231.414,4.006,4.006,0,0,1,2.278,2.275,6.74,6.74,0,0,1,.412,2.231c.058,1.265.073,1.643.073,4.851s-.015,3.582-.073,4.847Zm2.16-9.8a8.708,8.708,0,0,0-.56-2.913,5.847,5.847,0,0,0-1.382-2.128,5.912,5.912,0,0,0-2.124-1.383,8.773,8.773,0,0,0-2.914-.556c-1.279-.062-1.688-.073-4.948-.073s-3.67.011-4.949.073a8.8,8.8,0,0,0-2.913.556,6.137,6.137,0,0,0-3.507,3.511,8.862,8.862,0,0,0-.56,2.913c-.056,1.279-.07,1.688-.07,4.949s.014,3.666.07,4.945a8.913,8.913,0,0,0,.56,2.914,6.156,6.156,0,0,0,3.507,3.509,8.848,8.848,0,0,0,2.913.557c1.279.059,1.691.073,4.949.073s3.669-.014,4.948-.073a8.822,8.822,0,0,0,2.914-.557,6.136,6.136,0,0,0,3.506-3.509,8.758,8.758,0,0,0,.56-2.914c.059-1.279.073-1.688.073-4.945s-.014-3.67-.073-4.949Z' fill='%23f9f4f4'/%3E%3Cpath id='Path_274' data-name='Path 274' d='M270.554,656.172a4,4,0,1,1,4-4A4,4,0,0,1,270.554,656.172Zm0-10.162a6.163,6.163,0,1,0,6.163,6.166A6.163,6.163,0,0,0,270.554,646.01Z' fill='%23f9f4f4'/%3E%3C/g%3E%3Cpath id='IG_active' data-name='IG active' d='M-920.395-4575.9a8.85,8.85,0,0,1-2.913-.557,5.9,5.9,0,0,1-2.123-1.385,5.881,5.881,0,0,1-1.384-2.124,8.874,8.874,0,0,1-.56-2.914c-.057-1.279-.07-1.688-.07-4.946s.014-3.67.07-4.949a8.814,8.814,0,0,1,.56-2.913,5.886,5.886,0,0,1,1.384-2.129,5.929,5.929,0,0,1,2.123-1.383,8.791,8.791,0,0,1,2.913-.555c1.279-.062,1.691-.074,4.949-.074s3.669.012,4.948.074a8.762,8.762,0,0,1,2.914.555,5.913,5.913,0,0,1,2.124,1.383,5.853,5.853,0,0,1,1.383,2.129,8.753,8.753,0,0,1,.56,2.913c.059,1.279.073,1.688.073,4.949s-.014,3.667-.073,4.946a8.813,8.813,0,0,1-.56,2.914,5.848,5.848,0,0,1-1.383,2.124,5.888,5.888,0,0,1-2.124,1.385,8.82,8.82,0,0,1-2.914.557c-1.279.059-1.688.073-4.948.073S-919.116-4575.84-920.395-4575.9Zm.1-21.7a6.7,6.7,0,0,0-2.227.414,3.725,3.725,0,0,0-1.38.9,3.665,3.665,0,0,0-.9,1.377,6.7,6.7,0,0,0-.412,2.231c-.061,1.265-.072,1.643-.072,4.851s.01,3.582.072,4.848a6.658,6.658,0,0,0,.412,2.228,3.668,3.668,0,0,0,.9,1.379,3.664,3.664,0,0,0,1.38.895,6.663,6.663,0,0,0,2.227.418c1.265.055,1.644.067,4.849.067s3.582-.012,4.847-.067a6.69,6.69,0,0,0,2.23-.418,3.655,3.655,0,0,0,1.377-.895,3.7,3.7,0,0,0,.9-1.379,6.717,6.717,0,0,0,.412-2.228c.058-1.266.073-1.646.073-4.848s-.015-3.585-.073-4.851a6.756,6.756,0,0,0-.412-2.231,3.7,3.7,0,0,0-.9-1.377,3.717,3.717,0,0,0-1.377-.9,6.722,6.722,0,0,0-2.23-.414c-1.265-.055-1.64-.07-4.847-.07S-919.029-4597.65-920.295-4597.6Zm-1.311,9.771a6.162,6.162,0,0,1,6.16-6.166,6.165,6.165,0,0,1,6.163,6.166,6.164,6.164,0,0,1-6.163,6.16A6.16,6.16,0,0,1-921.606-4587.824Zm2.16,0a4,4,0,0,0,4,4,4,4,0,0,0,4-4,4,4,0,0,0-4-4A4,4,0,0,0-919.446-4587.824Zm8.965-6.407a1.441,1.441,0,0,1,1.441-1.442,1.441,1.441,0,0,1,1.441,1.442,1.44,1.44,0,0,1-1.441,1.439A1.441,1.441,0,0,1-910.481-4594.231Z' transform='translate(927.445 4599.827)' stroke='rgba(0,0,0,0)' stroke-miterlimit='10' stroke-width='1' opacity='0' fill='url(%23linear-gradient)'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .middle-section .socials-container .social-links li a.instagram-icon:hover {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='25' height='25' viewBox='0 0 25 25'%3E%3Cdefs%3E%3ClinearGradient id='linear-gradient' x1='0.086' y1='0.92' x2='0.899' y2='0.072' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23ffd521'/%3E%3Cstop offset='0.05' stop-color='%23ffd521'/%3E%3Cstop offset='0.501' stop-color='%23f50000'/%3E%3Cstop offset='0.95' stop-color='%23b900b4'/%3E%3Cstop offset='1' stop-color='%23b900b4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg id='IG' transform='translate(0.5 0.5)'%3E%3Cg id='IG_rest' data-name='IG rest' transform='translate(-258.555 -640.173)' opacity='0'%3E%3Cpath id='Path_272' data-name='Path 272' d='M278.4,645.769a1.441,1.441,0,1,0-1.441,1.439,1.441,1.441,0,0,0,1.441-1.439' fill='%23f9f4f4'/%3E%3Cpath id='Path_273' data-name='Path 273' d='M280.322,657.023a6.7,6.7,0,0,1-.412,2.228,3.7,3.7,0,0,1-.9,1.38,3.665,3.665,0,0,1-1.377.9,6.685,6.685,0,0,1-2.231.417c-1.265.056-1.64.068-4.847.068s-3.583-.012-4.848-.068a6.649,6.649,0,0,1-2.227-.417,3.966,3.966,0,0,1-2.279-2.275,6.645,6.645,0,0,1-.412-2.228c-.061-1.265-.072-1.646-.072-4.847s.011-3.586.072-4.851a6.686,6.686,0,0,1,.412-2.231,3.651,3.651,0,0,1,.9-1.377,3.7,3.7,0,0,1,1.38-.9,6.645,6.645,0,0,1,2.227-.414c1.265-.056,1.643-.07,4.848-.07s3.582.014,4.847.07a6.681,6.681,0,0,1,2.231.414,4.006,4.006,0,0,1,2.278,2.275,6.74,6.74,0,0,1,.412,2.231c.058,1.265.073,1.643.073,4.851s-.015,3.582-.073,4.847Zm2.16-9.8a8.708,8.708,0,0,0-.56-2.913,5.847,5.847,0,0,0-1.382-2.128,5.912,5.912,0,0,0-2.124-1.383,8.773,8.773,0,0,0-2.914-.556c-1.279-.062-1.688-.073-4.948-.073s-3.67.011-4.949.073a8.8,8.8,0,0,0-2.913.556,6.137,6.137,0,0,0-3.507,3.511,8.862,8.862,0,0,0-.56,2.913c-.056,1.279-.07,1.688-.07,4.949s.014,3.666.07,4.945a8.913,8.913,0,0,0,.56,2.914,6.156,6.156,0,0,0,3.507,3.509,8.848,8.848,0,0,0,2.913.557c1.279.059,1.691.073,4.949.073s3.669-.014,4.948-.073a8.822,8.822,0,0,0,2.914-.557,6.136,6.136,0,0,0,3.506-3.509,8.758,8.758,0,0,0,.56-2.914c.059-1.279.073-1.688.073-4.945s-.014-3.67-.073-4.949Z' fill='%23f9f4f4'/%3E%3Cpath id='Path_274' data-name='Path 274' d='M270.554,656.172a4,4,0,1,1,4-4A4,4,0,0,1,270.554,656.172Zm0-10.162a6.163,6.163,0,1,0,6.163,6.166A6.163,6.163,0,0,0,270.554,646.01Z' fill='%23f9f4f4'/%3E%3C/g%3E%3Cpath id='IG_active' data-name='IG active' d='M-920.395-4575.9a8.85,8.85,0,0,1-2.913-.557,5.9,5.9,0,0,1-2.123-1.385,5.881,5.881,0,0,1-1.384-2.124,8.874,8.874,0,0,1-.56-2.914c-.057-1.279-.07-1.688-.07-4.946s.014-3.67.07-4.949a8.814,8.814,0,0,1,.56-2.913,5.886,5.886,0,0,1,1.384-2.129,5.929,5.929,0,0,1,2.123-1.383,8.791,8.791,0,0,1,2.913-.555c1.279-.062,1.691-.074,4.949-.074s3.669.012,4.948.074a8.762,8.762,0,0,1,2.914.555,5.913,5.913,0,0,1,2.124,1.383,5.853,5.853,0,0,1,1.383,2.129,8.753,8.753,0,0,1,.56,2.913c.059,1.279.073,1.688.073,4.949s-.014,3.667-.073,4.946a8.813,8.813,0,0,1-.56,2.914,5.848,5.848,0,0,1-1.383,2.124,5.888,5.888,0,0,1-2.124,1.385,8.82,8.82,0,0,1-2.914.557c-1.279.059-1.688.073-4.948.073S-919.116-4575.84-920.395-4575.9Zm.1-21.7a6.7,6.7,0,0,0-2.227.414,3.725,3.725,0,0,0-1.38.9,3.665,3.665,0,0,0-.9,1.377,6.7,6.7,0,0,0-.412,2.231c-.061,1.265-.072,1.643-.072,4.851s.01,3.582.072,4.848a6.658,6.658,0,0,0,.412,2.228,3.668,3.668,0,0,0,.9,1.379,3.664,3.664,0,0,0,1.38.895,6.663,6.663,0,0,0,2.227.418c1.265.055,1.644.067,4.849.067s3.582-.012,4.847-.067a6.69,6.69,0,0,0,2.23-.418,3.655,3.655,0,0,0,1.377-.895,3.7,3.7,0,0,0,.9-1.379,6.717,6.717,0,0,0,.412-2.228c.058-1.266.073-1.646.073-4.848s-.015-3.585-.073-4.851a6.756,6.756,0,0,0-.412-2.231,3.7,3.7,0,0,0-.9-1.377,3.717,3.717,0,0,0-1.377-.9,6.722,6.722,0,0,0-2.23-.414c-1.265-.055-1.64-.07-4.847-.07S-919.029-4597.65-920.295-4597.6Zm-1.311,9.771a6.162,6.162,0,0,1,6.16-6.166,6.165,6.165,0,0,1,6.163,6.166,6.164,6.164,0,0,1-6.163,6.16A6.16,6.16,0,0,1-921.606-4587.824Zm2.16,0a4,4,0,0,0,4,4,4,4,0,0,0,4-4,4,4,0,0,0-4-4A4,4,0,0,0-919.446-4587.824Zm8.965-6.407a1.441,1.441,0,0,1,1.441-1.442,1.441,1.441,0,0,1,1.441,1.442,1.44,1.44,0,0,1-1.441,1.439A1.441,1.441,0,0,1-910.481-4594.231Z' transform='translate(927.445 4599.827)' stroke='rgba(0,0,0,0)' stroke-miterlimit='10' stroke-width='1' fill='url(%23linear-gradient)'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n.footer .bottom-section {\n  margin-top: 40px;\n}\n.container {\n  min-width: 1280px;\n  padding-left: 20px;\n  padding-right: 20px;\n}\n@media screen and (max-width: 1280px) {\n  .container {\n    min-width: 100%;\n  }\n}\n@media screen and (max-width: 768px) {\n  .footer .bottom-section {\n    text-align: center;\n  }\n\n  .container {\n    min-width: 100%;\n  }\n\n  ul#menu-footer li.menu-item a {\n    text-align: center !important;\n  }\n}\n.footer .bottom-section p {\n  color: #f9f9f9;\n  font-size: 14px;\n  line-height: 22px;\n}\nfooter li.menu-item a {\n  color: #ffff;\n}\nfooter a:link:hover, footer :visited:hover {\n  color: #b98db4 !important;\n}\nul#menu-footer-spanish li.menu-item a {\n  letter-spacing: 0px;\n  font-weight: 600 !important;\n}\nul#menu-footer-spanish li {\n  margin-bottom: 20px;\n}"]})],Wz);const sU={},rU={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function aU(t,e){const n=t.toLowerCase();let i=t;n in rU&&(i=rU[n]),sU[n]=sU[`${n}s`]=sU[e]=i}function oU(t){return Gz(t)?sU[t]||sU[t.toLowerCase()]:void 0}function lU(t,e,n){const i=`${Math.abs(t)}`,s=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}let cU={},dU={};const pU=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function uU(t,e,n,i){t&&(dU[t]=i),e&&(dU[e[0]]=function(){return lU(i.apply(null,arguments),e[1],e[2])}),n&&(dU[n]=function(e,n){return n.locale.ordinal(i.apply(null,arguments),t)})}function hU(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function mU(t,e,n){const i=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(i.getUTCFullYear())&&i.setUTCFullYear(t),i}function fU(t,e=0,n=1,i=0,s=0,r=0,a=0){const o=new Date(t,e,n,i,s,r,a);return t<100&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function gU(t,e=!1){return e?t.getUTCHours():t.getHours()}function bU(t,e=!1){return e?t.getUTCMinutes():t.getMinutes()}function vU(t,e=!1){return e?t.getUTCSeconds():t.getSeconds()}function yU(t,e=!1){return e?t.getUTCMilliseconds():t.getMilliseconds()}function _U(t,e=!1){return e?t.getUTCDay():t.getDay()}function wU(t,e=!1){return e?t.getUTCDate():t.getDate()}function xU(t,e=!1){return e?t.getUTCMonth():t.getMonth()}function CU(t,e=!1){return e?t.getUTCFullYear():t.getFullYear()}function SU(t,e){return!(!t||!e)&&(kU(t,e)&&xU(t)===xU(e))}function kU(t,e){return!(!t||!e)&&CU(t)===CU(e)}function EU(t,e){return!(!t||!e)&&(kU(t,e)&&SU(t,e)&&wU(t)===wU(e))}const IU=/\d/,AU=/\d\d/,DU=/\d{3}/,TU=/\d{4}/,OU=/[+-]?\d{6}/,PU=/\d\d?/,NU=/\d\d\d\d?/,MU=/\d\d\d\d\d\d?/,RU=/\d{1,3}/,LU=/\d{1,4}/,FU=/[+-]?\d{1,6}/,jU=/\d+/,VU=/[+-]?\d+/,BU=/Z|[+-]\d\d(?::?\d\d)?/gi,HU=/[+-]?\d+(\.\d{1,3})?/,zU=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,UU={};function qU(t,e,n){Xz(e)?UU[t]=e:UU[t]=function(t,i){return t&&n?n:e}}function $U(t,e){return tU(UU,t)?UU[t](!1,e):new RegExp(WU(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(t,e,n,i,s)=>e||n||i||s)))}function WU(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const YU={};function GU(t,e){const n=Gz(t)?[t]:t;let i=e;if(Qz(e)&&(i=function(t,n,i){return n[e]=iU(t),i}),Jz(n)&&Xz(i)){let t;for(t=0;t<n.length;t++)YU[n[t]]=i}}function KU(t,e){GU(t,function(t,n,i,s){return i._w=i._w||{},e(t,i._w,i,s)})}function ZU(t,e,n){return null!=e&&tU(YU,t)&&YU[t](e,n._a,n,t),n}const XU={};function QU(t,e){XU[t]=e}function JU(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function tq(t,e){return e.locale.getFullYear?e.locale.getFullYear(t,e.isUTC).toString():CU(t,e.isUTC).toString()}function eq(t){return iU(t)+(iU(t)>68?1900:2e3)}function nq(t){return iq(t)?366:365}function iq(t){return t%4==0&&t%100!=0||t%400==0}function sq(t,e){if(isNaN(t)||isNaN(e))return NaN;const n=(e%(i=12)+i)%i;var i;return 1===n?iq(t+(e-n)/12)?29:28:31-n%7%2}const rq={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function aq(t,e){const n=Object.assign({},rq,e),i=t.getFullYear()+(n.year||0),s=t.getMonth()+(n.month||0);let r=t.getDate()+(n.day||0);return n.month&&!n.day&&(r=Math.min(r,sq(i,s))),fU(i,s,r,t.getHours()+(n.hour||0),t.getMinutes()+(n.minute||0),t.getSeconds()+(n.seconds||0))}function oq(t,e){return Qz(e)?e:t}function lq(t,e,n){const i=Math.min(wU(t),sq(CU(t),e));return n?t.setUTCMonth(e,i):t.setMonth(e,i),t}function cq(t,e,n){return n?t.setUTCDate(e):t.setDate(e),t}function dq(t){return new Date(t.getTime())}function pq(t,e,n){const i=dq(t);switch(e){case"year":lq(i,0,n);case"quarter":case"month":cq(i,1,n);case"week":case"isoWeek":case"day":case"date":!function(t,e,n){n?t.setUTCHours(e):t.setHours(e)}(i,0,n);case"hours":!function(t,e,n){n?t.setUTCMinutes(e):t.setMinutes(e)}(i,0,n);case"minutes":!function(t,e,n){n?t.setUTCSeconds(e):t.setSeconds(e)}(i,0,n);case"seconds":!function(t,e,n){n?t.setUTCMilliseconds(e):t.setMilliseconds(e)}(i,0,n)}return"week"===e&&function(t,e,n={}){const i=Y$(t,n.locale,n.isUTC);U$(t,e-i,"day")}(i,0,{isUTC:n}),"isoWeek"===e&&function(t,e,n={}){const i=function(t,e=t$()){if(Gz(t))return e.weekdaysParse(t)%7||7;return Qz(t)&&isNaN(t)?null:t}(e,n.locale);$$(t,W$(t)%7?i:i-7)}(i,1),"quarter"===e&&lq(i,3*Math.floor(xU(i,n)/3),n),i}function uq(t,e,n){let i=e;"date"===i&&(i="day");return function(t,e,n,i){const s=B$(e,n);return q$(t,s,-1,i)}(U$(pq(t,i,n),1,"isoWeek"===i?"week":i,n),1,"milliseconds",n)}function hq(t,e){const n=+pq(t,"day",e)-+pq(t,"year",e);return Math.round(n/864e5)+1}function mq(t,e,n){const i=e-n+7;return-((mU(t,0,i).getUTCDay()-e+7)%7)+i-1}function fq(t,e,n,i,s){const r=1+7*(e-1)+(7+n-i)%7+mq(t,i,s);let a,o;return r<=0?(a=t-1,o=nq(a)+r):r>nq(t)?(a=t+1,o=r-nq(t)):(a=t,o=r),{year:a,dayOfYear:o}}function gq(t,e,n,i){const s=mq(CU(t,i),e,n),r=Math.floor((hq(t,i)-s-1)/7)+1;let a,o;return r<1?(o=CU(t,i)-1,a=r+bq(o,e,n)):r>bq(CU(t,i),e,n)?(a=r-bq(CU(t,i),e,n),o=CU(t,i)+1):(o=CU(t,i),a=r),{week:a,year:o}}function bq(t,e,n){const i=mq(t,e,n),s=mq(t+1,e,n);return(nq(t)-i+s)/7}const vq=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,yq="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_q="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),wq="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xq="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cq="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sq={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},kq=zU,Eq=zU;class Iq{constructor(t){t&&this.set(t)}set(t){let e;for(e in t){if(!t.hasOwnProperty(e))continue;const n=t[e];this[Xz(n)?e:`_${e}`]=n}this._config=t}calendar(t,e,n){const i=this._calendar[t]||this._calendar.sameElse;return Xz(i)?i.call(null,e,n):i}longDateFormat(t){const e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}get invalidDate(){return this._invalidDate}set invalidDate(t){this._invalidDate=t}ordinal(t,e){return this._ordinal.replace("%d",t.toString(10))}preparse(t,e){return t}getFullYear(t,e=!1){return CU(t,e)}postformat(t){return t}relativeTime(t,e,n,i){const s=this._relativeTime[n];return Xz(s)?s(t,e,n,i):s.replace(/%d/i,t.toString(10))}pastFuture(t,e){const n=this._relativeTime[t>0?"future":"past"];return Xz(n)?n(e):n.replace(/%s/i,e)}months(t,e,n=!1){if(!t)return Jz(this._months)?this._months:this._months.standalone;if(Jz(this._months))return this._months[xU(t,n)];const i=(this._months.isFormat||vq).test(e)?"format":"standalone";return this._months[i][xU(t,n)]}monthsShort(t,e,n=!1){if(!t)return Jz(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(Jz(this._monthsShort))return this._monthsShort[xU(t,n)];const i=vq.test(e)?"format":"standalone";return this._monthsShort[i][xU(t,n)]}monthsParse(t,e,n){let i,s,r;if(this._monthsParseExact)return this.handleMonthStrictParse(t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=new Date(Date.UTC(2e3,r)),n&&!this._longMonthsParse[r]){const t=this.months(i,"",!0).replace(".",""),e=this.monthsShort(i,"",!0).replace(".","");this._longMonthsParse[r]=new RegExp(`^${t}$`,"i"),this._shortMonthsParse[r]=new RegExp(`^${e}$`,"i")}if(n||this._monthsParse[r]||(s=`^${this.months(i,"",!0)}|^${this.monthsShort(i,"",!0)}`,this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}monthsRegex(t){return this._monthsParseExact?(tU(this,"_monthsRegex")||this.computeMonthsParse(),t?this._monthsStrictRegex:this._monthsRegex):(tU(this,"_monthsRegex")||(this._monthsRegex=Eq),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(t){return this._monthsParseExact?(tU(this,"_monthsRegex")||this.computeMonthsParse(),t?this._monthsShortStrictRegex:this._monthsShortRegex):(tU(this,"_monthsShortRegex")||(this._monthsShortRegex=kq),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}week(t,e){return gq(t,this._week.dow,this._week.doy,e).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(t,e,n){if(!t)return Jz(this._weekdays)?this._weekdays:this._weekdays.standalone;if(Jz(this._weekdays))return this._weekdays[_U(t,n)];const i=this._weekdays.isFormat.test(e)?"format":"standalone";return this._weekdays[i][_U(t,n)]}weekdaysMin(t,e,n){return t?this._weekdaysMin[_U(t,n)]:this._weekdaysMin}weekdaysShort(t,e,n){return t?this._weekdaysShort[_U(t,n)]:this._weekdaysShort}weekdaysParse(t,e,n){let i,s;if(this._weekdaysParseExact)return this.handleWeekStrictParse(t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){const r=$$(new Date(Date.UTC(2e3,1)),i,null,!0);if(n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp(`^${this.weekdays(r,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[i]=new RegExp(`^${this.weekdaysShort(r,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[i]=new RegExp(`^${this.weekdaysMin(r,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[i]||(s=`^${this.weekdays(r,"",!0)}|^${this.weekdaysShort(r,"",!0)}|^${this.weekdaysMin(r,"",!0)}`,this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),!(Jz(this._fullWeekdaysParse)&&Jz(this._shortWeekdaysParse)&&Jz(this._minWeekdaysParse)&&Jz(this._weekdaysParse)))return;if(n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}weekdaysRegex(t){return this._weekdaysParseExact?(tU(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysStrictRegex:this._weekdaysRegex):(tU(this,"_weekdaysRegex")||(this._weekdaysRegex=zU),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(t){return this._weekdaysParseExact?(tU(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(tU(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zU),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(t){return this._weekdaysParseExact?(tU(this,"_weekdaysRegex")||this.computeWeekdaysParse(),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(tU(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zU),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(t){return"p"===t.toLowerCase().charAt(0)}meridiem(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}formatLongDate(t){this._longDateFormat=this._longDateFormat?this._longDateFormat:Sq;const e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,t=>t.slice(1)),this._longDateFormat[t])}handleMonthStrictParse(t,e,n){const i=t.toLocaleLowerCase();let s,r,a;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=new Date(2e3,s),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?(r=this._shortMonthsParse.indexOf(i),-1!==r?r:null):(r=this._longMonthsParse.indexOf(i),-1!==r?r:null):"MMM"===e?(r=this._shortMonthsParse.indexOf(i),-1!==r?r:(r=this._longMonthsParse.indexOf(i),-1!==r?r:null)):(r=this._longMonthsParse.indexOf(i),-1!==r?r:(r=this._shortMonthsParse.indexOf(i),-1!==r?r:null))}handleWeekStrictParse(t,e,n){let i;const s=t.toLocaleLowerCase();if(!this._weekdaysParse){let t;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],t=0;t<7;++t){const e=$$(new Date(Date.UTC(2e3,1)),t,null,!0);this._minWeekdaysParse[t]=this.weekdaysMin(e).toLocaleLowerCase(),this._shortWeekdaysParse[t]=this.weekdaysShort(e).toLocaleLowerCase(),this._weekdaysParse[t]=this.weekdays(e,"").toLocaleLowerCase()}}if(Jz(this._weekdaysParse)&&Jz(this._shortWeekdaysParse)&&Jz(this._minWeekdaysParse))return n?"dddd"===e?(i=this._weekdaysParse.indexOf(s),-1!==i?i:null):"ddd"===e?(i=this._shortWeekdaysParse.indexOf(s),-1!==i?i:null):(i=this._minWeekdaysParse.indexOf(s),-1!==i?i:null):"dddd"===e?(i=this._weekdaysParse.indexOf(s),-1!==i?i:(i=this._shortWeekdaysParse.indexOf(s),-1!==i?i:(i=this._minWeekdaysParse.indexOf(s),-1!==i?i:null))):"ddd"===e?(i=this._shortWeekdaysParse.indexOf(s),-1!==i?i:(i=this._weekdaysParse.indexOf(s),-1!==i?i:(i=this._minWeekdaysParse.indexOf(s),-1!==i?i:null))):(i=this._minWeekdaysParse.indexOf(s),-1!==i?i:(i=this._weekdaysParse.indexOf(s),-1!==i?i:(i=this._shortWeekdaysParse.indexOf(s),-1!==i?i:null)))}computeMonthsParse(){const t=[],e=[],n=[];let i,s;for(s=0;s<12;s++)i=new Date(2e3,s),t.push(this.monthsShort(i,"")),e.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(t.sort(Aq),e.sort(Aq),n.sort(Aq),s=0;s<12;s++)t[s]=WU(t[s]),e[s]=WU(e[s]);for(s=0;s<24;s++)n[s]=WU(n[s]);this._monthsRegex=new RegExp(`^(${n.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${t.join("|")})`,"i")}computeWeekdaysParse(){const t=[],e=[],n=[],i=[];let s;for(s=0;s<7;s++){const r=$$(new Date(Date.UTC(2e3,1)),s,null,!0),a=this.weekdaysMin(r),o=this.weekdaysShort(r),l=this.weekdays(r);t.push(a),e.push(o),n.push(l),i.push(a),i.push(o),i.push(l)}for(t.sort(Aq),e.sort(Aq),n.sort(Aq),i.sort(Aq),s=0;s<7;s++)e[s]=WU(e[s]),n[s]=WU(n[s]),i[s]=WU(i[s]);this._weekdaysRegex=new RegExp(`^(${i.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${n.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${e.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${t.join("|")})`,"i")}}function Aq(t,e){return e.length-t.length}const Dq={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Sq,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:yq,monthsShort:_q,week:{dow:0,doy:6},weekdays:wq,weekdaysMin:Cq,weekdaysShort:xq,meridiemParse:/[ap]\.?m?\.?/i};function Tq(t,e,n){const i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length);let r,a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&iU(t[r])!==iU(e[r]))&&a++;return a+s}function Oq(t,e=t$(),n){return e.week(t,n)}function Pq(t,e){return gq(t,1,4,e).week}function Nq(t,e){uU(null,[t,t.length,!1],null,e)}function Mq(t,e){return Lq(t,e.locale).toString()}function Rq(t){return Fq(t).toString()}function Lq(t,e=t$(),n){return gq(t,e.firstDayOfWeek(),e.firstDayOfYear(),n).year}function Fq(t,e){return gq(t,1,4,e).year}function jq(){uU("X",null,null,function(t){return function(t){return Math.floor(t.valueOf()/1e3)}(t).toString(10)}),uU("x",null,null,function(t){return t.valueOf().toString(10)}),qU("x",VU),qU("X",HU),GU("X",function(t,e,n){return n._d=new Date(1e3*parseFloat(t)),n}),GU("x",function(t,e,n){return n._d=new Date(iU(t)),n})}function Vq(){uU("Q",null,"Qo",function(t,e){return function(t,e=!1){return Math.ceil((xU(t,e)+1)/3)}(t,e.isUTC).toString(10)}),aU("quarter","Q"),QU("quarter",7),qU("Q",IU),GU("Q",function(t,e,n){return e[1]=3*(iU(t)-1),n})}function Bq(t,e){uU(t,null,null,function(t,n){let i=qq(t,{_isUTC:n.isUTC,_offset:n.offset}),s="+";return i<0&&(i=-i,s="-"),s+lU(~~(i/60),2)+e+lU(~~i%60,2)})}const Hq=/([\+\-]|\d\d)/gi;function zq(t,e){const n=(e||"").match(t);if(null===n)return null;const i=n[n.length-1].match(Hq)||["-","0","0"],s=60*parseInt(i[1],10)+iU(i[2]),r="+"===i[0]?s:-s;return 0===s?0:r}function Uq(t){return 15*-Math.round(t.getTimezoneOffset()/15)}function qq(t,e={}){const n=e._offset||0;return e._isUTC?n:Uq(t)}function $q(){function t(t,e){return gU(t,e)%12||12}function e(t,e){uU(t,null,null,function(t,n){return n.locale.meridiem(gU(t,n.isUTC),bU(t,n.isUTC),e)})}function n(t,e){return e._meridiemParse}uU("H",["HH",2,!1],null,function(t,e){return gU(t,e.isUTC).toString(10)}),uU("h",["hh",2,!1],null,function(e,n){return t(e,n.isUTC).toString(10)}),uU("k",["kk",2,!1],null,function(t,e){return function(t,e){return gU(t,e)||24}(t,e.isUTC).toString(10)}),uU("hmm",null,null,function(e,n){return`${t(e,n.isUTC)}${lU(bU(e,n.isUTC),2)}`}),uU("hmmss",null,null,function(e,n){return`${t(e,n.isUTC)}${lU(bU(e,n.isUTC),2)}${lU(vU(e,n.isUTC),2)}`}),uU("Hmm",null,null,function(t,e){return`${gU(t,e.isUTC)}${lU(bU(t,e.isUTC),2)}`}),uU("Hmmss",null,null,function(t,e){return`${gU(t,e.isUTC)}${lU(bU(t,e.isUTC),2)}${lU(vU(t,e.isUTC),2)}`}),e("a",!0),e("A",!1),aU("hour","h"),QU("hour",13),qU("a",n),qU("A",n),qU("H",PU),qU("h",PU),qU("k",PU),qU("HH",PU,AU),qU("hh",PU,AU),qU("kk",PU,AU),qU("hmm",NU),qU("hmmss",MU),qU("Hmm",NU),qU("Hmmss",MU),GU(["H","HH"],3),GU(["k","kk"],function(t,e,n){const i=iU(t);return e[3]=24===i?0:i,n}),GU(["a","A"],function(t,e,n){return n._isPm=n._locale.isPM(t),n._meridiem=t,n}),GU(["h","hh"],function(t,e,n){return e[3]=iU(t),JU(n).bigHour=!0,n}),GU("hmm",function(t,e,n){const i=t.length-2;return e[3]=iU(t.substr(0,i)),e[4]=iU(t.substr(i)),JU(n).bigHour=!0,n}),GU("hmmss",function(t,e,n){const i=t.length-4,s=t.length-2;return e[3]=iU(t.substr(0,i)),e[4]=iU(t.substr(i,2)),e[5]=iU(t.substr(s)),JU(n).bigHour=!0,n}),GU("Hmm",function(t,e,n){const i=t.length-2;return e[3]=iU(t.substr(0,i)),e[4]=iU(t.substr(i)),n}),GU("Hmmss",function(t,e,n){const i=t.length-4,s=t.length-2;return e[3]=iU(t.substr(0,i)),e[4]=iU(t.substr(i,2)),e[5]=iU(t.substr(s)),n})}const Wq={},Yq={};let Gq;function Kq(t){return t?t.toLowerCase().replace("_","-"):t}function Zq(t,e){const n=Object.assign({},t);for(const i in e)tU(e,i)&&(eU(t[i])&&eU(e[i])?(n[i]={},Object.assign(n[i],t[i]),Object.assign(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(const i in t)tU(t,i)&&!tU(e,i)&&eU(t[i])&&(n[i]=Object.assign({},n[i]));return n}function Xq(t){return Wq[t]||console.error(`Khronos locale error: please load locale "${t}" before using it`),Wq[t]}function Qq(t,e){let n;return t&&(nU(e)?n=t$(t):Gz(t)&&(n=Jq(t,e)),n&&(Gq=n)),Gq&&Gq._abbr}function Jq(t,e){if(null===e)return delete Wq[t],Gq=t$("en"),null;if(!e)return;let n=Dq;if(e.abbr=t,null!=e.parentLocale){if(null==Wq[e.parentLocale])return Yq[e.parentLocale]||(Yq[e.parentLocale]=[]),Yq[e.parentLocale].push({name:t,config:e}),null;n=Wq[e.parentLocale]._config}return Wq[t]=new Iq(Zq(n,e)),Yq[t]&&Yq[t].forEach(function(t){Jq(t.name,t.config)}),Qq(t),Wq[t]}function t$(t){if(function(){if(Wq.en)return;Qq("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(t){const e=t%10;return t+(1===iU(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),uU("w",["ww",2,!1],"wo",function(t,e){return Oq(t,e.locale).toString(10)}),uU("W",["WW",2,!1],"Wo",function(t){return Pq(t).toString(10)}),aU("week","w"),aU("isoWeek","W"),QU("week",5),QU("isoWeek",5),qU("w",PU),qU("ww",PU,AU),qU("W",PU),qU("WW",PU,AU),KU(["w","ww","W","WW"],function(t,e,n,i){return e[i.substr(0,1)]=iU(t),n}),uU(null,["gg",2,!1],null,function(t,e){return(Lq(t,e.locale)%100).toString()}),uU(null,["GG",2,!1],null,function(t){return(Fq(t)%100).toString()}),Nq("gggg",Mq),Nq("ggggg",Mq),Nq("GGGG",Rq),Nq("GGGGG",Rq),aU("weekYear","gg"),aU("isoWeekYear","GG"),QU("weekYear",1),QU("isoWeekYear",1),qU("G",VU),qU("g",VU),qU("GG",PU,AU),qU("gg",PU,AU),qU("GGGG",LU,TU),qU("gggg",LU,TU),qU("GGGGG",FU,OU),qU("ggggg",FU,OU),KU(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){return e[i.substr(0,2)]=iU(t),n}),KU(["gg","GG"],function(t,e,n,i){return e[i]=eq(t),n}),uU("Y",null,null,function(t,e){const n=CU(t,e.isUTC);return n<=9999?n.toString(10):`+${n}`}),uU(null,["YY",2,!1],null,function(t,e){return(CU(t,e.isUTC)%100).toString(10)}),uU(null,["YYYY",4,!1],null,tq),uU(null,["YYYYY",5,!1],null,tq),uU(null,["YYYYYY",6,!0],null,tq),aU("year","y"),QU("year",1),qU("Y",VU),qU("YY",PU,AU),qU("YYYY",LU,TU),qU("YYYYY",FU,OU),qU("YYYYYY",FU,OU),GU(["YYYYY","YYYYYY"],0),GU("YYYY",function(t,e,n){return e[0]=2===t.length?eq(t):iU(t),n}),GU("YY",function(t,e,n){return e[0]=eq(t),n}),GU("Y",function(t,e,n){return e[0]=parseInt(t,10),n}),uU("z",null,null,function(t,e){return e.isUTC?"UTC":""}),uU("zz",null,null,function(t,e){return e.isUTC?"Coordinated Universal Time":""}),jq(),uU("s",["ss",2,!1],null,function(t,e){return vU(t,e.isUTC).toString(10)}),aU("second","s"),QU("second",15),qU("s",PU),qU("ss",PU,AU),GU(["s","ss"],5),Vq(),Bq("Z",":"),Bq("ZZ",""),qU("Z",BU),qU("ZZ",BU),GU(["Z","ZZ"],function(t,e,n){return n._useUTC=!0,n._tzm=zq(BU,t),n}),uU("M",["MM",2,!1],"Mo",function(t,e){return(xU(t,e.isUTC)+1).toString(10)}),uU("MMM",null,null,function(t,e){return e.locale.monthsShort(t,e.format,e.isUTC)}),uU("MMMM",null,null,function(t,e){return e.locale.months(t,e.format,e.isUTC)}),aU("month","M"),QU("month",8),qU("M",PU),qU("MM",PU,AU),qU("MMM",function(t,e){return e.monthsShortRegex(t)}),qU("MMMM",function(t,e){return e.monthsRegex(t)}),GU(["M","MM"],function(t,e,n){return e[1]=iU(t)-1,n}),GU(["MMM","MMMM"],function(t,e,n,i){const s=n._locale.monthsParse(t,i,n._strict);return null!=s?e[1]=s:JU(n).invalidMonth=!!t,n}),uU("m",["mm",2,!1],null,function(t,e){return bU(t,e.isUTC).toString(10)}),aU("minute","m"),QU("minute",14),qU("m",PU),qU("mm",PU,AU),GU(["m","mm"],4),function(){let t;for(uU("S",null,null,function(t,e){return(~~(yU(t,e.isUTC)/100)).toString(10)}),uU(null,["SS",2,!1],null,function(t,e){return(~~(yU(t,e.isUTC)/10)).toString(10)}),uU(null,["SSS",3,!1],null,function(t,e){return yU(t,e.isUTC).toString(10)}),uU(null,["SSSS",4,!1],null,function(t,e){return(10*yU(t,e.isUTC)).toString(10)}),uU(null,["SSSSS",5,!1],null,function(t,e){return(100*yU(t,e.isUTC)).toString(10)}),uU(null,["SSSSSS",6,!1],null,function(t,e){return(1e3*yU(t,e.isUTC)).toString(10)}),uU(null,["SSSSSSS",7,!1],null,function(t,e){return(1e4*yU(t,e.isUTC)).toString(10)}),uU(null,["SSSSSSSS",8,!1],null,function(t,e){return(1e5*yU(t,e.isUTC)).toString(10)}),uU(null,["SSSSSSSSS",9,!1],null,function(t,e){return(1e6*yU(t,e.isUTC)).toString(10)}),aU("millisecond","ms"),QU("millisecond",16),qU("S",RU,IU),qU("SS",RU,AU),qU("SSS",RU,DU),t="SSSS";t.length<=9;t+="S")qU(t,jU);function e(t,e,n){return e[6]=iU(1e3*parseFloat(`0.${t}`)),n}for(t="S";t.length<=9;t+="S")GU(t,e)}(),$q(),uU("DDD",["DDDD",3,!1],"DDDo",function(t){return hq(t).toString(10)}),aU("dayOfYear","DDD"),QU("dayOfYear",4),qU("DDD",RU),qU("DDDD",DU),GU(["DDD","DDDD"],function(t,e,n){return n._dayOfYear=iU(t),n}),uU("d",null,"do",function(t,e){return _U(t,e.isUTC).toString(10)}),uU("dd",null,null,function(t,e){return e.locale.weekdaysMin(t,e.format,e.isUTC)}),uU("ddd",null,null,function(t,e){return e.locale.weekdaysShort(t,e.format,e.isUTC)}),uU("dddd",null,null,function(t,e){return e.locale.weekdays(t,e.format,e.isUTC)}),uU("e",null,null,function(t,e){return Y$(t,e.locale,e.isUTC).toString(10)}),uU("E",null,null,function(t,e){return G$(t,e.isUTC).toString(10)}),aU("day","d"),aU("weekday","e"),aU("isoWeekday","E"),QU("day",11),QU("weekday",11),QU("isoWeekday",11),qU("d",PU),qU("e",PU),qU("E",PU),qU("dd",function(t,e){return e.weekdaysMinRegex(t)}),qU("ddd",function(t,e){return e.weekdaysShortRegex(t)}),qU("dddd",function(t,e){return e.weekdaysRegex(t)}),KU(["dd","ddd","dddd"],function(t,e,n,i){const s=n._locale.weekdaysParse(t,i,n._strict);return null!=s?e.d=s:JU(n).invalidWeekday=!!t,n}),KU(["d","e","E"],function(t,e,n,i){return e[i]=iU(t),n}),uU("D",["DD",2,!1],"Do",function(t,e){return wU(t,e.isUTC).toString(10)}),aU("date","D"),QU("date",9),qU("D",PU),qU("DD",PU,AU),qU("Do",function(t,e){return e._dayOfMonthOrdinalParse||e._ordinalParse}),GU(["D","DD"],2),GU("Do",function(t,e,n){return e[2]=iU(t.match(PU)[0]),n})}(),!t)return Gq;return function(t){let e,n,i=0;for(;i<t.length;){const s=Kq(t[i]).split("-");let r=s.length;for(e=Kq(t[i+1]),e=e?e.split("-"):null;r>0;){if(n=Xq(s.slice(0,r).join("-")),n)return n;if(e&&e.length>=r&&Tq(s,e,!0)>=r-1)break;r--}i++}return null}(Jz(t)?t:[t])}const e$=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],n$=e$.reduce((t,e)=>(t[e]=!0,t),{});function i$(t){return t<0?Math.floor(t):Math.ceil(t)}function s$(t){return 4800*t/146097}function r$(t){return 146097*t/4800}let a$=Math.round;const o$={ss:44,s:45,m:45,h:22,d:26,M:11};function l$(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}class c${constructor(t,e={}){this._data={},this._locale=t$(),this._locale=e&&e._locale||t$();const n=t,i=n.year||0,s=n.quarter||0,r=n.month||0,a=n.week||0,o=n.day||0,l=n.hours||0,c=n.minutes||0,d=n.seconds||0,p=n.milliseconds||0;return this._isValid=function(t){if(Object.keys(t).some(e=>e in n$&&null===t[e]||isNaN(t[e])))return!1;let e=!1;for(let n=0;n<e$.length;++n)if(t[e$[n]]){if(e)return!1;t[e$[n]]!==iU(t[e$[n]])&&(e=!0)}return!0}(n),this._milliseconds=+p+1e3*d+60*c*1e3+1e3*l*60*60,this._days=+o+7*a,this._months=+r+3*s+12*i,function(t){let e=t._milliseconds,n=t._days,i=t._months;const s=t._data;e>=0&&n>=0&&i>=0||e<=0&&n<=0&&i<=0||(e+=864e5*i$(r$(i)+n),n=0,i=0),s.milliseconds=e%1e3;const r=Yz(e/1e3);s.seconds=r%60;const a=Yz(r/60);s.minutes=a%60;const o=Yz(a/60);s.hours=o%24,n+=Yz(o/24);const l=Yz(s$(n));i+=l,n-=i$(r$(l));const c=Yz(i/12);return i%=12,s.day=n,s.month=i,s.year=c,t}(this)}isValid(){return this._isValid}humanize(t){if(!this.isValid())return this.localeData().invalidDate;const e=this.localeData();let n=function(t,e,n){const i=B$(t).abs(),s=a$(i.as("s")),r=a$(i.as("m")),a=a$(i.as("h")),o=a$(i.as("d")),l=a$(i.as("M")),c=a$(i.as("y")),d=s<=o$.ss&&["s",s]||s<o$.s&&["ss",s]||r<=1&&["m"]||r<o$.m&&["mm",r]||a<=1&&["h"]||a<o$.h&&["hh",a]||o<=1&&["d"]||o<o$.d&&["dd",o]||l<=1&&["M"]||l<o$.M&&["MM",l]||c<=1&&["y"]||["yy",c],p=[d[0],d[1],e,+t>0,n];return l$.apply(null,p)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}localeData(){return this._locale}locale(t){return t?(this._locale=t$(t)||this._locale,this):this._locale._abbr}abs(){const t=Math.abs,e=this._data;return this._milliseconds=t(this._milliseconds),this._days=t(this._days),this._months=t(this._months),e.milliseconds=t(e.milliseconds),e.seconds=t(e.seconds),e.minutes=t(e.minutes),e.hours=t(e.hours),e.month=t(e.month),e.year=t(e.year),this}as(t){if(!this.isValid())return NaN;let e,n;const i=this._milliseconds,s=oU(t);if("month"===s||"year"===s)return e=this._days+i/864e5,n=this._months+s$(e),"month"===s?n:n/12;switch(e=this._days+Math.round(r$(this._months)),s){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hours":return 24*e+i/36e5;case"minutes":return 1440*e+i/6e4;case"seconds":return 86400*e+i/1e3;case"milliseconds":return Math.floor(864e5*e)+i;default:throw new Error(`Unknown unit ${s}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*iU(this._months/12):NaN}}function d$(t){if(null==t._isValid){const e=JU(t),n=Array.prototype.some.call(e.parsedDateParts,function(t){return null!=t});let i=!isNaN(t._d&&t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function p$(t,e){return t._d=new Date(NaN),Object.assign(JU(t),e||{userInvalidated:!0}),t}const u$=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,h$=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,m$=/Z|[+-]\d\d(?::?\d\d)?/,f$=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],g$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],b$=/^\/?Date\((\-?\d+)/i,v$={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},y$=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function _$(t){if(!Gz(t._i))return t;const e=t._i,n=u$.exec(e)||h$.exec(e);let i,s,r,a,o,l;if(!n)return t._isValid=!1,t;for(o=0,l=f$.length;o<l;o++)if(f$[o][1].exec(n[1])){s=f$[o][0],i=!1!==f$[o][2];break}if(null==s)return t._isValid=!1,t;if(n[3]){for(o=0,l=g$.length;o<l;o++)if(g$[o][1].exec(n[3])){r=(n[2]||" ")+g$[o][0];break}if(null==r)return t._isValid=!1,t}if(!i&&null!=r)return t._isValid=!1,t;if(n[4]){if(!m$.exec(n[4]))return t._isValid=!1,t;a="Z"}return t._f=s+(r||"")+(a||""),A$(t)}function w$(t){const e=parseInt(t,10);return e<=49?e+2e3:e}function x$(t){if(!Gz(t._i))return t;const e=y$.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(!e)return function(t){return t._isValid=!1,t}(t);const n=function(t,e,n,i,s,r){const a=[w$(t),_q.indexOf(e),parseInt(n,10),parseInt(i,10),parseInt(s,10)];return r&&a.push(parseInt(r,10)),a}(e[4],e[3],e[2],e[5],e[6],e[7]);return function(t,e,n){if(t&&xq.indexOf(t)!==new Date(e[0],e[1],e[2]).getDay())return JU(n).weekdayMismatch=!0,n._isValid=!1,!1;return!0}(e[1],n,t)?(t._a=n,t._tzm=function(t,e,n){if(t)return v$[t];if(e)return 0;{const t=parseInt(n,10),e=t%100;return(t-e)/100*60+e}}(e[8],e[9],e[10]),t._d=mU.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),JU(t).rfc2822=!0,t):t}function C$(t,e,n,i,s=0){const r=t$(n||"en");if(!r)throw new Error(`Locale "${n}" is not defined, please add it with "defineLocale(...)"`);const a=function(t,e,n,i,s=0){if(!Zz(t))return n.invalidDate;const r=S$(e,n);return cU[r]=cU[r]||function(t){const e=t.match(pU),n=e.length,i=new Array(n);for(let s=0;s<n;s++)i[s]=dU[e[s]]?dU[e[s]]:hU(e[s]);return function(e,s,r,a=0){let o="";for(let l=0;l<n;l++)o+=Xz(i[l])?i[l].call(null,e,{format:t,locale:s,isUTC:r,offset:a}):i[l];return o}}(r),cU[r](t,n,i,s)}(t,e||(i?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),r,i,s);return a?r.postformat(a):a}function S$(t,e){let n=t,i=5;const s=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r=t=>e.formatLongDate(t)||t;for(s.lastIndex=0;i>=0&&s.test(n);)n=n.replace(s,r),s.lastIndex=0,i-=1;return n}function k$(t,e,n){return null!=t?t:null!=e?e:n}function E$(t){const e=[];let n,i,s,r,a;if(t._d)return t;for(s=function(t){const e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){let e,n,i,s,r,a,o,l;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)r=1,a=4,n=k$(e.GG,t._a[0],gq(new Date,1,4).year),i=k$(e.W,1),s=k$(e.E,1),(s<1||s>7)&&(l=!0);else{r=t._locale._week.dow,a=t._locale._week.doy;const o=gq(new Date,r,a);n=k$(e.gg,t._a[0],o.year),i=k$(e.w,o.week),null!=e.d?(s=e.d,(s<0||s>6)&&(l=!0)):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(l=!0)):s=r}i<1||i>bq(n,r,a)?JU(t)._overflowWeeks=!0:null!=l?JU(t)._overflowWeekday=!0:(o=fq(n,i,s,r,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(a=k$(t._a[0],s[0]),(t._dayOfYear>nq(a)||0===t._dayOfYear)&&(JU(t)._overflowDayOfYear=!0),i=new Date(Date.UTC(a,0,t._dayOfYear)),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=e[n]=s[n];for(;n<7;n++)t._a[n]=e[n]=null==t._a[n]?2===n?1:0:t._a[n];return 24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?mU:fU).apply(null,e),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(JU(t).weekdayMismatch=!0),t}function I$(t){let e;const n=t._a;return n&&-2===JU(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>sq(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,JU(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),JU(t)._overflowWeeks&&-1===e&&(e=7),JU(t)._overflowWeekday&&-1===e&&(e=8),JU(t).overflow=e),t}function A$(t){if("ISO_8601"===t._f)return _$(t);if("RFC_2822"===t._f)return x$(t);if(t._a=[],JU(t).empty=!0,Jz(t._f)||!t._i&&0!==t._i)return t;let e=t._i.toString(),n=0;const i=e.length,s=S$(t._f,t._locale).match(pU)||[];let r,a,o,l;for(r=0;r<s.length;r++)a=s[r],o=(e.match($U(a,t._locale))||[])[0],o&&(l=e.substr(0,e.indexOf(o)),l.length>0&&JU(t).unusedInput.push(l),e=e.slice(e.indexOf(o)+o.length),n+=o.length),dU[a]?(o?JU(t).empty=!1:JU(t).unusedTokens.push(a),ZU(a,o,t)):t._strict&&!o&&JU(t).unusedTokens.push(a);return JU(t).charsLeftOver=i-n,e.length>0&&JU(t).unusedInput.push(e),t._a[3]<=12&&!0===JU(t).bigHour&&t._a[3]>0&&(JU(t).bigHour=void 0),JU(t).parsedDateParts=t._a.slice(0),JU(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){let i=e;if(null==n)return i;if(null!=t.meridiemHour)return t.meridiemHour(i,n);if(null==t.isPM)return i;const s=t.isPM(n);s&&i<12&&(i+=12);s||12!==i||(i=0);return i}(t._locale,t._a[3],t._meridiem),E$(t),I$(t)}function D$(t){if(t._d)return t;const e=t._i;if(eU(e)){const n=function(t){const e={};let n,i;for(i in t)tU(t,i)&&(n=oU(i),n&&(e[n]=t[i]));return e}(e);t._a=[n.year,n.month,n.day,n.hours,n.minutes,n.seconds,n.milliseconds].map(t=>Gz(t)?parseInt(t,10):t)}return E$(t)}function T$(t){const e=I$(function(t){let e=t._i;const n=t._f;if(t._locale=t._locale||t$(t._l),null===e||void 0===n&&""===e)return p$(t,{nullInput:!0});Gz(e)&&(t._i=e=t._locale.preparse(e,n));if(Kz(e))return t._d=dq(e),t;Jz(n)?function(t){let e,n,i,s,r;if(!t._f||0===t._f.length)return JU(t).invalidFormat=!0,p$(t);for(r=0;r<t._f.length;r++)s=0,e=Object.assign({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],A$(e),d$(e)&&(s+=JU(e).charsLeftOver,s+=10*JU(e).unusedTokens.length,JU(e).score=s,(null==i||s<i)&&(i=s,n=e));Object.assign(t,n||e)}(t):n?A$(t):function(t){const e=t._i;if(nU(e))t._d=new Date;else if(Kz(e))t._d=dq(e);else if(Gz(e))!function(t){if(!Gz(t._i))return t;const e=b$.exec(t._i);null!==e?t._d=new Date(+e[1]):(_$(t),!1!==t._isValid||(delete t._isValid,x$(t),!1!==t._isValid||(delete t._isValid,p$(t))))}(t);else if(Jz(e)&&e.length){const n=e.slice(0);t._a=n.map(t=>Gz(t)?parseInt(t,10):t),E$(t)}else if(eU(e))D$(t);else{if(!Qz(e))return p$(t);t._d=new Date(e)}}(t);d$(t)||(t._d=null);return t}(t));return e._d=new Date(null!=e._d?e._d.getTime():NaN),d$(Object.assign({},e,{_isValid:null}))||(e._d=new Date(NaN)),e}function O$(t,e,n,i,s){const r={};let a=t;return(eU(a)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;let e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(a)||Jz(a)&&0===a.length)&&(a=void 0),r._useUTC=r._isUTC=s,r._l=n,r._i=a,r._f=e,r._strict=i,T$(r)}function P$(t,e,n,i,s){if(Kz(t))return t;return O$(t,e,n,i,s)._d}function N$(t){return t instanceof Date?new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):null}function M$(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function R$(t,e,n="milliseconds"){return!(!t||!e)&&("milliseconds"===n?t.valueOf()>e.valueOf():e.valueOf()<pq(t,n).valueOf())}function L$(t,e,n="milliseconds"){return!(!t||!e)&&("milliseconds"===n?t.valueOf()<e.valueOf():uq(t,n).valueOf()<e.valueOf())}function F$(t,e,n="milliseconds"){if(!t||!e)return!1;if("milliseconds"===n)return t.valueOf()===e.valueOf();const i=e.valueOf();return pq(t,n).valueOf()<=i&&i<=uq(t,n).valueOf()}const j$=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,V$=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function B$(t,e,n={}){const i=function(t,e){if(null==t)return{};if(n=t,n instanceof c$)return{milliseconds:t._milliseconds,day:t._days,month:t._months};var n;if(Qz(t))return e?{[e]:t}:{milliseconds:t};if(Gz(t)){let e=j$.exec(t);if(e){const t="-"===e[1]?-1:1;return{year:0,day:iU(e[2])*t,hours:iU(e[3])*t,minutes:iU(e[4])*t,seconds:iU(e[5])*t,milliseconds:iU(M$(1e3*iU(e[6])))*t}}if(e=V$.exec(t),e){const t="-"===e[1]?-1:(e[1],1);return{year:H$(e[2],t),month:H$(e[3],t),week:H$(e[4],t),day:H$(e[5],t),hours:H$(e[6],t),minutes:H$(e[7],t),seconds:H$(e[8],t)}}}if(eU(t)&&("from"in t||"to"in t)){const e=function(t,e){if(!Zz(t)||!Zz(e))return{milliseconds:0,months:0};let n;const i=function(t,e,n={}){if(!n._isUTC)return t;const i=dq(e),s=6e4*(n._offset||0),r=t.valueOf()-i.valueOf()+s;return i.setTime(i.valueOf()+r),i}(e,t,{_offset:t.getTimezoneOffset()});L$(t,i)?n=z$(t,i):(n=z$(i,t),n.milliseconds=-n.milliseconds,n.months=-n.months);return n}(P$(t.from),P$(t.to));return{milliseconds:e.milliseconds,month:e.months}}return t}(t,e);return new c$(i,n)}function H$(t,e){const n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function z$(t,e){const n={milliseconds:0,months:0};n.months=xU(e)-xU(t)+12*(CU(e)-CU(t));return R$(U$(dq(t),n.months,"month"),e)&&--n.months,n.milliseconds=+e-+U$(dq(t),n.months,"month"),n}function U$(t,e,n,i){return q$(t,B$(e,n),1,i)}function q$(t,e,n,i){const s=e._milliseconds,r=M$(e._days),a=M$(e._months);return a&&lq(t,xU(t,i)+a*n,i),r&&cq(t,wU(t,i)+r*n,i),s&&function(t,e){t.setTime(e)}(t,function(t){return t.getTime()}(t)+s*n),dq(t)}function $$(t,e,n=t$(),i){const s=_U(t,i);return U$(t,function(t,e){if(!Gz(t))return t;const n=parseInt(t,10);if(!isNaN(n))return n;const i=e.weekdaysParse(t);return Qz(i)?i:null}(e,n)-s,"day")}function W$(t,e){return _U(t,e)}function Y$(t,e=t$(),n){return(_U(t,n)+7-e.firstDayOfWeek())%7}function G$(t,e){return _U(t,e)||7}const K$=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},Z$={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},X$=function(t){return function(e,n){const i=K$(e);let s=Z$[t][K$(e)];return 2===i&&(s=s[n?0:1]),s.replace(/%d/i,e.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),X$("s"),X$("s"),X$("m"),X$("m"),X$("h"),X$("h"),X$("d"),X$("d"),X$("M"),X$("M"),X$("y"),X$("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_");"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_");"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const Q$="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),J$="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(t,e){let n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+t[n]+"$|^"+e[n]+"$","i")})(Q$,J$),function(t){let e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i")}(J$),function(t){let e,n=[];for(e=0;e<12;e++)n[e]=new RegExp("^"+t[e]+"$","i")}(Q$),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_");"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_");"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_");"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_");"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_");var tW="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" ");tW[7],tW[8],tW[9];"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_");"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_");"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_");"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_");"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_");"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_");"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_");"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_");"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_");"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_");"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_");"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_");"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_");"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const eW={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:t=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t,meridiem:(t,e,n)=>t<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(t,e){const n=eW.longDateFormat[e]?eW.longDateFormat[e]:e;if(-1!==n.indexOf("YYYY",n.length-"YYYY".length)){return t.substr(0,t.length-4)+(parseInt(t.substr(t.length-4),10)-543)}return t},getFullYear:(t,e=!1)=>543+(e?t.getUTCFullYear():t.getFullYear())};"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_");function nW(t){return function(e){return t+"\u043e"+(11===gU(e)?"\u0431":"")+"] LT"}}"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),nW("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nW("[\u0417\u0430\u0432\u0442\u0440\u0430 "),nW("[\u0412\u0447\u043e\u0440\u0430 "),nW("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");function iW(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function sW(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function rW(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:i}=iW(t);return/(auto|scroll|overlay)/.test(String(e)+String(i)+String(n))?t:rW(sW(t))}const aW="undefined"!=typeof window&&"undefined"!=typeof document,oW=aW&&!(!window.MSInputMethodContext||!document.documentMode),lW=aW&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function cW(t){return 11===t?oW:10===t?lW:oW||lW}function dW(t){if(!t)return document.documentElement;const e=cW(10)?document.body:null;let n,i=t.offsetParent||null;for(;i===e&&t.nextElementSibling&&n!==t.nextElementSibling;)n=t.nextElementSibling,i=n.offsetParent;const s=i&&i.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===iW(i,"position")?dW(i):i:n?n.ownerDocument.documentElement:document.documentElement}function pW(t){return null!==t.parentNode?pW(t.parentNode):t}function uW(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,s=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(s,0);const{commonAncestorContainer:a}=r;if(t!==a&&e!==a||i.contains(s))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||dW(t.firstElementChild)===t)}(a)?a:dW(a);const o=pW(t);return o.host?uW(o.host,e):uW(t,pW(e).host)}function hW(t,e){const n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${i}Width`])}function mW(t,e,n,i){return Math.max(e[`offset${t}`],e[`scroll${t}`],n[`client${t}`],n[`offset${t}`],n[`scroll${t}`],cW(10)?parseInt(n[`offset${t}`],10)+parseInt(i["margin"+("Height"===t?"Top":"Left")],10)+parseInt(i["margin"+("Height"===t?"Bottom":"Right")],10):0)}function fW(t){const e=t.body,n=t.documentElement,i=cW(10)&&getComputedStyle(n);return{height:mW("Height",e,n,i),width:mW("Width",e,n,i)}}function gW(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function bW(t){return Object.assign(Object.assign({},t),{right:t.left+t.width,bottom:t.top+t.height})}function vW(t){let e={};try{if(cW(10)){e=t.getBoundingClientRect();const n=gW(t,"top"),i=gW(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(TH){return}const n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?fW(t.ownerDocument):{},s=i.width||t.clientWidth||n.right-n.left,r=i.height||t.clientHeight||n.bottom-n.top;let a=t.offsetWidth-s,o=t.offsetHeight-r;if(a||o){const e=iW(t);a-=hW(e,"x"),o-=hW(e,"y"),n.width-=a,n.height-=o}return bW(n)}function yW(t,e,n=!1){const i=cW(10),s="HTML"===e.nodeName,r=vW(t),a=vW(e),o=rW(t),l=iW(e),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&s&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));let p=bW({top:r.top-a.top-c,left:r.left-a.left-d,width:r.width,height:r.height});if(p.marginTop=0,p.marginLeft=0,!i&&s){const t=parseFloat(l.marginTop),e=parseFloat(l.marginLeft);p.top-=c-t,p.bottom-=c-t,p.left-=d-e,p.right-=d-e,p.marginTop=t,p.marginLeft=e}return(i&&!n?e.contains(o):e===o&&"BODY"!==o.nodeName)&&(p=function(t,e,n=!1){const i=gW(e,"top"),s=gW(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=s*r,t.right+=s*r,t}(p,e)),p}function _W(t){const e=t.nodeName;return"BODY"!==e&&"HTML"!==e&&("fixed"===iW(t,"position")||_W(sW(t)))}function wW(t){if(!t||!t.parentElement||cW())return document.documentElement;let e=t.parentElement;for(;e&&"none"===iW(e,"transform");)e=e.parentElement;return e||document.documentElement}function xW(t,e,n=0,i,s=!1){let r={top:0,left:0};const a=s?wW(t):uW(t,e);if("viewport"===i)r=function(t,e=!1){const n=t.ownerDocument.documentElement,i=yW(t,n),s=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:gW(n),o=e?0:gW(n,"left");return bW({top:a-Number(i.top)+Number(i.marginTop),left:o-Number(i.left)+Number(i.marginLeft),width:s,height:r})}(a,s);else{let n;"scrollParent"===i?(n=rW(sW(e)),"BODY"===n.nodeName&&(n=t.ownerDocument.documentElement)):n="window"===i?t.ownerDocument.documentElement:i;const o=yW(n,a,s);if("HTML"!==n.nodeName||_W(a))r=o;else{const{height:e,width:n}=fW(t.ownerDocument);r.top+=o.top-o.marginTop,r.bottom=Number(e)+Number(o.top),r.left+=o.left-o.marginLeft,r.right=Number(n)+Number(o.left)}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function CW({width:t,height:e}){return t*e}function SW(t,e,n,i,s=["top","bottom","right","left"],r="viewport",a=0){if(-1===t.indexOf("auto"))return t;const o=xW(n,i,a,r),l={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},c=Object.keys(l).map(t=>Object.assign(Object.assign({key:t},l[t]),{area:CW(l[t])})).sort((t,e)=>e.area-t.area);let d=c.filter(({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight);d=d.filter(t=>s.some(e=>e===t.key));const p=d.length>0?d[0].key:c[0].key,u=t.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${p}`),p+(u?`-${u}`:"")}function kW(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+i,height:Number(t.offsetHeight)+n}}function EW(t,e,n=null){return yW(e,n?wW(t):uW(t,e),n)}function IW(t,e,n){const i=n.split(" ")[0],s=kW(t),r={width:s.width,height:s.height},a=-1!==["right","left"].indexOf(i),o=a?"top":"left",l=a?"left":"top",c=a?"height":"width",d=a?"width":"height";return r[o]=e[o]+e[c]/2-s[c]/2,r[l]=i===l?e[l]-s[d]:e[function(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,t=>e[t])}(l)],r}function AW(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function DW(t,e,n){Object.keys(e).forEach(i=>{let s="";var r;-1!==["width","height","top","right","bottom","left"].indexOf(i)&&(""!==(r=e[i])&&!isNaN(parseFloat(r))&&isFinite(r))&&(s="px"),n?n.setStyle(t,i,`${String(e[i])}${s}`):t.style[i]=String(e[i])+s})}function TW(t){let e=t.offsets.target;const n=t.instance.target.querySelector(".arrow");if(!n)return t;const i=-1!==["left","right"].indexOf(t.placement.split(" ")[0]),s=i?"height":"width",r=i?"Top":"Left",a=r.toLowerCase(),o=i?"left":"top",l=i?"bottom":"right",c=kW(n)[s],d=t.placement.split(" ")[1];t.offsets.host[l]-c<e[a]&&(e[a]-=e[a]-(t.offsets.host[l]-c)),Number(t.offsets.host[a])+Number(c)>e[l]&&(e[a]+=Number(t.offsets.host[a])+Number(c)-Number(e[l])),e=bW(e);const p=iW(t.instance.target),u=parseFloat(p[`margin${r}`]),h=parseFloat(p[`border${r}Width`]);let m;if(d){const e=parseFloat(p.borderRadius),n=Number(u+h+e);m=a===d?Number(t.offsets.host[a])+n:Number(t.offsets.host[a])+Number(t.offsets.host[s]-n)}else m=Number(t.offsets.host[a])+Number(t.offsets.host[s]/2-c/2);let f=m-e[a]-u-h;return f=Math.max(Math.min(e[s]-c,f),0),t.offsets.arrow={[a]:Math.round(f),[o]:""},t.instance.arrow=n,t}function OW(t){if(t.offsets.target=bW(t.offsets.target),!AW(t.options,"flip"))return t.offsets.target=Object.assign(Object.assign({},t.offsets.target),IW(t.instance.target,t.offsets.host,t.placement)),t;const e=xW(t.instance.target,t.instance.host,0,"viewport",!1);let n=t.placement.split(" ")[0],i=t.placement.split(" ")[1]||"";const s=SW("auto",t.offsets.host,t.instance.target,t.instance.host,t.options.allowedPositions),r=[n,s];return r.forEach((s,a)=>{if(n!==s||r.length===a+1)return t;n=t.placement.split(" ")[0];const o="left"===n&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)<Math.floor(t.offsets.host.right)||"top"===n&&Math.floor(t.offsets.target.bottom)>Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)<Math.floor(t.offsets.host.bottom),l=Math.floor(t.offsets.target.left)<Math.floor(e.left),c=Math.floor(t.offsets.target.right)>Math.floor(e.right),d=Math.floor(t.offsets.target.top)<Math.floor(e.top),p=Math.floor(t.offsets.target.bottom)>Math.floor(e.bottom),u="left"===n&&l||"right"===n&&c||"top"===n&&d||"bottom"===n&&p,h=-1!==["top","bottom"].indexOf(n),m=h&&"left"===i&&l||h&&"right"===i&&c||!h&&"left"===i&&d||!h&&"right"===i&&p;(o||u||m)&&((o||u)&&(n=r[a+1]),m&&(i=function(t){return"right"===t?"left":"left"===t?"right":t}(i)),t.placement=n+(i?` ${i}`:""),t.offsets.target=Object.assign(Object.assign({},t.offsets.target),IW(t.instance.target,t.offsets.host,t.placement)))}),t}function PW(t){if(!AW(t.options,"preventOverflow"))return t;const e="transform",n=t.instance.target.style,{top:i,left:s,[e]:r}=n;n.top="",n.left="",n[e]="";const a=xW(t.instance.target,t.instance.host,0,"scrollParent",!1);n.top=i,n.left=s,n[e]=r;const o={primary(e){let n=t.offsets.target[e];return t.offsets.target[e]<a[e]&&(n=Math.max(t.offsets.target[e],a[e])),{[e]:n}},secondary(e){const n="right"===e?"left":"top";let i=t.offsets.target[n];return t.offsets.target[e]>a[e]&&(i=Math.min(t.offsets.target[n],a[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),{[n]:i}}};let l;return["left","right","top","bottom"].forEach(e=>{l=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign(Object.assign({},t.offsets.target),o[l](e))}),t}function NW(t){const e=t.placement,n=e.split(" ")[0],i=e.split(" ")[1];if(i){const{host:e,target:s}=t.offsets,r=-1!==["bottom","top"].indexOf(n),a=r?"left":"top",o=r?"width":"height",l={start:{[a]:e[a]},end:{[a]:e[a]+e[o]-s[o]}};t.offsets.target=Object.assign(Object.assign({},s),{[a]:a===i?l.start[a]:l.end[a]})}return t}const MW=new class{position(t,e,n=!0){return this.offset(t,e,!1)}offset(t,e,n=!0){return EW(e,t)}positionElements(t,e,n,i,s){return[OW,NW,PW,TW].reduce((t,e)=>e(t),function(t,e,n,i){const s=EW(t,e);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*(?: (left|right|top|bottom))?\s*(start|end)*$/)||(n="auto");const r=!!n.match(/auto/g);let a=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n;const o=a.match(/^(left|right|top|bottom)* ?(?!\1)(left|right|top|bottom)?/);o&&(a=o[1]+(o[2]?` ${o[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(a)&&(a="auto");const l=IW(t,s,a);return a=SW(a,s,t,e,i?i.allowedPositions:void 0),{options:i,instance:{target:t,host:e,arrow:null},offsets:{target:l,host:s,arrow:null},positionFixed:!1,placement:a,placementAuto:r}}(e,t,n,s))}};function RW(t,e,n,i,s,r){const a=MW.positionElements(t,e,n,i,s),o=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(a);DW(e,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${o.left}px, ${o.top}px, 0px)`},r),a.instance.arrow&&DW(a.instance.arrow,a.offsets.arrow,r),function(t,e){const n=t.instance.target;let i=n.className;t.placementAuto&&(i=i.replace(/bs-popover-auto/g,`bs-popover-${t.placement}`),i=i.replace(/bs-tooltip-auto/g,`bs-tooltip-${t.placement}`),i=i.replace(/\sauto/g,` ${t.placement}`),-1!==i.indexOf("popover")&&-1===i.indexOf("popover-auto")&&(i+=" popover-auto"),-1!==i.indexOf("tooltip")&&-1===i.indexOf("tooltip-auto")&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom/g,`${t.placement.split(" ")[0]}`),e?e.setAttribute(n,"class",i):n.className=i}(a,r)}class LW{constructor(t,e,n){this.update$$=new Gf.a,this.positionElements=new Map,this.isDisabled=!1,Object(Cu.isPlatformBrowser)(n)&&t.runOutsideAngular(()=>{this.triggerEvent$=Object(gg.a)(Object(fg.a)(window,"scroll",{passive:!0}),Object(fg.a)(window,"resize",{passive:!0}),Object(Dw.a)(0,U_.b),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(t=>{RW(FW(t.target),FW(t.element),t.attachment,t.appendToBody,this.options,e.createRenderer(null,null))})})})}position(t){this.addPositionElement(t)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(t){this.positionElements.set(FW(t.element),t)}calcPosition(){this.update$$.next()}deletePositionElement(t){this.positionElements.delete(FW(t))}setOptions(t){this.options=t}}function FW(t){return"string"==typeof t?document.querySelector(t):t instanceof s.ElementRef?t.nativeElement:t}LW.decorators=[{type:s.Injectable}],LW.ctorParameters=()=>[{type:s.NgZone},{type:s.RendererFactory2},{type:Number,decorators:[{type:s.Inject,args:[s.PLATFORM_ID]}]}];var jW=n("qgXg"),VW=n("pxpQ"),BW=n("Kqap");class HW extends pg.a{constructor(t,e,n){super(t);e.pipe(Object(VW.b)(jW.b)).pipe(Object(BW.a)((t,e)=>e?n(t,e):t,t)).subscribe(t=>this.next(t))}}class zW extends vg.a{constructor(t,e,n){super(),this._dispatcher=t,this._reducer=e,this.source=n}select(t){return this.source.pipe(Object($h.a)(t)).pipe(Object(_g.a)())}lift(t){const e=new zW(this._dispatcher,this._reducer,this);return e.operator=t,e}dispatch(t){this._dispatcher.next(t)}next(t){this._dispatcher.next(t)}error(t){this._dispatcher.error(t)}complete(){}}class UW{constructor(t,e){this.open=t,this.close=e||t}isManual(){return"manual"===this.open||"manual"===this.close}}const qW={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function $W(t,e=qW){const n=(t||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(t=>t.split(":")).map(t=>{const n=e[t[0]]||t;return new UW(n[0],n[1])}),s=i.filter(t=>t.isManual());if(s.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===s.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}const WW="undefined"!=typeof window&&window||{};WW.document,WW.location,WW.gc,WW.performance&&WW.performance,WW.Event,WW.MouseEvent,WW.KeyboardEvent,WW.EventTarget,WW.History,WW.Location,WW.EventListener;let YW;function GW(){return void 0===WW||(void 0===WW.__theme?(YW||(YW=function(){if("undefined"==typeof document)return null;const t=document.createElement("span");t.innerText="test bs version",document.body.appendChild(t),t.classList.add("d-none");const e=t.getBoundingClientRect();return document.body.removeChild(t),e&&0===e.top?"bs4":"bs3"}()),"bs3"===YW):"bs4"!==WW.__theme)}const KW={},ZW="undefined"==typeof console||!("warn"in console);function XW(t){!Object(s.isDevMode)()||ZW||t in KW||(KW[t]=!0,console.warn(t))}class QW{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class JW{constructor(t,e,n,i,r,a,o,l){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=i,this._componentFactoryResolver=r,this._ngZone=a,this._applicationRef=o,this._posService=l,this.onBeforeShow=new s.EventEmitter,this.onShown=new s.EventEmitter,this.onBeforeHide=new s.EventEmitter,this.onHidden=new s.EventEmitter,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.context,t.initialState);const e=s.Injector.create({providers:this._providers,parent:this._injector});if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof s.ElementRef&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document){(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(t.id?{id:t.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(t){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const e=this._componentRef.location.nativeElement;return e.parentNode.removeChild(e),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(t?{id:t}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;const e=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),n=this._listenOpts.show=e=>{t.show?t.show(e):this.show(e),e()};return this._unregisterListenersFn=function(t,e){const n=$W(e.triggers),i=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;const s=[],r=[],a=()=>{r.forEach(t=>s.push(t())),r.length=0};return n.forEach(n=>{const o=n.open===n.close,l=o?e.toggle:e.show;o||r.push(()=>t.listen(i,n.close,e.hide)),s.push(t.listen(i,n.open,()=>l(a)))}),()=>{s.forEach(t=>t())}}(this._renderer,{target:t.target,triggers:t.triggers,show:n,hide:e,toggle:t=>{this.isShown?e():n(t)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const t=this._componentRef.location.nativeElement;setTimeout(()=>{var e,n;this._globalListener=(e=this._renderer,(n={targets:[t,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()}).outsideClick?e.listen("document","click",t=>{n.target&&n.target.contains(t.target)||n.targets&&n.targets.some(e=>e.contains(t.target))||n.hide()}):Function.prototype)})}if(this._listenOpts.outsideEsc){const n=this._componentRef.location.nativeElement;this._globalListener=(t=this._renderer,(e={targets:[n,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}).outsideEsc?t.listen("document","keyup.esc",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype)}var t,e}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(t,e,n){if(!t)return new QW([]);if(t instanceof s.TemplateRef){if(this._viewContainerRef){const n=this._viewContainerRef.createEmbeddedView(t,e);return n.markForCheck(),new QW([n.rootNodes],n)}const n=t.createEmbeddedView({});return this._applicationRef.attachView(n),new QW([n.rootNodes],n)}if("function"==typeof t){const e=this._componentFactoryResolver.resolveComponentFactory(t),i=s.Injector.create({providers:this._providers,parent:this._injector}),r=e.create(i);return Object.assign(r.instance,n),this._applicationRef.attachView(r.hostView),new QW([[r.location.nativeElement]],r.hostView,r)}return new QW([[this._renderer.createText(`${t}`)]])}}class tY{constructor(t,e,n,i,s){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=i,this._applicationRef=s}createLoader(t,e,n){return new JW(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}tY.decorators=[{type:s.Injectable}],tY.ctorParameters=()=>[{type:s.ComponentFactoryResolver},{type:s.NgZone},{type:s.Injector},{type:LW},{type:s.ApplicationRef}];class eY{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}}eY.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],eY.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new eY},token:eY,providedIn:"root"});class nY{constructor(t){Object.assign(this,t)}get isBs3(){return GW()}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.classMap[this.placement]=!0,this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}}nY.decorators=[{type:s.Component,args:[{selector:"bs-tooltip-container",changeDetection:s.ChangeDetectionStrategy.OnPush,host:{"[class]":'"tooltip in tooltip-" + placement + " " + "bs-tooltip-" + placement + " " + placement + " " + containerClass',"[class.show]":"!isBs3","[class.bs3]":"isBs3","[attr.id]":"this.id",role:"tooltip"},template:'\n    <div class="tooltip-arrow arrow"></div>\n    <div class="tooltip-inner"><ng-content></ng-content></div>\n    ',styles:["\n    :host.tooltip {\n      display: block;\n      pointer-events: none;\n    }\n    :host.bs3.tooltip.top>.arrow {\n      margin-left: -2px;\n    }\n    :host.bs3.tooltip.bottom {\n      margin-top: 0px;\n    }\n    :host.bs3.bs-tooltip-left, :host.bs3.bs-tooltip-right{\n      margin: 0px;\n    }\n    :host.bs3.bs-tooltip-right .arrow, :host.bs3.bs-tooltip-left .arrow {\n      margin: .3rem 0;\n    }\n  "]}]}],nY.ctorParameters=()=>[{type:eY}];let iY=0;class sY{constructor(t,e,n,i,r,a){this._elementRef=i,this._renderer=r,this._positionService=a,this.tooltipId=iY++,this.tooltipChange=new s.EventEmitter,this.containerClass="",this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new s.EventEmitter,this._tooltip=e.createLoader(this._elementRef,t,this._renderer).provide({provide:eY,useValue:n}),Object.assign(this,n),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}get isOpen(){return this._tooltip.isShown}set isOpen(t){t?this.show():this.hide()}set htmlContent(t){XW("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=t}set _placement(t){XW("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=t}set _isOpen(t){XW("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=t}get _isOpen(){return XW("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(t){XW("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!t}get _enable(){return XW("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(t){XW('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=t?"body":this.container}get _appendToBody(){return XW('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(t){XW("tooltipClass deprecated")}set _tooltipContext(t){XW("tooltipContext deprecated")}set _tooltipPopupDelay(t){XW("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=t}get _tooltipTrigger(){return XW("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(t){XW("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(t||"").toString()}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(t=>{t||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:null,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const t=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(nY).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},e=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=Object(hg.a)(this.delay).subscribe(()=>{t(),e()}),this.triggers&&$W(this.triggers).forEach(t=>{this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,t.close,()=>{this._delaySubscription.unsubscribe(),e()})})):t()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance.classMap.in=!1,setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}}sY.decorators=[{type:s.Directive,args:[{selector:"[tooltip], [tooltipHtml]",exportAs:"bs-tooltip"}]}],sY.ctorParameters=()=>[{type:s.ViewContainerRef},{type:tY},{type:eY},{type:s.ElementRef},{type:s.Renderer2},{type:LW}],sY.propDecorators={adaptivePosition:[{type:s.Input}],tooltip:[{type:s.Input}],tooltipChange:[{type:s.Output}],placement:[{type:s.Input}],triggers:[{type:s.Input}],container:[{type:s.Input}],containerClass:[{type:s.Input}],isOpen:[{type:s.Input}],isDisabled:[{type:s.Input}],delay:[{type:s.Input}],onShown:[{type:s.Output}],onHidden:[{type:s.Output}],htmlContent:[{type:s.Input,args:["tooltipHtml"]}],_placement:[{type:s.Input,args:["tooltipPlacement"]}],_isOpen:[{type:s.Input,args:["tooltipIsOpen"]}],_enable:[{type:s.Input,args:["tooltipEnable"]}],_appendToBody:[{type:s.Input,args:["tooltipAppendToBody"]}],tooltipAnimation:[{type:s.Input}],_popupClass:[{type:s.Input,args:["tooltipClass"]}],_tooltipContext:[{type:s.Input,args:["tooltipContext"]}],_tooltipPopupDelay:[{type:s.Input,args:["tooltipPopupDelay"]}],tooltipFadeDuration:[{type:s.Input}],_tooltipTrigger:[{type:s.Input,args:["tooltipTrigger"]}],tooltipStateChanged:[{type:s.Output}]},Hh([function(t,e){const n=` __${e}Value`;Object.defineProperty(t,e,{get(){return this[n]},set(t){const i=this[n];this[n]=t,i!==t&&this[e+"Change"]&&this[e+"Change"].emit(t)}})},function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}("design:type",Object)],sY.prototype,"tooltip",void 0);class rY{static forRoot(){return{ngModule:rY,providers:[tY,LW]}}}rY.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule],declarations:[sY,nY],exports:[sY],entryComponents:[nY]}]}];class aY{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range"}}aY.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],aY.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new aY},token:aY,providedIn:"root"});const oY=$x("datepickerAnimation",[Kx("animated-down",Gx({height:"*",overflow:"hidden"})),Xx("* => animated-down",[Gx({height:0,overflow:"hidden"}),Wx("220ms cubic-bezier(0, 0, 0.2, 1)")]),Kx("animated-up",Gx({height:"*",overflow:"hidden"})),Xx("* => animated-up",[Gx({height:"*",overflow:"hidden"}),Wx("220ms cubic-bezier(0, 0, 0.2, 1)")]),Xx("* => unanimated",Wx("0s"))]);class lY{constructor(){this.customRanges=[],this.chosenRange=[]}set minDate(t){this._effects.setMinDate(t)}set maxDate(t){this._effects.setMaxDate(t)}set daysDisabled(t){this._effects.setDaysDisabled(t)}set datesDisabled(t){this._effects.setDatesDisabled(t)}set datesEnabled(t){this._effects.setDatesEnabled(t)}set isDisabled(t){this._effects.setDisabled(t)}set dateCustomClasses(t){this._effects.setDateCustomClasses(t)}set dateTooltipTexts(t){this._effects.setDateTooltipTexts(t)}setViewMode(t){}navigateTo(t){}dayHoverHandler(t){}weekHoverHandler(t){}monthHoverHandler(t){}yearHoverHandler(t){}daySelectHandler(t){}monthSelectHandler(t){}yearSelectHandler(t){}setRangeOnCalendar(t){}setToday(){}clearDate(){}_stopPropagation(t){t.stopPropagation()}}class cY{calculate(){return{type:cY.CALCULATE}}format(){return{type:cY.FORMAT}}flag(){return{type:cY.FLAG}}select(t){return{type:cY.SELECT,payload:t}}changeViewMode(t){return{type:cY.CHANGE_VIEWMODE,payload:t}}navigateTo(t){return{type:cY.NAVIGATE_TO,payload:t}}navigateStep(t){return{type:cY.NAVIGATE_OFFSET,payload:t}}setOptions(t){return{type:cY.SET_OPTIONS,payload:t}}selectRange(t){return{type:cY.SELECT_RANGE,payload:t}}hoverDay(t){return{type:cY.HOVER,payload:t.isHovered?t.cell.date:null}}minDate(t){return{type:cY.SET_MIN_DATE,payload:t}}maxDate(t){return{type:cY.SET_MAX_DATE,payload:t}}daysDisabled(t){return{type:cY.SET_DAYSDISABLED,payload:t}}datesDisabled(t){return{type:cY.SET_DATESDISABLED,payload:t}}datesEnabled(t){return{type:cY.SET_DATESENABLED,payload:t}}isDisabled(t){return{type:cY.SET_IS_DISABLED,payload:t}}setDateCustomClasses(t){return{type:cY.SET_DATE_CUSTOM_CLASSES,payload:t}}setDateTooltipTexts(t){return{type:cY.SET_DATE_TOOLTIP_TEXTS,payload:t}}setLocale(t){return{type:cY.SET_LOCALE,payload:t}}}cY.CALCULATE="[datepicker] calculate dates matrix",cY.FORMAT="[datepicker] format datepicker values",cY.FLAG="[datepicker] set flags",cY.SELECT="[datepicker] select date",cY.NAVIGATE_OFFSET="[datepicker] shift view date",cY.NAVIGATE_TO="[datepicker] change view date",cY.SET_OPTIONS="[datepicker] update render options",cY.HOVER="[datepicker] hover date",cY.CHANGE_VIEWMODE="[datepicker] switch view mode",cY.SET_MIN_DATE="[datepicker] set min date",cY.SET_MAX_DATE="[datepicker] set max date",cY.SET_DAYSDISABLED="[datepicker] set days disabled",cY.SET_DATESDISABLED="[datepicker] set dates disabled",cY.SET_DATESENABLED="[datepicker] set dates enabled",cY.SET_IS_DISABLED="[datepicker] set is disabled",cY.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes",cY.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts",cY.SET_LOCALE="[datepicker] set datepicker locale",cY.SELECT_RANGE="[daterangepicker] select dates range",cY.decorators=[{type:s.Injectable}];class dY{constructor(){this._defaultLocale="en",this._locale=new pg.a(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(t){t!==this.currentLocale&&this._locale.next(t)}}dY.decorators=[{type:s.Injectable}];class pY{constructor(t,e){this._actions=t,this._localeService=e,this._subs=[]}init(t){return this._store=t,this}setValue(t){this._store.dispatch(this._actions.select(t))}setRangeValue(t){this._store.dispatch(this._actions.selectRange(t))}setMinDate(t){return this._store.dispatch(this._actions.minDate(t)),this}setMaxDate(t){return this._store.dispatch(this._actions.maxDate(t)),this}setDaysDisabled(t){return this._store.dispatch(this._actions.daysDisabled(t)),this}setDatesDisabled(t){return this._store.dispatch(this._actions.datesDisabled(t)),this}setDatesEnabled(t){return this._store.dispatch(this._actions.datesEnabled(t)),this}setDisabled(t){return this._store.dispatch(this._actions.isDisabled(t)),this}setDateCustomClasses(t){return this._store.dispatch(this._actions.setDateCustomClasses(t)),this}setDateTooltipTexts(t){return this._store.dispatch(this._actions.setDateTooltipTexts(t)),this}setOptions(t){const e=Object.assign({locale:this._localeService.currentLocale},t);return this._store.dispatch(this._actions.setOptions(e)),this}setBindings(t){return t.daysCalendar=this._store.select(t=>t.flaggedMonths).pipe(Object(Cg.a)(t=>!!t)),t.monthsCalendar=this._store.select(t=>t.flaggedMonthsCalendar).pipe(Object(Cg.a)(t=>!!t)),t.yearsCalendar=this._store.select(t=>t.yearsCalendarFlagged).pipe(Object(Cg.a)(t=>!!t)),t.viewMode=this._store.select(t=>t.view.mode),t.options=this._store.select(t=>t.showWeekNumbers).pipe(Object($h.a)(t=>({showWeekNumbers:t}))),this}setEventHandlers(t){return t.setViewMode=t=>{this._store.dispatch(this._actions.changeViewMode(t))},t.navigateTo=t=>{this._store.dispatch(this._actions.navigateStep(t.step))},t.dayHoverHandler=t=>{const e=t.cell;e.isOtherMonth||e.isDisabled||(this._store.dispatch(this._actions.hoverDay(t)),e.isHovered=t.isHovered)},t.monthHoverHandler=t=>{t.cell.isHovered=t.isHovered},t.yearHoverHandler=t=>{t.cell.isHovered=t.isHovered},this}registerDatepickerSideEffects(){return this._subs.push(this._store.select(t=>t.view).subscribe(t=>{this._store.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(t=>t.monthsModel).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.format()))),this._subs.push(this._store.select(t=>t.formattedMonths).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.selectedDate).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.selectedRange).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.monthsCalendar).subscribe(()=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.yearsCalendarModel).pipe(Object(Cg.a)(t=>!!t)).subscribe(()=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.hoveredDate).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.dateCustomClasses).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._store.select(t=>t.dateTooltipTexts).pipe(Object(Cg.a)(t=>!!t)).subscribe(t=>this._store.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(t=>this._store.dispatch(this._actions.setLocale(t)))),this}destroy(){for(const t of this._subs)t.unsubscribe()}}pY.decorators=[{type:s.Injectable}],pY.ctorParameters=()=>[{type:cY},{type:dY}];const uY={date:new Date,mode:"day"},hY=Object.assign(new aY,{locale:"en",view:uY,selectedRange:[],monthViewOptions:{width:7,height:6}});function mY(t,e,n){const i=e&&L$(uq(t,"month"),e,"day"),s=n&&R$(pq(t,"month"),n,"day");return i||s}function fY(t,e,n){const i=e&&L$(uq(t,"year"),e,"day"),s=n&&R$(pq(t,"year"),n,"day");return i||s}function gY(t,e=0){const n=t&&t.yearsCalendarModel&&t.yearsCalendarModel[e];return n&&n.years&&n.years[0]&&n.years[0][0]&&n.years[0][0].date}function bY(t,e){let n=t.initialDate;const i=new Array(t.height);for(let s=0;s<t.height;s++){i[s]=new Array(t.width);for(let r=0;r<t.width;r++)i[s][r]=e(n),n=aq(n,t.shift)}return i}function vY(t,e){const n=fU((i=t).getFullYear(),i.getMonth(),1,i.getHours(),i.getMinutes(),i.getSeconds());var i;const s=function(t,e){return function(t,e){return t.getDay()===e}(t,e.firstDayOfWeek)?t:aq(t,{day:-function(t,e){if(0===e)return t;const n=t-e%7;return n<0?n+7:n}(_U(t),e.firstDayOfWeek)})}(n,e);return{daysMatrix:bY({width:e.width,height:e.height,initialDate:s,shift:{day:1}},t=>t),month:n}}function yY(t){const e=t$(t),n=e.weekdaysShort(),i=e.firstDayOfWeek();return[...n.slice(i),...n.slice(0,i)]}function _Y(t,e){return t.weeks.forEach(n=>{n.days.forEach((i,s)=>{const r=!SU(i.date,t.month),a=!r&&EU(i.date,e.hoveredDate),o=!r&&e.selectedRange&&EU(i.date,e.selectedRange[0]),l=!r&&e.selectedRange&&EU(i.date,e.selectedRange[1]),c=!r&&EU(i.date,e.selectedDate)||o||l,d=!r&&e.selectedRange&&function(t,e,n){if(!t||!e[0])return!1;if(e[1])return t>e[0]&&t<=e[1];if(n)return t>e[0]&&t<=n;return!1}(i.date,e.selectedRange,e.hoveredDate),p=e.isDisabled||L$(i.date,e.minDate,"day")||R$(i.date,e.maxDate,"day")||(u=i.date,!(void 0===(h=e.daysDisabled)||!h||!h.length)&&h.some(t=>t===u.getDay()))||function(t,e){return!!(e&&Jz(e)&&e.length)&&e.some(e=>F$(t,e,"date"))}(i.date,e.datesDisabled)||function(t,e){return!!(e&&Jz(e)&&e.length)&&!e.some(e=>F$(t,e,"date"))}(i.date,e.datesEnabled);var u,h;const m=new Date,f=!r&&EU(i.date,m),g=e.dateCustomClasses&&e.dateCustomClasses.map(t=>EU(i.date,t.date)?t.classes:[]).reduce((t,e)=>t.concat(e),[]).join(" ")||"",b=e.dateTooltipTexts&&e.dateTooltipTexts.map(t=>EU(i.date,t.date)?t.tooltipText:"").reduce((t,e)=>t.concat(e),[]).join(" ")||"",v=Object.assign({},i,{isOtherMonth:r,isHovered:a,isSelected:c,isSelectionStart:o,isSelectionEnd:l,isInRange:d,isDisabled:p,isToday:f,customClasses:g,tooltipText:b});i.isOtherMonth===v.isOtherMonth&&i.isHovered===v.isHovered&&i.isSelected===v.isSelected&&i.isSelectionStart===v.isSelectionStart&&i.isSelectionEnd===v.isSelectionEnd&&i.isDisabled===v.isDisabled&&i.isInRange===v.isInRange&&i.customClasses===v.customClasses&&i.tooltipText===v.tooltipText||(n.days[s]=v)})}),t.hideLeftArrow=e.isDisabled||e.monthIndex>0&&e.monthIndex!==e.displayMonths,t.hideRightArrow=e.isDisabled||e.monthIndex<e.displayMonths&&e.monthIndex+1!==e.displayMonths,t.disableLeftArrow=mY(aq(t.month,{month:-1}),e.minDate,e.maxDate),t.disableRightArrow=mY(aq(t.month,{month:1}),e.minDate,e.maxDate),t}function wY(t,e){return!e||t>=e}const xY={month:1};function CY(t,e){return{months:bY({width:3,height:4,initialDate:pq(t,"year"),shift:xY},t=>({date:t,label:C$(t,e.monthLabel,e.locale)})),monthTitle:"",yearTitle:C$(t,e.yearTitle,e.locale)}}const SY=-1*(Math.floor(8)-1),kY={year:1};function EY(t,e,n){const i=bY({width:4,height:4,initialDate:function(t,e){if(e&&t.getFullYear()>=e.getFullYear()&&t.getFullYear()<e.getFullYear()+16)return e;return aq(t,{year:SY})}(t,n),shift:kY},t=>({date:t,label:C$(t,e.yearLabel,e.locale)}));return{years:i,monthTitle:"",yearTitle:function(t,e){const n=C$(t[0][0].date,e.yearTitle,e.locale),i=C$(t[3][3].date,e.yearTitle,e.locale);return`${n} - ${i}`}(i,e)}}function IY(t=hY,e){switch(e.type){case cY.CALCULATE:return function(t){const e=t.displayOneMonthRange&&OY(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths;let n=t.view.date;if("day"===t.view.mode){t.showPreviousMonth&&t.selectedRange&&0===t.selectedRange.length&&(n=aq(n,{month:-1})),t.monthViewOptions.firstDayOfWeek=t$(t.locale).firstDayOfWeek();const i=new Array(e);for(let s=0;s<e;s++)i[s]=vY(n,t.monthViewOptions),n=aq(n,{month:1});return Object.assign({},t,{monthsModel:i})}if("month"===t.view.mode){const i=new Array(e);for(let s=0;s<e;s++)i[s]=CY(n,DY(t)),n=aq(n,{year:1});return Object.assign({},t,{monthsCalendar:i})}if("year"===t.view.mode){const i=new Array(e);for(let s=0;s<e;s++)i[s]=EY(n,DY(t),"year"===t.minMode?gY(t,s):void 0),n=aq(n,{year:16});return Object.assign({},t,{yearsCalendarModel:i})}return t}(t);case cY.FORMAT:return function(t,e){if("day"===t.view.mode){const e=t.monthsModel.map((e,n)=>function(t,e,n){return{month:t.month,monthTitle:C$(t.month,e.monthTitle,e.locale),yearTitle:C$(t.month,e.yearTitle,e.locale),weekNumbers:(i=t.daysMatrix,s=e.weekNumbers,r=e.locale,i.map(t=>t[0]?C$(t[0],s,r):"")),weekdays:yY(e.locale),weeks:t.daysMatrix.map((t,i)=>({days:t.map((t,s)=>({date:t,label:C$(t,e.dayLabel,e.locale),monthIndex:n,weekIndex:i,dayIndex:s}))}))};var i,s,r}(e,DY(t),n));return Object.assign({},t,{formattedMonths:e})}const n=t.displayMonths;let i=t.view.date;if("month"===t.view.mode){const e=new Array(n);for(let s=0;s<n;s++)e[s]=CY(i,DY(t)),i=aq(i,{year:1});return Object.assign({},t,{monthsCalendar:e})}if("year"===t.view.mode){const e=new Array(n);for(let s=0;s<n;s++)e[s]=EY(i,DY(t)),i=aq(i,{year:16});return Object.assign({},t,{yearsCalendarModel:e})}return t}(t);case cY.FLAG:return function(t,e){const n=OY(t.view.date,t.minDate,t.maxDate)?1:t.displayMonths;if("day"===t.view.mode){const e=t.formattedMonths.map((e,i)=>_Y(e,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,daysDisabled:t.daysDisabled,datesDisabled:t.datesDisabled,datesEnabled:t.datesEnabled,hoveredDate:t.hoveredDate,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,dateCustomClasses:t.dateCustomClasses,dateTooltipTexts:t.dateTooltipTexts,monthIndex:i}));return Object.assign({},t,{flaggedMonths:e})}if("month"===t.view.mode){const e=t.monthsCalendar.map((e,i)=>{return s=e,r={isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredMonth:t.hoveredMonth,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,monthIndex:i},s.months.forEach((t,e)=>{t.forEach((t,n)=>{let i;const a=SU(t.date,r.hoveredMonth),o=r.isDisabled||mY(t.date,r.minDate,r.maxDate);!r.selectedDate&&r.selectedRange?(i=SU(t.date,r.selectedRange[0]),i||(i=SU(t.date,r.selectedRange[1]))):i=SU(t.date,r.selectedDate);const l=Object.assign(t,{isHovered:a,isDisabled:o,isSelected:i});t.isHovered===l.isHovered&&t.isDisabled===l.isDisabled&&t.isSelected===l.isSelected||(s.months[e][n]=l)})}),s.hideLeftArrow=r.monthIndex>0&&r.monthIndex!==r.displayMonths,s.hideRightArrow=r.monthIndex<r.displayMonths&&r.monthIndex+1!==r.displayMonths,s.disableLeftArrow=fY(aq(s.months[0][0].date,{year:-1}),r.minDate,r.maxDate),s.disableRightArrow=fY(aq(s.months[0][0].date,{year:1}),r.minDate,r.maxDate),s;var s,r});return Object.assign({},t,{flaggedMonthsCalendar:e})}if("year"===t.view.mode){const e=t.yearsCalendarModel.map((e,i)=>function(t,e){t.years.forEach((n,i)=>{n.forEach((n,s)=>{let r;const a=kU(n.date,e.hoveredYear),o=e.isDisabled||fY(n.date,e.minDate,e.maxDate);!e.selectedDate&&e.selectedRange?(r=kU(n.date,e.selectedRange[0]),r||(r=kU(n.date,e.selectedRange[1]))):r=kU(n.date,e.selectedDate);const l=Object.assign(n,{isHovered:a,isDisabled:o,isSelected:r});n.isHovered===l.isHovered&&n.isDisabled===l.isDisabled&&n.isSelected===l.isSelected||(t.years[i][s]=l)})}),t.hideLeftArrow=e.yearIndex>0&&e.yearIndex!==e.displayMonths,t.hideRightArrow=e.yearIndex<e.displayMonths&&e.yearIndex+1!==e.displayMonths,t.disableLeftArrow=fY(aq(t.years[0][0].date,{year:-1}),e.minDate,e.maxDate);const n=t.years.length-1,i=t.years[n].length-1;return t.disableRightArrow=fY(aq(t.years[n][i].date,{year:1}),e.minDate,e.maxDate),t}(e,{isDisabled:t.isDisabled,minDate:t.minDate,maxDate:t.maxDate,hoveredYear:t.hoveredYear,selectedDate:t.selectedDate,selectedRange:t.selectedRange,displayMonths:n,yearIndex:i}));return Object.assign({},t,{yearsCalendarFlagged:e})}return t}(t);case cY.NAVIGATE_OFFSET:return function(t,e){const n={view:{mode:t.view.mode,date:AY(t,e)}};return Object.assign({},t,n)}(t,e);case cY.NAVIGATE_TO:{const n=e.payload,i=function(t,e){return fU(oq(t.getFullYear(),e.year),oq(t.getMonth(),e.month),1,oq(t.getHours(),e.hour),oq(t.getMinutes(),e.minute),oq(t.getSeconds(),e.seconds),oq(t.getMilliseconds(),e.milliseconds))}(t.view.date,n.unit);let s,r;return wY(n.viewMode,t.minMode)?(r=n.viewMode,s={view:{date:i,mode:r}}):(r=t.view.mode,s={selectedDate:i,view:{date:i,mode:r}}),Object.assign({},t,s)}case cY.CHANGE_VIEWMODE:{if(!wY(e.payload,t.minMode))return t;const n={view:{date:t.view.date,mode:e.payload}};return Object.assign({},t,n)}case cY.HOVER:return Object.assign({},t,{hoveredDate:e.payload});case cY.SELECT:{const n={selectedDate:e.payload,view:t.view},i=t.view.mode,s=TY(e.payload||t.view.date,t.minDate,t.maxDate);return n.view={mode:i,date:s},Object.assign({},t,n)}case cY.SET_OPTIONS:{const n=e.payload,i=n.minMode?n.minMode:t.view.mode,s=TY(Zz(n.value)&&n.value||Jz(n.value)&&Zz(n.value[0])&&n.value[0]||t.view.date,n.minDate,n.maxDate);return n.view={mode:i,date:s},n.value&&(Jz(n.value)&&(n.selectedRange=n.value),n.value instanceof Date&&(n.selectedDate=n.value)),Object.assign({},t,n)}case cY.SELECT_RANGE:{const n={selectedRange:e.payload,view:t.view},i=t.view.mode,s=TY(e.payload&&e.payload[0]||t.view.date,t.minDate,t.maxDate);return n.view={mode:i,date:s},Object.assign({},t,n)}case cY.SET_MIN_DATE:return Object.assign({},t,{minDate:e.payload});case cY.SET_MAX_DATE:return Object.assign({},t,{maxDate:e.payload});case cY.SET_IS_DISABLED:return Object.assign({},t,{isDisabled:e.payload});case cY.SET_DATE_CUSTOM_CLASSES:return Object.assign({},t,{dateCustomClasses:e.payload});case cY.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},t,{dateTooltipTexts:e.payload});default:return t}}function AY(t,e){if("year"===t.view.mode&&"year"===t.minMode){const n=aq(gY(t,0),{year:-SY});return aq(n,e.payload)}return aq(pq(t.view.date,"month"),e.payload)}function DY(t){return{locale:t.locale,monthTitle:t.monthTitle,yearTitle:t.yearTitle,dayLabel:t.dayLabel,monthLabel:t.monthLabel,yearLabel:t.yearLabel,weekNumbers:t.weekNumbers}}function TY(t,e,n){const i=Array.isArray(t)?t[0]:t;return e&&R$(e,i,"day")?e:n&&L$(n,i,"day")?n:i}function OY(t,e,n){return!(!n||!F$(n,t,"day"))||!(!e||!n||e.getMonth()!==n.getMonth())}class PY extends zW{constructor(){const t=new pg.a({type:"[datepicker] dispatcher init"});super(t,IY,new HW(hY,t,IY))}}PY.decorators=[{type:s.Injectable}],PY.ctorParameters=()=>[];class NY extends lY{constructor(t,e,n,i,r,a,o){super(),this._config=e,this._store=n,this._element=i,this._actions=r,this._positionService=o,this.valueChange=new s.EventEmitter,this.animationState="void",this._subs=[],this._effects=a,t.setStyle(i.nativeElement,"display","block"),t.setStyle(i.nativeElement,"position","absolute")}set value(t){this._effects.setValue(t)}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition}},allowedPositions:["top","bottom"]}),this._positionService.event$.pipe(Object(Sg.a)(1)).subscribe(()=>{this._positionService.disable(),this._config.isAnimated?this.animationState=this.isTopPosition?"animated-up":"animated-down":this.animationState="unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this._effects.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(t=>t.selectedDate).subscribe(t=>this.valueChange.emit(t))),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}daySelectHandler(t){if(!t)return;(this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this._store.dispatch(this._actions.select(t.date))}monthSelectHandler(t){t&&!t.isDisabled&&this._store.dispatch(this._actions.navigateTo({unit:{month:xU(t.date),year:CU(t.date)},viewMode:"day"}))}yearSelectHandler(t){t&&!t.isDisabled&&this._store.dispatch(this._actions.navigateTo({unit:{year:CU(t.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const t of this._subs)t.unsubscribe();this._effects.destroy()}}NY.decorators=[{type:s.Component,args:[{selector:"bs-datepicker-container",providers:[PY,pY],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n  <div class="bs-datepicker-container"\n    [@datepickerAnimation]="animationState"\n    (@datepickerAnimation.done)="positionServiceEnable()">\n    \x3c!--calendars--\x3e\n    <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n      \x3c!--days calendar--\x3e\n      <div *ngSwitchCase="\'day\'" class="bs-media-container">\n        <bs-days-calendar-view\n          *ngFor="let calendar of daysCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          [options]="options | async"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="dayHoverHandler($event)"\n          (onHoverWeek)="weekHoverHandler($event)"\n          (onSelect)="daySelectHandler($event)">\n        </bs-days-calendar-view>\n      </div>\n\n      \x3c!--months calendar--\x3e\n      <div *ngSwitchCase="\'month\'" class="bs-media-container">\n        <bs-month-calendar-view\n          *ngFor="let calendar of monthsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="monthHoverHandler($event)"\n          (onSelect)="monthSelectHandler($event)">\n        </bs-month-calendar-view>\n      </div>\n\n      \x3c!--years calendar--\x3e\n      <div *ngSwitchCase="\'year\'" class="bs-media-container">\n        <bs-years-calendar-view\n          *ngFor="let calendar of yearsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="yearHoverHandler($event)"\n          (onSelect)="yearSelectHandler($event)">\n        </bs-years-calendar-view>\n      </div>\n    </div>\n\n    \x3c!--applycancel buttons--\x3e\n    <div class="bs-datepicker-buttons" *ngIf="false">\n      <button class="btn btn-success" type="button">Apply</button>\n      <button class="btn btn-default" type="button">Cancel</button>\n    </div>\n\n    <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n      <div class="btn-today-wrapper"\n           [class.today-left]="todayPos === \'left\'"\n           [class.today-right]="todayPos === \'right\'"\n           [class.today-center]="todayPos === \'center\'"\n           *ngIf="showTodayBtn">\n        <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n      </div>\n\n        <div class="btn-clear-wrapper"\n        [class.clear-left]="clearPos === \'left\'"\n        [class.clear-right]="clearPos === \'right\'"\n        [class.clear-center]="clearPos === \'center\'"\n        *ngIf="showClearBtn">\n          <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n        </div>\n    </div>\n\n  </div>\n\n  \x3c!--custom dates or date ranges picker--\x3e\n  <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n    <bs-custom-date-view\n      [selectedRange]="chosenRange"\n      [ranges]="customRanges"\n      [customRangeLabel]="customRangeBtnLbl"\n      (onSelect)="setRangeOnCalendar($event)">\n    </bs-custom-date-view>\n  </div>\n</div>\n',host:{class:"bottom","(click)":"_stopPropagation($event)",role:"dialog","aria-label":"calendar"},animations:[oY]}]}],NY.ctorParameters=()=>[{type:s.Renderer2},{type:aY},{type:PY},{type:s.ElementRef},{type:cY},{type:pY},{type:LW}];class MY{constructor(t,e,n,i,r){this._config=t,this._elementRef=e,this._renderer=n,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.bsValueChange=new s.EventEmitter,this._subs=[],this._dateInputFormat$=new Gf.a,Object.assign(this,this._config),this._datepicker=r.createLoader(e,i,n),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new pg.a(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(t){this.isOpen$.next(t)}set bsValue(t){this._bsValue&&t&&this._bsValue.getTime()===t.getTime()||(this._bsValue=t,this.bsValueChange.emit(t))}set bsConfig(t){this._bsConfig=t,this.setConfig(),this._dateInputFormat$.next(t&&t.dateInputFormat)}get bsConfig(){return this._bsConfig}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this.isDestroy$=new Gf.a,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig()}ngOnChanges(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),t.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}ngAfterViewInit(){this.isOpen$.pipe(Object(Cg.a)(t=>t!==this.isOpen),Object(xg.a)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:aY,useValue:this._config}).attach(NY).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef.instance.value=t})),this._subs.push(this._datepickerRef.instance.valueChange.subscribe(t=>{this.bsValue=t,this.hide()})))}hide(){this.isOpen&&this._datepicker.hide();for(const t of this._subs)t.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode})}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(),this.isDestroy$.complete())}}MY.decorators=[{type:s.Directive,args:[{selector:"[bsDatepicker]",exportAs:"bsDatepicker"}]}],MY.ctorParameters=()=>[{type:aY},{type:s.ElementRef},{type:s.Renderer2},{type:s.ViewContainerRef},{type:tY}],MY.propDecorators={placement:[{type:s.Input}],triggers:[{type:s.Input}],outsideClick:[{type:s.Input}],container:[{type:s.Input}],outsideEsc:[{type:s.Input}],isOpen:[{type:s.Input}],onShown:[{type:s.Output}],onHidden:[{type:s.Output}],bsValue:[{type:s.Input}],bsConfig:[{type:s.Input}],isDisabled:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],minMode:[{type:s.Input}],daysDisabled:[{type:s.Input}],datesDisabled:[{type:s.Input}],datesEnabled:[{type:s.Input}],dateCustomClasses:[{type:s.Input}],dateTooltipTexts:[{type:s.Input}],bsValueChange:[{type:s.Output}]};class RY extends aY{}RY.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],RY.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new RY},token:RY,providedIn:"root"});class LY extends NY{constructor(t,e,n,i,s,r,a){super(t,e,n,i,s,r,a),t.setStyle(i.nativeElement,"display","inline-block"),t.setStyle(i.nativeElement,"position","static")}}LY.decorators=[{type:s.Component,args:[{selector:"bs-datepicker-inline-container",providers:[PY,pY],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n  <div class="bs-datepicker-container"\n    [@datepickerAnimation]="animationState"\n    (@datepickerAnimation.done)="positionServiceEnable()">\n    \x3c!--calendars--\x3e\n    <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n      \x3c!--days calendar--\x3e\n      <div *ngSwitchCase="\'day\'" class="bs-media-container">\n        <bs-days-calendar-view\n          *ngFor="let calendar of daysCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          [options]="options | async"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="dayHoverHandler($event)"\n          (onHoverWeek)="weekHoverHandler($event)"\n          (onSelect)="daySelectHandler($event)">\n        </bs-days-calendar-view>\n      </div>\n\n      \x3c!--months calendar--\x3e\n      <div *ngSwitchCase="\'month\'" class="bs-media-container">\n        <bs-month-calendar-view\n          *ngFor="let calendar of monthsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="monthHoverHandler($event)"\n          (onSelect)="monthSelectHandler($event)">\n        </bs-month-calendar-view>\n      </div>\n\n      \x3c!--years calendar--\x3e\n      <div *ngSwitchCase="\'year\'" class="bs-media-container">\n        <bs-years-calendar-view\n          *ngFor="let calendar of yearsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="yearHoverHandler($event)"\n          (onSelect)="yearSelectHandler($event)">\n        </bs-years-calendar-view>\n      </div>\n    </div>\n\n    \x3c!--applycancel buttons--\x3e\n    <div class="bs-datepicker-buttons" *ngIf="false">\n      <button class="btn btn-success" type="button">Apply</button>\n      <button class="btn btn-default" type="button">Cancel</button>\n    </div>\n\n    <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n      <div class="btn-today-wrapper"\n           [class.today-left]="todayPos === \'left\'"\n           [class.today-right]="todayPos === \'right\'"\n           [class.today-center]="todayPos === \'center\'"\n           *ngIf="showTodayBtn">\n        <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n      </div>\n\n        <div class="btn-clear-wrapper"\n        [class.clear-left]="clearPos === \'left\'"\n        [class.clear-right]="clearPos === \'right\'"\n        [class.clear-center]="clearPos === \'center\'"\n        *ngIf="showClearBtn">\n          <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n        </div>\n    </div>\n\n  </div>\n\n  \x3c!--custom dates or date ranges picker--\x3e\n  <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n    <bs-custom-date-view\n      [selectedRange]="chosenRange"\n      [ranges]="customRanges"\n      [customRangeLabel]="customRangeBtnLbl"\n      (onSelect)="setRangeOnCalendar($event)">\n    </bs-custom-date-view>\n  </div>\n</div>\n',host:{"(click)":"_stopPropagation($event)"},animations:[oY]}]}],LY.ctorParameters=()=>[{type:s.Renderer2},{type:aY},{type:PY},{type:s.ElementRef},{type:cY},{type:pY},{type:LW}];class FY{constructor(t,e,n,i,r){this._config=t,this._elementRef=e,this.bsValueChange=new s.EventEmitter,this._subs=[],Object.assign(this,this._config),this._datepicker=r.createLoader(e,i,n)}set bsValue(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))}ngOnInit(){this.setConfig(),this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef.instance.value=t})),this._subs.push(this._datepickerRef.instance.valueChange.subscribe(t=>{this.bsValue=t}))}ngOnChanges(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate,this.setConfig()),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate,this.setConfig()),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled,this.setConfig()),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled,this._datepickerRef.instance.value=this._bsValue),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled,this.setConfig()),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses,this.setConfig()),t.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts,this.setConfig()))}setConfig(){this._datepicker&&this._datepicker.hide(),this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled}),this._datepickerRef=this._datepicker.provide({provide:aY,useValue:this._config}).attach(LY).to(this._elementRef).show()}ngOnDestroy(){this._datepicker.dispose()}}FY.decorators=[{type:s.Directive,args:[{selector:"bs-datepicker-inline",exportAs:"bsDatepickerInline"}]}],FY.ctorParameters=()=>[{type:RY},{type:s.ElementRef},{type:s.Renderer2},{type:s.ViewContainerRef},{type:tY}],FY.propDecorators={bsValue:[{type:s.Input}],bsConfig:[{type:s.Input}],isDisabled:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],dateCustomClasses:[{type:s.Input}],dateTooltipTexts:[{type:s.Input}],datesEnabled:[{type:s.Input}],datesDisabled:[{type:s.Input}],bsValueChange:[{type:s.Output}]};class jY extends aY{constructor(){super(...arguments),this.displayMonths=2,this.isAnimated=!1}}jY.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],jY.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new jY},token:jY,providedIn:"root"});class VY extends lY{constructor(t,e,n,i,r,a,o){super(),this._config=e,this._store=n,this._element=i,this._actions=r,this._positionService=o,this.valueChange=new s.EventEmitter,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this._effects=a,this.customRanges=this._config.ranges,this.customRangeBtnLbl=this._config.customRangeButtonLabel,t.setStyle(i.nativeElement,"display","block"),t.setStyle(i.nativeElement,"position","absolute")}set value(t){this._effects.setRangeValue(t)}ngOnInit(){this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition}},allowedPositions:["top","bottom"]}),this._positionService.event$.pipe(Object(Sg.a)(1)).subscribe(()=>{this._positionService.disable(),this._config.isAnimated?this.animationState=this.isTopPosition?"animated-up":"animated-down":this.animationState="unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this._effects.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(t=>t.selectedRange).subscribe(t=>{this.valueChange.emit(t),this.chosenRange=t}))}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}daySelectHandler(t){if(!t)return;(this.isOtherMonthsActive?t.isDisabled:t.isOtherMonth||t.isDisabled)||this.rangesProcessing(t)}monthSelectHandler(t){if(t)if(t.isSelected=!0,"month"===this._config.minMode)this.rangesProcessing(t);else{if(t.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{month:xU(t.date),year:CU(t.date)},viewMode:"day"}))}}yearSelectHandler(t){if(t)if(t.isSelected=!0,"year"===this._config.minMode)this.rangesProcessing(t);else{if(t.isDisabled)return;this._store.dispatch(this._actions.navigateTo({unit:{year:CU(t.date)},viewMode:"month"}))}}rangesProcessing(t){1===this._rangeStack.length&&(this._rangeStack=t.date>=this._rangeStack[0]?[this._rangeStack[0],t.date]:[t.date]),0===this._rangeStack.length&&(this._rangeStack=[t.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(t.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const t of this._subs)t.unsubscribe();this._effects.destroy()}setRangeOnCalendar(t){this._rangeStack=null===t?[]:t.value instanceof Date?[t.value]:t.value,this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(t){const e=new Date(t);e.setDate(t.getDate()+this._config.maxDateRange),this._effects.setMaxDate(e)}}VY.decorators=[{type:s.Component,args:[{selector:"bs-daterangepicker-container",providers:[PY,pY],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n  <div class="bs-datepicker-container"\n    [@datepickerAnimation]="animationState"\n    (@datepickerAnimation.done)="positionServiceEnable()">\n    \x3c!--calendars--\x3e\n    <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n      \x3c!--days calendar--\x3e\n      <div *ngSwitchCase="\'day\'" class="bs-media-container">\n        <bs-days-calendar-view\n          *ngFor="let calendar of daysCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          [options]="options | async"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="dayHoverHandler($event)"\n          (onHoverWeek)="weekHoverHandler($event)"\n          (onSelect)="daySelectHandler($event)">\n        </bs-days-calendar-view>\n      </div>\n\n      \x3c!--months calendar--\x3e\n      <div *ngSwitchCase="\'month\'" class="bs-media-container">\n        <bs-month-calendar-view\n          *ngFor="let calendar of monthsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="monthHoverHandler($event)"\n          (onSelect)="monthSelectHandler($event)">\n        </bs-month-calendar-view>\n      </div>\n\n      \x3c!--years calendar--\x3e\n      <div *ngSwitchCase="\'year\'" class="bs-media-container">\n        <bs-years-calendar-view\n          *ngFor="let calendar of yearsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="yearHoverHandler($event)"\n          (onSelect)="yearSelectHandler($event)">\n        </bs-years-calendar-view>\n      </div>\n    </div>\n\n    \x3c!--applycancel buttons--\x3e\n    <div class="bs-datepicker-buttons" *ngIf="false">\n      <button class="btn btn-success" type="button">Apply</button>\n      <button class="btn btn-default" type="button">Cancel</button>\n    </div>\n\n    <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n      <div class="btn-today-wrapper"\n           [class.today-left]="todayPos === \'left\'"\n           [class.today-right]="todayPos === \'right\'"\n           [class.today-center]="todayPos === \'center\'"\n           *ngIf="showTodayBtn">\n        <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n      </div>\n\n        <div class="btn-clear-wrapper"\n        [class.clear-left]="clearPos === \'left\'"\n        [class.clear-right]="clearPos === \'right\'"\n        [class.clear-center]="clearPos === \'center\'"\n        *ngIf="showClearBtn">\n          <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n        </div>\n    </div>\n\n  </div>\n\n  \x3c!--custom dates or date ranges picker--\x3e\n  <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n    <bs-custom-date-view\n      [selectedRange]="chosenRange"\n      [ranges]="customRanges"\n      [customRangeLabel]="customRangeBtnLbl"\n      (onSelect)="setRangeOnCalendar($event)">\n    </bs-custom-date-view>\n  </div>\n</div>\n',host:{class:"bottom","(click)":"_stopPropagation($event)",role:"dialog","aria-label":"calendar"},animations:[oY]}]}],VY.ctorParameters=()=>[{type:s.Renderer2},{type:aY},{type:PY},{type:s.ElementRef},{type:cY},{type:pY},{type:LW}];class BY extends VY{constructor(t,e,n,i,s,r,a){super(t,e,n,i,s,r,a),t.setStyle(i.nativeElement,"display","inline-block"),t.setStyle(i.nativeElement,"position","static")}}BY.decorators=[{type:s.Component,args:[{selector:"bs-daterangepicker-inline-container",providers:[PY,pY],template:'\x3c!-- days calendar view mode --\x3e\n<div class="bs-datepicker" [ngClass]="containerClass" *ngIf="viewMode | async">\n  <div class="bs-datepicker-container"\n    [@datepickerAnimation]="animationState"\n    (@datepickerAnimation.done)="positionServiceEnable()">\n    \x3c!--calendars--\x3e\n    <div class="bs-calendar-container" [ngSwitch]="viewMode | async" role="application">\n      \x3c!--days calendar--\x3e\n      <div *ngSwitchCase="\'day\'" class="bs-media-container">\n        <bs-days-calendar-view\n          *ngFor="let calendar of daysCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          [options]="options | async"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="dayHoverHandler($event)"\n          (onHoverWeek)="weekHoverHandler($event)"\n          (onSelect)="daySelectHandler($event)">\n        </bs-days-calendar-view>\n      </div>\n\n      \x3c!--months calendar--\x3e\n      <div *ngSwitchCase="\'month\'" class="bs-media-container">\n        <bs-month-calendar-view\n          *ngFor="let calendar of monthsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="monthHoverHandler($event)"\n          (onSelect)="monthSelectHandler($event)">\n        </bs-month-calendar-view>\n      </div>\n\n      \x3c!--years calendar--\x3e\n      <div *ngSwitchCase="\'year\'" class="bs-media-container">\n        <bs-years-calendar-view\n          *ngFor="let calendar of yearsCalendar | async"\n          [class.bs-datepicker-multiple]="(daysCalendar | async)?.length > 1"\n          [calendar]="calendar"\n          (onNavigate)="navigateTo($event)"\n          (onViewMode)="setViewMode($event)"\n          (onHover)="yearHoverHandler($event)"\n          (onSelect)="yearSelectHandler($event)">\n        </bs-years-calendar-view>\n      </div>\n    </div>\n\n    \x3c!--applycancel buttons--\x3e\n    <div class="bs-datepicker-buttons" *ngIf="false">\n      <button class="btn btn-success" type="button">Apply</button>\n      <button class="btn btn-default" type="button">Cancel</button>\n    </div>\n\n    <div class="bs-datepicker-buttons" *ngIf="showTodayBtn || showClearBtn">\n      <div class="btn-today-wrapper"\n           [class.today-left]="todayPos === \'left\'"\n           [class.today-right]="todayPos === \'right\'"\n           [class.today-center]="todayPos === \'center\'"\n           *ngIf="showTodayBtn">\n        <button class="btn btn-success" (click)="setToday()">{{todayBtnLbl}}</button>\n      </div>\n\n        <div class="btn-clear-wrapper"\n        [class.clear-left]="clearPos === \'left\'"\n        [class.clear-right]="clearPos === \'right\'"\n        [class.clear-center]="clearPos === \'center\'"\n        *ngIf="showClearBtn">\n          <button class="btn btn-success" (click)="clearDate()">{{clearBtnLbl}}</button>\n        </div>\n    </div>\n\n  </div>\n\n  \x3c!--custom dates or date ranges picker--\x3e\n  <div class="bs-datepicker-custom-range" *ngIf="customRanges?.length > 0">\n    <bs-custom-date-view\n      [selectedRange]="chosenRange"\n      [ranges]="customRanges"\n      [customRangeLabel]="customRangeBtnLbl"\n      (onSelect)="setRangeOnCalendar($event)">\n    </bs-custom-date-view>\n  </div>\n</div>\n',host:{"(click)":"_stopPropagation($event)"},animations:[oY]}]}],BY.ctorParameters=()=>[{type:s.Renderer2},{type:aY},{type:PY},{type:s.ElementRef},{type:cY},{type:pY},{type:LW}];class HY{constructor(t,e,n,i,r){this._config=t,this._elementRef=e,this.bsValueChange=new s.EventEmitter,this._subs=[],Object.assign(this,this._config),this._datepicker=r.createLoader(e,i,n)}set bsValue(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))}ngOnInit(){this.setConfig(),this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef.instance.value=t})),this._subs.push(this._datepickerRef.instance.valueChange.pipe(Object(Cg.a)(t=>t&&t[0]&&!!t[1])).subscribe(t=>{this.bsValue=t}))}ngOnChanges(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate,this.setConfig()),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate,this.setConfig()),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled,this.setConfig()),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled,this.setConfig()),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled,this.setConfig()),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses,this.setConfig()))}setConfig(){this._datepicker&&this._datepicker.hide(),this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:this.bsConfig&&this.bsConfig.ranges,maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange}),this._datepickerRef=this._datepicker.provide({provide:aY,useValue:this._config}).attach(BY).to(this._elementRef).show()}ngOnDestroy(){this._datepicker.dispose()}}HY.decorators=[{type:s.Directive,args:[{selector:"bs-daterangepicker-inline",exportAs:"bsDaterangepickerInline"}]}],HY.ctorParameters=()=>[{type:jY},{type:s.ElementRef},{type:s.Renderer2},{type:s.ViewContainerRef},{type:tY}],HY.propDecorators={bsValue:[{type:s.Input}],bsConfig:[{type:s.Input}],isDisabled:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],dateCustomClasses:[{type:s.Input}],daysDisabled:[{type:s.Input}],datesDisabled:[{type:s.Input}],datesEnabled:[{type:s.Input}],bsValueChange:[{type:s.Output}]};const zY={provide:Wh,useExisting:Object(s.forwardRef)(()=>qY),multi:!0},UY={provide:tm,useExisting:Object(s.forwardRef)(()=>qY),multi:!0};class qY{constructor(t,e,n,i,s){this._picker=t,this._localeService=e,this._renderer=n,this._elRef=i,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._picker.bsValueChange.subscribe(t=>{this._setInputValue(t),this._value!==t&&(this._value=t,this._onChange(t),this._onTouched()),this.changeDetection.markForCheck()}),this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)}),this._picker.dateInputFormat$.pipe(Object(_g.a)()).subscribe(()=>{this._setInputValue(this._value)})}onKeydownEvent(t){13!==t.keyCode&&"Enter"!==t.code||this.hide()}_setInputValue(t){const e=t?C$(t,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",e)}onChange(t){this.writeValue(t.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(t){const e=t.value;if(null==e||""===e)return null;if(Kz(e)){if(!Zz(e))return{bsDate:{invalid:e}};if(this._picker&&this._picker.minDate&&L$(e,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&R$(e,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}}registerOnValidatorChange(t){this._validatorChange=t}writeValue(t){if(t){const e=this._localeService.currentLocale;if(!t$(e))throw new Error(`Locale "${e}" is not defined, please add it with "defineLocale(...)"`);this._value=P$(t,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=N$(this._value))}else this._value=null;this._picker.bsValue=this._value}setDisabledState(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}}qY.decorators=[{type:s.Directive,args:[{selector:"input[bsDatepicker]",host:{"(change)":"onChange($event)","(keyup.esc)":"hide()","(keydown)":"onKeydownEvent($event)","(blur)":"onBlur()"},providers:[zY,UY]}]}],qY.ctorParameters=()=>[{type:MY,decorators:[{type:s.Host}]},{type:dY},{type:s.Renderer2},{type:s.ElementRef},{type:s.ChangeDetectorRef}];class $Y extends aY{constructor(){super(...arguments),this.displayMonths=2}}$Y.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],$Y.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new $Y},token:$Y,providedIn:"root"});class WY{constructor(t,e,n,i,r){this._config=t,this._elementRef=e,this._renderer=n,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.bsValueChange=new s.EventEmitter,this._subs=[],this._rangeInputFormat$=new Gf.a,this._datepicker=r.createLoader(e,i,n),Object.assign(this,t),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new pg.a(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(t){this.isOpen$.next(t)}set bsValue(t){this._bsValue!==t&&(this._bsValue=t,this.bsValueChange.emit(t))}set bsConfig(t){this._bsConfig=t,this.setConfig(),this._rangeInputFormat$.next(t&&t.rangeInputFormat)}get bsConfig(){return this._bsConfig}get rangeInputFormat$(){return this._rangeInputFormat$}ngOnInit(){this.isDestroy$=new Gf.a,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig()}ngOnChanges(t){this._datepickerRef&&this._datepickerRef.instance&&(t.minDate&&(this._datepickerRef.instance.minDate=this.minDate),t.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),t.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),t.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),t.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),t.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),t.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe(Object(Cg.a)(t=>t!==this.isOpen),Object(xg.a)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:aY,useValue:this._config}).attach(VY).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this._subs.push(this.bsValueChange.subscribe(t=>{this._datepickerRef.instance.value=t})),this._subs.push(this._datepickerRef.instance.valueChange.pipe(Object(Cg.a)(t=>t&&t[0]&&!!t[1])).subscribe(t=>{this.bsValue=t,this.hide()})))}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._bsValue,isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:this.bsConfig&&this.bsConfig.ranges,maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange})}hide(){this.isOpen&&this._datepicker.hide();for(const t of this._subs)t.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(),this.isDestroy$.complete())}}WY.decorators=[{type:s.Directive,args:[{selector:"[bsDaterangepicker]",exportAs:"bsDaterangepicker"}]}],WY.ctorParameters=()=>[{type:$Y},{type:s.ElementRef},{type:s.Renderer2},{type:s.ViewContainerRef},{type:tY}],WY.propDecorators={placement:[{type:s.Input}],triggers:[{type:s.Input}],outsideClick:[{type:s.Input}],container:[{type:s.Input}],outsideEsc:[{type:s.Input}],isOpen:[{type:s.Input}],onShown:[{type:s.Output}],onHidden:[{type:s.Output}],bsValue:[{type:s.Input}],bsConfig:[{type:s.Input}],isDisabled:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],dateCustomClasses:[{type:s.Input}],daysDisabled:[{type:s.Input}],datesDisabled:[{type:s.Input}],datesEnabled:[{type:s.Input}],bsValueChange:[{type:s.Output}]};const YY={provide:Wh,useExisting:Object(s.forwardRef)(()=>KY),multi:!0},GY={provide:tm,useExisting:Object(s.forwardRef)(()=>KY),multi:!0};class KY{constructor(t,e,n,i,s){this._picker=t,this._localeService=e,this._renderer=n,this._elRef=i,this.changeDetection=s,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._picker.bsValueChange.subscribe(t=>{this._setInputValue(t),this._value!==t&&(this._value=t,this._onChange(t),this._onTouched()),this.changeDetection.markForCheck()}),this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)}),this._picker.rangeInputFormat$.pipe(Object(_g.a)()).subscribe(()=>{this._setInputValue(this._value)})}onKeydownEvent(t){13!==t.keyCode&&"Enter"!==t.code||this.hide()}_setInputValue(t){let e="";if(t){const n=t[0]?C$(t[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",i=t[1]?C$(t[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";e=n&&i?n+this._picker._config.rangeSeparator+i:""}this._renderer.setProperty(this._elRef.nativeElement,"value",e)}onChange(t){this.writeValue(t.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(t){const e=t.value,n=[];if(null==e||!Jz(e))return null;e.sort((t,e)=>t-e);const i=Zz(e[0]),s=Zz(e[1]);return i?s?(this._picker&&this._picker.minDate&&L$(e[0],this._picker.minDate,"date")&&(e[0]=this._picker.minDate,n.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&R$(e[1],this._picker.maxDate,"date")&&(e[1]=this._picker.maxDate,n.push({bsDate:{maxDate:this._picker.maxDate}})),n.length>0?(this.writeValue(e),n):void 0):{bsDate:{invalid:e[1]}}:{bsDate:{invalid:e[0]}}}registerOnValidatorChange(t){this._validatorChange=t}writeValue(t){if(t){const e=this._localeService.currentLocale;if(!t$(e))throw new Error(`Locale "${e}" is not defined, please add it with "defineLocale(...)"`);let n=[];"string"==typeof t&&(n=t.split(this._picker._config.rangeSeparator)),Array.isArray(t)&&(n=t),this._value=n.map(t=>this._picker._config.useUtc?N$(P$(t,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):P$(t,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(t=>isNaN(t.valueOf())?null:t)}else this._value=null;this._picker.bsValue=this._value}setDisabledState(t){this._picker.isDisabled=t,t?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}}KY.decorators=[{type:s.Directive,args:[{selector:"input[bsDaterangepicker]",host:{"(change)":"onChange($event)","(keyup.esc)":"hide()","(keydown)":"onKeydownEvent($event)","(blur)":"onBlur()"},providers:[YY,GY]}]}],KY.ctorParameters=()=>[{type:WY,decorators:[{type:s.Host}]},{type:dY},{type:s.Renderer2},{type:s.ElementRef},{type:s.ChangeDetectorRef}];class ZY{}ZY.decorators=[{type:s.Component,args:[{selector:"bs-calendar-layout",template:'\n    \x3c!-- current date, will be added in nearest releases --\x3e\n    <bs-current-date title="hey there" *ngIf="false"></bs-current-date>\n\n    \x3c!--navigation--\x3e\n    <div class="bs-datepicker-head">\n      <ng-content select="bs-datepicker-navigation-view"></ng-content>\n    </div>\n\n    <div class="bs-datepicker-body">\n      <ng-content></ng-content>\n    </div>\n\n    \x3c!--timepicker--\x3e\n    <bs-timepicker *ngIf="false"></bs-timepicker>\n  '}]}];class XY{}XY.decorators=[{type:s.Component,args:[{selector:"bs-current-date",template:'<div class="current-timedate"><span>{{ title }}</span></div>'}]}],XY.propDecorators={title:[{type:s.Input}]};class QY{constructor(){this.onSelect=new s.EventEmitter,this.customRange=null}selectFromRanges(t){this.onSelect.emit(t)}checkRange(){return!!this.ranges&&this.ranges.filter(t=>t.value===this.selectedRange).length>0}}QY.decorators=[{type:s.Component,args:[{selector:"bs-custom-date-view",template:'\n    <div class="bs-datepicker-predefined-btns">\n      <button *ngFor="let range of ranges"\n        type="button"\n        class="btn"\n        (click)="selectFromRanges(range)"\n        [class.selected]="range.value === selectedRange">\n        {{ range.label }}\n      </button>\n      <button\n        type="button"\n        class="btn"\n        (click)="selectFromRanges(customRange)"\n        [class.selected]="!checkRange()">\n        {{customRangeLabel}}\n      </button>\n    </div>\n  ',changeDetection:s.ChangeDetectionStrategy.OnPush}]}],QY.propDecorators={ranges:[{type:s.Input}],selectedRange:[{type:s.Input}],customRangeLabel:[{type:s.Input}],onSelect:[{type:s.Output}]};class JY{constructor(t,e,n){this._config=t,this._elRef=e,this._renderer=n}ngOnInit(){this.day.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day.customClasses&&this.day.customClasses.split(" ").filter(t=>t).forEach(t=>{this._renderer.addClass(this._elRef.nativeElement,t)})}}JY.decorators=[{type:s.Component,args:[{selector:"[bsDatepickerDayDecorator]",changeDetection:s.ChangeDetectionStrategy.OnPush,host:{"[class.disabled]":"day.isDisabled","[class.is-highlighted]":"day.isHovered","[class.is-other-month]":"day.isOtherMonth","[class.is-active-other-month]":"day.isOtherMonthHovered","[class.in-range]":"day.isInRange","[class.select-start]":"day.isSelectionStart","[class.select-end]":"day.isSelectionEnd","[class.selected]":"day.isSelected"},template:"{{ day.label }}"}]}],JY.ctorParameters=()=>[{type:aY},{type:s.ElementRef},{type:s.Renderer2}],JY.propDecorators={day:[{type:s.Input}]};const tG={UP:0,DOWN:1};tG[tG.UP]="UP",tG[tG.DOWN]="DOWN";class eG{constructor(){this.onNavigate=new s.EventEmitter,this.onViewMode=new s.EventEmitter}navTo(t){this.onNavigate.emit(t?tG.DOWN:tG.UP)}view(t){this.onViewMode.emit(t)}}eG.decorators=[{type:s.Component,args:[{selector:"bs-datepicker-navigation-view",changeDetection:s.ChangeDetectionStrategy.OnPush,template:'\n    <button class="previous"\n            [disabled]="calendar.disableLeftArrow"\n            [style.visibility]="calendar.hideLeftArrow ? \'hidden\' : \'visible\'"\n            type="button"\n            (click)="navTo(true)">\n      <span>&lsaquo;</span>\n    </button>\n\n    <ng-container *ngIf="calendar.monthTitle">\n      &#8203;  \x3c!-- zero-width space needed for correct alignement\n                  with preserveWhitespaces: false in Angular --\x3e\n\n      <button class="current"\n            type="button"\n            (click)="view(\'month\')"\n      ><span>{{ calendar.monthTitle }}</span>\n      </button>\n    </ng-container>\n\n    &#8203;  \x3c!-- zero-width space needed for correct alignement\n                  with preserveWhitespaces: false in Angular --\x3e\n\n    <button class="current" (click)="view(\'year\')" type="button">\n      <span>{{ calendar.yearTitle }}</span>\n    </button>\n\n    &#8203;  \x3c!-- zero-width space needed for correct alignement\n                  with preserveWhitespaces: false in Angular --\x3e\n\n    <button class="next"\n            [disabled]="calendar.disableRightArrow"\n            [style.visibility]="calendar.hideRightArrow ? \'hidden\' : \'visible\'"\n            type="button"\n            (click)="navTo(false)"><span>&rsaquo;</span>\n    </button>\n  '}]}],eG.propDecorators={calendar:[{type:s.Input}],onNavigate:[{type:s.Output}],onViewMode:[{type:s.Output}]};class nG{constructor(t){this._config=t,this.onNavigate=new s.EventEmitter,this.onViewMode=new s.EventEmitter,this.onSelect=new s.EventEmitter,this.onHover=new s.EventEmitter,this.onHoverWeek=new s.EventEmitter,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(t){const e=tG.DOWN===t?-1:1;this.onNavigate.emit({step:{month:e}})}changeViewMode(t){this.onViewMode.emit(t)}selectDay(t){this.onSelect.emit(t)}selectWeek(t){if(!this._config.selectWeek&&!this._config.selectWeekDateRange)return;if(0===t.days.length)return;if(this._config.selectWeek&&t.days[0]&&!t.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(t.days[0]);const e=t.days.find(t=>(this._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled);if(this.onSelect.emit(e),this._config.selectWeekDateRange){const e=t.days.slice(0).reverse().find(t=>(this._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled);this.onSelect.emit(e)}}weekHoverHandler(t,e){if(!this._config.selectWeek&&!this._config.selectWeekDateRange)return;t.days.find(t=>(this._config.selectFromOtherMonth||!t.isOtherMonth)&&!t.isDisabled)&&(t.isHovered=e,this.isWeekHovered=e,this.onHoverWeek.emit(t))}hoverDay(t,e){this._config.selectFromOtherMonth&&t.isOtherMonth&&(t.isOtherMonthHovered=e),this._config.dateTooltipTexts&&(t.tooltipText="",this._config.dateTooltipTexts.forEach(e=>{EU(e.date,t.date)&&(t.tooltipText=e.tooltipText)})),this.onHover.emit({cell:t,isHovered:e})}}nG.decorators=[{type:s.Component,args:[{selector:"bs-days-calendar-view",template:'\n    <bs-calendar-layout>\n      <bs-datepicker-navigation-view\n        [calendar]="calendar"\n        (onNavigate)="navigateTo($event)"\n        (onViewMode)="changeViewMode($event)"\n      ></bs-datepicker-navigation-view>\n\n      \x3c!--days matrix--\x3e\n      <table role="grid" class="days weeks">\n        <thead>\n        <tr>\n          \x3c!--if show weeks--\x3e\n          <th *ngIf="options.showWeekNumbers"></th>\n          <th *ngFor="let weekday of calendar.weekdays; let i = index"\n              aria-label="weekday">{{ calendar.weekdays[i] }}\n          </th>\n        </tr>\n        </thead>\n        <tbody>\n        <tr *ngFor="let week of calendar.weeks; let i = index">\n          <td class="week" [class.active-week]="isWeekHovered"  *ngIf="options.showWeekNumbers">\n            <span *ngIf="isiOS" (click)="selectWeek(week)">{{ calendar.weekNumbers[i] }}</span>\n            <span *ngIf="!isiOS"\n                (click)="selectWeek(week)"\n                (mouseenter)="weekHoverHandler(week, true)"\n                (mouseleave)="weekHoverHandler(week, false)">{{ calendar.weekNumbers[i] }}</span>\n          </td>\n          <td *ngFor="let day of week.days" role="gridcell">\n\n            \x3c!-- When we want to show tooltips for dates --\x3e\n            <span *ngIf="!isiOS && isShowTooltip" bsDatepickerDayDecorator\n                [day]="day"\n                (click)="selectDay(day)"\n                tooltip="{{day.tooltipText}}"\n                (mouseenter)="hoverDay(day, true)"\n                (mouseleave)="hoverDay(day, false)">{{ day.label }} 3</span>\n            \x3c!-- When tooltips for dates are disabled --\x3e\n            <span *ngIf="!isiOS && !isShowTooltip" bsDatepickerDayDecorator\n                  [day]="day"\n                  (click)="selectDay(day)"\n                  (mouseenter)="hoverDay(day, true)"\n                  (mouseleave)="hoverDay(day, false)">{{ day.label }} 2</span>\n\n            \x3c!-- For mobile iOS view, tooltips are not needed --\x3e\n            <span *ngIf="isiOS" bsDatepickerDayDecorator\n                  [day]="day"\n                  (click)="selectDay(day)">{{ day.label }} 1</span>\n          </td>\n        </tr>\n        </tbody>\n      </table>\n\n    </bs-calendar-layout>\n  '}]}],nG.ctorParameters=()=>[{type:aY}],nG.propDecorators={calendar:[{type:s.Input}],options:[{type:s.Input}],onNavigate:[{type:s.Output}],onViewMode:[{type:s.Output}],onSelect:[{type:s.Output}],onHover:[{type:s.Output}],onHoverWeek:[{type:s.Output}]};class iG{constructor(){this.onNavigate=new s.EventEmitter,this.onViewMode=new s.EventEmitter,this.onSelect=new s.EventEmitter,this.onHover=new s.EventEmitter}navigateTo(t){const e=tG.DOWN===t?-1:1;this.onNavigate.emit({step:{year:e}})}viewMonth(t){this.onSelect.emit(t)}hoverMonth(t,e){this.onHover.emit({cell:t,isHovered:e})}changeViewMode(t){this.onViewMode.emit(t)}}iG.decorators=[{type:s.Component,args:[{selector:"bs-month-calendar-view",template:'\n    <bs-calendar-layout>\n      <bs-datepicker-navigation-view\n        [calendar]="calendar"\n        (onNavigate)="navigateTo($event)"\n        (onViewMode)="changeViewMode($event)"\n      ></bs-datepicker-navigation-view>\n\n      <table role="grid" class="months">\n        <tbody>\n        <tr *ngFor="let row of calendar.months">\n          <td *ngFor="let month of row" role="gridcell"\n              (click)="viewMonth(month)"\n              (mouseenter)="hoverMonth(month, true)"\n              (mouseleave)="hoverMonth(month, false)"\n              [class.disabled]="month.isDisabled"\n              [class.is-highlighted]="month.isHovered">\n            <span [class.selected]="month.isSelected">{{ month.label }}</span>\n          </td>\n        </tr>\n        </tbody>\n      </table>\n    </bs-calendar-layout>\n  '}]}],iG.propDecorators={calendar:[{type:s.Input}],onNavigate:[{type:s.Output}],onViewMode:[{type:s.Output}],onSelect:[{type:s.Output}],onHover:[{type:s.Output}]};class sG{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}}sG.decorators=[{type:s.Component,args:[{selector:"bs-timepicker",template:'\n    <div class="bs-timepicker-container">\n      <div class="bs-timepicker-controls">\n        <button class="bs-decrease" type="button">-</button>\n        <input type="text" [value]="hours" placeholder="00">\n        <button class="bs-increase" type="button">+</button>\n      </div>\n      <div class="bs-timepicker-controls">\n        <button class="bs-decrease" type="button">-</button>\n        <input type="text" [value]="minutes" placeholder="00">\n        <button class="bs-increase" type="button">+</button>\n      </div>\n      <button class="switch-time-format" type="button">{{ ampm }}\n        <img\n          src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg=="\n          alt="">\n      </button>\n    </div>\n  '}]}];class rG{constructor(){this.onNavigate=new s.EventEmitter,this.onViewMode=new s.EventEmitter,this.onSelect=new s.EventEmitter,this.onHover=new s.EventEmitter}navigateTo(t){const e=tG.DOWN===t?-1:1;this.onNavigate.emit({step:{year:16*e}})}viewYear(t){this.onSelect.emit(t)}hoverYear(t,e){this.onHover.emit({cell:t,isHovered:e})}changeViewMode(t){this.onViewMode.emit(t)}}rG.decorators=[{type:s.Component,args:[{selector:"bs-years-calendar-view",template:'\n    <bs-calendar-layout>\n      <bs-datepicker-navigation-view\n        [calendar]="calendar"\n        (onNavigate)="navigateTo($event)"\n        (onViewMode)="changeViewMode($event)"\n      ></bs-datepicker-navigation-view>\n\n      <table role="grid" class="years">\n        <tbody>\n        <tr *ngFor="let row of calendar.years">\n          <td *ngFor="let year of row" role="gridcell"\n              (click)="viewYear(year)"\n              (mouseenter)="hoverYear(year, true)"\n              (mouseleave)="hoverYear(year, false)"\n              [class.disabled]="year.isDisabled"\n              [class.is-highlighted]="year.isHovered">\n            <span [class.selected]="year.isSelected">{{ year.label }}</span>\n          </td>\n        </tr>\n        </tbody>\n      </table>\n    </bs-calendar-layout>\n  '}]}],rG.propDecorators={calendar:[{type:s.Input}],onNavigate:[{type:s.Output}],onViewMode:[{type:s.Output}],onSelect:[{type:s.Output}],onHover:[{type:s.Output}]};class aG{static forRoot(){return{ngModule:aG,providers:[tY,LW,PY,cY,pY,dY]}}}aG.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule,rY.forRoot()],declarations:[ZY,XY,QY,JY,eG,nG,iG,sG,rG,NY,MY,LY,FY,qY,VY,WY,BY,HY,KY],entryComponents:[NY,VY,LY,BY],exports:[NY,MY,LY,FY,qY,VY,WY,BY,HY,KY]}]}];class oG{format(t,e,n){return C$(t,e,n)}}class lG{constructor(){this.selectionDone=new s.EventEmitter(void 0),this.update=new s.EventEmitter(!1),this.activeDateChange=new s.EventEmitter(void 0),this.stepDay={},this.stepMonth={},this.stepYear={},this.modes=["day","month","year"],this.dateFormatter=new oG}get activeDate(){return this._activeDate}set activeDate(t){this._activeDate=t}ngOnInit(){this.uniqueId=`datepicker--${Math.floor(1e4*Math.random())}`,this.initDate?(this.activeDate=this.initDate,this.selectedDate=new Date(this.activeDate.valueOf()),this.update.emit(this.activeDate)):void 0===this.activeDate&&(this.activeDate=new Date)}ngOnChanges(t){this.refreshView(),this.checkIfActiveDateGotUpdated(t.activeDate)}checkIfActiveDateGotUpdated(t){if(t&&!t.firstChange){const e=t.previousValue;e&&e instanceof Date&&e.getTime()!==t.currentValue.getTime()&&this.activeDateChange.emit(this.activeDate)}}setCompareHandler(t,e){"day"===e&&(this.compareHandlerDay=t),"month"===e&&(this.compareHandlerMonth=t),"year"===e&&(this.compareHandlerYear=t)}compare(t,e){if(void 0!==t&&void 0!==e)return"day"===this.datepickerMode&&this.compareHandlerDay?this.compareHandlerDay(t,e):"month"===this.datepickerMode&&this.compareHandlerMonth?this.compareHandlerMonth(t,e):"year"===this.datepickerMode&&this.compareHandlerYear?this.compareHandlerYear(t,e):void 0}setRefreshViewHandler(t,e){"day"===e&&(this.refreshViewHandlerDay=t),"month"===e&&(this.refreshViewHandlerMonth=t),"year"===e&&(this.refreshViewHandlerYear=t)}refreshView(){"day"===this.datepickerMode&&this.refreshViewHandlerDay&&this.refreshViewHandlerDay(),"month"===this.datepickerMode&&this.refreshViewHandlerMonth&&this.refreshViewHandlerMonth(),"year"===this.datepickerMode&&this.refreshViewHandlerYear&&this.refreshViewHandlerYear()}dateFilter(t,e){return this.dateFormatter.format(t,e,this.locale)}isActive(t){return 0===this.compare(t.date,this.activeDate)&&(this.activeDateId=t.uid,!0)}createDateObject(t,e){const n={};return n.date=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n.date=this.fixTimeZone(n.date),n.label=this.dateFilter(t,e),n.selected=0===this.compare(t,this.selectedDate),n.disabled=this.isDisabled(t),n.current=0===this.compare(t,new Date),n.customClass=this.getCustomClassForDate(n.date),n}split(t,e){const n=[];for(;t.length>0;)n.push(t.splice(0,e));return n}fixTimeZone(t){const e=t.getHours();return new Date(t.getFullYear(),t.getMonth(),t.getDate(),23===e?e+2:0)}select(t,e=!0){this.datepickerMode===this.minMode?(this.activeDate||(this.activeDate=new Date(0,0,0,0,0,0,0)),this.activeDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.activeDate=this.fixTimeZone(this.activeDate),e&&this.selectionDone.emit(this.activeDate)):(this.activeDate=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this.activeDate=this.fixTimeZone(this.activeDate),e&&(this.datepickerMode=this.modes[this.modes.indexOf(this.datepickerMode)-1])),this.selectedDate=new Date(this.activeDate.valueOf()),this.update.emit(this.activeDate),this.refreshView()}move(t){let e;if("day"===this.datepickerMode&&(e=this.stepDay),"month"===this.datepickerMode&&(e=this.stepMonth),"year"===this.datepickerMode&&(e=this.stepYear),e){const n=this.activeDate.getFullYear()+t*(e.years||0),i=this.activeDate.getMonth()+t*(e.months||0);this.activeDate=new Date(n,i,1),this.refreshView(),this.activeDateChange.emit(this.activeDate)}}toggleMode(t){const e=t||1;this.datepickerMode===this.maxMode&&1===e||this.datepickerMode===this.minMode&&-1===e||(this.datepickerMode=this.modes[this.modes.indexOf(this.datepickerMode)+e],this.refreshView())}getCustomClassForDate(t){if(!this.customClass)return"";const e=this.customClass.find(e=>e.date.valueOf()===t.valueOf()&&e.mode===this.datepickerMode,this);return void 0===e?"":e.clazz}compareDateDisabled(t,e){if(void 0!==t&&void 0!==e)return"day"===t.mode&&this.compareHandlerDay?this.compareHandlerDay(t.date,e):"month"===t.mode&&this.compareHandlerMonth?this.compareHandlerMonth(t.date,e):"year"===t.mode&&this.compareHandlerYear?this.compareHandlerYear(t.date,e):void 0}isDisabled(t){let e=!1;return this.dateDisabled&&this.dateDisabled.forEach(n=>{0===this.compareDateDisabled(n,t)&&(e=!0)}),this.dayDisabled&&(e=e||this.dayDisabled.indexOf(t.getDay())>-1),e||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0}}lG.decorators=[{type:s.Component,args:[{selector:"datepicker-inner",template:'\n    \x3c!--&lt;!&ndash;ng-keydown="keydown($event)"&ndash;&gt;--\x3e\n    <div *ngIf="datepickerMode" class="well well-sm bg-faded p-a card" role="application" >\n      <ng-content></ng-content>\n    </div>\n  '}]}],lG.propDecorators={locale:[{type:s.Input}],datepickerMode:[{type:s.Input}],startingDay:[{type:s.Input}],yearRange:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],minMode:[{type:s.Input}],maxMode:[{type:s.Input}],showWeeks:[{type:s.Input}],formatDay:[{type:s.Input}],formatMonth:[{type:s.Input}],formatYear:[{type:s.Input}],formatDayHeader:[{type:s.Input}],formatDayTitle:[{type:s.Input}],formatMonthTitle:[{type:s.Input}],onlyCurrentMonth:[{type:s.Input}],shortcutPropagation:[{type:s.Input}],customClass:[{type:s.Input}],monthColLimit:[{type:s.Input}],yearColLimit:[{type:s.Input}],dateDisabled:[{type:s.Input}],dayDisabled:[{type:s.Input}],initDate:[{type:s.Input}],selectionDone:[{type:s.Output}],update:[{type:s.Output}],activeDateChange:[{type:s.Output}],activeDate:[{type:s.Input}]};class cG{constructor(){this.locale="en",this.datepickerMode="day",this.startingDay=0,this.yearRange=20,this.minMode="day",this.maxMode="year",this.showWeeks=!0,this.formatDay="DD",this.formatMonth="MMMM",this.formatYear="YYYY",this.formatDayHeader="dd",this.formatDayTitle="MMMM YYYY",this.formatMonthTitle="YYYY",this.onlyCurrentMonth=!1,this.monthColLimit=3,this.yearColLimit=5,this.shortcutPropagation=!1}}cG.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],cG.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new cG},token:cG,providedIn:"root"});const dG={provide:Wh,useExisting:Object(s.forwardRef)(()=>pG),multi:!0};class pG{constructor(t){this.datepickerMode="day",this.showWeeks=!0,this.selectionDone=new s.EventEmitter(void 0),this.activeDateChange=new s.EventEmitter(void 0),this.onChange=Function.prototype,this.onTouched=Function.prototype,this._now=new Date,this.config=t,this.configureOptions()}get activeDate(){return this._activeDate||this._now}set activeDate(t){this._activeDate=t}configureOptions(){Object.assign(this,this.config)}onUpdate(t){this.activeDate=t,this.onChange(t)}onSelectionDone(t){this.selectionDone.emit(t)}onActiveDateChange(t){this.activeDateChange.emit(t)}writeValue(t){if(0!==this._datePicker.compare(t,this._activeDate))return t&&t instanceof Date?(this.activeDate=t,void this._datePicker.select(t,!1)):void(this.activeDate=t?new Date(t):void 0)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}}pG.decorators=[{type:s.Component,args:[{selector:"datepicker",template:'\n    <datepicker-inner [activeDate]="activeDate"\n                      (update)="onUpdate($event)"\n                      [locale]="config.locale"\n                      [datepickerMode]="datepickerMode"\n                      [initDate]="initDate"\n                      [minDate]="minDate"\n                      [maxDate]="maxDate"\n                      [minMode]="minMode"\n                      [maxMode]="maxMode"\n                      [showWeeks]="showWeeks"\n                      [formatDay]="formatDay"\n                      [formatMonth]="formatMonth"\n                      [formatYear]="formatYear"\n                      [formatDayHeader]="formatDayHeader"\n                      [formatDayTitle]="formatDayTitle"\n                      [formatMonthTitle]="formatMonthTitle"\n                      [startingDay]="startingDay"\n                      [yearRange]="yearRange"\n                      [customClass]="customClass"\n                      [dateDisabled]="dateDisabled"\n                      [dayDisabled]="dayDisabled"\n                      [onlyCurrentMonth]="onlyCurrentMonth"\n                      [shortcutPropagation]="shortcutPropagation"\n                      [monthColLimit]="monthColLimit"\n                      [yearColLimit]="yearColLimit"\n                      (selectionDone)="onSelectionDone($event)"\n                      (activeDateChange)="onActiveDateChange($event)">\n      <daypicker tabindex="0"></daypicker>\n      <monthpicker tabindex="0"></monthpicker>\n      <yearpicker tabindex="0"></yearpicker>\n    </datepicker-inner>\n    ',providers:[dG]}]}],pG.ctorParameters=()=>[{type:cG}],pG.propDecorators={datepickerMode:[{type:s.Input}],initDate:[{type:s.Input}],minDate:[{type:s.Input}],maxDate:[{type:s.Input}],minMode:[{type:s.Input}],maxMode:[{type:s.Input}],showWeeks:[{type:s.Input}],formatDay:[{type:s.Input}],formatMonth:[{type:s.Input}],formatYear:[{type:s.Input}],formatDayHeader:[{type:s.Input}],formatDayTitle:[{type:s.Input}],formatMonthTitle:[{type:s.Input}],startingDay:[{type:s.Input}],yearRange:[{type:s.Input}],onlyCurrentMonth:[{type:s.Input}],shortcutPropagation:[{type:s.Input}],monthColLimit:[{type:s.Input}],yearColLimit:[{type:s.Input}],customClass:[{type:s.Input}],dateDisabled:[{type:s.Input}],dayDisabled:[{type:s.Input}],activeDate:[{type:s.Input}],selectionDone:[{type:s.Output}],activeDateChange:[{type:s.Output}],_datePicker:[{type:s.ViewChild,args:[lG,{static:!0}]}]};class uG{constructor(t){this.labels=[],this.rows=[],this.weekNumbers=[],this.datePicker=t}get isBs4(){return!GW()}ngOnInit(){const t=this;this.datePicker.stepDay={months:1},this.datePicker.setRefreshViewHandler(function(){const e=this.activeDate.getFullYear(),n=this.activeDate.getMonth(),i=new Date(e,n,1),s=this.startingDay-i.getDay(),r=s>0?7-s:-s,a=new Date(i.getTime());r>0&&a.setDate(1-r);const o=t.getDates(a,42),l=[];for(let t=0;t<42;t++){const e=this.createDateObject(o[t],this.formatDay);e.secondary=o[t].getMonth()!==n,e.uid=this.uniqueId+"-"+t,l[t]=e}t.labels=[];for(let c=0;c<7;c++)t.labels[c]={},t.labels[c].abbr=this.dateFilter(l[c].date,this.formatDayHeader),t.labels[c].full=this.dateFilter(l[c].date,"EEEE");if(t.title=this.dateFilter(this.activeDate,this.formatDayTitle),t.rows=this.split(l,7),this.showWeeks){t.weekNumbers=[];const e=(11-this.startingDay)%7,n=t.rows.length;for(let i=0;i<n;i++)t.weekNumbers.push(t.getISO8601WeekNumber(t.rows[i][e].date))}},"day"),this.datePicker.setCompareHandler(function(t,e){const n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),i=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.getTime()-i.getTime()},"day"),this.datePicker.refreshView()}getDates(t,e){const n=new Array(e);let i,s=new Date(t.getTime()),r=0;for(;r<e;)i=new Date(s.getTime()),i=this.datePicker.fixTimeZone(i),n[r++]=i,s=new Date(i.getFullYear(),i.getMonth(),i.getDate()+1);return n}getISO8601WeekNumber(t){const e=new Date(t.getTime());e.setDate(e.getDate()+4-(e.getDay()||7));const n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e.getTime())/864e5)/7)+1}}uG.decorators=[{type:s.Component,args:[{selector:"daypicker",template:'\n<table *ngIf="datePicker.datepickerMode === \'day\'" role="grid" [attr.aria-labelledby]="datePicker.uniqueId + \'-title\'" aria-activedescendant="activeDateId">\n  <thead>\n    <tr>\n      <th>\n        <button *ngIf="!isBs4"\n                type="button"\n                class="btn btn-default btn-secondary btn-sm pull-left float-left"\n                (click)="datePicker.move(-1)"\n                tabindex="-1">\u2039</button>\n        <button *ngIf="isBs4"\n                type="button"\n                class="btn btn-default btn-secondary btn-sm pull-left float-left"\n                (click)="datePicker.move(-1)"\n                tabindex="-1">&lt;</button>\n      </th>\n      <th [attr.colspan]="5 + (datePicker.showWeeks ? 1 : 0)">\n        <button [id]="datePicker.uniqueId + \'-title\'"\n                type="button" class="btn btn-default btn-secondary btn-sm"\n                (click)="datePicker.toggleMode(0)"\n                [disabled]="datePicker.datepickerMode === datePicker.maxMode"\n                [ngClass]="{disabled: datePicker.datepickerMode === datePicker.maxMode}" tabindex="-1" style="width:100%;">\n          <strong>{{ title }}</strong>\n        </button>\n      </th>\n      <th>\n        <button *ngIf="!isBs4"\n                type="button"\n                class="btn btn-default btn-secondary btn-sm pull-right float-right"\n                (click)="datePicker.move(1)"\n                tabindex="-1">\u203a</button>\n        <button *ngIf="isBs4"\n                type="button"\n                class="btn btn-default btn-secondary btn-sm pull-right float-right"\n                (click)="datePicker.move(1)"\n                tabindex="-1">&gt;\n        </button>\n      </th>\n    </tr>\n    <tr>\n      <th *ngIf="datePicker.showWeeks"></th>\n      <th *ngFor="let labelz of labels" class="text-center">\n        <small aria-label="labelz.full"><b>{{ labelz.abbr }}</b></small>\n      </th>\n    </tr>\n  </thead>\n  <tbody>\n    <ng-template ngFor [ngForOf]="rows" let-rowz="$implicit" let-index="index">\n      <tr *ngIf="!(datePicker.onlyCurrentMonth && rowz[0].secondary && rowz[6].secondary)">\n        <td *ngIf="datePicker.showWeeks" class="h6" class="text-center">\n          <em>{{ weekNumbers[index] }}</em>\n        </td>\n        <td *ngFor="let dtz of rowz" class="text-center" role="gridcell" [id]="dtz.uid">\n          <button type="button" style="min-width:100%;" class="btn btn-sm {{dtz.customClass}}"\n                  *ngIf="!(datePicker.onlyCurrentMonth && dtz.secondary)"\n                  [ngClass]="{\'btn-secondary\': isBs4 && !dtz.selected && !datePicker.isActive(dtz), \'btn-info\': dtz.selected, disabled: dtz.disabled, active: !isBs4 && datePicker.isActive(dtz), \'btn-default\': !isBs4}"\n                  [disabled]="dtz.disabled"\n                  (click)="datePicker.select(dtz.date)" tabindex="-1">\n            <span [ngClass]="{\'text-muted\': dtz.secondary || dtz.current, \'text-info\': !isBs4 && dtz.current}">{{ dtz.label }}</span>\n          </button>\n        </td>\n      </tr>\n    </ng-template>\n  </tbody>\n</table>\n  ',styles:["\n    :host .btn-secondary {\n      color: #292b2c;\n      background-color: #fff;\n      border-color: #ccc;\n    }\n    :host .btn-info .text-muted {\n      color: #292b2c !important;\n    }\n  "]}]}],uG.ctorParameters=()=>[{type:lG}];class hG{constructor(t){this.rows=[],this.datePicker=t}get isBs4(){return!GW()}ngOnInit(){const t=this;this.datePicker.stepMonth={years:1},this.datePicker.setRefreshViewHandler(function(){const e=new Array(12),n=this.activeDate.getFullYear();let i;for(let t=0;t<12;t++)i=new Date(n,t,1),i=this.fixTimeZone(i),e[t]=this.createDateObject(i,this.formatMonth),e[t].uid=this.uniqueId+"-"+t;t.title=this.dateFilter(this.activeDate,this.formatMonthTitle),t.rows=this.split(e,t.datePicker.monthColLimit)},"month"),this.datePicker.setCompareHandler(function(t,e){const n=new Date(t.getFullYear(),t.getMonth()),i=new Date(e.getFullYear(),e.getMonth());return n.getTime()-i.getTime()},"month"),this.datePicker.refreshView()}}hG.decorators=[{type:s.Component,args:[{selector:"monthpicker",template:'\n<table *ngIf="datePicker.datepickerMode===\'month\'" role="grid">\n  <thead>\n    <tr>\n      <th>\n        <button type="button" class="btn btn-default btn-sm pull-left float-left"\n                (click)="datePicker.move(-1)" tabindex="-1">\u2039</button></th>\n      <th [attr.colspan]="((datePicker.monthColLimit - 2) <= 0) ? 1 : datePicker.monthColLimit - 2">\n        <button [id]="datePicker.uniqueId + \'-title\'"\n                type="button" class="btn btn-default btn-sm"\n                (click)="datePicker.toggleMode(0)"\n                [disabled]="datePicker.datepickerMode === maxMode"\n                [ngClass]="{disabled: datePicker.datepickerMode === maxMode}" tabindex="-1" style="width:100%;">\n          <strong>{{ title }}</strong> \n        </button>\n      </th>\n      <th>\n        <button type="button" class="btn btn-default btn-sm pull-right float-right"\n                (click)="datePicker.move(1)" tabindex="-1">\u203a</button>\n      </th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr *ngFor="let rowz of rows">\n      <td *ngFor="let dtz of rowz" class="text-center" role="gridcell" [attr.id]="dtz.uid" [ngClass]="dtz.customClass">\n        <button type="button" style="min-width:100%;" class="btn btn-default"\n                [ngClass]="{\'btn-link\': isBs4 && !dtz.selected && !datePicker.isActive(dtz), \'btn-info\': dtz.selected || (isBs4 && !dtz.selected && datePicker.isActive(dtz)), disabled: dtz.disabled, active: !isBs4 && datePicker.isActive(dtz)}"\n                [disabled]="dtz.disabled"\n                (click)="datePicker.select(dtz.date)" tabindex="-1">\n          <span [ngClass]="{\'text-success\': isBs4 && dtz.current, \'text-info\': !isBs4 && dtz.current}">{{ dtz.label }}</span>\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n  ',styles:["\n    :host .btn-info .text-success {\n      color: #fff !important;\n    }\n  "]}]}],hG.ctorParameters=()=>[{type:lG}];class mG{constructor(t){this.rows=[],this.datePicker=t}get isBs4(){return!GW()}ngOnInit(){const t=this;this.datePicker.stepYear={years:this.datePicker.yearRange},this.datePicker.setRefreshViewHandler(function(){const e=new Array(this.yearRange);let n;const i=t.getStartingYear(this.activeDate.getFullYear());for(let t=0;t<this.yearRange;t++)n=new Date(i+t,0,1),n=this.fixTimeZone(n),e[t]=this.createDateObject(n,this.formatYear),e[t].uid=this.uniqueId+"-"+t;t.title=[e[0].label,e[this.yearRange-1].label].join(" - "),t.rows=this.split(e,t.datePicker.yearColLimit)},"year"),this.datePicker.setCompareHandler(function(t,e){return t.getFullYear()-e.getFullYear()},"year"),this.datePicker.refreshView()}getStartingYear(t){return(t-1)/this.datePicker.yearRange*this.datePicker.yearRange+1}}mG.decorators=[{type:s.Component,args:[{selector:"yearpicker",template:'\n<table *ngIf="datePicker.datepickerMode===\'year\'" role="grid">\n  <thead>\n    <tr>\n      <th>\n        <button type="button" class="btn btn-default btn-sm pull-left float-left"\n                (click)="datePicker.move(-1)" tabindex="-1">\u2039</button>\n      </th>\n      <th [attr.colspan]="((datePicker.yearColLimit - 2) <= 0) ? 1 : datePicker.yearColLimit - 2">\n        <button [id]="datePicker.uniqueId + \'-title\'" role="heading"\n                type="button" class="btn btn-default btn-sm"\n                (click)="datePicker.toggleMode(0)"\n                [disabled]="datePicker.datepickerMode === datePicker.maxMode"\n                [ngClass]="{disabled: datePicker.datepickerMode === datePicker.maxMode}" tabindex="-1" style="width:100%;">\n          <strong>{{ title }}</strong>\n        </button>\n      </th>\n      <th>\n        <button type="button" class="btn btn-default btn-sm pull-right float-right"\n                (click)="datePicker.move(1)" tabindex="-1">\u203a</button>\n      </th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr *ngFor="let rowz of rows">\n      <td *ngFor="let dtz of rowz" class="text-center" role="gridcell" [attr.id]="dtz.uid">\n        <button type="button" style="min-width:100%;" class="btn btn-default"\n                [ngClass]="{\'btn-link\': isBs4 && !dtz.selected && !datePicker.isActive(dtz), \'btn-info\': dtz.selected || (isBs4 && !dtz.selected && datePicker.isActive(dtz)), disabled: dtz.disabled, active: !isBs4 && datePicker.isActive(dtz)}"\n                [disabled]="dtz.disabled"\n                (click)="datePicker.select(dtz.date)" tabindex="-1">\n          <span [ngClass]="{\'text-success\': isBs4 && dtz.current, \'text-info\': !isBs4 && dtz.current}">{{ dtz.label }}</span>\n        </button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n  ',styles:["\n    :host .btn-info .text-success {\n      color: #fff !important;\n    }\n  "]}]}],mG.ctorParameters=()=>[{type:lG}];class fG{static forRoot(){return{ngModule:fG,providers:[cG]}}}fG.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule,qf],declarations:[pG,lG,uG,hG,mG],exports:[pG,lG,uG,hG,mG],entryComponents:[pG]}]}];let gG=class{constructor(t,e,n,i){this.activeModal=t,this.httpService=e,this.route=n,this.waitlistservice=i,this.counter=0,this.postObj=[],this.pageredirecting=!1}ngOnInit(){}addmore(){this.counter++,$(".capacity-body").append('<tr class="capacity-row"><input type="hidden" name="bedid[]" class="bedid" value=""><input type="hidden" class="bedoptionid" value="0" /><td><select class="funding_source" name="funding_source[]"><option value="">-Select-</option><option value="2">Medicaid</option><option value="1">Not funded</option><option value="3">Other</option></select><input type="hidden" placeholder="FundSource Name" name="oth_fsrc[]" class="remove_oth_fsrc" value=""></td><td style="display:none;"><input name="total_beds[]" class="total_beds countbed" type="text" value="null" id="b_totbeds_'+this.counter+'"></td><td><input name="occupied_beds[]" class="occupied_beds countbed" type="text" value="" id="b_ocpbeds_'+this.counter+'"></td><td style="text-align:center;vertical-align:inherit;"><a href="javascript:void(0);" class="removeRow" (click)="removeMore();"><svg style="color:#e68686;" width="16" height="16" fill="currentColor" class="bi bi-trash-fill" viewBox="0 0 16 16"><path d="M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 1 0z"/></svg></a></td><td style="display:none;"><input type="text" name="available_beds[]" class="available_beds" value=""></td></tr>')}ngAfterContentInit(){this.waitlistservice.getCapacityData(this.my_modal_title).subscribe(t=>{this.bedInformation=t,setTimeout(function(){var t=0;$("input.occupied_beds").each(function(){$(this).val()>-1&&(t+=parseInt($(this).val()))}),$("input#totalAvlbeds").val($("input#totalBedsCnt").val()-t)},1e3)},t=>{console.log(t.message)}),document.querySelector("#myModalid").closest(".modal-content").setAttribute("id","updateCapacityModal"),$("body").on("change","select.funding_source",function(){$(this).next("input").val("").attr("type","hidden"),3==this.value&&$(this).next("input").attr("type","text")}),$("body").on("input",".occupied_beds",function(){var t=0;$("input.occupied_beds").each(function(){var e=$(this).val();e>-1&&""!=e&&(t+=parseInt(e))}),$("input#totalBedsCnt").val()<t?(alert("Occupied beds must be less than available beds"),t=parseInt($("input#totalBedsCnt").val())-t,$("input#totalAvlbeds").val(t),$(this).val("")):$("input#totalAvlbeds").val($("input#totalBedsCnt").val()-t)})}ngAferViewInit(){}};gG.ctorParameters=()=>[{type:ey},{type:Yf.HttpClient},{type:Wf.ActivatedRoute},{type:Zj}],gG.propDecorators={my_modal_title:[{type:s.Input}]},gG=Hh([Object(s.Component)({selector:"app-capacity",template:'<div id="myModalid">\n    <div class="modal-header">\n      <h4 class="modal-title pull-left" style="font-size: 18px;">Update Capacity</h4>\n      <button type="button" class="close" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n    </div>\t\t\t\n      <div class="modal-body">\n          <form id="capacity-row">\t\t\t\t\n          <div align="center" *ngIf="bedInformation" style="padding-bottom: 30px;display:flex; align-items:center;justify-content:center;"><span>Total # of Beds: <input type="text" style="width:180px" id="totalBedsCnt" name="totalBedsCnt" value="{{bedInformation.totalbeds}}"></span>&nbsp;<span>Available Beds: <input type="text" style="width:180px" readonly="" id="totalAvlbeds">\n          <input type="hidden" name="waitlistid" id="waitlistid" value="{{bedInformation.waitlistid}}" />\n          </span></div>\n            <table class="table table-bordered table-condensed" id="cap_update">\n                <thead>\n                  <tr style="background-color:#9281c5;">\n                    <th style="width: 50%;">Beds by Funding Source</th>\n                    <th>Occupied Beds</th>\n                    <th>Actions</th>\n                  </tr>\n                </thead>\n                <tbody class="capacity-body" *ngIf="bedInformation">\n                  <tr class="capacity-row" *ngFor="let beds of bedInformation.capdetails; index as i">\n                    <input type="hidden" name="bedid[]" id="{{beds.ref}}" class="bedid" value="{{beds.id}}">\n                    \x3c!-- <input type="hidden" class="bedoptionid" value="{{beds.bedoptionid}}" /> --\x3e\n                    <td>\n                      <select class="funding_source" name="funding_source[]">\n                        <option value="">-Select-</option>\n                        <option [selected]="beds.bedoptionname==\'Medicaid\'" value="2">Medicaid</option>\n                        <option [selected]="beds.bedoptionname==\'Notfunded\'" value="1">Not funded</option>\n                        <option [selected]="beds.bedoptionname==\'Other\'" value="3">Other</option>\n                      </select>\n                      <input type="{{beds.bedoptionname==\'Other\'?\'text\':\'hidden\'}}" placeholder="FundSource Name" name="oth_fsrc[]" class="remove_oth_fsrc" value="{{beds.otherfundingsourcename}}">\n                    </td>\n                    <td style="display:none;">\n                      <input name="total_beds[]" class="total_beds countbed" type="text" value="{{bedInformation.totalbeds}}" id="b_totbeds_{{i}}">\n                    </td>\n                    <td>\n                      <input name="occupied_beds[]" class="occupied_beds countbed" type="text" value="{{beds.bedsoccupied}}" id="b_ocpbeds_{{i}}">\n                    </td>\n                    <td style="text-align: center;vertical-align:inherit;">\n                      <a href="javascript:void(0);" data-occupied="1" class="removeRow"><svg style="color:#e68686;" width="16" height="16" fill="currentColor" class="bi bi-trash-fill" viewBox="0 0 16 16">\n                        <path d="M2.5 1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1H3v9a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V4h.5a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H10a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1H2.5zm3 4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 .5-.5zM8 5a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-1 0v-7A.5.5 0 0 1 8 5zm3 .5v7a.5.5 0 0 1-1 0v-7a.5.5 0 0 1 1 0z"/>\n                      </svg></a>\n                    </td>\n                    <td style="display:none;">\n                      <input type="text" name="available_beds[]" class="available_beds" value="-10">\n                    </td>\n                  </tr>\n                </tbody>\n            </table>\n            <input type="hidden" name="waitlist" value="163" class="data-waitlist">\n          </form>\t\t\t\n      </div>\n      <div class="modal-footer modal-center" id="new_capacity_buttons" style="text-align:center;">\n        <button class="btn purple-bg" type="button" data-dismiss="modal" (click)="activeModal.close(\'Close click\')">Cancel</button>\t\t\t\t\n        <button type="button" id="add_capacity_button" class="btn btn-primary">Save Changes</button> &nbsp;<label class="label label-success" *ngIf="pageredirecting">Redirecting...</label>\n        <button type="button" (click)="addmore();" class="add_more btn btn-primary btn-add">Add Another Funding Source</button>\n      </div>\n      </div>\t\t\t',styles:[":host ::ng-deep .modal-content{\n    width: 605px !important;\n    left: 50%;\n    transform: translate(-50%);\n}\nform span, form .h4{\n    font-weight: normal;\n}\n:host ::ng-deep select{background: none !important;}\n.table td, .table th{padding: 0.25rem;}\n.purple-bg, .btn-primary {\n    background: #8c5c8d;\n    color: #fff;\n}\n.btn {padding: 2px 10px !important;}\n.modal-footer{display: block;}"]})],gG);let bG=class{constructor(t,e,n){this.overviewservice=t,this._Activatedroute=e,this._router=n,this.Header=[],this.rows=[],this.images=[],this.crossimages=[]}ngOnInit(){this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.progid=t.get("id"),console.log(this.progid),this.overviewservice.getProviderPermission(this.progid).subscribe(t=>{this.permissions=t,console.log(this.permissions)})}),this.columns=this.getColumns()}getColumns(){return["Name","Active","Admin","Attributes","Waitlist"]}};bG.ctorParameters=()=>[{type:R_},{type:Wf.ActivatedRoute},{type:Wf.Router}],bG=Hh([Object(s.Component)({selector:"app-viewusers",template:'<div class="dashboard_box">\n\t<h3 class="dasboard_box_heading">User Permissions</h3>\n\t<div class="pad10" style="padding-top:0;">\n\t\t<div class="text-right">\n\t\t\t\n\t\t</div>\n\t\t\t\t<table class="table table-bordered table-condensed">\n\t\t\t<thead>\n\t\t\t\t<tr >\t\t\t\t\t\n\t\t\t\t\t<th class="text-center" *ngFor="let col of columns" >{{col}}</th>\n\t\t\t\t\t\x3c!-- <th width="60px">Active</th>\n\t\t\t\t\t<th width="60px">Admin</th>\n\t\t\t\t\t<th width="80px">Attributes</th> \n\t\t\t\t\t<th width="80px">Waitlist</th> --\x3e\n\t\t\t\t\t\x3c!--<th width="90px">Action</th>--\x3e\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\t\n                <tr *ngFor="let data of permissions">\n                    <td>{{data.fullname}}</td>\n                    <td *ngIf="data.active==true" class="text-center"><img src=\'../../../assets/images/icons/approved.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.active==false" class="text-center"><img src=\'../../../assets/images/icons/denied.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.active==null"></td>\n\t\t\t\t\t<td *ngIf="data.admin==true" class="text-center"><img src=\'../../../assets/images/icons/approved.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.admin==false" class="text-center"><img src=\'../../../assets/images/icons/denied.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.admin==null"></td>\n\t\t\t\t\t<td *ngIf="data.manageattributes==true" class="text-center"><img src=\'../../../assets/images/icons/approved.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.manageattributes==false" class="text-center"><img src=\'../../../assets/images/icons/denied.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.manageattributes==null"></td>\n\t\t\t\t\t<td *ngIf="data.managewaitlist==true" class="text-center"><img src=\'../../../assets/images/icons/approved.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.managewaitlist==false" class="text-center"><img src=\'../../../assets/images/icons/denied.png\' alt="icon"/></td>\n\t\t\t\t\t<td *ngIf="data.managewaitlist==null"></td>\n\t\t\t\t</tr>\t\n\t\t\x3c!-- <tr>\n\t\t<td>JEREMY HOLMAN</td><td class="text-center"><img src="https://mahelplineonline--tst.custhelp.com/euf/assets/hria/images/icons/approved.png" alt="icon"></td>\n\t\t<td class="text-center"><img src="https://mahelplineonline--tst.custhelp.com/euf/assets/hria/images/icons/approved.png" alt="icon"></td>\n\t\t<td class="text-center"><img src="https://mahelplineonline--tst.custhelp.com/euf/assets/hria/images/icons/approved.png" alt="icon"></td>\n\t\t<td class="text-center"><img src="https://mahelplineonline--tst.custhelp.com/euf/assets/hria/images/icons/approved.png" alt="icon"></td>\n\t\t</tr> --\x3e\n\t\t\x3c!-- <tr>\n        <td>CHRIS WHYTE</td>\n        <td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>JEN TOTH</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>CRISTINA FIGUEROA</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n        <tr><td>CINDY LOPEZ</td>\n            <td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>NAVEEN CHERUPALLY NEW</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>SRAVANI KILAMBI</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>JACQUELINE WALL</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>ALEXIS WING</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>VENKAT P</td><td *ngFor="let image of crossimages" class="text-center"><img [src]="image.href" alt="icon"/></td>\n\t\t</tr>\n\t\t<tr><td>JENNIFER CYRAN</td><td *ngFor="let image of images" class="text-center"><img [src]="image.href" alt="icon"/></td>\t --\x3e\n\t\t</tbody>\n\t\t</table>\n\t</div>\n</div>\n',styles:[""]})],bG);let vG=class{constructor(t,e,n){this.overviewservice=t,this._Activatedroute=e,this._router=n}ngOnInit(){this.waitlistdata&&(null==this.waitlistdata.waitlistcounts&&(this.waitlistdata.waitlistcounts=[]),console.log(this.waitlistdata))}};vG.ctorParameters=()=>[{type:R_},{type:Wf.ActivatedRoute},{type:Wf.Router}],vG.propDecorators={waitlistdata:[{type:s.Input}]},vG=Hh([Object(s.Component)({selector:"app-showwaitlists",template:'<div *ngIf="waitlistdata">\n<div class="dashboard_box top10" *ngIf="waitlistdata.organizationtypeid!=68 && waitlistdata.waitlistcounts.length!=0" style="margin-bottom: 10px;">\n\t<h3 class="dasboard_box_heading">WaitLists</h3>\n\t<div class="pad5">\n\t\t<table class="table table-bordered table-condensed">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t<th>Name</th>\n\t\t\t\t\t<th width="70px">Count</th> \n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t<tr *ngFor="let data of waitlistdata.waitlistcounts"><td><a [routerLink]="[\'/waitlist\',data.waitlistref]">{{data.waitlistname}}</a></td>\n\t\t\t<td>{{data.waitlistcount}}</td></tr>\n\t\t\t\x3c!-- <tr><td><a href="/app/account/waitlist_detail/waitlist_id/43">Residential Waitlist</a></td><td>34</td></tr>\n\t\t\t<tr><td><a href="/app/account/waitlist_detail/waitlist_id/164">Wait List Test</a></td><td>3</td></tr>\t\t\t --\x3e\n\t\t</tbody>\n\t\t</table>\n\t</div>\n</div>\n</div>',styles:[""]})],vG);const yG={headers:new Yf.HttpHeaders({"Content-Type":"application/json"})},_G=(new Yf.HttpHeaders).set("Content-Type","text/plain; charset=utf-8");let wG=class{constructor(t){this.http=t,this.backendUrl=Xf}GetIntakeHoursInfo(t){return this.http.get(this.backendUrl+"/v1/secure/providerintakehours/"+t,yG)}EditIntakeHoursInfo(t){return this.http.get(this.backendUrl+"/v1/secure/intakehours/"+t)}SetIntakeHoursInfo(t){return this.http.post(this.backendUrl+"/v1/secure/intakehours",t)}DeleteIntakeHours(t){return this.http.delete(this.backendUrl+"/v1/secure/intakehours/"+t,{headers:_G,responseType:"text"})}UpdateIntakeHours(t){return this.http.put(this.backendUrl+"/v1/secure/intakehours/",t)}getstatisticsinfo(t){return this.http.get(this.backendUrl+"/v1/secure/providertaskreferrals/"+t)}};wG.ctorParameters=()=>[{type:Yf.HttpClient}],wG=Hh([Object(s.Injectable)({providedIn:"root"})],wG);let xG=class{constructor(t,e,n,i){this.restService=t,this.intakeService=e,this._Activatedroute=n,this.overviewservice=i}ngOnInit(){setTimeout(()=>{this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.progid=t.get("id"),console.log(this.progid),this.intakeService.getstatisticsinfo(this.progid).subscribe(t=>{console.log(t),this.GetData=t,console.log(this.GetData),this.drawChart(this.GetData[0].taskcount,this.GetData[0].referalcount)})})},1e3)}drawChart(t,e){console.log(t,e),google.charts.load("visualization","1",{packages:["corechart"]});var n=t,i=e;google.charts.setOnLoadCallback(function(){!function(t,e){var i=google.visualization.arrayToDataTable([["Type","Count",{role:"style"}],["Searches",t,"lightblue"],["Referred",e,"green"]]),s=0;s=n<5?5:n<10?10:n<20?20:n<30?30:n<40?45:n<50?60:n<100?120:n+100;var r={title:"Number of Searches and Number of Referrals",height:300,bar:{groupWidth:"95%"},legend:{position:"none"},vAxis:{minValue:0,format:"0",maxValue:s}};new google.visualization.ColumnChart(document.getElementById("initial_chart_div")).draw(i,r)}(n,i),console.log(n,i)})}};xG.ctorParameters=()=>[{type:wG},{type:V_},{type:Wf.ActivatedRoute},{type:R_}],xG.propDecorators={statistics:[{type:s.Input}]},xG=Hh([Object(s.Component)({selector:"app-showstatistcs",template:'<div *ngIf="statistics">\n<div class="dashboard_box mt10" *ngIf="statistics.organizationtypeid!=68">\n    <h3 class="dasboard_box_heading">Statistics</h3>\n<div id="initial_chart_div" ></div>\n<p style="padding:5px;">This chart shows how many times your program showed up in searches and how many times it was referred by the Helpline</p>\n</div>\n</div>',styles:[".mt10 {\n  margin-top: 10px;\n}"]})],xG);let CG=class{constructor(t,e,n,i,s){this.modalService=t,this.restservice=e,this.formBuilder=n,this._Activatedroute=i,this.overviewservice=s,this.dropdownData=[],this.Days=[],this.display="none",this.options=["10","20","50"],this.selectedQuantity="10"}ngOnInit(){this.sub=this._Activatedroute.paramMap.subscribe(t=>{console.log(t),this.progid=t.get("id"),console.log(this.progid),this.restservice.checkLoginContactPermissions(this.progid).subscribe(t=>{this.permissions=t,console.log("this.permissions",this.permissions),1==this.permissions.admin&&(this.intakehours=this.intakedata,this.saveForm=new nf({sltday:new ef("",[im.required])}),this.restservice.GetIntakeHoursInfo(this.progid).subscribe(t=>{console.log(t),this.GetData=t;for(let e=0;e<this.GetData.length;e++)this.GetData[e].fromDate=new Date(null,null,null,this.GetData[e].timefromhh,this.GetData[e].timefrommm),this.GetData[e].toDate=new Date(null,null,null,this.GetData[e].timetohh,this.GetData[e].timetomm);console.log(this.GetData)},t=>{console.log(t)}))})})}openadddetails(t){this.modalService.open(t,{size:"lg",windowClass:"xlModal"})}editdetails(t,e){console.log(e),this.restservice.EditIntakeHoursInfo(e.ref,this.progid).subscribe(e=>{console.log(e),this.modalService.open(t,{windowClass:"xlModal"}),this.dropdownData=e,console.log(this.dropdownData.shiftnameid),console.log(this.dropdownData.shifttypeid),this.selectedvalue=this.dropdownData.shiftnameid,console.log(this.selectedvalue),this.selectedtype=this.dropdownData.shifttypeid,console.log(this.selectedtype),console.log(this.dropdownData.timefrommm),this.selectfromtime=this.dropdownData.timefromhh+":"+this.dropdownData.timefrommm,console.log(this.selectfromtime),this.selectftoime=this.dropdownData.timetohh+":"+this.dropdownData.timetomm,console.log(this.selectftoime),this.editid=this.dropdownData.id,this.ref=this.dropdownData.ref})}updatenintake(t){console.log(t);var e=this.selectfromtime.split(":");console.log(e);var n=this.selectftoime.split(":");let i={orgid:this.progid,shiftnameid:t.value.selectday,shifttypeid:t.value.selecttype,timefromhh:e[0],timefrommm:e[1],timetohh:n[0],timetomm:n[1],id:this.editid};this.restservice.UpdateIntakeHours(i).subscribe(t=>{console.log(t),this.modalService.dismissAll(),Yj.a.fire("Records Updated successfuly","","success"),this.restservice.GetIntakeHoursInfo(this.progid).subscribe(t=>{console.log(t),this.GetData=t;for(let e=0;e<this.GetData.length;e++)this.GetData[e].fromDate=new Date(null,null,null,this.GetData[e].timefromhh,this.GetData[e].timefrommm),this.GetData[e].toDate=new Date(null,null,null,this.GetData[e].timetohh,this.GetData[e].timetomm)},t=>{console.log(t)})})}Delete(t){console.log(t.ref),Yj.a.fire({title:"Are you sure want to delete?",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, delete it!",cancelButtonText:"No, keep it"}).then(e=>{e.value?this.restservice.DeleteIntakeHours(t.ref).subscribe(t=>{console.log(t),Yj.a.fire("Record Deleted","","success"),this.restservice.GetIntakeHoursInfo(this.progid).subscribe(t=>{console.log(t),this.GetData=t;for(let e=0;e<this.GetData.length;e++)this.GetData[e].fromDate=new Date(null,null,null,this.GetData[e].timefromhh,this.GetData[e].timefrommm),this.GetData[e].toDate=new Date(null,null,null,this.GetData[e].timetohh,this.GetData[e].timetomm)},t=>{console.log(t)})}):e.dismiss===Yj.a.DismissReason.cancel&&Yj.a.fire("Cancelled","Your  file is safe :)","error")})}addnewintake(t){console.log(t);var e=t.stime.split(":");console.log(e);var n=t.etime.split(":"),i={intakelist:[{orgid:this.progid,shiftnameid:t.selectday,shifttypeid:t.selecttype,timefromhh:e[0],timefrommm:e[1],timetohh:n[0],timetomm:n[1],id:""}]};console.log(i),this.restservice.SetIntakeHoursInfo(i).subscribe(t=>{console.log(t),this.modalService.dismissAll(),Yj.a.fire("Records saved successfuly","","success"),this.restservice.GetIntakeHoursInfo(this.progid).subscribe(t=>{console.log(t),this.GetData=t;for(let e=0;e<this.GetData.length;e++)this.GetData[e].fromDate=new Date(null,null,null,this.GetData[e].timefromhh,this.GetData[e].timefrommm),this.GetData[e].toDate=new Date(null,null,null,this.GetData[e].timetohh,this.GetData[e].timetomm)},t=>{console.log(t)})})}};CG.ctorParameters=()=>[{type:ay},{type:V_},{type:Uf},{type:Wf.ActivatedRoute},{type:R_}],CG.propDecorators={intakedata:[{type:s.Input}],closebutton:[{type:s.ViewChild,args:["closebutton"]}]},CG=Hh([Object(s.Component)({selector:"app-showintake",template:'\n<div class="dashboard_box" *ngIf="intakehours">\n  <div *ngIf="intakehours.organizationtypeid!=68">\n\t<h3 class="dasboard_box_heading">Intake Hours</h3>\n\t<div class="row" id="scheduleResult">\n        <div class="col-md-12">\n            <div class="text-right">\n              <button data-toggle="modal" (click)="openadddetails(addcontent)" data-backdrop="static" data-target="#addScheduleModal" class="button button_medium" \n              style="margin-right: 5px;"><i class="fa fa-plus">&nbsp;</i>Add</button>\n                \x3c!-- <button data-toggle="modal" (click)="openadddetails(addcontent)" data-backdrop="static" data-target="#addScheduleModal"  class="btn-get-started hero-button hero-button-small mr5 pd3"><i class="fa fa-plus">&nbsp;</i>Add</button> --\x3e\n            </div>\n            <div class="pad5">\n            <table class="table top10 bottom10" id="myOrgSchedule">\n                <thead>\n                    <tr>\n                      \x3c!-- <th style="visibility:hidden;">ID</th> --\x3e\n                        <th>Day</th>\n                        <th>Type</th>\n                        <th>Hours</th>                    \n                        <th>Actions</th>\n                    </tr>\n                </thead>\n                <tbody>\n                                                <tr *ngFor=\'let intake of GetData\' data-row="2">\n                                                  \x3c!-- <td style="visibility:hidden;">{{intake.id}}</td> --\x3e\n\n                                                  <td>\n                                                    \x3c!-- <ng-container *ngIf="intake.shiftnameid ==\'1\';then  Everyday; else eekdays">\n                                                    </ng-container>\n                                                    <ng-template #Everyday>\n                                                      <p>Everyday</p>\n                                                  </ng-template>\n                                                  <ng-template #eekdays>\n                                                    <ng-container *ngIf="intake.shiftnameid==\'2\';then Weekdays;else Sunday"></ng-container>\n                                                    <ng-template #Weekdays><p>Weekdays</p></ng-template>\n                                                  <ng-template #Sunday></ng-template>\n                                                  </ng-template> --\x3e\n                                                  <ng-container *ngIf="intake.shiftnameid ==\'1\';then  Everyday;">\n                                                  </ng-container>\n                                                  <ng-template #Everyday>\n                                                    <p>Everyday</p>\n                                                  </ng-template>\n                                                  <ng-container *ngIf="intake.shiftnameid ==\'2\';then  Weekdays;">\n                                                  </ng-container>\n                                                  <ng-template #Weekdays>\n                                                    <p>Weekdays</p>\n                                                  </ng-template>\n                                                  <ng-container *ngIf="intake.shiftnameid ==\'3\';then  Sunday;">\n                                                  </ng-container>\n                                                  <ng-template #Sunday>\n                                                    <p>Sunday</p>\n                                                  </ng-template>\n                                                    <ng-container *ngIf="intake.shiftnameid ==\'4\';then  Monday;">\n                                                    </ng-container>\n                                                    <ng-template #Monday>\n                                                      <p>Monday</p>\n                                                    </ng-template>\n                                                    <ng-container *ngIf="intake.shiftnameid ==\'5\';then  Tuesday;">\n                                                    </ng-container>\n                                                    <ng-template #Tuesday>\n                                                      <p>Tuesday</p>\n                                                    </ng-template>\n                                                    <ng-container *ngIf="intake.shiftnameid ==\'6\';then  Wednesday;">\n                                                    </ng-container>\n                                                    <ng-template #Wednesday>\n                                                      <p>Wednesday</p>\n                                                    </ng-template>\n                                                    <ng-container *ngIf="intake.shiftnameid ==\'7\';then  Thursday;">\n                                                    </ng-container>\n                                                    <ng-template #Thursday>\n                                                      <p>Thursday</p>\n                                                    </ng-template>\n                                                    <ng-container *ngIf="intake.shiftnameid ==\'8\';then  Friday;">\n                                                    </ng-container>\n                                                    <ng-template #Friday>\n                                                      <p>Friday</p>\n                                                    </ng-template>\n                                                    <ng-container *ngIf="intake.shiftnameid ==\'9\';then  Saturday;">\n                                                    </ng-container>\n                                                    <ng-template #Saturday>\n                                                      <p>Saturday</p>\n                                                    </ng-template>\n                                                  </td>\n                                                  <td>\n                                                  <ng-container *ngIf="intake.shifttypeid ==\'1\';then  Phone; else Walkin">\n                                                  </ng-container>\n                                                  <ng-template #Phone>\n                                                    <p>Phone</p>\n                                                </ng-template>\n                                                <ng-template #Walkin>\n                                                        <p>Walk-In</p>\n                                                </ng-template>\n                                                </td>\n                                                  <td >\n                                                    <span>{{intake.fromDate | date:\'shortTime\'}} - {{intake.toDate | date:\'shortTime\'}}</span>\n                                                   </td>\n                                <td>\n                                    <i class="fa fa-pencil cursor" title="Edit Row" style="cursor:pointer" data-row="2" data-toggle="modal" data-backdrop="static" (click)="editdetails(editcontent,intake)" data-target="#editScheduleModal">&nbsp;</i>&nbsp;\n                                    <i class="fa fa-times cursor" data-row="2" style="cursor:pointer" (click)="Delete(intake)" title="Delete Row">&nbsp;</i>\n                                </td>\n                            </tr>\n                                        </tbody>\n            </table>\n          </div>\n        </div>\n    </div>\n  </div>\n</div>\n<ng-template #addcontent let-modal style="width: fit-content;">\n  <form  #intake="ngForm" (ngSubmit)="intake.form.valid && addnewintake(intake.value)">\n    <div class="modal-header">\n      <h4 class="modal-title">Add a new schedule</h4>\n      <button type="button" #closebutton class="close" aria-label="Close" data-dismiss="modal" (click)="modal.dismiss(\'Cross click\')"\n      style="margin-top: -16px;">\n        <span aria-hidden="true" style="font-weight: bold;font-size: 26px;">&times;</span>\n      </button>\n    </div>\n    <div class="modal-body">\n      <div class="row">\n        <div class="col-md-12">\n          <em>Fields marked with an (*) are mandatory and cannot be left blank/empty</em>\n        </div>\n      </div>\n      <div class="row form-group">\n        <label class="col-md-5 col-form-label">Select Day: <span class="red">*</span></label>\n        <div class="col-md-7">\n            <select class="form-control"  [ngClass]="{ \'is-invalid\': intake.submitted && selectday.invalid }" name="selectday" #selectday="ngModel" id="save_schedule_day" ngModel required>\n                <option value="">Select One</option>\n                <option value="1">Everyday</option>\n                <option value="2">Weekdays</option>\n                <option value="3">Sunday</option>\n                <option value="4">Monday</option>\n                <option value="5">Tuesday</option>\n                <option value="6">Wednesday</option>\n                <option value="7">Thursday</option>\n                <option value="8">Friday</option>\n                <option value="9">Saturday</option>\n            </select>\n            <div *ngIf="intake.submitted && selectday.invalid" class="invalid-text">\n              <div *ngIf="selectday.errors.required">select Day is required</div>\n            </div>\n        </div>\n      </div>\n    \n    <div class="row form-group">\n      <label class="col-md-5 col-form-label">Select Type: <span class="red">*</span></label>\n      <div class="col-md-7">\n          <select class="form-control" id="save_schedule_type" [ngClass]="{ \'is-invalid\': intake.submitted && selecttype.invalid }" #selecttype="ngModel" name="selecttype" ngModel required>\n              <option value="">Select One</option>                    \n              <option value="1">Phone</option>\n              <option value="2">Walk-in</option>\n          </select>\n          <div *ngIf="intake.submitted && selecttype.invalid" class="invalid-text">\n            <div *ngIf="selecttype.errors.required">Select Type is required</div>\n          </div>\n      </div>\n    </div>\n  \n  <div class="row form-group">\n    <label class="col-md-5 col-form-label">From: <span class="red">*</span></label>\n    <div class="col-md-7">\n        <select class="form-control" id="save_schedule_from" name="stime" ngModel [ngClass]="{ \'is-invalid\': intake.submitted && stime.invalid }" #stime="ngModel" name="stime" ngModel required>\n            <option value="">Select One</option><option value="0:0">12:00 AM</option>\n            <option value="0:30">12:30 AM</option><option value="1:00">1:00 AM</option>\n            <option value="1:30">1:30 AM</option><option value="2:00">2:00 AM</option>\n            <option value="2:30">2:30 AM</option><option value="3:00">3:00 AM</option>\n            <option value="3:30">3:30 AM</option><option value="4:00">4:00 AM</option>\n            <option value="4:30">4:30 AM</option><option value="5:00">5:00 AM</option>\n            <option value="5:30">5:30 AM</option><option value="6:00">6:00 AM</option>\n            <option value="6:30">6:30 AM</option><option value="7:00">7:00 AM</option>\n            <option value="7:30">7:30 AM</option><option value="8:00">8:00 AM</option>\n            <option value="8:30">8:30 AM</option><option value="9:00">9:00 AM</option>\n            <option value="9:30">9:30 AM</option><option value="10:00">10:00 AM</option>\n            <option value="10:30">10:30 AM</option><option value="11:00">11:00 AM</option>\n            <option value="11:30">11:30 AM</option><option value="12:00">12:00 PM</option>\n            <option value="12:30">12:30 PM</option><option value="13:00">1:00 PM</option>\n            <option value="13:30">1:30 PM</option><option value="14:00">2:00 PM</option>\n            <option value="14:30">2:30 PM</option><option value="15:00">3:00 PM</option>\n            <option value="15:30">3:30 PM</option><option value="16:00">4:00 PM</option>\n            <option value="16:30">4:30 PM</option><option value="17:00">5:00 PM</option>\n            <option value="17:30">5:30 PM</option><option value="18:00">6:00 PM</option>\n            <option value="18:30">6:30 PM</option><option value="19:00">7:00 PM</option>\n            <option value="19:30">7:30 PM</option><option value="20:00">8:00 PM</option>\n            <option value="20:30">8:30 PM</option><option value="21:00">9:00 PM</option>\n            <option value="21:30">9:30 PM</option><option value="22:00">10:00 PM</option>\n            <option value="22:30">10:30 PM</option><option value="23:00">11:00 PM</option>\n            <option value="23:30">11:30 PM</option>\n        </select>\n        <div *ngIf="intake.submitted && stime.invalid" class="invalid-text">\n          <div *ngIf="stime.errors.required">From Time is required</div>\n        </div>\n    </div>\n  </div>\n\n<div class="row form-group">\n  <label class="col-md-5">To: <span class="red">*</span></label>\n  <div class="col-md-7">\n    <select class="form-control"  ngModel [ngClass]="{ \'is-invalid\': intake.submitted && etime.invalid }" #etime="ngModel" name="etime" required>\n      <option value="">Select One</option><option value="0:0">12:00 AM</option>\n      <option value="0:30">12:30 AM</option><option value="1:00">1:00 AM</option>\n      <option value="1:30">1:30 AM</option><option value="2:00">2:00 AM</option>\n      <option value="2:30">2:30 AM</option><option value="3:00">3:00 AM</option>\n      <option value="3:30">3:30 AM</option><option value="4:00">4:00 AM</option>\n      <option value="4:30">4:30 AM</option><option value="5:00">5:00 AM</option>\n      <option value="5:30">5:30 AM</option><option value="6:00">6:00 AM</option>\n      <option value="6:30">6:30 AM</option><option value="7:00">7:00 AM</option>\n      <option value="7:30">7:30 AM</option><option value="8:00">8:00 AM</option>\n      <option value="8:30">8:30 AM</option><option value="9:00">9:00 AM</option>\n      <option value="9:30">9:30 AM</option><option value="10:00">10:00 AM</option>\n      <option value="10:30">10:30 AM</option><option value="11:00">11:00 AM</option>\n      <option value="11:30">11:30 AM</option><option value="12:00">12:00 PM</option>\n      <option value="12:30">12:30 PM</option><option value="13:00">1:00 PM</option>\n      <option value="13:30">1:30 PM</option><option value="14:00">2:00 PM</option>\n      <option value="14:30">2:30 PM</option><option value="15:00">3:00 PM</option>\n      <option value="15:30">3:30 PM</option><option value="16:00">4:00 PM</option>\n      <option value="16:30">4:30 PM</option><option value="17:00">5:00 PM</option>\n      <option value="17:30">5:30 PM</option><option value="18:00">6:00 PM</option>\n      <option value="18:30">6:30 PM</option><option value="19:00">7:00 PM</option>\n      <option value="19:30">7:30 PM</option><option value="20:00">8:00 PM</option>\n      <option value="20:30">8:30 PM</option><option value="21:00">9:00 PM</option>\n      <option value="21:30">9:30 PM</option><option value="22:00">10:00 PM</option>\n      <option value="22:30">10:30 PM</option><option value="23:00">11:00 PM</option>\n      <option value="23:30">11:30 PM</option>\n    </select>\n    <div *ngIf="intake.submitted && etime.invalid" class="invalid-text">\n      <div *ngIf="etime.errors.required">To Time is required</div>\n    </div>\n  </div>\n\n</div>\n</div>\n    <div class="modal-footer">\n      <button type="button" class="button button_medium" (click)="modal.close(\'Close click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\n      <button type="submit" class="button button_medium" value = "submit"><i class="fa fa-save">&nbsp;</i>Save</button>\n    </div>\n  </form>\n  </ng-template>\n\n  <ng-template #editcontent let-modal>\n    <form #updateintake="ngForm" class="editintake" (ngSubmit)="updatenintake(updateintake)">\n    <div class="modal-header">\n      <h4 class="modal-title">Edit schedule</h4>\n      <button type="button" class="close" aria-label="Close" (click)="modal.dismiss(\'Cross click\')" style="margin-top: -16px;">\n        <span aria-hidden="true" style="font-size: 26px;">&times;</span>\n      </button>\n    </div>\n    <div class="modal-body">\n      <div class="row">\n        <div class="col-md-12">\n          <em>Fields marked with an (*) are mandatory and cannot be left blank/empty</em>\n        </div>\n      </div>\n      <div class="row form-group">\n        <label class="col-md-6 col-form-label">Select Day: <span class="red">*</span></label>\n        <div class="col-md-6">\n            \n              <select class="form-control" #selectday="ngModel"  name="selectday"   [(ngModel)]="selectedvalue" required>\n                \n                <option  value="">Select One </option>\n                <option value="1">Everyday\n                 </option>\n                 <option value="2">Weekdays\n                </option>\n                <option value="3">Sunday\n                </option>\n                <option value="4">Monday\n                </option>\n                <option value="5">Tuesday\n                </option>\n                <option value="6">Wednesday\n                </option>\n                <option value="7">Thursday\n                </option>\n                <option value="8">Friday\n                </option>\n                <option value="9">Saturday\n                </option>\n           </select>\n          <div [hidden]="selectday.valid || selectday.pristine" class="invalid-text">\n            <div>Select Day is required</div>\n          </div>\n          \n        </div>\n    </div>\n    <div class="row form-group">\n      <label class="col-md-6 col-form-label">Select Type: <span class="red">*</span></label>\n      <div class="col-md-6">\n          <select class="form-control" id="save_schedule_type" #selecttype="ngModel" [(ngModel)]="selectedtype" name="selecttype" required>\n              <option value="">Select One</option>\n              <option value="1">Phone\n              </option>\n              <option value="2">Walk-In\n              </option>                    \n          </select>\n          <div [hidden]="selecttype.valid || selecttype.pristine" class="invalid-text">\n            <div>Select Type is required</div>\n          </div>\n      </div>\n  </div>\n  <div class="row form-group">\n    <label class="col-md-6 col-form-label">From: <span class="red">*</span></label>\n    <div class="col-md-6">\n        <select class="form-control" id="save_schedule_from" [(ngModel)]="selectfromtime" #Fromtime="ngModel"  name="Fromtime"    required>\n            <option value="">Select One</option><option value="0:0">12:00 AM</option>\n            <option value="0:30">12:30 AM</option><option value="1:0">1:00 AM</option>\n            <option value="1:30">1:30 AM</option><option value="2:0">2:00 AM</option>\n            <option value="2:30">2:30 AM</option><option value="3:0">3:00 AM</option>\n            <option value="3:30">3:30 AM</option><option value="4:0">4:00 AM</option>\n            <option value="4:30">4:30 AM</option><option value="5:0">5:00 AM</option>\n            <option value="5:30">5:30 AM</option><option value="6:0">6:00 AM</option>\n            <option value="6:30">6:30 AM</option><option value="7:0">7:00 AM</option>\n            <option value="7:30">7:30 AM</option><option value="8:0">8:00 AM</option>\n            <option value="8:30">8:30 AM</option><option value="9:0">9:00 AM</option>\n            <option value="9:30">9:30 AM</option><option value="10:0">10:00 AM</option>\n            <option value="10:30">10:30 AM</option><option value="11:0">11:00 AM</option>\n            <option value="11:30">11:30 AM</option><option value="12:0">12:00 PM</option>\n            <option value="12:30">12:30 PM</option><option value="13:0">1:00 PM</option>\n            <option value="13:30">1:30 PM</option><option value="14:0">2:00 PM</option>\n            <option value="14:30">2:30 PM</option><option value="15:0">3:00 PM</option>\n            <option value="15:30">3:30 PM</option><option value="16:0">4:00 PM</option>\n            <option value="16:30">4:30 PM</option><option value="17:0">5:00 PM</option>\n            <option value="17:30">5:30 PM</option><option value="18:0">6:00 PM</option>\n            <option value="18:30">6:30 PM</option><option value="19:0">7:00 PM</option>\n            <option value="19:30">7:30 PM</option><option value="20:0">8:00 PM</option>\n            <option value="20:30">8:30 PM</option><option value="21:0">9:00 PM</option>\n            <option value="21:30">9:30 PM</option><option value="22:0">10:00 PM</option>\n            <option value="22:30">10:30 PM</option><option value="23:0">11:00 PM</option>\n            <option value="23:30">11:30 PM</option>\n        </select>\n        <div [hidden]="Fromtime.valid || Fromtime.pristine" class="invalid-text">\n          <div>From Time is required</div>\n        </div>\n        \n    </div>\n</div>\n<div class="row form-group">\n  <label class="col-md-6">To: <span class="red">*</span></label>\n  <div class="col-md-6">\n    <select class="form-control" [(ngModel)]="selectftoime"  #Totime="ngModel"  name="Totime" required>\n      <option>Select One</option><option value="0:0">12:00 AM</option>\n      <option value="0:30">12:30 AM</option><option value="1:0">1:00 AM</option>\n      <option value="1:30">1:30 AM</option><option value="2:0">2:00 AM</option>\n      <option value="2:30">2:30 AM</option><option value="3:0">3:00 AM</option>\n      <option value="3:30">3:30 AM</option><option value="4:0">4:00 AM</option>\n      <option value="4:30">4:30 AM</option><option value="5:0">5:00 AM</option>\n      <option value="5:30">5:30 AM</option><option value="6:0">6:00 AM</option>\n      <option value="6:30">6:30 AM</option><option value="7:0">7:00 AM</option>\n      <option value="7:30">7:30 AM</option><option value="8:0">8:00 AM</option>\n      <option value="8:30">8:30 AM</option><option value="9:0">9:00 AM</option>\n      <option value="9:30">9:30 AM</option><option value="10:0">10:00 AM</option>\n      <option value="10:30">10:30 AM</option><option value="11:0">11:00 AM</option>\n      <option value="11:30">11:30 AM</option><option value="12:0">12:00 PM</option>\n      <option value="12:30">12:30 PM</option><option value="13:0">1:00 PM</option>\n      <option value="13:30">1:30 PM</option><option value="14:0">2:00 PM</option>\n      <option value="14:30">2:30 PM</option><option value="15:0">3:00 PM</option>\n      <option value="15:30">3:30 PM</option><option value="16:0">4:00 PM</option>\n      <option value="16:30">4:30 PM</option><option value="17:0">5:00 PM</option>\n      <option value="17:30">5:30 PM</option><option value="18:0">6:00 PM</option>\n      <option value="18:30">6:30 PM</option><option value="19:0">7:00 PM</option>\n      <option value="19:30">7:30 PM</option><option value="20:0">8:00 PM</option>\n      <option value="20:30">8:30 PM</option><option value="21:0">9:00 PM</option>\n      <option value="21:30">9:30 PM</option><option value="22:0">10:00 PM</option>\n      <option value="22:30">10:30 PM</option><option value="23:0">11:00 PM</option>\n      <option value="23:30">11:30 PM</option>\n    </select>\n    <div [hidden]="Totime.valid || Totime.pristine" class="invalid-text">\n      <div>To Time is required</div>\n    </div>\n  </div>\n\n</div>\n    </div>\n    <div class="modal-footer">\n      <button type="button" class="button button_medium" (click)="modal.close(\'Close click\')" ><i class="fa fa-close">&nbsp;</i>Close</button>\n      <button type="submit" class="button button_medium" value="submit"><i class="fa fa-save">&nbsp;</i>Update</button>\n    </div>\n  </form>\n  </ng-template>\n  <div class="col-md-13" *ngIf="!this.permissions">\n    <div class="alert alert-danger">You do not have the administrative rights of the selected program.</div>\n</div>\n\n',styles:[".bottom10 {\n  margin-bottom: 20px;\n}\n\n#myOrgSchedule tr {\n  border-bottom: 1px solid #967e7e;\n}\n\n.mr5 {\n  margin-right: 5px;\n}\n\n.pd3 {\n  padding: 0px 3px;\n}\n\n.invalid-text {\n  color: red;\n}\n\n.editintake .ng-invalid {\n  border: 1px solid red;\n}\n\n::ng-deep .xlModal > .modal-dialog {\n  max-width: 500px !important;\n}\n\n.alert-danger {\n  background-color: #13518e;\n  border-color: #13518e;\n  color: #fff;\n}"]})],CG);const SG=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});class kG{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}kG.decorators=[{type:s.Directive,args:[{selector:"mat-ink-bar",host:{class:"mat-ink-bar","[class._mat-animation-noopable]":"_animationMode === 'NoopAnimations'"}}]}],kG.ctorParameters=()=>[{type:s.ElementRef},{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[SG]}]},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}];const EG=new s.InjectionToken("MatTabContent");class IG{constructor(t){this.template=t}}IG.decorators=[{type:s.Directive,args:[{selector:"[matTabContent]",providers:[{provide:EG,useExisting:IG}]}]}],IG.ctorParameters=()=>[{type:s.TemplateRef}];const AG=new s.InjectionToken("MatTabLabel");class DG extends YE{}DG.decorators=[{type:s.Directive,args:[{selector:"[mat-tab-label], [matTabLabel]",providers:[{provide:AG,useExisting:DG}]}]}];const TG=xk(class{}),OG=new s.InjectionToken("MAT_TAB_GROUP");class PG extends TG{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new Gf.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}PG.decorators=[{type:s.Component,args:[{selector:"mat-tab",template:"\x3c!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n    TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n    tab-group. --\x3e\n<ng-template><ng-content></ng-content></ng-template>\n",inputs:["disabled"],changeDetection:s.ChangeDetectionStrategy.Default,encapsulation:s.ViewEncapsulation.None,exportAs:"matTab"}]}],PG.ctorParameters=()=>[{type:s.ViewContainerRef},{type:void 0,decorators:[{type:s.Inject,args:[OG]}]}],PG.propDecorators={templateLabel:[{type:s.ContentChild,args:[AG]}],_explicitContent:[{type:s.ContentChild,args:[EG,{read:s.TemplateRef,static:!0}]}],_implicitContent:[{type:s.ViewChild,args:[s.TemplateRef,{static:!0}]}],textLabel:[{type:s.Input,args:["label"]}],ariaLabel:[{type:s.Input,args:["aria-label"]}],ariaLabelledby:[{type:s.Input,args:["aria-labelledby"]}]};const NG={translateTab:$x("translateTab",[Kx("center, void, left-origin-center, right-origin-center",Gx({transform:"none"})),Kx("left",Gx({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Kx("right",Gx({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Xx("* => left, * => right, left => center, right => center",Wx("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Xx("void => left-origin-center",[Gx({transform:"translate3d(-100%, 0, 0)"}),Wx("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Xx("void => right-origin-center",[Gx({transform:"translate3d(100%, 0, 0)"}),Wx("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};class MG extends KE{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=Aw.a.EMPTY,this._leavingSub=Aw.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(yg.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}MG.decorators=[{type:s.Directive,args:[{selector:"[matTabBodyHost]"}]}],MG.ctorParameters=()=>[{type:s.ComponentFactoryResolver},{type:s.ViewContainerRef},{type:LG,decorators:[{type:s.Inject,args:[Object(s.forwardRef)(()=>LG)]}]},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];class RG{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Aw.a.EMPTY,this._translateTabComplete=new Gf.a,this._onCentering=new s.EventEmitter,this._beforeCentering=new s.EventEmitter,this._afterLeavingCenter=new s.EventEmitter,this._onCentered=new s.EventEmitter(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Object(_g.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._positionIndex<0?this._position="ltr"==t?"left":"right":this._positionIndex>0?this._position="ltr"==t?"right":"left":this._position="center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}RG.decorators=[{type:s.Directive}],RG.ctorParameters=()=>[{type:s.ElementRef},{type:Bx,decorators:[{type:s.Optional}]},{type:s.ChangeDetectorRef}],RG.propDecorators={_onCentering:[{type:s.Output}],_beforeCentering:[{type:s.Output}],_afterLeavingCenter:[{type:s.Output}],_onCentered:[{type:s.Output}],_content:[{type:s.Input,args:["content"]}],origin:[{type:s.Input}],animationDuration:[{type:s.Input}],position:[{type:s.Input}]};class LG extends RG{constructor(t,e,n){super(t,e,n)}}LG.decorators=[{type:s.Component,args:[{selector:"mat-tab-body",template:'<div class="mat-tab-body-content" #content\n     [@translateTab]="{\n        value: _position,\n        params: {animationDuration: animationDuration}\n     }"\n     (@translateTab.start)="_onTranslateTabStarted($event)"\n     (@translateTab.done)="_translateTabComplete.next($event)"\n     cdkScrollable>\n  <ng-template matTabBodyHost></ng-template>\n</div>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default,animations:[NG.translateTab],host:{class:"mat-tab-body"},styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"]}]}],LG.ctorParameters=()=>[{type:s.ElementRef},{type:Bx,decorators:[{type:s.Optional}]},{type:s.ChangeDetectorRef}],LG.propDecorators={_portalHost:[{type:s.ViewChild,args:[KE]}]};const FG=new s.InjectionToken("MAT_TABS_CONFIG");let jG=0;class VG{}const BG=Ck(Sk(class{constructor(t){this._elementRef=t}}),"primary");class HG extends BG{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Aw.a.EMPTY,this._tabLabelSubscription=Aw.a.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=jG++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Ow(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Pw(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove(`mat-background-${this.backgroundColor}`),t&&e.classList.add(`mat-background-${t}`),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));const e=this._tabBodyWrapper.nativeElement;e.style.minHeight=e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Object(yg.a)(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new VG;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(gg.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}_tabFocusChanged(t,e){t&&(this._tabHeader.focusIndex=e)}}HG.decorators=[{type:s.Directive}],HG.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:void 0,decorators:[{type:s.Inject,args:[FG]},{type:s.Optional}]},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],HG.propDecorators={dynamicHeight:[{type:s.Input}],selectedIndex:[{type:s.Input}],headerPosition:[{type:s.Input}],animationDuration:[{type:s.Input}],disablePagination:[{type:s.Input}],backgroundColor:[{type:s.Input}],selectedIndexChange:[{type:s.Output}],focusChange:[{type:s.Output}],animationDone:[{type:s.Output}],selectedTabChange:[{type:s.Output}]};class zG extends HG{constructor(t,e,n,i){super(t,e,n,i)}}zG.decorators=[{type:s.Component,args:[{selector:"mat-tab-group",exportAs:"matTabGroup",template:'<mat-tab-header #tabHeader\n               [selectedIndex]="selectedIndex || 0"\n               [disableRipple]="disableRipple"\n               [disablePagination]="disablePagination"\n               (indexFocused)="_focusChanged($event)"\n               (selectFocusedIndex)="selectedIndex = $event">\n  <div class="mat-tab-label mat-focus-indicator" role="tab" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n       *ngFor="let tab of _tabs; let i = index"\n       [id]="_getTabLabelId(i)"\n       [attr.tabIndex]="_getTabIndex(tab, i)"\n       [attr.aria-posinset]="i + 1"\n       [attr.aria-setsize]="_tabs.length"\n       [attr.aria-controls]="_getTabContentId(i)"\n       [attr.aria-selected]="selectedIndex == i"\n       [attr.aria-label]="tab.ariaLabel || null"\n       [attr.aria-labelledby]="(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null"\n       [class.mat-tab-label-active]="selectedIndex == i"\n       [disabled]="tab.disabled"\n       [matRippleDisabled]="tab.disabled || disableRipple"\n       (click)="_handleClick(tab, tabHeader, i)"\n       (cdkFocusChange)="_tabFocusChanged($event, i)">\n\n\n    <div class="mat-tab-label-content">\n      \x3c!-- If there is a label template, use it. --\x3e\n      <ng-template [ngIf]="tab.templateLabel">\n        <ng-template [cdkPortalOutlet]="tab.templateLabel"></ng-template>\n      </ng-template>\n\n      \x3c!-- If there is not a label template, fall back to the text label. --\x3e\n      <ng-template [ngIf]="!tab.templateLabel">{{tab.textLabel}}</ng-template>\n    </div>\n  </div>\n</mat-tab-header>\n\n<div\n  class="mat-tab-body-wrapper"\n  [class._mat-animation-noopable]="_animationMode === \'NoopAnimations\'"\n  #tabBodyWrapper>\n  <mat-tab-body role="tabpanel"\n               *ngFor="let tab of _tabs; let i = index"\n               [id]="_getTabContentId(i)"\n               [attr.aria-labelledby]="_getTabLabelId(i)"\n               [class.mat-tab-body-active]="selectedIndex == i"\n               [content]="tab.content!"\n               [position]="tab.position!"\n               [origin]="tab.origin"\n               [animationDuration]="animationDuration"\n               (_onCentered)="_removeTabBodyWrapperHeight()"\n               (_onCentering)="_setTabBodyWrapperHeight($event)">\n  </mat-tab-body>\n</div>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default,inputs:["color","disableRipple"],providers:[{provide:OG,useExisting:zG}],host:{class:"mat-tab-group","[class.mat-tab-group-dynamic-height]":"dynamicHeight","[class.mat-tab-group-inverted-header]":'headerPosition === "below"'},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]}]}],zG.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:void 0,decorators:[{type:s.Inject,args:[FG]},{type:s.Optional}]},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],zG.propDecorators={_allTabs:[{type:s.ContentChildren,args:[PG,{descendants:!0}]}],_tabBodyWrapper:[{type:s.ViewChild,args:["tabBodyWrapper"]}],_tabHeader:[{type:s.ViewChild,args:["tabHeader"]}]};const UG=xk(class{});class qG extends UG{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}qG.decorators=[{type:s.Directive,args:[{selector:"[matTabLabelWrapper]",inputs:["disabled"],host:{"[class.mat-tab-disabled]":"disabled","[attr.aria-disabled]":"!!disabled"}}]}],qG.ctorParameters=()=>[{type:s.ElementRef}];const $G=Yw({passive:!0});class WG{constructor(t,e,n,i,r,a,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=a,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Gf.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Gf.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,r.runOutsideAngular(()=>{Object(fg.a)(t.nativeElement,"mouseleave").pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Pw(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(fg.a)(this._previousPaginator.nativeElement,"touchstart",$G).pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(fg.a)(this._nextPaginator.nativeElement,"touchstart",$G).pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(Dw.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new dx(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(gg.a)(t,e,this._items.changes).pipe(Object(xg.a)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(n)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(xg.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Tw(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){const e=("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3;return this._scrollTo(this._scrollDistance+e)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,a;"ltr"==this._getLayoutDirection()?(r=i,a=r+s):(a=this._tabList.nativeElement.offsetWidth-i,r=a-s);const o=this.scrollDistance,l=this.scrollDistance+n;r<o?this.scrollDistance-=o-r+60:a>l&&(this.scrollDistance+=a-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(hg.a)(650,100).pipe(Object(xg.a)(Object(gg.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}WG.decorators=[{type:s.Directive}],WG.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:ME},{type:Bx,decorators:[{type:s.Optional}]},{type:s.NgZone},{type:Vw},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],WG.propDecorators={disablePagination:[{type:s.Input}]};class YG extends WG{constructor(t,e,n,i,s,r,a){super(t,e,n,i,s,r,a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ow(t)}_itemSelected(t){t.preventDefault()}}YG.decorators=[{type:s.Directive}],YG.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:ME},{type:Bx,decorators:[{type:s.Optional}]},{type:s.NgZone},{type:Vw},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],YG.propDecorators={disableRipple:[{type:s.Input}]};class GG extends YG{constructor(t,e,n,i,s,r,a){super(t,e,n,i,s,r,a)}}GG.decorators=[{type:s.Component,args:[{selector:"mat-tab-header",template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4"\n     #previousPaginator\n     aria-hidden="true"\n     mat-ripple [matRippleDisabled]="_disableScrollBefore || disableRipple"\n     [class.mat-tab-header-pagination-disabled]="_disableScrollBefore"\n     (click)="_handlePaginatorClick(\'before\')"\n     (mousedown)="_handlePaginatorPress(\'before\', $event)"\n     (touchend)="_stopInterval()">\n  <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n\n<div class="mat-tab-label-container" #tabListContainer (keydown)="_handleKeydown($event)">\n  <div\n    #tabList\n    class="mat-tab-list"\n    [class._mat-animation-noopable]="_animationMode === \'NoopAnimations\'"\n    role="tablist"\n    (cdkObserveContent)="_onContentChanges()">\n    <div class="mat-tab-labels">\n      <ng-content></ng-content>\n    </div>\n    <mat-ink-bar></mat-ink-bar>\n  </div>\n</div>\n\n<div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4"\n     #nextPaginator\n     aria-hidden="true"\n     mat-ripple [matRippleDisabled]="_disableScrollAfter || disableRipple"\n     [class.mat-tab-header-pagination-disabled]="_disableScrollAfter"\n     (mousedown)="_handlePaginatorPress(\'after\', $event)"\n     (click)="_handlePaginatorClick(\'after\')"\n     (touchend)="_stopInterval()">\n  <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n',inputs:["selectedIndex"],outputs:["selectFocusedIndex","indexFocused"],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default,host:{class:"mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'"},styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n']}]}],GG.ctorParameters=()=>[{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:ME},{type:Bx,decorators:[{type:s.Optional}]},{type:s.NgZone},{type:Vw},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],GG.propDecorators={_items:[{type:s.ContentChildren,args:[qG,{descendants:!1}]}],_inkBar:[{type:s.ViewChild,args:[kG,{static:!0}]}],_tabListContainer:[{type:s.ViewChild,args:["tabListContainer",{static:!0}]}],_tabList:[{type:s.ViewChild,args:["tabList",{static:!0}]}],_nextPaginator:[{type:s.ViewChild,args:["nextPaginator"]}],_previousPaginator:[{type:s.ViewChild,args:["previousPaginator"]}]};class KG extends WG{constructor(t,e,n,i,s,r,a){super(t,i,s,e,n,r,a),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove(`mat-background-${this.backgroundColor}`),t&&e.add(`mat-background-${t}`),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Ow(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Object(yg.a)(null),Object(xg.a)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e<t.length;e++)if(t[e].active)return this.selectedIndex=e,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}KG.decorators=[{type:s.Directive}],KG.ctorParameters=()=>[{type:s.ElementRef},{type:Bx,decorators:[{type:s.Optional}]},{type:s.NgZone},{type:s.ChangeDetectorRef},{type:ME},{type:Vw},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],KG.propDecorators={backgroundColor:[{type:s.Input}],disableRipple:[{type:s.Input}],color:[{type:s.Input}]};class ZG extends KG{constructor(t,e,n,i,s,r,a){super(t,e,n,i,s,r,a)}}ZG.decorators=[{type:s.Component,args:[{selector:"[mat-tab-nav-bar]",exportAs:"matTabNavBar, matTabNav",inputs:["color"],template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4"\n     #previousPaginator\n     aria-hidden="true"\n     mat-ripple [matRippleDisabled]="_disableScrollBefore || disableRipple"\n     [class.mat-tab-header-pagination-disabled]="_disableScrollBefore"\n     (click)="_handlePaginatorClick(\'before\')"\n     (mousedown)="_handlePaginatorPress(\'before\', $event)"\n     (touchend)="_stopInterval()">\n  <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n\n<div class="mat-tab-link-container" #tabListContainer (keydown)="_handleKeydown($event)">\n  <div\n    class="mat-tab-list"\n    [class._mat-animation-noopable]="_animationMode === \'NoopAnimations\'"\n    #tabList\n    (cdkObserveContent)="_onContentChanges()">\n    <div class="mat-tab-links">\n      <ng-content></ng-content>\n    </div>\n    <mat-ink-bar></mat-ink-bar>\n  </div>\n</div>\n\n<div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4"\n     #nextPaginator\n     aria-hidden="true"\n     mat-ripple [matRippleDisabled]="_disableScrollAfter || disableRipple"\n     [class.mat-tab-header-pagination-disabled]="_disableScrollAfter"\n     (mousedown)="_handlePaginatorPress(\'after\', $event)"\n     (click)="_handlePaginatorClick(\'after\')"\n     (touchend)="_stopInterval()">\n  <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n',host:{class:"mat-tab-nav-bar mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'","[class.mat-primary]":'color !== "warn" && color !== "accent"',"[class.mat-accent]":'color === "accent"',"[class.mat-warn]":'color === "warn"'},encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.Default,styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n']}]}],ZG.ctorParameters=()=>[{type:s.ElementRef},{type:Bx,decorators:[{type:s.Optional}]},{type:s.NgZone},{type:s.ChangeDetectorRef},{type:ME},{type:Vw},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],ZG.propDecorators={_items:[{type:s.ContentChildren,args:[Object(s.forwardRef)(()=>JG),{descendants:!0}]}],_inkBar:[{type:s.ViewChild,args:[kG,{static:!0}]}],_tabListContainer:[{type:s.ViewChild,args:["tabListContainer",{static:!0}]}],_tabList:[{type:s.ViewChild,args:["tabList",{static:!0}]}],_nextPaginator:[{type:s.ViewChild,args:["nextPaginator"]}],_previousPaginator:[{type:s.ViewChild,args:["previousPaginator"]}]};const XG=kk(Sk(xk(class{})));class QG extends XG{constructor(t,e,n,i,s,r){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=s,this._isActive=!1,this.rippleConfig=n||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===r&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){Ow(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}QG.decorators=[{type:s.Directive}],QG.ctorParameters=()=>[{type:KG},{type:s.ElementRef},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Kk]}]},{type:String,decorators:[{type:s.Attribute,args:["tabindex"]}]},{type:Mx},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}],QG.propDecorators={active:[{type:s.Input}]};class JG extends QG{constructor(t,e,n,i,s,r,a,o){super(t,e,s,r,a,o),this._tabLinkRipple=new Gk(this,n,e,i),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}JG.decorators=[{type:s.Directive,args:[{selector:"[mat-tab-link], [matTabLink]",exportAs:"matTabLink",inputs:["disabled","disableRipple","tabIndex"],host:{class:"mat-tab-link mat-focus-indicator","[attr.aria-current]":'active ? "page" : null',"[attr.aria-disabled]":"disabled","[attr.tabIndex]":"tabIndex","[class.mat-tab-disabled]":"disabled","[class.mat-tab-label-active]":"active"}}]}],JG.ctorParameters=()=>[{type:ZG},{type:s.ElementRef},{type:s.NgZone},{type:Vw},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Kk]}]},{type:String,decorators:[{type:s.Attribute,args:["tabindex"]}]},{type:Mx},{type:String,decorators:[{type:s.Optional},{type:s.Inject,args:[uk]}]}];class tK{}tK.decorators=[{type:s.NgModule,args:[{imports:[Cu.CommonModule,wk,XE,Xk,tx,jx],exports:[wk,zG,DG,PG,ZG,JG,IG],declarations:[zG,DG,PG,kG,qG,ZG,JG,LG,MG,GG,IG]}]}];var eK=n("EY2u");const nK=Yw({passive:!0});class iK{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return eK.a;const e=Lw(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new Gf.a,s="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,nK),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",r,nK)}}),i}stopMonitoring(t){const e=Lw(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}iK.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new iK(Object(s["\u0275\u0275inject"])(Vw),Object(s["\u0275\u0275inject"])(s.NgZone))},token:iK,providedIn:"root"}),iK.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],iK.ctorParameters=()=>[{type:Vw},{type:s.NgZone}];class sK{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new s.EventEmitter}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}sK.decorators=[{type:s.Directive,args:[{selector:"[cdkAutofill]"}]}],sK.ctorParameters=()=>[{type:s.ElementRef},{type:iK}],sK.propDecorators={cdkAutofill:[{type:s.Output}]};class rK{constructor(t,e,n,i){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new Gf.a,this._enabled=!0,this._previousMinRows=-1,this._document=i,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Pw(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Pw(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Ow(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();Object(fg.a)(t,"resize").pipe(Object(H_.a)(16),Object(xg.a)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,n=e.value;if(!t&&this._minRows===this._previousMinRows&&n===this._previousValue)return;const i=e.placeholder;e.classList.add(this._measuringClass),e.placeholder="";const s=e.scrollHeight-4;e.style.height=`${s}px`,e.classList.remove(this._measuringClass),e.placeholder=i,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=n,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:n}=t,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==t||t.setSelectionRange(e,n)}}rK.decorators=[{type:s.Directive,args:[{selector:"textarea[cdkTextareaAutosize]",exportAs:"cdkTextareaAutosize",host:{class:"cdk-textarea-autosize",rows:"1"}}]}],rK.ctorParameters=()=>[{type:s.ElementRef},{type:Vw},{type:s.NgZone},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cu.DOCUMENT]}]}],rK.propDecorators={minRows:[{type:s.Input,args:["cdkAutosizeMinRows"]}],maxRows:[{type:s.Input,args:["cdkAutosizeMaxRows"]}],enabled:[{type:s.Input,args:["cdkTextareaAutosize"]}],_noopInputHandler:[{type:s.HostListener,args:["input"]}]};class aK{}aK.decorators=[{type:s.NgModule,args:[{declarations:[sK,rK],imports:[Bw],exports:[sK,rK]}]}];class oK extends rK{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}oK.decorators=[{type:s.Directive,args:[{selector:"textarea[mat-autosize], textarea[matTextareaAutosize]",exportAs:"matTextareaAutosize",inputs:["cdkAutosizeMinRows","cdkAutosizeMaxRows"],host:{class:"cdk-textarea-autosize mat-autosize",rows:"1"}}]}],oK.propDecorators={matAutosizeMinRows:[{type:s.Input}],matAutosizeMaxRows:[{type:s.Input}],matAutosize:[{type:s.Input,args:["mat-autosize"]}],matTextareaAutosize:[{type:s.Input}]};const lK=new s.InjectionToken("MAT_INPUT_VALUE_ACCESSOR"),cK=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let dK=0;const pK=Ek(class{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}});class uK extends pK{constructor(t,e,n,i,s,r,a,o,l,c){super(r,i,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=o,this._formField=c,this._uid="mat-input-"+dK++,this.focused=!1,this.stateChanges=new Gf.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>zw().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=a||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Ow(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Ow(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&zw().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Ow(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){cK.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}uK.decorators=[{type:s.Directive,args:[{selector:"input[matInput], textarea[matInput], select[matNativeControl],\n      input[matNativeControl], textarea[matNativeControl]",exportAs:"matInput",host:{class:"mat-input-element mat-form-field-autofill-control","[class.mat-input-server]":"_isServer","[attr.id]":"id","[attr.data-placeholder]":"placeholder","[disabled]":"disabled","[required]":"required","[attr.readonly]":"readonly && !_isNativeSelect || null","[attr.aria-invalid]":"errorState && !empty","[attr.aria-required]":"required"},providers:[{provide:VI,useExisting:uK}]}]}],uK.ctorParameters=()=>[{type:s.ElementRef},{type:Vw},{type:gm,decorators:[{type:s.Optional},{type:s.Self}]},{type:of,decorators:[{type:s.Optional}]},{type:yf,decorators:[{type:s.Optional}]},{type:Hk},{type:void 0,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[lK]}]},{type:iK},{type:s.NgZone},{type:JI,decorators:[{type:s.Optional},{type:s.Inject,args:[QI]}]}],uK.propDecorators={disabled:[{type:s.Input}],id:[{type:s.Input}],placeholder:[{type:s.Input}],required:[{type:s.Input}],type:[{type:s.Input}],errorStateMatcher:[{type:s.Input}],userAriaDescribedBy:[{type:s.Input,args:["aria-describedby"]}],value:[{type:s.Input}],readonly:[{type:s.Input}],_focusChanged:[{type:s.HostListener,args:["focus",["true"]]},{type:s.HostListener,args:["blur",["false"]]}],_onInput:[{type:s.HostListener,args:["input"]}]};class hK{}hK.decorators=[{type:s.NgModule,args:[{declarations:[uK,oK],imports:[aK,tA,wk],exports:[aK,tA,uK,oK],providers:[Hk]}]}];var mK=n("l5mm");function fK(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function gK(t,e){const n=e?"":"none";fK(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function bK(t,e){const n=t.style;n.position=e?"":"fixed",n.top=n.opacity=e?"":"0",n.left=e?"":"-999em"}function vK(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function yK(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function _K(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function wK(t,e,n){const{top:i,bottom:s,left:r,right:a}=t;return n>=i&&n<=s&&e>=r&&e<=a}function xK(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function CK(t,e,n,i){const{top:s,right:r,bottom:a,left:o,width:l,height:c}=t,d=l*e,p=c*e;return i>s-p&&i<a+p&&n>o-d&&n<r+d}class SK{constructor(t,e){this._document=t,this._viewportRuler=e,this.positions=new Map}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),t.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:_K(t)})})}handleScroll(t){const e=t.target,n=this.positions.get(e);if(!n)return null;const i=e===this._document?e.documentElement:e,s=n.scrollPosition;let r,a;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,a=t.left}else r=e.scrollTop,a=e.scrollLeft;const o=s.top-r,l=s.left-a;return this.positions.forEach((t,n)=>{t.clientRect&&e!==n&&i.contains(n)&&xK(t.clientRect,o,l)}),s.top=r,s.left=a,{top:o,left:l}}}function kK(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<n.length;s++)n[s].removeAttribute("id");return"canvas"===i?DK(t,e):"input"!==i&&"select"!==i&&"textarea"!==i||AK(t,e),EK("canvas",t,e,DK),EK("input, textarea, select",t,e,AK),e}function EK(t,e,n,i){const s=e.querySelectorAll(t);if(s.length){const e=n.querySelectorAll(t);for(let t=0;t<s.length;t++)i(s[t],e[t])}}let IK=0;function AK(t,e){"file"!==e.type&&(e.value=t.value),"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${IK++}`)}function DK(t,e){const n=e.getContext("2d");if(n)try{n.drawImage(t,0,0)}catch(eJ){}}const TK=Yw({passive:!0}),OK=Yw({passive:!1});class PK{constructor(t,e,n,i,s,r){this._config=e,this._document=n,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new Gf.a,this._pointerMoveSubscription=Aw.a.EMPTY,this._pointerUpSubscription=Aw.a.EMPTY,this._scrollSubscription=Aw.a.EMPTY,this._resizeSubscription=Aw.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new Gf.a,this.started=new Gf.a,this.released=new Gf.a,this.ended=new Gf.a,this.entered=new Gf.a,this.exited=new Gf.a,this.dropped=new Gf.a,this.moved=this._moveEvents,this._pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const n=t.target;return!!n&&(n===e||e.contains(n))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),n=this._dropContainer;if(!e)return void this._endDragSequence(t);n&&(n.isDragging()||n.isReceiving())||(t.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect())),t.preventDefault();const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const t=this._activeTransform;if(t.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement){const e=`translate(${t.x} ${t.y})`;this._rootElement.setAttribute("transform",e)}}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:t,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new SK(n,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Ow(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>gK(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Lw(t)),this._handles.forEach(t=>gK(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Lw(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,OK),e.addEventListener("touchstart",this._pointerDown,TK)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Lw(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&RK(this._rootElement),RK(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),gK(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),gK(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&RK(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&RK(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){LK(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,n=t.parentNode,i=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();n.insertBefore(r,t),bK(t,!1),this._document.body.appendChild(n.replaceChild(s,t)),function(t,e){return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}(this._document,a).appendChild(i),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),i=LK(e),s=!i&&0!==e.button,r=this._rootElement,a=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||a)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=_K(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){bK(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),i=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,n,this._initialIndex,this._initialContainer,r,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=NK(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let i;if(n&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(n,t.context);s.detectChanges(),i=FK(s,this._document),this._previewRef=s,t.matchSize?jK(i,e):i.style.transform=NK(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;i=kK(t),jK(i,t.getBoundingClientRect())}return fK(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:`${this._config.zIndex||1e3}`}),gK(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>i.classList.add(t)):i.classList.add(e)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=NK(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=yK(e,"transition-property"),i=n.find(t=>"transform"===t||"all"===t);if(!i)return 0;const s=n.indexOf(i),r=yK(e,"transition-duration"),a=yK(e,"transition-delay");return vK(r[s])+vK(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const n=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=FK(this._placeholderRef,this._document)):n=kK(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,s=i?i.getBoundingClientRect():n,r=LK(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition(),o=r.pageX-s.left-a.left,l=r.pageY-s.top-a.top;return{x:s.left-n.left+o,y:s.top-n.top+l}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=LK(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,i=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=i,e.y=s,e.matrixTransform(t.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,a=s.top+e,o=s.bottom-(r.height-e);n=MK(n,s.left+t,s.right-(r.width-t)),i=MK(i,a,o)}return{x:n,y:i}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),a=Math.abs(n-s.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>s.x?1:-1,s.x=e),a>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,gK(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,OK),t.removeEventListener("touchstart",this._pointerDown,TK)}_applyRootElementTransform(t,e){const n=NK(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,r=i.right-n.right,a=n.top-i.top,o=i.bottom-n.bottom;n.width>i.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,n.height>i.height?(a>0&&(e+=a),o>0&&(e-=o)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:LK(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=t.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&xK(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Zw(this._rootElement)),this._cachedShadowRoot}}function NK(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function MK(t,e,n){return Math.max(e,Math.min(n,t))}function RK(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function LK(t){return"t"===t.type[0]}function FK(t,e){const n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];const i=e.createElement("div");return n.forEach(t=>i.appendChild(t)),i}function jK(t,e){t.style.width=`${e.width}px`,t.style.height=`${e.height}px`,t.style.transform=NK(e.left,e.top)}function VK(t,e,n){const i=BK(e,t.length-1),s=BK(n,t.length-1);if(i===s)return;const r=t[i],a=s<i?-1:1;for(let o=i;o!==s;o+=a)t[o]=t[o+a];t[s]=r}function BK(t,e){return Math.max(0,Math.min(e,t))}class HK{constructor(t,e,n,i,s){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Gf.a,this.entered=new Gf.a,this.exited=new Gf.a,this.dropped=new Gf.a,this.sorted=new Gf.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=Aw.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Gf.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),Object(mK.a)(0,U_.b).pipe(Object(xg.a)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode,e=this.autoScrollStep;1===this._verticalScrollDirection?UK(t,-e):2===this._verticalScrollDirection&&UK(t,e),1===this._horizontalScrollDirection?qK(t,-e):2===this._horizontalScrollDirection&&qK(t,e)})},this.element=Lw(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new SK(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,n,i){let s;this._draggingStarted(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=i;const r=this._activeDraggables,a=r.indexOf(t),o=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),a>-1&&r.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(o,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,n)){const e=r[0].getRootElement();e.parentNode.insertBefore(o,e),r.unshift(t)}else Lw(this.element).appendChild(o),r.push(t);o.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,i,s,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:n,container:this,previousContainer:i,isPointerOverContainer:s,distance:r})}withItems(t){const e=this._draggables;if(this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()){e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()}return this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Lw(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){if(!this._isDragging)return this._draggables.indexOf(t);return zK("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,i){if(this.sortingDisabled||!this._clientRect||!CK(this._clientRect,.05,e,n))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(-1===r&&s.length>0)return;const a="horizontal"===this._orientation,o=zK(s,e=>e.drag===t),l=s[r],c=s[o].clientRect,d=l.clientRect,p=o>r?1:-1,u=this._getItemOffsetPx(c,d,p),h=this._getSiblingOffsetPx(o,s,p),m=s.slice();VK(s,o,r),this.sorted.next({previousIndex:o,currentIndex:r,container:this,item:t}),s.forEach((e,n)=>{if(m[n]===e)return;const i=e.drag===t,s=i?u:h,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,a?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,xK(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,xK(e.clientRect,s,0))}),this._previousSwap.overlaps=wK(d,e,n),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?i.x:i.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((r,a)=>{a!==this._document&&r.clientRect&&!n&&CK(r.clientRect,.05,t,e)&&([i,s]=function(t,e,n,i){const s=$K(e,i),r=WK(e,n);let a=0,o=0;if(s){const e=t.scrollTop;1===s?e>0&&(a=1):t.scrollHeight-e>t.clientHeight&&(a=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(o=1):t.scrollWidth-e>t.clientWidth&&(o=2)}return[a,o]}(a,r.clientRect,t,e),(i||s)&&(n=a))}),!i&&!s){const{width:r,height:a}=this._viewportRuler.getViewportSize(),o={width:r,height:a,top:0,right:r,bottom:a,left:0};i=$K(o,e),s=WK(o,t),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=Lw(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=Lw(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:_K(e)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=Lw(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const i="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*n];let a=s[i?"width":"height"]*n;if(r){const t=i?"left":"top",e=i?"right":"bottom";-1===n?a-=r.clientRect[t]-s[e]:a+=s[t]-r.clientRect[e]}return a}_getItemOffsetPx(t,e,n){const i="horizontal"===this._orientation;let s=i?e.left-t.left:e.top-t.top;return-1===n&&(s+=i?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?t>=s.right:e>=s.bottom}{const s=n[0].clientRect;return i?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,n,i){const s="horizontal"===this._orientation,r=zK(this._itemPositions,({drag:r,clientRect:a},o,l)=>{if(r===t)return l.length<2;if(i){const t=s?i.x:i.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(a.left)&&e<Math.floor(a.right):n>=Math.floor(a.top)&&n<Math.floor(a.bottom)});return-1!==r&&this.sortPredicate(r,t,this)?r:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(t,e){return null!=this._clientRect&&wK(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,n){return this._siblings.find(i=>i._canReceive(t,e,n))}_canReceive(t,e,n){if(!this._clientRect||!wK(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;const s=Lw(this.element);return i===s||s.contains(i)}_startReceiving(t,e){const n=this._activeSiblings;!n.has(t)&&e.every(t=>this.enterPredicate(t,this)||this._draggables.indexOf(t)>-1)&&(n.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{xK(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Zw(Lw(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function zK(t,e){for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1}function UK(t,e){t===window?t.scrollBy(0,e):t.scrollTop+=e}function qK(t,e){t===window?t.scrollBy(e,0):t.scrollLeft+=e}function $K(t,e){const{top:n,bottom:i,height:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}function WK(t,e){const{left:n,right:i,width:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}const YK=Yw({passive:!1,capture:!0});class GK{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=t=>t.isDragging(),this.pointerMove=new Gf.a,this.pointerUp=new Gf.a,this.scroll=new Gf.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.length>0&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,YK)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,YK)}startDragging(t,e){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:YK}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:YK}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){const e=this._activeDragInstances.indexOf(t);e>-1&&(this._activeDragInstances.splice(e,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}GK.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new GK(Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(Cu.DOCUMENT))},token:GK,providedIn:"root"}),GK.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],GK.ctorParameters=()=>[{type:s.NgZone},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]}];const KK={dragStartThreshold:5,pointerDirectionChangeThreshold:5};class ZK{constructor(t,e,n,i){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(t,e=KK){return new PK(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new HK(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}ZK.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new ZK(Object(s["\u0275\u0275inject"])(Cu.DOCUMENT),Object(s["\u0275\u0275inject"])(s.NgZone),Object(s["\u0275\u0275inject"])(ME),Object(s["\u0275\u0275inject"])(GK))},token:ZK,providedIn:"root"}),ZK.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],ZK.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.NgZone},{type:ME},{type:GK}];const XK=new s.InjectionToken("CDK_DRAG_PARENT"),QK=new s.InjectionToken("CdkDropListGroup");class JK{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t)}ngOnDestroy(){this._items.clear()}}JK.decorators=[{type:s.Directive,args:[{selector:"[cdkDropListGroup]",exportAs:"cdkDropListGroup",providers:[{provide:QK,useExisting:JK}]}]}],JK.propDecorators={disabled:[{type:s.Input,args:["cdkDropListGroupDisabled"]}]};const tZ=new s.InjectionToken("CDK_DRAG_CONFIG");let eZ=0;const nZ=new s.InjectionToken("CdkDropList");class iZ{constructor(t,e,n,i,r,a,o){this.element=t,this._changeDetectorRef=n,this._scrollDispatcher=i,this._dir=r,this._group=a,this._destroyed=new Gf.a,this.connectedTo=[],this.id="cdk-drop-list-"+eZ++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new s.EventEmitter,this.entered=new s.EventEmitter,this.exited=new s.EventEmitter,this.sorted=new s.EventEmitter,this._unsortedItems=new Set,this._dropListRef=e.createDropList(t),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(t,e)=>this.enterPredicate(t.data,e.data),this._dropListRef.sortPredicate=(t,e,n)=>this.sortPredicate(t,e.data,n.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),iZ._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=Ow(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,e)=>t._dragRef.getVisibleElement().compareDocumentPosition(e._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=iZ._dropLists.indexOf(this);t>-1&&iZ._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe(Object(yg.a)(this._dir.value),Object(xg.a)(this._destroyed)).subscribe(e=>t.withDirection(e)),t.beforeStarted.subscribe(()=>{const e=Mw(this.connectedTo).map(t=>{if("string"==typeof t){const e=iZ._dropLists.find(e=>e.id===t);return e}return t});if(this._group&&this._group._items.forEach(t=>{-1===e.indexOf(t)&&e.push(t)}),!this._scrollableParentsResolved){const t=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(t=>t.getElementRef().nativeElement);this._dropListRef.withScrollableParents(t),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=Ow(this.sortingDisabled),t.autoScrollDisabled=Ow(this.autoScrollDisabled),t.autoScrollStep=Pw(this.autoScrollStep,2),t.connectedTo(e.filter(t=>t&&t!==this).map(t=>t._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:e,draggingDisabled:n,sortingDisabled:i,listAutoScrollDisabled:s,listOrientation:r}=t;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=s&&s,this.orientation=r||"vertical",e&&(this.lockAxis=e)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}iZ._dropLists=[],iZ.decorators=[{type:s.Directive,args:[{selector:"[cdkDropList], cdk-drop-list",exportAs:"cdkDropList",providers:[{provide:QK,useValue:undefined},{provide:nZ,useExisting:iZ}],host:{class:"cdk-drop-list","[attr.id]":"id","[class.cdk-drop-list-disabled]":"disabled","[class.cdk-drop-list-dragging]":"_dropListRef.isDragging()","[class.cdk-drop-list-receiving]":"_dropListRef.isReceiving()"}}]}],iZ.ctorParameters=()=>[{type:s.ElementRef},{type:ZK},{type:s.ChangeDetectorRef},{type:PE},{type:Bx,decorators:[{type:s.Optional}]},{type:JK,decorators:[{type:s.Optional},{type:s.Inject,args:[QK]},{type:s.SkipSelf}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[tZ]}]}],iZ.propDecorators={connectedTo:[{type:s.Input,args:["cdkDropListConnectedTo"]}],data:[{type:s.Input,args:["cdkDropListData"]}],orientation:[{type:s.Input,args:["cdkDropListOrientation"]}],id:[{type:s.Input}],lockAxis:[{type:s.Input,args:["cdkDropListLockAxis"]}],disabled:[{type:s.Input,args:["cdkDropListDisabled"]}],sortingDisabled:[{type:s.Input,args:["cdkDropListSortingDisabled"]}],enterPredicate:[{type:s.Input,args:["cdkDropListEnterPredicate"]}],sortPredicate:[{type:s.Input,args:["cdkDropListSortPredicate"]}],autoScrollDisabled:[{type:s.Input,args:["cdkDropListAutoScrollDisabled"]}],autoScrollStep:[{type:s.Input,args:["cdkDropListAutoScrollStep"]}],dropped:[{type:s.Output,args:["cdkDropListDropped"]}],entered:[{type:s.Output,args:["cdkDropListEntered"]}],exited:[{type:s.Output,args:["cdkDropListExited"]}],sorted:[{type:s.Output,args:["cdkDropListSorted"]}]};const sZ=new s.InjectionToken("CdkDragHandle");class rZ{constructor(t,e){this.element=t,this._stateChanges=new Gf.a,this._disabled=!1,this._parentDrag=e}get disabled(){return this._disabled}set disabled(t){this._disabled=Ow(t),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}rZ.decorators=[{type:s.Directive,args:[{selector:"[cdkDragHandle]",host:{class:"cdk-drag-handle"},providers:[{provide:sZ,useExisting:rZ}]}]}],rZ.ctorParameters=()=>[{type:s.ElementRef},{type:void 0,decorators:[{type:s.Inject,args:[XK]},{type:s.Optional},{type:s.SkipSelf}]}],rZ.propDecorators={disabled:[{type:s.Input,args:["cdkDragHandleDisabled"]}]};const aZ=new s.InjectionToken("CdkDragPlaceholder");class oZ{constructor(t){this.templateRef=t}}oZ.decorators=[{type:s.Directive,args:[{selector:"ng-template[cdkDragPlaceholder]",providers:[{provide:aZ,useExisting:oZ}]}]}],oZ.ctorParameters=()=>[{type:s.TemplateRef}],oZ.propDecorators={data:[{type:s.Input}]};const lZ=new s.InjectionToken("CdkDragPreview");class cZ{constructor(t){this.templateRef=t,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(t){this._matchSize=Ow(t)}}cZ.decorators=[{type:s.Directive,args:[{selector:"ng-template[cdkDragPreview]",providers:[{provide:lZ,useExisting:cZ}]}]}],cZ.ctorParameters=()=>[{type:s.TemplateRef}],cZ.propDecorators={data:[{type:s.Input}],matchSize:[{type:s.Input}]};class dZ{constructor(t,e,n,i,r,a,o,l,c,d,p){this.element=t,this.dropContainer=e,this._ngZone=i,this._viewContainerRef=r,this._dir=o,this._changeDetectorRef=c,this._selfHandle=d,this._parentDrag=p,this._destroyed=new Gf.a,this.started=new s.EventEmitter,this.released=new s.EventEmitter,this.ended=new s.EventEmitter,this.entered=new s.EventEmitter,this.exited=new s.EventEmitter,this.dropped=new s.EventEmitter,this.moved=new vg.a(t=>{const e=this._dragRef.moved.pipe(Object($h.a)(t=>({source:this,pointerPosition:t.pointerPosition,event:t.event,delta:t.delta,distance:t.distance}))).subscribe(t);return()=>{e.unsubscribe()}}),this._dragRef=l.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,dZ._dragInstances.push(this),a&&this._assignDefaults(a),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=Ow(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.pipe(Object(Sg.a)(1),Object(xg.a)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(Object(yg.a)(this._handles),Object(kg.a)(t=>{const e=t.filter(t=>t._parentDrag===this).map(t=>t.element);this._selfHandle&&this.rootElementSelector&&e.push(this.element),this._dragRef.withHandles(e)}),Object(wg.a)(t=>Object(gg.a)(...t.map(t=>t._stateChanges.pipe(Object(yg.a)(t))))),Object(xg.a)(this._destroyed)).subscribe(t=>{const e=this._dragRef,n=t.element.nativeElement;t.disabled?e.disableHandle(n):e.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(t){const e=t.rootElementSelector,n=t.freeDragPosition;e&&!e.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=dZ._dragInstances.indexOf(this);t>-1&&dZ._dragInstances.splice(t,1),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const t=this.element.nativeElement,e=this.rootElementSelector?pZ(t,this.rootElementSelector):t;this._dragRef.withRootElement(e||t)}_getBoundaryElement(){const t=this.boundaryElement;if(!t)return null;if("string"==typeof t)return pZ(this.element.nativeElement,t);const e=Lw(t);return e}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const e=this._dir,n=this.dragStartDelay,i=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof n&&n?n:Pw(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(s),e&&t.withDirection(e.value)}}),t.beforeStarted.pipe(Object(Sg.a)(1)).subscribe(()=>{var e,n;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(null===(e=i.classList)||void 0===e?void 0:e.contains("cdk-drag")){t.withParent((null===(n=dZ._dragInstances.find(t=>t.element.nativeElement===i))||void 0===n?void 0:n._dragRef)||null);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),t.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),t.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance})})}_assignDefaults(t){const{lockAxis:e,dragStartDelay:n,constrainPosition:i,previewClass:s,boundaryElement:r,draggingDisabled:a,rootElementSelector:o}=t;this.disabled=null!=a&&a,this.dragStartDelay=n||0,e&&(this.lockAxis=e),i&&(this.constrainPosition=i),s&&(this.previewClass=s),r&&(this.boundaryElement=r),o&&(this.rootElementSelector=o)}}function pZ(t,e){let n=t.parentElement;for(;n;){if(n.matches?n.matches(e):n.msMatchesSelector(e))return n;n=n.parentElement}return null}dZ._dragInstances=[],dZ.decorators=[{type:s.Directive,args:[{selector:"[cdkDrag]",exportAs:"cdkDrag",host:{class:"cdk-drag","[class.cdk-drag-disabled]":"disabled","[class.cdk-drag-dragging]":"_dragRef.isDragging()"},providers:[{provide:XK,useExisting:dZ}]}]}],dZ.ctorParameters=()=>[{type:s.ElementRef},{type:void 0,decorators:[{type:s.Inject,args:[nZ]},{type:s.Optional},{type:s.SkipSelf}]},{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:s.NgZone},{type:s.ViewContainerRef},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[tZ]}]},{type:Bx,decorators:[{type:s.Optional}]},{type:ZK},{type:s.ChangeDetectorRef},{type:rZ,decorators:[{type:s.Optional},{type:s.Self},{type:s.Inject,args:[sZ]}]},{type:dZ,decorators:[{type:s.Optional},{type:s.SkipSelf},{type:s.Inject,args:[XK]}]}],dZ.propDecorators={_handles:[{type:s.ContentChildren,args:[sZ,{descendants:!0}]}],_previewTemplate:[{type:s.ContentChild,args:[lZ]}],_placeholderTemplate:[{type:s.ContentChild,args:[aZ]}],data:[{type:s.Input,args:["cdkDragData"]}],lockAxis:[{type:s.Input,args:["cdkDragLockAxis"]}],rootElementSelector:[{type:s.Input,args:["cdkDragRootElement"]}],boundaryElement:[{type:s.Input,args:["cdkDragBoundary"]}],dragStartDelay:[{type:s.Input,args:["cdkDragStartDelay"]}],freeDragPosition:[{type:s.Input,args:["cdkDragFreeDragPosition"]}],disabled:[{type:s.Input,args:["cdkDragDisabled"]}],constrainPosition:[{type:s.Input,args:["cdkDragConstrainPosition"]}],previewClass:[{type:s.Input,args:["cdkDragPreviewClass"]}],started:[{type:s.Output,args:["cdkDragStarted"]}],released:[{type:s.Output,args:["cdkDragReleased"]}],ended:[{type:s.Output,args:["cdkDragEnded"]}],entered:[{type:s.Output,args:["cdkDragEntered"]}],exited:[{type:s.Output,args:["cdkDragExited"]}],dropped:[{type:s.Output,args:["cdkDragDropped"]}],moved:[{type:s.Output,args:["cdkDragMoved"]}]};class uZ{}uZ.decorators=[{type:s.NgModule,args:[{declarations:[iZ,JK,dZ,rZ,cZ,oZ],exports:[VE,iZ,JK,dZ,rZ,cZ,oZ],providers:[ZK]}]}];var hZ=n("zT9C"),mZ=n.n(hZ);let fZ=class{constructor(t,e,n,i,s,r,a,o){this.route=t,this.modalService=e,this.datePipe=n,this.fb=i,this.el=s,this.httpService=r,this._Activatedroute=a,this.waitlistservice=o,this.displayedColumns=["id","full_name","population","bedoption","status","dateadded","days_of_waiting","date_updated","mental_health","actions"],this.removeData=[],this.users=[],this.admit_loader=!1,this.submitted=!1,this.specifyreason=!1,this.removalreason="",this.loader=!1,this.rmvSubmit=!1,this.loader1=!1,this.baseurl=Xf,this.srh_loader=!1,this.ftabl=!1,this.sectbl=!1,this.max_loader=!0,this.waitlistnames=[],this.frmDate="",this.toDate="",this.admitbtn=!1,this.admitloader=!1,this.sub=this._Activatedroute.paramMap.subscribe(t=>{this.waitlistid=t.get("id"),console.log(this.waitlistid)}),this.waitlistdata()}get f(){return this.rvmprForm.controls}ngOnInit(){var t={waitlistref:this.waitlistid};this.waitlistservice.getloggedinsharedwlcontact(t).subscribe(t=>{console.log("Waitlist Names",t),this.waitlistnames=t}),this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]],refid:[null],specify_reason:[null]})}ngAfterViewInit(){this.dataSourceW=new JD(this.users),this.dataSourceW.paginator=this.paginator,this.dataSourceW.sort=this.sort;const t=this;$("button#proceed_with_removal2").on("click",function(){t.loader=!0,t.rmvSubmit=!0;let e={ref:document.getElementById("refid2").value,reasonid:t.removalreason,removaltype:1,contactid:t.contactid,externalnotes:t.specifyresn};t.httpService.post(t.baseurl+"/v1/secure/removecontactwaitlist",e).subscribe(e=>{console.log(e),t.loader=!1,t.rmvSubmit=!1,$("#ask_removal_reason").modal("hide"),window.location.reload()},t=>{console.log(t.message),window.location.reload()})}),console.log(t.waitlistid),$("body").on("click","#people_in_sl_clrwt",function(){$("#sl_fromDate,#sl_toDate").val(""),t.waitlistdata()})}waitlistsearch(){const t=this;let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){t.srh_loader=!0,$("#sl_fromDate").css({border:"1px solid #ccc"}),$("#sl_toDate").css({border:"1px solid #ccc"});let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1],console.log(t.waitlistid);let r={fromdate:e,todate:n,status:4,ref:t.waitlistid};console.log("postObj",r),t.loader1=!0,t.waitlistservice.searchWaitlistData(r).subscribe(e=>{console.log(e),t.loader1=!1,t.removeData=e;let n=0;t.users=[],t.srh_loader=!1,t.removeData.length>0?(t.users=[],t.removeData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),t.users.push({id:n+"||"+e.ref+"||"+e.admissionstatusid,full_name:e.contactfullname,population:i.join(", "),bedoption:e.bedoptionvalue,status:e.admissionstatusname,mental_health:!0===e.mentalhealth?"Yes":"No",dateadded:null!==e.waitlistaddeddate?this.datePipe.transform(e.waitlistaddeddate,"MM-dd-yyyy"):"",days_of_waiting:e.noofdayswaiting,date_updated:null!==e.updatedtime?this.datePipe.transform(e.updatedtime,"MM-dd-yyyy"):"",actions:"",ref:e.ref,conwaitlistid:e.contactid,contactwaitlistid:e.id,priority:e.priority,waitlistid:e.waitlistid}),t.dataSourceW=new JD(t.users),t.dataSourceW.paginator=t.paginator,t.dataSourceW.sort=t.sort})):(t.users=[],t.dataSourceW=new JD(t.users),t.dataSourceW.paginator=t.paginator,t.dataSourceW.sort=t.sort)})}else if(""==e||""==n)return""==e?$("#sl_fromDate").css({border:"1px solid #a94442"}):$("#sl_fromDate").css({border:"1px solid #ccc"}),void(""==n?$("#sl_toDate").css({border:"1px solid #a94442"}):$("#sl_toDate").css({border:"1px solid #ccc"}))}waitlistdata(){const t=this;this.waitlistservice.getcontacwaitlist(this.waitlistid).subscribe(e=>{console.log("waiting",e),this.waitlistservice.setWaitlistdata(e),null!=e.Waiting&&null!=e.Waiting&&""!=e.Waiting&&this.removeData.push(e.Waiting),null!=e["Admitted at another provider"]&&null!=e["Admitted at another provider"]&&""!=e["Admitted at another provider"]&&this.removeData.push(e["Admitted at another provider"]),null!=e["Removed at another provider"]&&null!=e["Removed at another provider"]&&""!=e["Removed at another provider"]&&this.removeData.push(e["Removed at another provider"]),t.max_loader=!1,console.log("this.removeData",this.removeData);let n=0;var i=this.removeData.length;for(let s=0;s<i;s++)this.removeData[s].forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),console.log(i),t.users.push({id:n+"||"+e.ref+"||"+e.admissionstatusid,full_name:e.contactfullname,population:i.join(", "),bedoption:e.bedoptionvalue,status:e.admissionstatusname,mental_health:!0===e.mentalhealth?"Yes":"No",dateadded:null!==e.waitlistaddeddate?this.datePipe.transform(e.waitlistaddeddate,"MM-dd-yyyy"):"",days_of_waiting:e.noofdayswaiting,date_updated:null!==e.updatedtime?this.datePipe.transform(e.updatedtime,"MM-dd-yyyy"):"",actions:"",ref:e.ref,conwaitlistid:e.contactid,contactwaitlistid:e.id,priority:e.priority,waitlistid:e.waitlistid}),this.users.sort((t,e)=>t.priority>e.priority?1:-1),setTimeout(()=>{this.users=this.users.map((t,e)=>Object.assign({index:e},t)),this.dataSourceW=new JD(this.users),this.dataSourceW.paginator=this.paginator,this.dataSourceW.sort=this.sort},1e3)})},t=>{console.log(t.message)})}applyFilter(t){const e=t.target.value;this.dataSourceW.filter=e.trim().toLowerCase(),this.dataSourceW.paginator&&this.dataSourceW.paginator.firstPage()}addPerson2(){const t=this.modalService.open(Qj,{backdrop:"static",keyboard:!1});t.componentInstance.my_modal_title="",t.componentInstance.my_modal_content="",t.componentInstance.waitlistref=this.waitlistid}waitlistInfo(t){const e=this.modalService.open(tV,{backdrop:"static",keyboard:!1});e.componentInstance.ref=t,e.componentInstance.my_modal_title="",e.componentInstance.my_modal_content=""}removePerson(t,e,n,i){this.contactid=n,2==e||818==e?($("#refid").val(t),$("#ask_removal_reason").appendTo("body").modal("show"),this.rvmprForm.controls.remove_type.setValue(1),$("#remove_type").prop("checked",!0),$("#rmvrson").hide()):($("#refid").val(t),$("#ask_removal_reason").appendTo("body").modal("show"),this.rvmprForm.controls.remove_type.setValue(""),$("select.wl_removal_reason").val(""),this.rvmprForm.controls.wl_removal_reason.setValue(""),$("#remove_type").prop("checked",!1),$("#rmvrson").show())}removereason(t){console.log(t),7==t&&(this.specifyreason=!0,this.rvmprForm.get("specify_reason").setValidators([im.required]),this.rvmprForm.get("specify_reason").updateValueAndValidity(),this.rvmprForm.get("wl_removal_reason").clearValidators(),this.rvmprForm.get("wl_removal_reason").updateValueAndValidity()),7!=t&&(this.specifyreason=!1,this.rvmprForm.get("wl_removal_reason").setValidators([im.required]),this.rvmprForm.get("wl_removal_reason").updateValueAndValidity(),this.rvmprForm.get("specify_reason").clearValidators(),this.rvmprForm.get("specify_reason").updateValueAndValidity())}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}rvmpersonSubmit(){if(this.submitted=!0,this.rvmprForm.invalid)return!1;{this.loader=!0;let t={ref:document.getElementById("refid").value,reasonid:this.rvmprForm.controls.wl_removal_reason.value,removaltype:this.rvmprForm.controls.remove_type.value,contactid:this.contactid,externalnotes:this.rvmprForm.value.specify_reason};console.log("postobj",t),this.httpService.post(this.baseurl+"/v1/secure/removecontactwaitlist",t).subscribe(t=>{console.log(t),$("#ask_removal_reason").modal("hide");var e=window.location.href+"?peopleremoved=true";window.location.href=e},t=>{console.log(t.message),window.location.reload()})}}keepPerson(t,e){Yj.a.fire({title:"",width:"424px",text:"Are you sure you want to keep "+e+" on the Waitlist?",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"}}).then(e=>{e.value?this.waitlistservice.keepContactWaitlist(t).subscribe(t=>{console.log("data",t),Yj.a.fire("","Record Submitted successfully","success"),location.reload()},t=>{console.log(t.message)}):(e.dismiss,Yj.a.DismissReason.cancel)})}adminPerson(t,e,n,i,s){var r="Are you sure you want to admit "+e+'?<div style="padding-top:10px;" class=""><div id="addmitted_txt" style="float:left;width:28%;margin-top:8px;">Admitted to:<span>&nbsp;</span></div><div><select id="program_name" style="float:left;width:70%;margin-top:2px; font-size:16px;height:35px;" class="swal2-input"><option value="">-- Select program --</option>',a="";const o=this;this.waitlistnames.forEach(function(t){1==o.waitlistnames.length&&(a="selected"),r+='<option value="'+t.providerid+'" '+a+">"+t.providername+"</option>"}),r+="</div></select></div>",Yj.a.fire({title:"",width:"540px",html:r,text:"Are you sure you want to admit "+e+"?",icon:"warning",focusConfirm:!1,showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel",customClass:{confirmButton:"confirm",popup:"confirm",icon:"icon"},preConfirm:()=>!!document.getElementById("program_name").value||(Yj.a.showValidationMessage("Please select program name"),this.admitbtn=!1,this.admitloader=!1,!1)}).then(e=>{let r=document.getElementById("program_name");if(console.log("result",r.value),e.value){let e={ref:t,contactid:n,waitlistid:i,admittedfrom:r.options[r.selectedIndex].text,admittedfromproviderid:r.value};$(s.target).next().show(),this.waitlistservice.admitContactWaitlist(e).subscribe(t=>{console.log("data",t),$(s.target).next().hide(),Yj.a.fire({title:"",text:"Record submitted successfully",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{if(t.value){var e=window.location.href+"?peopleadmitted=true";window.location.href=e}else t.dismiss&&location.reload()})},t=>{console.log(t.message)})}else e.dismiss===Yj.a.DismissReason.cancel&&(o.admitbtn=!1,o.admitloader=!1)})}exportAsExcel(){this.dataSourceW.paginator.pageSize=this.users.length,this.dataSourceW=new JD(this.users),this.dataSourceW.paginator=this.paginator,this.dataSourceW.sort=this.sort;let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.ftabl=!0,setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"PEOPLEONWAITLIST.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}dropTable(t){console.log(t);let e={prioritylist:[]},n=[];if(t.previousContainer===t.container){VK(t.container.data,t.previousIndex,t.currentIndex);var i=0;t.container.data.forEach(t=>{console.log(t);var e={},s=t.contactwaitlistid,r=t.full_name,a=++i;e.conwaitlistid=s,e.name=r.toUpperCase(),e.position=a,n.push(e)}),e.prioritylist=n,console.log("sss",n),console.log(e),t.previousIndex!=t.currentIndex&&Yj.a.fire({title:"",text:"You have unsaved changes on your waitlist.Please save now.",icon:"warning",showCancelButton:!0,confirmButtonText:"Yes, update it!",cancelButtonText:"No, keep it"}).then(t=>{if(t.value)this.waitlistservice.updatePriorityPosition(e).subscribe(t=>{console.log(t),Yj.a.fire("","Priority has been successfully changed","success");var e=window.location.href+"?peopleonwaitlist=true";window.location.href=e});else if(t.dismiss===Yj.a.DismissReason.cancel){var n=window.location.href+"?peopleonwaitlist=true";window.location.href=n}})}else!function(t,e,n,i){const s=BK(n,t.length-1),r=BK(i,e.length);t.length&&e.splice(r,0,t.splice(s,1)[0])}(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex);this.dataSourceW.data=mZ()(this.dataSourceW.data)}sortData(t){console.log(t)}};fZ.ctorParameters=()=>[{type:Wf.ActivatedRoute},{type:ay},{type:Cu.DatePipe},{type:Uf},{type:s.ElementRef},{type:Yf.HttpClient},{type:Wf.ActivatedRoute},{type:Zj}],fZ.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},fZ=Hh([Object(s.Component)({selector:"app-wait-tab",template:'\n  <div class="modal fade in" id="ask_removal_reason2"  tabindex="-1" style="display: none; padding-right: 17px; z-index: 1500;">\n    <div class="modal-dialog">\n        <div class="modal-content" style="width: 598px;">\n            <div class="modal-header">\n                <button type="button" class="close" data-dismiss="modal"><span>\xd7</span></button>\n                <h4 class="modal-title">Remove a Person</h4>\n            </div>\n            <div class="modal-body">\n                <div id="wl_remove_err" style="display:none;" class="alert alert-danger"></div>\n                <div class="form-group">\n                    <strong>Choose the type of removal</strong> <span class="red">*</span>\n                    <div class="radio">\n                        <label><input type="radio" checked="checked" name="remove_type" id="remove_type1" value="1" />Remove from my waitlist ONLY</label>\n                    </div>\n                </div>\n                <div class="form-group">\n                    <label for="wl_removal_reason">Reason for Removal? (for internal use only)</label> <span class="red">*</span>\n                    <select style="background-color: #e5e4e0 !important;" name="wl_removal_reason" id="wl_removal_reason" [(ngModel)]="removalreason" (change)="removereason(removalreason)">\n                        <option [defaultSelected]="true" value="">Select One</option>\n                        <option value="823">Admitted at another provider</option>\n                        <option value="828">Removed at another provider</option>\n                        <option value="1">Client choice</option>\n                        <option value="2">Deceased</option>\n                        <option value="3">Incarcerated</option>\n                        <option value="4">Moved</option>\n                        <option value="5">No longer eligible</option>\n                        <option value="6">Unable to reach/contact</option>\n                        <option value="7">Other reason</option>\n                    </select>\n                    <input type="hidden" id="refid2" />\n                </div>\n                <div class="form-group" *ngIf="specifyreason">\n                    <label for="wl_removal_reason_other">Specify Reason</label>\n                    <textarea class="form-control" id="wl_removal_reason_other" [(ngModel)]="specifyresn"></textarea>\n                </div>\n                <div class="form-group text-center">\n                    <button type="button" data-dismiss="modal" class="button button_small">Cancel</button>&nbsp;&nbsp;\n                    <button class="button button_small" id="proceed_with_removal2">Remove</button>&nbsp;<img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n                </div>\n            </div>\n        </div>\n    </div>\n  </div> \n  <div class="modal fade in" id="ask_removal_reason"  tabindex="-1" style="z-index: 99999999999;">\n    <div class="modal-dialog">\n        <div class="modal-content" style="width: 598px;">\n            <div class="modal-header">\n                <button type="button" class="close" data-dismiss="modal" style="padding-top: 0px;"><span>\xd7</span></button>\n                <h4 class="modal-title">Remove a Person</h4>\n            </div>\n            <div class="modal-body">\n                <form [formGroup]="rvmprForm" (ngSubmit)="rvmpersonSubmit()">\n                <div id="wl_remove_err" style="display:none;" class="alert alert-danger"></div>\n                <div class="form-group">\n                    <strong>Choose the type of removal</strong> <span class="red">*</span>\n                    <div class="radio">\n                        <label><input type="radio" name="remove_type" formControlName="remove_type" id="remove_type" value="1" />Remove from my waitlist ONLY</label>\n                    </div>\n                    <div class="radio" id="rmvrson">\n                        <label><input type="radio" name="remove_type" formControlName="remove_type" id="remove_type2" value="2">Remove from my waitlist AND notify other programs</label>\n                    </div>\n                    <div *ngIf="submitted && f.remove_type?.errors">\n                        <small class="text-danger ml-1" *ngIf="f.remove_type.errors.required">Please choose the type of removal</small>\n                    </div>\n                </div>\n                <div class="form-group">\n                    <label for="wl_removal_reason">Reason for Removal? (for internal use only)</label> <span class="red">*</span>\n                    <select name="wl_removal_reason" style="background-color: #e5e4e0 !important;" id="wl_removal_reason" class="wl_removal_reason" formControlName="wl_removal_reason" (change)="removereason(f.wl_removal_reason.value)">\n                        <option [defaultSelected]="true" value="">Select One</option>\n                        <option value="823">Admitted at another provider</option>\n                        <option value="828">Removed at another provider</option>\n                        <option value="1">Client choice</option>\n                        <option value="2">Deceased</option>\n                        <option value="3">Incarcerated</option>\n                        <option value="4">Moved</option>\n                        <option value="5">No longer eligible</option>\n                        <option value="6">Unable to reach/contact</option>\n                        <option value="7">Other reason</option>\n                    </select>\n                    <input type="hidden" id="refid"  formControlName="refid" />\n                    <div *ngIf="submitted && f.wl_removal_reason?.errors">\n                        <small class="text-danger ml-1" *ngIf="f.wl_removal_reason.errors.required">Please choose the reason for removal</small>\n                    </div>\n                    <input type="hidden" id="remove_cid" value="21404">\n                    <input type="hidden" id="remove_cwlid" value="11569">\n                    <input type="hidden" id="remove_wlid" value="163">\n                </div>\n                <div class="form-group" *ngIf="specifyreason">\n                    <label for="wl_removal_reason_other">Specify Reason</label>\n                    <textarea class="form-control" id="wl_removal_reason_other" formControlName="specify_reason"></textarea>\n                    <div *ngIf="submitted && f.specify_reason?.errors">\n                        <small class="text-danger ml-1" *ngIf="f.specify_reason.errors.required">Please specify the reason for removal</small>\n                    </div>\n                </div>\n                <div class="form-group text-center">\n                    <button type="button" data-dismiss="modal" class="button button_small">Cancel</button>&nbsp;&nbsp;\n                    <button class="button button_small" [disabled]="rmvSubmit" id="proceed_with_removal">Remove</button>&nbsp; <img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n                </div>\n               </form> \n            </div>\n        </div>\n    </div>\n  </div>\n  <div class="modal fade" id="show_removal_reasons"  tabindex="-1">\n    <div class="modal-dialog">\n        <div class="modal-content">\n            <div class="modal-header">\n                <button type="button" class="close" data-dismiss="modal"><span>\xd7</span></button>\n                <h4 class="modal-title">Removal Reasons</h4>\n            </div>\n            <div class="modal-body">\n                \n            </div>\n            <div class="modal-footer" style="text-align:center;">\n                <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>\n            </div>\n        </div>\n    </div>\n</div>\n   \n    <p style="padding: 2px 225px;font-weight: bold;" class="searchtitle">Search by date updated<span style="margin-left: 100px;"></span></p>\n    <div align="center" style="margin-top:5px;" style="font-weight: bold;">\n        From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n        To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n        <button class="btn btn-success req-btn searchbyrmDate" id="people_in_slogwt" (click)="waitlistsearch()">Search</button>&nbsp;<img *ngIf="loader1" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n        <button type="button" class="btn btn-warning req-btn" id="people_in_sl_clrwt">Clear</button>\n    </div>\n    <div class="row">  \n      <div class="col-md-12">\n          <div style="float: right;margin-top: 15px;">\n              <input (keyup)="applyFilter($event)" id="providerSearch" class="searchbox" style="border: solid 1px lightgray; height:40px;width: 195px; margin-top:-7px; font-size: 12px; padding: 5px;font-weight: 400;color: black;" placeholder="Search" #input>\n              <svg  style="float: right; margin:6px -20px;position:absolute" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n              </svg>              \n          </div>\n      </div>\n      </div>\n\n      <div class="mat-elevation-z8 table" #TABLE>\n          <table style="width: 100%;" *ngIf="ftabl">\n            <tbody>\n              <tr>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>People on Waitlist</b></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n              </tr>\n            </tbody>\n          </table>\n          <table style="width: 100%;" *ngIf="sectbl">\n            <tbody>\n              <tr>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>From Date: {{frmDate}}; To Date: {{toDate}}</b></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n              </tr>\n            </tbody>\n          </table>\n          \x3c!-- <button class="btn purple-bg pull-right addperson_waitlistbtn" style="padding: 2px 5px;top: 5px;" (click)="addPerson2();"><i class="fa fa-user-plus" style="margin-right: 5px;"></i>Add a Person</button> --\x3e\n          <div><span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span></div><br>\n         \n        <table *ngIf="dataSourceW" (matSortChange)="sortData($event)"  class="custom-table" style="width:100%;" mat-table [dataSource]="dataSourceW" cdkDropList matSort [cdkDropListData]="dataSourceW.data" (cdkDropListDropped)="dropTable($event)" >\n          <ng-container matColumnDef="id">\n            <th mat-header-cell *matHeaderCellDef style="width: 50px;" mat-sort-header># </th> \n            <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}"   mat-cell *matCellDef="let row; let i=index" style="text-align: center; width: 50px;"> {{(row.index)+1}} </td>\n          </ng-container>\n                \x3c!-- Name Column --\x3e\n          <ng-container matColumnDef="full_name">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>Name </th>\n            <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> <a href="javascript:void(0);" (click)="waitlistInfo(row.ref);" ><i *ngIf="row.id.split(\'||\')[2]==\'3\'" class="fa fa-exclamation-triangle triangle_color" title="This person has been removed from other provider\'s waitlist">&nbsp;</i> {{row.full_name}} </a></td>\n          </ng-container>\n            \x3c!-- Progress Column --\x3e\n            \x3c!-- <ng-container matColumnDef="dob">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 100px;"> Date of Birth </th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> {{row.dob}} </td>\n            </ng-container> --\x3e\n            <ng-container matColumnDef="population">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 150px;">Priority Population </th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> {{row.population}} </td>\n            </ng-container>\n            <ng-container matColumnDef="bedoption">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header>Bed Option </th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> {{row.bedoption}} </td>\n            </ng-container>\n            <ng-container matColumnDef="status">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header>Status</th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> {{row.status}} </td>\n            </ng-container>\n            \x3c!-- Color Column --\x3e\n            <ng-container matColumnDef="dateadded">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Added </th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> {{row.dateadded}} </td>\n            </ng-container>\n            <ng-container matColumnDef="days_of_waiting">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header> Days Waiting </th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row" style="text-align: center;"> {{row.days_of_waiting}} </td>\n            </ng-container>\n            <ng-container matColumnDef="date_updated">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Updated</th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> {{row.date_updated}} </td>\n            </ng-container>\n            <ng-container matColumnDef="mental_health">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header style="width:170px;">High Priority Mental Health Need</th>\n              <td [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row" > {{row.mental_health}} </td>\n          </ng-container>\n            <ng-container matColumnDef="actions">\n              <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 152px; text-align: center;">Outcome</th>\n              <td  [ngStyle]="{\'background-color\': (row.id.split(\'||\')[2]==\'2\')? \'#d9edf7\' : (row.id.split(\'||\')[2]==\'3\' || row.id.split(\'||\')[2]==\'818\')? \'#f2dede\' : \'#ffffff\'}" mat-cell *matCellDef="let row"> \n                <button *ngIf="row.id.split(\'||\')[2]!=2 && row.id.split(\'||\')[2]!=3 && row.id.split(\'||\')[2]!=818" data-wlid="163" \n                (click)="adminPerson(row.id.split(\'||\')[1],row.full_name,row.conwaitlistid,row.waitlistid,$event);" data-name="ANA FIELD" data-cid="21404" \n                data-cwlid="11569" class="btn btn-sm green-bg wl_admit updown_caret_sibling">Admit</button>&nbsp;<img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;display: none;" />\n                <button *ngIf="row.id.split(\'||\')[2]==2 || row.id.split(\'||\')[2]==3 || row.id.split(\'||\')[2]==818" data-wlid="163" \n                data-name="ANA FIELD" data-cid="21404" (click)="keepPerson(row.id.split(\'||\')[1],row.full_name)" \n                data-cwlid="11569" class="btn btn-sm purple-bg wl_admit updown_caret_sibling">Keep</button>&nbsp;\n                <button data-wlid="163" data-admission="4" data-name="ANA FIELD" data-cid="21404" data-cwlid="11569" \n                (click)="removePerson(row.id.split(\'||\')[1],row.id.split(\'||\')[2],row.conwaitlistid,row.status);" \n                class="btn btn-sm btn-danger wl_remove">Remove</button>\n              </td>\n            </ng-container>\n                <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                <tr mat-row *matRowDef="let row; columns: displayedColumns;" cdkDrag [cdkDragData]="row"></tr>\n            \n                \x3c!-- Row shown when there is no matching data. --\x3e\n                <div *ngIf="users.length>0">\n                <tr class="mat-row" *matNoDataRow>\n                  <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                </tr>\n              </div>\n            </table>\n            <table style="background-color: #fff;">\n                <tr class="mat-row" *ngIf="users.length === 0">\n                <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                </tr>\n            </table>\n            <button class="btn purple-bg" id="exportBtn1" (click)="exportAsExcel()"><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download</button>\n        <mat-paginator [pageSizeOptions]="[10, 25, 100]"></mat-paginator>\n    </div>\n\n      ',styles:['.modal-content {\n  background-color: #fefefe;\n  /* margin: auto; */\n  padding: 20px;\n  border: 1px solid #888;\n  width: 80%;\n}\n\n.modal-content {\n  width: 1073px;\n  left: 50%;\n  transform: translate(-50%);\n}\n\n.modal-header {\n  display: inline !important;\n}\n\n.modal-footer {\n  display: block;\n}\n\n#exportBtn1 {\n  font-size: 16px;\n  position: absolute;\n  bottom: 25px;\n}\n\n.card-body {\n  position: relative;\n}\n\n.notes-text {\n  top: 8px;\n  left: 20px;\n}\n\nbutton.addperson_waitlistbtn:hover {\n  color: #fff;\n}\n\n.exportBtn {\n  display: none;\n}\n\ntable {\n  width: 100%;\n}\n\n.cdk-drag-preview {\n  box-sizing: border-box;\n  border-radius: 4px;\n  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);\n}\n\n.cdk-drag-placeholder {\n  opacity: 0;\n}\n\n.cdk-drag-animating {\n  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.cdk-drop-list-dragging .mat-row:not(.cdk-drag-placeholder) {\n  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.swal2-popup {\n  font-size: 1em !important;\n  width: "10px";\n}\n\n.sweet-overlay, .sweet-alert {\n  position: absolute !important;\n}\n\n.req-btn {\n  margin: 2px;\n  padding: 3px 10px;\n  color: #fff;\n}\n\n.confirm {\n  height: 10px;\n  width: 10px;\n}\n\n.icon {\n  height: 54px;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n  padding-left: 10px;\n}\n\n:host ::ng-deep .alert-info {\n  margin-bottom: 0rem !important;\n}\n\n::ng-deep .mat-form-field-underline {\n  display: none;\n}\n\n::ng-deep .mat-form-field-label-wrapper {\n  display: none;\n}\n\nlabel {\n  margin-bottom: 0;\n}\n\nbutton.btnSubmit:last-child {\n  float: right;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\n:host ::ng-deep thead tr {\n  background: #e0e4ec;\n}\n\n::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper {\n  padding-bottom: 0.25em !important;\n}\n\n:host ::ng-deep span.alert-info {\n  width: 100%;\n  font-size: 16px;\n  display: block;\n  font-weight: 500;\n}\n\ntd, th {\n  border-right: 1px solid gray;\n}\n\n.mat-form-field-infix {\n  margin-right: 12px !important;\n}\n\n.mat-cell, .mat-footer-cell {\n  font-size: 14px !important;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n::ng-deep .hideElement {\n  display: none !important;\n}']})],fZ);let gZ=class{constructor(t,e,n,i,s,r){this.modalService=t,this.el=e,this.httpService=n,this.waitlistservice=i,this.datePipe=s,this.route=r,this.displayedColumns=["id","full_name","population","date_admitted","mental_health","actions"],this.AdmittedData=[],this.users=[],this.removeData=[],this.fromdatevalue=!1,this.noData=!0,this.todatevalue=!1,this.loader=!1,this.max_loader=!0,this.srh_loader=!1,this.ftabl=!1,this.sectbl=!1,this.frmDate="",this.toDate="",this.loader1=!1,this.refreserr=!1,this.resloader=!1,this.refdisabled=!1,this.srcdisabled=!1,this.logdata=[],this.delimiterwaitlistname=!0,this.searchdata=[],this.searchscreeningdata=!1,this.admittedtab=!1,this.tabKeys=[],this.waitlistData=[];this.route.params.subscribe(t=>{this.waitlistId=t.id}),console.log(this.waitlistId),this.waitlistservice.getwaitlistinfo(this.waitlistId).subscribe(t=>{this.programinformation=t,this.waitlistidnumber=this.programinformation.id;var e={waitlistid:this.waitlistidnumber};this.waitlistservice.getWaitlistorgname(e).subscribe(t=>{this.waitlistorgname=t})})}ngOnInit(){this.tabKeys=["Admitted"],this.users=[],this.dataSource2=new JD(this.users),this.dataSource2.paginator=this.paginator,this.dataSource2.sort=this.sort}ngAfterViewInit(){this.waitlistservice.getAdmittedData(this.waitlistId).subscribe(e=>{console.log("ffff",e),this.max_loader=!1,e&&(this.waitlistData=e,this.tabKeys=[],console.log("dd",Object.keys(e).indexOf("Admitted")),this.tabKeys=Object.keys(e).filter(function(t){return"Waiting"!=t&&"Removed"!=t&&"Add to log"!=t&&"Admitted at another provider"!=t&&"Removed at another provider"!=t&&"Added to Waitlist"!=t&&"Admitted"!=t&&"Refuse"!=t}),(Object.keys(e).indexOf("Admitted")>-1||0==this.tabKeys.length)&&(this.tabKeys=["Admitted"],console.log("this.tabKeys",this.tabKeys),this.admittedtab=!0),console.log("tab1",this.tabKeys),void 0!==e.Admitted&&e.Admitted?(console.log("tab12",this.tabKeys),t.AdmittedData=e.Admitted):void 0!==e[this.tabKeys[0]]&&(console.log("tab13",this.tabKeys),t.AdmittedData=e[this.tabKeys[0]]),console.log("tabkeys22",this.tabKeys),console.log("this.AdmittedData",t.AdmittedData));let n=0;this.users=[],t.AdmittedData.length>0&&t.AdmittedData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),this.users.push({id:n,full_name:e.contactfullname,population:i,date_admitted:null!==e.admitteddate?t.datePipe.transform(e.admitteddate,"MM-dd-yyyy"):"",mental_health:!0===e.mentalhealth?"Yes":"No",actions:"",ref:e.ref,waitlistid:e.waitlistid}),this.dataSource2=new JD(this.users),this.dataSource2.paginator=this.paginator,this.dataSource2.sort=this.sort})}),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))});const t=this;console.log(t.waitlistId)}cleardateSearch(){const t=this;this.waitlistservice.getAdmittedData(this.waitlistId).subscribe(e=>{this.max_loader=!1,e&&(this.waitlistData=e,this.tabKeys=[],this.tabKeys=Object.keys(e).filter(function(t){return"Waiting"!=t&&"Removed"!=t&&"Add to log"!=t&&"Admitted at another provider"!=t&&"Removed at another provider"!=t&&"Added to Waitlist"!=t&&"Admitted"!=t&&"Refuse"!=t}),(Object.keys(e).indexOf("Admitted")>-1||0==this.tabKeys.length)&&(this.tabKeys=["Admitted"],this.admittedtab=!0),void 0!==e.Admitted&&e.Admitted?t.AdmittedData=e.Admitted:void 0!==e[this.tabKeys[0]]&&(t.AdmittedData=e[this.tabKeys[0]]));let n=0;this.users=[],t.AdmittedData.length>0&&t.AdmittedData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),this.users.push({id:n,full_name:e.contactfullname,population:i,date_admitted:null!==e.admitteddate?t.datePipe.transform(e.admitteddate,"MM-dd-yyyy"):"",mental_health:!0===e.mentalhealth?"Yes":"No",actions:"",ref:e.ref,waitlistid:e.waitlistid}),this.dataSource2=new JD(this.users),this.dataSource2.paginator=this.paginator,this.dataSource2.sort=this.sort})})}searchAdmitted(){const t=this;t.srh_loader=!0;let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){$("#sl_fromDate").css({border:"1px solid #ccc"}),$("#sl_toDate").css({border:"1px solid #ccc"});let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1],console.log(t.waitlistId);let r={fromdate:e,todate:n,status:1,ref:t.waitlistId};console.log("postObj",r),t.loader=!0,t.max_loader=!0,t.users=[],t.waitlistservice.searchadmittedData(r).subscribe(e=>{t.loader=!1,t.max_loader=!1,t.removeData=e,t.searchscreeningdata=!0;let n=0;t.users=[],t.srh_loader=!1,this.tabKeys=[],console.log("dd",Object.keys(e).indexOf("Admitted")),this.tabKeys=Object.keys(e).filter(function(t){return"Waiting"!=t&&"Removed"!=t&&"Add to log"!=t&&"Admitted at another provider"!=t&&"Removed at another provider"!=t&&"Added to Waitlist"!=t&&"Admitted"!=t&&"Refuse"!=t}),(Object.keys(e).indexOf("Admitted")>-1||0==this.tabKeys.length)&&(this.tabKeys=["Admitted"],this.admittedtab=!0),void 0!==t.removeData.Admitted&&t.removeData.Admitted?t.AdmittedData=t.removeData.Admitted:void 0!==e[this.tabKeys[0]]&&($("#notadmitted").find("button.btn-link").click(),$("#notadmitted").find("button.btn-link")[0].click(),t.AdmittedData=t.removeData[this.tabKeys[0]]),console.log("tabkeys",this.tabKeys),console.log("this.AdmittedData",t.AdmittedData),t.AdmittedData.length>0?(t.users=[],t.AdmittedData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),t.users.push({id:n,full_name:e.contactfullname,population:i.join(","),date_admitted:null!==e.admitteddate?t.datePipe.transform(e.admitteddate,"MM-dd-yyyy"):"",mental_health:!0===e.mentalhealth?"Yes":"No",actions:"",ref:e.ref,waitlistid:e.waitlistid}),t.dataSource2=new JD(t.users),t.dataSource2.paginator=t.paginator,t.dataSource2.sort=t.sort})):(t.users=[],t.dataSource2=new JD(t.users),t.dataSource2.paginator=t.paginator,t.dataSource2.sort=t.sort)})}else if(""==e||""==n)return t.srh_loader=!1,""==e?$("#sl_fromDate").css({border:"1px solid #a94442"}):$("#sl_fromDate").css({border:"1px solid #ccc"}),void(""==n?$("#sl_toDate").css({border:"1px solid #a94442"}):$("#sl_toDate").css({border:"1px solid #ccc"}))}toggleAccordian(t){const e=this;if(console.log(t),this.panelid=t.panelId,0==this.searchscreeningdata){var n=0;if(this.tabKeys.forEach(function(i){n++,console.log(t.panelId,"static-"+n),t.panelId=="static-"+n&&(e.AdmittedData=[],e.AdmittedData.push(e.waitlistData[i]))}),null!=this.AdmittedData){let t=0,n=0;this.AdmittedData&&(this.users=[],this.AdmittedData.forEach(i=>{t++,null!=i&&i.forEach(t=>{n++;let i=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{i.push(t.splpopname)}),console.log(i),this.users.push({id:n,full_name:t.contactfullname,population:i,date_admitted:null!==t.admitteddate?e.datePipe.transform(t.admitteddate,"MM-dd-yyyy"):"",mental_health:!0===t.mentalhealth?"Yes":"No",actions:"",ref:t.ref,waitlistid:t.waitlistid})})}),console.log(this.users),this.dataSource2=new JD(this.users),this.dataSource2.paginator=this.paginator,this.dataSource2.sort=this.sort)}}if(1==this.searchscreeningdata){n=0;if(this.tabKeys.forEach(function(i){n++,t.panelId=="static-"+n&&(e.AdmittedData=[],console.log("element",i),console.log("self.removeData",e.removeData),e.AdmittedData.push(e.removeData[i]))}),null!=this.AdmittedData){let t=0,n=0;this.AdmittedData&&(this.users=[],this.AdmittedData.forEach(i=>{t++,null!=i&&i.forEach(t=>{n++;let i=[];null!=t.splpoplist&&""!=t.splpoplist&&t.splpoplist.forEach(t=>{i.push(t.splpopname)}),console.log(i),this.users.push({id:n,full_name:t.con.firstname+" "+t.con.lastname,population:i,date_admitted:null!==t.admitteddate?e.datePipe.transform(t.admitteddate,"MM-dd-yyyy"):"",mental_health:!0===t.mentalhealth?"Yes":"No",actions:"",ref:t.ref,waitlistid:t.waitlistid})})}),console.log(this.users),this.dataSource2=new JD(this.users),this.dataSource2.paginator=this.paginator,this.dataSource2.sort=this.sort)}}this.max_loader=!1,setTimeout(()=>{this.dataSource2.paginator=this.paginator,this.dataSource2.sort=this.sort},1e3)}admittedData(){const t=this;t.waitlistservice.castwaitlistdata.subscribe(e=>{t.removeData=e.Admitted,console.log("keys",Object.keys(e));let n=0;t.users=[],t.removeData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),t.users.push({id:n,full_name:e.con.firstname+" "+e.con.lastname,population:i.join(","),date_admitted:null!==e.admitteddate?t.datePipe.transform(e.admitteddate,"MM-dd-yyyy"):"",mental_health:!0===e.mentalhealth?"Yes":"No",actions:""}),t.dataSource2=new JD(t.users),t.dataSource2.paginator=t.paginator,t.dataSource2.sort=t.sort})},t=>{console.log(t.message)})}applyFilter(t){const e=t.target.value;this.dataSource2.filter=e.trim().toLowerCase(),this.dataSource2.paginator&&this.dataSource2.paginator.firstPage()}addPerson2(){const t=this.modalService.open(Qj,{backdrop:"static",keyboard:!1});t.componentInstance.my_modal_title="",t.componentInstance.my_modal_content=""}waitlistInfo(t){console.log(t);const e=this.modalService.open(tV,{backdrop:"static",keyboard:!1});e.componentInstance.ref=t,e.componentInstance.my_modal_title="",e.componentInstance.my_modal_content=""}removePerson(){$("#ask_removal_reason").modal("show")}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.ftabl=!0,setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"PEOPLEADMITTED.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}movetowaitlist(t,e,n,i){console.log(t),console.log(e),Yj.a.fire({title:"",text:"Are you sure you want to admit "+e+" back to the Waitlist?",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then(e=>{if(e.value){let e={ref:t,waitlistid:n};$(i.target).next().show(),this.waitlistservice.movetoadmittedtab(e).subscribe(t=>{console.log("data",t),$(i.target).next().hide(),Yj.a.fire({title:"",text:"Record submitted successfully",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{if(t.value){var e=window.location.href+"?peopleonwaitlist=true";window.location.href=e}else t.dismiss&&location.reload()})},t=>{console.log(t.message)})}else e.dismiss,Yj.a.DismissReason.cancel})}};gZ.ctorParameters=()=>[{type:ay},{type:s.ElementRef},{type:Yf.HttpClient},{type:Zj},{type:Cu.DatePipe},{type:Wf.ActivatedRoute}],gZ.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},gZ=Hh([Object(s.Component)({selector:"app-admitted-tab",template:'    <p style="padding: 2px 230px;font-weight: bold;" class="searchtitle">Search by date admitted<span style="margin-left: 100px;"></span></p>\n    <div align="center" style="margin-top:5px;font-weight: bold;">\n        From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n        To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n        <button class="btn btn-success req-btn searchbyrmDate" (click)="searchAdmitted();" id="people_in_slog">Search</button>&nbsp;<img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n        <button type="button" class="btn btn-warning req-btn" (click)="cleardateSearch();" >Clear</button>\n    </div>\n    <div class="mat-elevation-z8" #TABLE>\n            <table style="width: 100%;" *ngIf="ftabl">\n            <tbody>\n                <tr>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>People Admitted</b></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                </tr>\n            </tbody>\n            </table>\n            <table style="width: 100%;" *ngIf="sectbl">\n            <tbody>\n                <tr>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>From Date: {{frmDate}}; To Date: {{toDate}}</b></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n                </tr>\n            </tbody>\n            </table>\n            <ngb-accordion [closeOthers]="true" id="{{(admittedtab)?\'admittedtab\':\'notadmitted\'}}" activeIds="static-1"  (panelChange)="toggleAccordian($event)">\n                <ng-container *ngFor="let tabTitle of tabKeys;let i=index;" >\n                <ngb-panel id="static-{{i+1}}" *ngIf="!tabTitle.toLowerCase().includes(\'inactive\')" title="{{(tabTitle)?tabTitle:waitlistorgname}}">\n                  <ng-template ngbPanelContent>\n                    <div class="row">  \n                    <div class="col-md-12">\n                        <div style="float: right;margin-bottom: 15px;">\n                            <input (keyup)="applyFilter($event)" id="providerSearch" class="searchbox" style="border: solid 1px lightgray; height:40px;width: 195px; margin-top:-7px; font-size: 12px; padding: 5px;font-weight: 400;color: black;" placeholder="Search" #input>\n                            <svg  style="float: right; margin:6px -20px;position:absolute" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                                <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n                            </svg>              \n                        </div>\n                    </div>\n                    </div>    \n        <table class="custom-table" style="width:100%;" mat-table [dataSource]="dataSource2" matSort>\n        \x3c!-- <ng-container matColumnDef="noData">\n            <mat-footer-cell *matFooterCellDef [attr.colspan]="displayedColumns.length">\n                No records found.\n            </mat-footer-cell>\n            </ng-container> --\x3e\n                \n        <ng-container matColumnDef="id" style="display: none;">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n            <td mat-cell *matCellDef="let row"> {{row.id}} </td>\n        </ng-container>    \n                \x3c!-- Name Column --\x3e\n        <ng-container matColumnDef="full_name">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>Name </th>\n            <td mat-cell *matCellDef="let row"> <a href="javascript:void(0);" (click)="waitlistInfo(row.ref);" >{{row.full_name}} </a></td>\n        </ng-container>\n            \x3c!-- Progress Column --\x3e\n            <ng-container matColumnDef="dob">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date of Birth </th>\n            <td mat-cell *matCellDef="let row"> {{row.dob}} </td>\n            </ng-container>\n            <ng-container matColumnDef="population">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>Priority Population </th>\n            <td mat-cell *matCellDef="let row"> {{row.population}} </td>\n            </ng-container>\n            \x3c!-- Color Column --\x3e\n            <ng-container matColumnDef="date_admitted">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Admitted</th>\n            <td mat-cell *matCellDef="let row"> {{row.date_admitted}} </td>\n            </ng-container>\n            <ng-container matColumnDef="mental_health">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="width:170px;">High Priority Mental Health Need</th>\n                <td mat-cell *matCellDef="let row"> {{row.mental_health}} </td>\n            </ng-container>\n            <ng-container matColumnDef="actions">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header> Outcome</th>\n            <td mat-cell *matCellDef="let row"> \n                <button  data-wlid="163" data-name="ANA FIELD" data-cid="21404" data-cwlid="11569" class="btn btn-sm green-bg wl_admit updown_caret_sibling" (click)="movetowaitlist(row.ref,row.full_name,row.waitlistid,$event)">Move to Waitlist</button>&nbsp;\n                <span class="admitload"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;"></span>\n            </td>\n            </ng-container>\n                <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n            \n                \x3c!-- Row shown when there is no matching data. --\x3e\n                \x3c!-- <div *ngIf="users.length>0">\n                <tr class="mat-row" *matNoDataRow>\n                <td class="mat-cell" colspan="6">No data matching the filter</td>\n                </tr>\n            </div> --\x3e\n            </table>\n            <table style="background-color: #fff;">\n                <tr class="mat-row" *ngIf="users.length === 0">\n                <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                </tr>\n            </table>\n            <button class="btn purple-bg" id="exportBtn2" (click)="exportAsExcel()"><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download</button>\n        <mat-paginator [pageSizeOptions]="[10, 25, 100]"></mat-paginator>\n        </ng-template>\n        </ngb-panel>\n        </ng-container>\n        </ngb-accordion>\n    </div>\n          ',styles:[".notes-text {\n  top: 8px;\n  left: 20px;\n}\n\nbutton.addperson_waitlistbtn:hover {\n  color: #fff;\n}\n\n.exportBtn {\n  display: none;\n}\n\n.btn {\n  padding: 2px 8px !important;\n}\n\n.req-btn {\n  margin: 2px;\n  padding: 3px 10px;\n  color: #fff;\n}\n\n#exportBtn2 {\n  font-size: 16px;\n  position: absolute;\n  bottom: 15px;\n}\n\n.card-body {\n  position: relative;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}\n\n:host ::ng-deep .alert-info {\n  margin-bottom: 0rem !important;\n}\n\n::ng-deep .mat-form-field-underline {\n  display: none;\n}\n\n::ng-deep .mat-form-field-label-wrapper {\n  display: none;\n}\n\nlabel {\n  margin-bottom: 0;\n}\n\nbutton.btnSubmit:last-child {\n  float: right;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\n:host ::ng-deep thead tr {\n  background: #e0e4ec;\n}\n\n::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper {\n  padding-bottom: 0.25em !important;\n}\n\n:host ::ng-deep span.alert-info {\n  width: 100%;\n  font-size: 16px;\n  display: block;\n  font-weight: 500;\n}\n\ntd, th {\n  border-right: 1px solid gray;\n}\n\n.mat-cell, .mat-footer-cell {\n  font-size: 14px !important;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n.mat-form-field-infix {\n  margin-right: 12px !important;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n::ng-deep #admittedtab > .ng-star-inserted {\n  display: none;\n}\n\n::ng-deep #admittedtab > .ng-star-inserted:first-child {\n  display: block !important;\n}\n\n::ng-deep #admittedtab > .card > .card-header:first-child {\n  display: none !important;\n}\n\n::ng-deep #admittedtab > .card:first-child {\n  background-color: #f7f6f3 !important;\n  border: solid 1px #f7f6f3 !important;\n}"]})],gZ);let bZ=class{constructor(t,e){this.activeModal=t,this.waitlistservice=e,this.displayedColumns=["id","contact_name","removal_date","removal_reason"],this.users=[],this.max_loader=!0}ngOnInit(){const t=this;this.waitlistservice.getremovalreasons(this.waitlistid).subscribe(e=>{var n=e;if(t.max_loader=!1,n.length>0){let e=0;n.forEach(n=>{e++,t.users.push({id:e,contact_name:n.contactfullname,removal_date:n.actiondate,removal_reason:n.removalreasonval})}),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}else t.dataSource=new JD([]),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})}ngAfterContentInit(){document.querySelector("#removalModal").closest(".modal-content").setAttribute("id","removalModalcontent")}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}};bZ.ctorParameters=()=>[{type:ey},{type:Zj}],bZ.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],waitlistid:[{type:s.Input}]},bZ=Hh([Object(s.Component)({selector:"app-removal-reasons",template:'\x3c!-- <div class="modal-content" style="width: 605px;left:50%;transform:translate(-50%) "> --\x3e <div id="removalModal">\n    <div class="modal-header">\n        <h4 class="modal-title" id="modal-basic-title">Removal Reasons</h4>\n        <button type="button" class="close" id="closeBtn" data-dismiss="modal" (click)="activeModal.dismiss(\'Cross click\')" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n      </div>\t\t\t\n    <div class="modal-body">\t\t\n        <mat-form-field style="margin-left: 65%; display: block; margin-bottom: 15px;">\n            <mat-label style="font-size:12px;padding:3px;">Search</mat-label>\n            <input matInput (keyup)="applyFilter($event)" id="providerSearch" style="border: solid 1px lightgray; height:30px; margin-top:-7px; position: absolute; font-size: 12px; padding: 5px;" placeholder="Search" #input>\n            <svg  style="float: right; margin:0 4px;" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n                <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n            </svg>              \n        </mat-form-field>  \n          <div class="mat-elevation-z8">\n            <table mat-table [dataSource]="dataSource" id="reasonTbl" matSort style="border-left:solid 1px #efedea;">\n          \n              \x3c!-- ID Column --\x3e\n              <ng-container matColumnDef="id">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 55px;"> ID </th>\n                <td mat-cell *matCellDef="let row"> {{row.id}} </td>\n              </ng-container>\n          \n              \x3c!-- Progress Column --\x3e\n              <ng-container matColumnDef="contact_name">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 197px;"> Contact Name </th>\n                <td mat-cell *matCellDef="let row"> {{row.contact_name}} </td>\n              </ng-container>\n          \n              \x3c!-- Name Column --\x3e\n              <ng-container matColumnDef="removal_date">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 120px;"> Removal Date </th>\n                <td mat-cell *matCellDef="let row"> {{row.removal_date | date:\'MM/dd/yyyy\'}} </td>\n              </ng-container>\n          \n              \x3c!-- Fruit Column --\x3e\n              <ng-container matColumnDef="removal_reason">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 200px;"> Removal Reason </th>\n                <td mat-cell *matCellDef="let row"> {{row.removal_reason}} </td>\n              </ng-container>\n          \n              <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n              <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n          \n              \x3c!-- Row shown when there is no matching data. --\x3e\n              <tr class="mat-row" *matNoDataRow>\n                <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n              </tr>\n            </table>\n            <table style="background-color: #fff;">\n                <tr class="mat-row" *ngIf="users.length === 0">\n                <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n                </tr>\n            </table>\n            <mat-paginator [pageSizeOptions]="[5, 10, 25, 100]" aria-label="Select page of users"></mat-paginator>\n          </div>\n    </div>\n    </div>\n    \x3c!-- <div class="modal-footer">\n        <button type="button" class="btn btn-outline-dark" (click)="activeModal.dismiss(\'Cross click\')">Close</button>\n    </div> --\x3e\n\x3c!-- </div> --\x3e',styles:["::ng-deep #removalModalcontent {\n  width: 605px !important;\n  margin: 0 auto !important;\n}\n\n::ng-deep #reasonTbl thead tr {\n  background: #EFEDEA !important;\n  border: 1px solid #dedede !important;\n}\n\n::ng-deep #closeBtn {\n  font-size: 30px !important;\n  margin-top: -19px !important;\n}\n\n::ng-deep .mat-form-field-infix {\n  margin-right: 12px !important;\n}\n\n@media (max-width: 768px) {\n  ::ng-deep #removalModalcontent {\n    width: auto !important;\n  }\n}"]})],bZ);let vZ=class{constructor(t,e,n,i,s,r,a){this.modalService=t,this.el=e,this.httpService=n,this.waitlistservice=i,this.datePipe=s,this.router=r,this._Activatedroute=a,this.displayedColumns=["id","full_name","population","remove_reason","date_removed","mental_health","actions"],this.removeData=[],this.users=[],this.removalusers=[],this.fromdatevalue=!1,this.todatevalue=!1,this.loader=!1,this.max_loader=!0,this.srh_loader=!1,this.ftabl=!1,this.sectbl=!1,this.frmDate="",this.toDate="",this.removalusersCopy=[],this.viewMore=!0,this.viewless=!1,this.rmvdised=!1,this._Activatedroute.paramMap.subscribe(t=>{this.waitlistid=t.get("id")}),this.waitlistservice.getremovalreasons(this.waitlistid).subscribe(t=>{console.log(t);this.removalusers=t,this.removalusersCopy=this.removalusers.slice(0,5),console.log(this.removalusers)})}ngAfterViewInit(){const t=this;this.waitlistservice.castwaitlistdata.subscribe(e=>{if(console.log("removed",e),e&&(this.removeData=e.Removed),null!=this.removeData){if(this.removeData){let e=0;this.users=[],this.removeData.forEach(n=>{e++;let i=[];null!=n.splpoplist&&""!=n.splpoplist&&n.splpoplist.forEach(t=>{i.push(t.splpopname)}),this.users.push({id:e,full_name:n.contactfullname,population:i.join(","),remove_reason:n.removalreasonval,date_removed:null!==n.removaldate?t.datePipe.transform(n.removaldate,"MM-dd-yyyy"):"",mental_health:!0===n.mentalhealth?"Yes":"No",actions:"",ref:n.ref,waitlistid:n.waitlistid}),0==this.users.length&&(this.max_loader=!1),this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort})}}else this.max_loader=!1},t=>{console.log(t.message)}),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))}),$("body").on("click",".searchbyDate",function(){let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){this.srh_loader=!1,$("#sl_fromDate").css({border:"1px solid #ccc"}),$("#sl_toDate").css({border:"1px solid #ccc"});let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1];let r={fromdate:e,todate:n,status:3,ref:t.waitlistid};console.log("postObj",r),t.loader=!0,t.removeData=t.waitlistservice.searchWaitlistData(r).subscribe(e=>{t.loader=!1,t.removeData=e,console.log("self.removeData",t.removeData);let n=0;t.removeData.length>0?(t.users=[],t.removeData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),t.users.push({id:n,full_name:e.contactfullname,population:i.join(","),remove_reason:e.removalreasonval,date_removed:null!==e.removaldate?t.datePipe.transform(e.removaldate,"MM-dd-yyyy"):"",mental_health:!0===e.mentalhealth?"Yes":"No",actions:"",ref:e.ref,waitlistid:e.waitlistid}),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})):(t.users=[],t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort)})}else if(""==e||""==n)return""==e?$("#sl_fromDate").css({border:"1px solid #a94442"}):$("#sl_fromDate").css({border:"1px solid #ccc"}),void(""==n?$("#sl_toDate").css({border:"1px solid #a94442"}):$("#sl_toDate").css({border:"1px solid #ccc"}))}),$("body").on("click","#people_in_sl_clr",function(){$("#sl_fromDate,#sl_toDate").val(""),t.removedData()})}removedData(){const t=this;t.waitlistservice.castwaitlistdata.subscribe(e=>{t.removeData=e.Removed;let n=0;t.users=[],t.removeData.forEach(e=>{n++;let i=[];null!=e.splpoplist&&""!=e.splpoplist&&e.splpoplist.forEach(t=>{i.push(t.splpopname)}),t.users.push({id:n,full_name:e.contactfullname,population:i.join(","),remove_reason:e.removalreasonval,date_removed:null!==e.removaldate?t.datePipe.transform(e.removaldate,"MM-dd-yyyy"):"",mental_health:!0===e.mentalhealth?"Yes":"No"}),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})},t=>{console.log(t.message)})}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}addPerson2(){const t=this.modalService.open(Qj,{backdrop:"static",keyboard:!1});t.componentInstance.my_modal_title="",t.componentInstance.my_modal_content=""}waitlistInfo(t){const e=this.modalService.open(tV,{backdrop:"static",keyboard:!1});e.componentInstance.ref=t,e.componentInstance.my_modal_title="",e.componentInstance.my_modal_content=""}removePerson(){$("#ask_removal_reason").modal("show")}exportAsExcel(){let t=document.getElementById("sl_fromDate"),e=document.getElementById("sl_toDate");""!=t.value&&""!=e.value&&(this.frmDate=t.value,this.toDate=e.value,this.sectbl=!0),this.ftabl=!0,setTimeout(()=>{const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"PEOPLEREMOVED.xlsx"),this.ftabl=!1,this.sectbl=!1},1e3)}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}addtowaitlist(t,e,n,i){console.log(t),console.log(e),Yj.a.fire({title:"",text:"Are you sure you want to admit "+e+" back to the Waitlist?",icon:"warning",showCancelButton:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then(e=>{if(e.value){let e={ref:t,waitlistid:n};console.log("obj",e),$(i.target).next().show(),this.rmvdised=!0;const s=this;this.waitlistservice.movetoadmittedtab(e).subscribe(t=>{console.log(t),$(i.target).next().hide(),s.rmvdised=!1,Yj.a.fire({title:"",text:"Record submitted successfully",icon:"success",showCancelButton:!1,confirmButtonText:"OK"}).then(t=>{if(t.value){var e=window.location.href+"?peopleonwaitlist=true";window.location.href=e}else t.dismiss&&location.reload()})},t=>{console.log(t.message)})}else e.dismiss,Yj.a.DismissReason.cancel})}open(t){this._Activatedroute.paramMap.subscribe(t=>{this.waitlistid=t.get("id")}),console.log(this.waitlistid);this.modalService.open(bZ,{backdrop:"static",keyboard:!1}).componentInstance.waitlistid=this.waitlistid}moreResults(){this.removalusersCopy=this.removalusers,this.viewMore=!1,this.viewless=!0}lessResults(){this.removalusersCopy=this.removalusers.slice(0,5),this.viewless=!1,this.viewMore=!0}getDismissReason(t){return t===iy.ESC?"by pressing ESC":t===iy.BACKDROP_CLICK?"by clicking on a backdrop":`with: ${t}`}};vZ.ctorParameters=()=>[{type:ay},{type:s.ElementRef},{type:Yf.HttpClient},{type:Zj},{type:Cu.DatePipe},{type:Wf.Router},{type:Wf.ActivatedRoute}],vZ.propDecorators={paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}],table:[{type:s.ViewChild,args:["TABLE"]}]},vZ=Hh([Object(s.Component)({selector:"app-removed-tab",template:'<p style="padding: 2px 230px;font-weight: bold;" class="searchtitle">Search by date removed<span style="margin-left: 100px;"></span></p>\n<div align="center" style="margin-top:5px;font-weight: bold;" class="searchtitle">\n    From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n    To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n    <button class="btn btn-success req-btn searchbyDate" id="people_in_slog">Search</button>\n    <button type="button" class="btn btn-warning req-btn" id="people_in_sl_clr">Clear</button>\n</div>\n<div class="row">  \n<div class="col-md-12">\n    <div style="float: right;margin-bottom: 15px;">\n        <input (keyup)="applyFilter($event)" id="providerSearch" class="searchbox" style="border: solid 1px lightgray; height:40px;width: 195px; margin-top:-7px; font-size: 12px; padding: 5px;font-weight: 400;color: black;" placeholder="Search" #input>\n        <svg  style="float: right; margin:6px -20px;position:absolute" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">\n            <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>\n        </svg>              \n    </div>\n</div>\n</div>\n<div class="mat-elevation-z8" #TABLE>\n    <table style="width: 100%;" *ngIf="ftabl">\n        <tbody>\n            <tr>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>People Removed</b></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            </tr>\n        </tbody>\n    </table>\n    <table style="width: 100%;" *ngIf="sectbl">\n        <tbody>\n            <tr>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"><b>From Date: {{frmDate}}; To Date: {{toDate}}</b></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            <td style="text-align: center; border-right: none !important; border-top: none !important;"></td>\n            </tr>\n        </tbody>\n    </table>\n    \n    <table class="custom-table" style="width:100%;" mat-table [dataSource]="dataSource" matSort>\n    <ng-container matColumnDef="id" style="display: none;">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n        <td mat-cell *matCellDef="let row" style="text-align: center;"> {{row.id}} </td>\n    </ng-container>    \n            \x3c!-- Name Column --\x3e\n    <ng-container matColumnDef="full_name">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header>Name </th>\n        <td mat-cell *matCellDef="let row"> <a href="javascript:void(0);" (click)="waitlistInfo(row.ref);" >{{row.full_name}} </a></td>\n    </ng-container>\n        \x3c!-- Progress Column --\x3e\n        <ng-container matColumnDef="dob">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header> Date of Birth </th>\n        <td mat-cell *matCellDef="let row"> {{row.dob}} </td>\n        </ng-container>\n        <ng-container matColumnDef="population">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header>Priority Population </th>\n        <td mat-cell *matCellDef="let row"> {{row.population}} </td>\n        </ng-container>\n        <ng-container matColumnDef="remove_reason">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header>Removal Reason</th>\n        <td mat-cell *matCellDef="let row"> {{row.remove_reason}} </td>\n        </ng-container>\n        \x3c!-- Color Column --\x3e\n        <ng-container matColumnDef="date_removed">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header> Date Removed</th>\n        <td mat-cell *matCellDef="let row"> {{row.date_removed}} </td>\n        </ng-container>\n        <ng-container matColumnDef="mental_health">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header style="width:170px;">High Priority Mental Health Need</th>\n            <td mat-cell *matCellDef="let row"> {{row.mental_health}} </td>\n        </ng-container>\n        <ng-container matColumnDef="actions">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header>Outcome</th>\n        <td mat-cell *matCellDef="let row"> \n            <button  data-wlid="163" data-name="ANA FIELD" [disabled]="rmvdised" data-cid="21404" data-cwlid="11569" class="btn btn-sm green-bg wl_admit updown_caret_sibling" (click)="addtowaitlist(row.ref,row.full_name,row.waitlistid,$event)">Add to Waitlist</button>\n            <span class="admitload">&nbsp; <img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span>\n            \x3c!-- <input type="hidden">{{row.ref}} --\x3e\n        </td>\n        \x3c!-- <td mat-cell *matCellDef="let row"> {{row.ref}} </td> --\x3e\n        </ng-container>\n            <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n            <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n        \n            \x3c!-- Row shown when there is no matching data. --\x3e\n            <div *ngIf="users.length>0">\n            <tr class="mat-row" *matNoDataRow>\n            <td class="mat-cell" colspan="7">No data matching the filter </td>\n            </tr>\n          </div>\n        </table>\n        <table style="background-color: #fff;">\n            <tr class="mat-row" *ngIf="users.length === 0">\n            <td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;"><span *ngIf="!max_loader">No results found</span> <span *ngIf="max_loader"><img src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" /></span></td>\n            </tr>\n        </table>\n        \x3c!-- <table style="background-color: #fff;">\n            <tr class="mat-row" *ngIf="users.length === 0"><td class="mat-cell"  colspan="7" style="text-align: center; width: 1087px;border-left: solid #c3c3c3 1px;font-size: 14px !important; font-weight: 600;">No results found</td>\n            </tr>\n        </table> --\x3e\n        <ng-template #content let-modal >\n            <div class="modal-header">\n              <h4 class="modal-title" id="modal-basic-title">Removal Reasons</h4>\n              <button type="button" class="close" aria-label="Close" (click)="modal.dismiss(\'Cross click\')">\n                <span aria-hidden="true">&times;</span>\n              </button>\n            </div>\n            <div class="modal-body">\n                <table class="table table-bordered table-condensed">\n                    <th style="background-color: wheat;">\n                        Contact Name\n                      </th>\n                      <th style="background-color: wheat;">\n                        Removal Date\n                      </th>\n                      <th style="background-color: wheat;">\n                        Removal Reason\n                      </th>\n                      <tr *ngFor = "let row of removalusersCopy">\n                       <td>{{row.contactfullname}}</td>\n                       <td>{{row.actiondate | date: \'dd-MM-yyyy\'}}</td>\n                       <td>\n                           {{row.removalreasonval}}\n                        </td>\n                      </tr>\n                </table>\n                <a (click)="moreResults()" style="text-decoration: underline;" *ngIf="removalusers.length>5 && viewMore">View More</a>\n                <a (click)="lessResults()" style="text-decoration: underline;" *ngIf="viewless">View Less</a>\n            </div>\n            <div class="modal-footer">\n              <button type="button" class="btn btn-outline-dark" (click)="modal.close(\'Close click\')">Close</button>\n            </div>\n          </ng-template>\n          <button class="btn purple-bg" id="exportBtn3" (click)="exportAsExcel()"><i class="fa fa-download" aria-hidden="true"></i>&nbsp;Download</button>\n\n    <mat-paginator [pageSizeOptions]="[10, 25, 100]"> </mat-paginator>\n    <br>\n    <button class="btn purple-bg" (click)="open(content)">View Removal Reasons</button>\n   \n    </div>\n',styles:[".notes-text {\n  top: 8px;\n  left: 20px;\n}\n\nbutton.addperson_waitlistbtn:hover {\n  color: #fff;\n}\n\n.exportBtn {\n  display: none;\n}\n\n.btn {\n  padding: 2px 8px !important;\n}\n\n.req-btn {\n  margin: 2px;\n  padding: 3px 10px;\n  color: #fff;\n}\n\n#exportBtn3 {\n  font-size: 16px;\n  position: absolute;\n  bottom: 56px;\n}\n\n.card-body {\n  position: relative;\n}\n\n::ng-deep .xlModal > .modal-dialog {\n  max-width: 500px !important;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}\n\n:host ::ng-deep .alert-info {\n  margin-bottom: 0rem !important;\n}\n\n::ng-deep .mat-form-field-underline {\n  display: none;\n}\n\n::ng-deep .mat-form-field-label-wrapper {\n  display: none;\n}\n\nlabel {\n  margin-bottom: 0;\n}\n\nbutton.btnSubmit:last-child {\n  float: right;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\n:host ::ng-deep thead tr {\n  background: #e0e4ec;\n}\n\n::ng-deep .mat-form-field-appearance-legacy .mat-form-field-wrapper {\n  padding-bottom: 0.25em !important;\n}\n\n:host ::ng-deep span.alert-info {\n  width: 100%;\n  font-size: 16px;\n  display: block;\n  font-weight: 500;\n}\n\ntd, th {\n  border-right: 1px solid gray;\n}\n\n.mat-form-field-infix {\n  margin-right: 12px !important;\n}\n\n.mat-cell, .mat-footer-cell {\n  font-size: 14px !important;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}"]})],vZ);let yZ=class{constructor(t,e,n,i,s,r){this.transportservice=t,this.authService=e,this.datePipe=n,this.modalService=i,this.titleService=s,this.fb=r,this.programData=[],this.transpotation=!0,this.submitted=!1,this.transportdata=[],this.completeddata=[],this.users=[],this.editinfo=[],this.comptravellog=[],this.loader=!1,this.displayedColumns=["id","created_date","passanger_name","uniqueidentifier","pickup_city","pickup_time","drop_off_time","program_name","drop_of_location","mileage","submitted_by","funding_source","statuschangedate","actions"],this.modalOptions={backdrop:"static",backdropClass:"customBackdrop"},this.actionform=this.fb.group({programname:[""],nameofdriver:["",im.required],psngrname:["",im.required],callerphone:[""],pckuploc:["",im.required],pckupcity:[""],pckupdate_time:["",im.required],drop_of_loc:["",im.required],createddate:[""],fromDate_rmv:[""],mileage:["",im.required],cmnts:[""],submittedby:[""],primarysubst:[""],travelstatus:["",im.required],funding_source:[""],flat_matride:[""],flat_noshow:[""],flat_interruptedride:[""]}),this.authService.getMe().subscribe(t=>{console.log(t);let e=t.contacttypeid;console.log(t.contacttypeid),"4"==e&&this.transportservice.getTravelLog().subscribe(t=>{if(this.transportdata=t,console.log(this.transportdata.Completed),this.completeddata=this.transportdata.Completed,null!=this.completeddata){let t=0;if(this.completeddata){this.completeddata.forEach(e=>{t++;var n="";null!==e.dropofftime&&""!==e.dropofftime&&(n=new Date(e.dropofftime).toLocaleString()),this.users.push({id:null,created_date:null!==e.createdtime?new Date(e.createdtime).toLocaleString():"",passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,pickup_city:e.pickupcity,pickup_time:null!==e.pickuptime?new Date(e.pickuptime).toLocaleString():"",drop_off_time:n,program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),this.sortindDate(this.users)});for(var e=0;e<this.users.length;e++)this.users[e].id=e+1;this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}}})})}get f(){return this.actionform.controls}ngOnInit(){this.programData=[{programName:"Apricot Residential Program (TEST PROGRAM)",programAddress:"FOR TRAINING PURPOSES ONLY<br>Boston  02130",waitlistName:[{waitlistnames:"River valley center Waitlist"},{waitlistnames:"Residential Waitlist"},{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"8"},{waitlistnum:"34"},{waitlistnum:"3"}],status:[{status:"Approved"},{status:"Approved"},{status:"Approved"}]},{programName:"Granada House",programAddress:"70-72 Adamson Street<br>Boston MA 02134",waitlistName:[{waitlistnames:"River valley center Waitlist"}],waiting:[{waitlistnum:"8"}],status:[{status:"Approved"}]},{programName:"McCleary Manor",programAddress:"40 Bright Side Drive<br>Holyoke MA 01040",waitlistName:[{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"3"}],status:[{status:"Approved"}]}],this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]]}),this.dataTable=$("#wl_screening_admission1"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"SCREENING_LOG.xls"}]}),this.dataTable=$("#wl_pending_admission"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!0,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ON_WAITLIST.xls"}]}),this.dataTable=$("#wl_admitted"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ADMITTED.xls"}]}),this.dataTable=$("#wl_removed"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_REMOVED.xls"}]})}export(){let t=this.tabGroup.selectedIndex>1?1:this.tabGroup.selectedIndex;$("body").find("button.exportBtn").eq(t).click()}ngAfterViewInit(){$('<span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span>').prependTo("#wl_pending_admission_wrapper"),document.getElementById("people_in_admit_clr").addEventListener("click",function(){}),document.getElementById("people_in_removelist_clr").addEventListener("click",function(){}),$("#sortable_pending_admission").sortable(),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))});const t=this;$("body").on("click","#people_in_slog",function(){console.log("hi");let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1];let r={fromdate:e,todate:n,status:4};console.log("postObj",r),t.loader=!0,t.comptravellog=t.transportservice.searchscheduledTravelLog(r).subscribe(e=>{t.comptravellog=e,console.log(t.comptravellog);if(t.users=[],t.comptravellog.length>0){t.comptravellog.forEach(e=>{t.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,pickup_city:e.pickupcity,pickup_time:new Date(e.pickuptime).toLocaleString(),drop_off_time:new Date(e.dropofftime).toLocaleString(),program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),t.sortindDate(t.users)});for(var n=0;n<t.users.length;n++)t.users[n].id=n+1;console.log(t.users),t.loader=!1,t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}else t.loader=!1,t.users=[],t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})}}),$("body").on("click","#people_in_sl_clr",function(){if($("#sl_fromDate").val()&&$("#sl_toDate").val("")?(console.log("firstdate"),$("#sl_fromDate").val("")):$("#sl_toDate").val(""),console.log($("#sl_fromDate").val()),console.log($("#sl_toDate").val()),$("#sl_fromDate").val("")&&$("#sl_toDate").val("")&&(console.log("test"),$("#sl_fromDate,#sl_toDate").val(""),console.log(t.completeddata),null!=t.completeddata)){let n=0;if(t.users=[],t.completeddata){t.completeddata.forEach(e=>{n++,t.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,pickup_city:e.pickupcity,pickup_time:new Date(e.pickuptime).toLocaleString(),drop_off_time:new Date(e.dropofftime).toLocaleString(),program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),t.sortindDate(t.users)});for(var e=0;e<t.users.length;e++)t.users[e].id=e+1;console.log(t.users),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}}})}sortindDate(t){return t.sort((t,e)=>new Date(e.statuschangedate)-new Date(t.statuschangedate))}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"COMPLETED_RIDES.xlsx")}addedit(t,e){this.closevalidation(),console.log("edit"),this.travelreference=e,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.transportservice.getTravelLogInfo(this.travelreference).subscribe(t=>{console.log(t),this.editinfo=t,this.actionform.patchValue({programname:this.editinfo.programname,nameofdriver:this.editinfo.nameofthedriver,psngrname:this.editinfo.nameofthetraveller,callerphone:this.editinfo.callerphone,pckupcity:this.editinfo.pickupcity,pckuploc:this.editinfo.pickuplocation,pckupdate_time:null==this.editinfo.pickuptime?"":new Date(this.editinfo.pickuptime),drop_of_loc:this.editinfo.dropofflocation,createddate:new Date(this.editinfo.createdtime).toLocaleString(),travelstatus:this.editinfo.travellerstatusid,fromDate_rmv:null==this.editinfo.dropofftime?"":new Date(this.editinfo.dropofftime),mileage:this.editinfo.mileage,cmnts:this.editinfo.comments,submittedby:this.editinfo.submittedby,funding_source:this.editinfo.fundingsourceid,flat_noshow:this.editinfo.flatnoshow,flat_matride:this.editinfo.flatmatride,flat_interruptedride:this.editinfo.flatinterruptedride,primarysubst:this.editinfo.primaryconcerndata}),null!=this.editinfo.fundingsourceid?this.actionform.get("funding_source").disable():this.actionform.get("funding_source").enable(),console.log(this.actionform.value)})}actionFormSubmit(){var t,e;if(this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("nameofdriver").setValidators([im.required]),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("pckuploc").setValidators([im.required]),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").setValidators([im.required]),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").setValidators([im.required]),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("drop_of_loc").setValidators([im.required]),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.submitted=!0,this.actionform.invalid)for(let n in this.actionform.controls)this.actionform.controls[n].errors&&console.log(n);else t=null==this.actionform.value.fromDate_rmv||""==this.actionform.value.fromDate_rmv?"":new Date(this.actionform.value.fromDate_rmv).toISOString().slice(0,16),e={id:this.editinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,pickuplocation:this.actionform.value.pckuploc,pickupcity:this.actionform.value.pckupcity,pickuptime:new Date(this.actionform.value.pckupdate_time).toISOString().slice(0,16),dropofftime:t,dropofflocation:this.actionform.value.drop_of_loc,travellerstatusid:this.actionform.value.travelstatus,comments:this.actionform.value.cmnts,fundingsourceid:this.actionform.value.funding_source,flatmatride:this.actionform.value.flat_matride,flatnoshow:this.actionform.value.flat_noshow,flatinterruptedride:this.actionform.value.flat_interruptedride,createdby:this.actionform.value.submittedby,mileage:this.actionform.value.mileage},console.log(e),console.log(this.actionform.value),this.loader=!0,this.transportservice.savedEditTravellogInfo(e).subscribe(t=>{console.log(t),this.loader=!1,t&&(this.modalService.dismissAll(),location.reload())})}waitlistInfo(){}removePerson(){}addPerson2(){}addWaitlist(){}addPerson(){}numberOnly(t){const e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}closevalidation(){this.actionform.get("psngrname").clearValidators(),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("nameofdriver").clearValidators(),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("pckuploc").clearValidators(),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").clearValidators(),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").clearValidators(),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").clearValidators(),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("drop_of_loc").clearValidators(),this.actionform.get("drop_of_loc").updateValueAndValidity()}};yZ.ctorParameters=()=>[{type:sV},{type:sg},{type:Cu.DatePipe},{type:ay},{type:wh},{type:Uf}],yZ.propDecorators={table:[{type:s.ViewChild,args:["TABLE"]}],tabGroup:[{type:s.ViewChild,args:["tabGroup"]}],paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}]},yZ=Hh([Object(s.Component)({selector:"app-completed-rides",template:'<div align="center" style="margin-top:16px;">\n    From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n    To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n    <button class="btn btn-success req-btn" id="people_in_slog">Search</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n    <button type="reset" class="btn btn-warning req-btn" id="people_in_sl_clr">Clear</button>\n</div> \n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" [useExistingCss]="true" printSectionId="print-section" ngxPrint>Print</button>\n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" (click)="exportAsExcel()">Export to Excel</button>\n    \x3c!-- <div class="" align="right" style="width:100%;">\n    <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();">Export to Excel</button>\n    <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n    </div> --\x3e\n<mat-form-field style="float: right;margin-right: 14px;">\n<mat-label>Search</mat-label>\n<input matInput (keyup)="applyFilter($event)" placeholder="" #input>\n</mat-form-field>\n<div class="mat-elevation-z8" id="print-section" #TABLE>\n<table style="width:100%;" mat-table [dataSource]="dataSource" matSort class="custom-table">\n    <ng-container matColumnDef="id">\n        <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n        <td mat-cell *matCellDef="let row"> {{row.id}} </td>\n        \x3c!-- <td mat-cell *matCellDef="let element; let i = index;"> {{i + 1}} </td> --\x3e\n    </ng-container>\n    \x3c!-- Name Column --\x3e\n    <ng-container matColumnDef="created_date">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header>Created Date </th>\n    <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.created_date}} </td>\n    </ng-container>\n\n    \x3c!-- Progress Column --\x3e\n    <ng-container matColumnDef="passanger_name">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Passenger Name</th>\n    <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.passanger_name}} </td>\n    </ng-container>\n\n    \x3c!-- Color Column --\x3e\n    \x3c!-- <ng-container matColumnDef="phone_number">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Phone Number </th>\n    <td  style="width: 120px;" mat-cell *matCellDef="let row"><span *ngIf="(row.phone_number!=\'\')"> ({{row.phone_number | slice:0:3}}) {{row.phone_number | slice:3:6}}-{{row.phone_number | slice:6:-1}}</span> </td>\n    </ng-container> --\x3e\n    <ng-container matColumnDef="uniqueidentifier">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header>Unique Identifier</th>\n    <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.uniqueidentifier}} </td>\n    </ng-container>\n    <ng-container matColumnDef="pickup_city">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup City</th>\n    <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.pickup_city}} </td>\n    </ng-container>\n    <ng-container matColumnDef="pickup_time">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Time</th>\n    <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.pickup_time}} </td>\n    </ng-container>\n    \x3c!-- <ng-container matColumnDef="pickup_location">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Location</th>\n    <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.pickup_location}} </td>\n    </ng-container> --\x3e\n    <ng-container matColumnDef="drop_off_time">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Drop off Time</th>\n    <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.drop_off_time}} </td>\n    </ng-container>\n    <ng-container matColumnDef="program_name">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Program Name</th>\n    <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.program_name}} </td>\n    </ng-container>\n    <ng-container matColumnDef="drop_of_location">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Drop off Location</th>\n    <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.drop_of_location}} </td>\n    </ng-container>\n    \x3c!-- <ng-container matColumnDef="notes">\n    <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Notes</th>\n    <td mat-cell *matCellDef="let row"> {{row.notes}} </td>\n    </ng-container> --\x3e\n    <ng-container matColumnDef="mileage">\n    <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Mileage</th>\n    <td mat-cell *matCellDef="let row"> {{row.mileage}} </td>\n    </ng-container>\n    <ng-container matColumnDef="submitted_by">\n    <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Submitted by</th>\n    <td mat-cell *matCellDef="let row"> {{row.submitted_by}} </td>\n    </ng-container>\n    <ng-container matColumnDef="funding_source">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Funding Source</th>\n    <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.funding_source}} </td>\n    </ng-container>\n    <ng-container matColumnDef="statuschangedate">\n      <th mat-header-cell [hidden]="true" *matHeaderCellDef mat-sort-header>statuschangedate</th>\n      <td style="width: 88px;" mat-cell [hidden]="true" *matCellDef="let row"> {{row.statuschangedate}} </td>\n      </ng-container>\n    <ng-container matColumnDef="actions">\n    <th mat-header-cell *matHeaderCellDef mat-sort-header> Actions</th>\n    <td mat-cell *matCellDef="let row" class="action-buttons"> \n        <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570"  (click)="addedit(completecontent,row.ref);" class="btn btn-sm purple-bg">Edit</button>\n    </td>\n    </ng-container>\n    <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n    <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n    \x3c!-- Row shown when there is no matching data. --\x3e\n    <tr class="mat-row" *matNoDataRow>\n    \x3c!-- <td class="mat-cell" colspan="11">No Record Found"{{input.value}}"</td> --\x3e\n    <td class="mat-cell" colspan="13">No Record Found</td>\n    </tr>\n</table>\n<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n</div>\n<ng-template #completecontent let-modal>\n    <form [formGroup]="actionform" (ngSubmit)="actionFormSubmit()">\n      <div class="modal-header">\n        <h4 class="modal-title">Ride Information</h4>\n        <button type="button" class="close" aria-label="Close" (click)="closevalidation()" (click)="modal.dismiss(\'Cross click\')">\n          <span aria-hidden="true">&times;</span>\n        </button>\n      </div>\n      <div class="modal-body">\n        <div class="row" *ngIf="submitted &&  actionform.invalid">\n          <div class="col-sm-12">\n            <div id="ride_err_location" ><div class="alert alert-danger" >\n              <div  *ngIf="submitted && f.psngrname.errors">Passenger Name is required</div>\n              <div *ngIf="submitted && f.nameofdriver.errors">Driver Name is required</div>\n              <div *ngIf="submitted && f.pckuploc.errors">Pickup Location is required</div>\n              <div *ngIf="submitted && f.pckupdate_time.errors">Pickup DateTime is required</div>\n              <div *ngIf="submitted && f.drop_of_loc.errors">Drop-off Location is required</div>\n              <div *ngIf="submitted && f.travelstatus.errors">Status is required</div>\n              <div *ngIf="submitted && f.mileage.errors">Mileage is required</div>\n            </div>\n          </div>\n          </div>\n        </div>\n        \n\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\n              <label class="col-md-4 col-form-label" for="programname">Program Name: </label>\n              <div class="col-md-8">\n              <input type="text" id="programname" name="programname" class="form-control" formControlName="programname" readonly="readonly">\n            </div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n          </div>\n          <div class="row form-group">\n\t\t\t\t\t\t\n            <label class="col-md-4 col-form-label" for="nameofdriver">Name of the Driver: &nbsp;<span class="red ">*</span></label>\n            <div class="col-md-8">\n            <input type="text" id="nameofdriver" name="nameofdriver" class="form-control" formControlName="nameofdriver" [ngClass]="{ \'is-invalid\': submitted && f.nameofdriver.errors }">\n          </div>\n                      \n        </div>\n        <div class="row form-group">\n\t\t\t\t\t\t\n          <label class="col-md-4 col-form-label" for="psngrname">Passenger Name: &nbsp;<span class="red ">*</span></label>\n          <div class="col-md-8">\n          <input type="text" id="psngrname" name="psngrname" class="form-control" formControlName="psngrname" [ngClass]="{ \'is-invalid\': submitted && f.psngrname.errors }">\n        </div>\n                    \n      </div>\n      <div class="row form-group">\n\t\t\t\t\t\t\n        <label class="col-md-4 col-form-label" for="callerphone">Caller Phone#: </label>\n        <div class="col-md-8">\n        <input type="text" id="callerphone" name="callerphone" class="form-control" shownMaskExpression="(   ) ___-____"  mask="(000) 000-0000" [showMaskTyped]="true" [dropSpecialCharacters]="false" formControlName="callerphone">\n      </div>\n                  \n    </div>\n    <div class="row form-group" >\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="primarysubst">Primary Substance/Concern: </label>\n      <div class="col-md-8">\n      <textarea type="text" id="primarysubst" name="primarysubst" class="form-control" formControlName="primarysubst" readonly></textarea>\n    </div>\n    </div>\n    <div class="row form-group">\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="pckuploc">Pickup Location:&nbsp;<span class="red ">*</span></label>\n      <div class="col-md-8">\n      <input type="text" id="pckuploc" name="pckuploc" class="form-control" formControlName="pckuploc" [ngClass]="{ \'is-invalid\': submitted && f.pckuploc.errors }">\n    </div>\n                \n  </div>\n  <div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="pckupcity">Pickup City: </label>\n    <div class="col-md-8">\n    <input type="text" id="pckupcity" name="pckupcity" class="form-control" formControlName="pckupcity">\n  </div>\n              \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="pckupdate_time">Pickup Date Time:&nbsp;<span class="red ">*</span></label>\n  <div class="col-md-8">\n    <input [owlDateTimeTrigger]="dt" [owlDateTime]="dt" formControlName="pckupdate_time" [ngClass]="{ \'is-invalid\': submitted && f.pckupdate_time.errors }">\n          <owl-date-time #dt [hour12Timer] = "true"></owl-date-time>\n    \x3c!-- <mat-form-field>\n      <input matInput type="datetime-local"  name="fromDate_rmv" formControlName="pckupdate_time" >\n    </mat-form-field> --\x3e\n    \x3c!-- <input type="text" autocomplete="off" name="fromDate_rmv" id="fromDate_rmv" data-date-start-date="-1w" class="date-picker-min hasDatepicker"  formControlName="pckupdate_time" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n</div>\n            \n</div>\n      <div class="row form-group">\n\t\t\t\t\t\t\n        <label class="col-md-4 col-form-label" for="drop_of_loc">Drop off Location:&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n        <input type="text" id="drop_of_loc" name="drop_of_loc" class="form-control" formControlName="drop_of_loc" [ngClass]="{ \'is-invalid\': submitted && f.drop_of_loc.errors }">\n      </div>\n                  \n    </div>\n    <div class="row form-group">\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="createddate">Created Date: </label>\n      <div class="col-md-8">\n      <input type="text"  name="fromDate_rmv" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="createddate" readonly="readonly">\n    </div>\n  </div>     \n    <div class="row form-group">\n                 \n      <label class="col-md-4 col-form-label" for="travelstatus">Status:&nbsp;<span class="red ">*</span></label>\n      <div class="col-md-8">\n      <select  class="col-md-5" name="travelstatus" id="travelstatus"  class="form-control" formControlName="travelstatus" [ngClass]="{ \'is-invalid\': submitted && f.travelstatus.errors }">\n        <option value="">Select One</option>\n        <option value="1">New</option>\n        <option value="2">Scheduled</option>\n        <option value="4">Completed</option>\n        <option value="1457">Incomplete</option>\n        <option value="3">Cancelled</option>\n        \x3c!-- <option value="5">Incomplete</option>                 --\x3e\n      </select>         \n            \n    </div>            \n  </div>\n  <div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="fromDate_rmv">Drop off Date Time: </label>\n    <div class="col-md-8">\n      <input [owlDateTimeTrigger]="dt1" [owlDateTime]="dt1" formControlName="fromDate_rmv" >\n          <owl-date-time #dt1 [hour12Timer] = "true"></owl-date-time>\n      \x3c!-- <mat-form-field>\n        <input matInput type="datetime-local" name="fromDate_rmv" formControlName="fromDate_rmv">\n      </mat-form-field> --\x3e\n    \x3c!-- <input type="text"  autocomplete="off" name="fromDate_rmv" data-date-start-date="-1w" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="fromDate_rmv" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n  </div>\n              \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="mileage">Mileage:&nbsp;<span class="red ">*</span></label>\n  <div class="col-md-8">\n  <input type="text" id="mileage" name="mileage" class="form-control" formControlName="mileage" [ngClass]="{ \'is-invalid\': submitted && f.mileage.errors }" (keypress)="numberOnly($event)">\n  <br>\n<div>\n<input type="checkbox" id="flat_matride" formControlName="flat_matride" value="yes" name="flat_matride" class="w-chk">\n<label for="flat_matride" class="w-chk" style="width: 50% !important">Flat Rate \u2013 MAT Ride</label><br>\n  </div>\n<div>\n<input type="checkbox" id="flat_noshow" value="yes" formControlName="flat_noshow" name="flat_noshow" class="w-chk">\n<label for="flat_noshow" class="w-chk" style="width: 50% !important">Flat Rate \u2013 No Show</label><br>\n  </div>\n<div>\n<input type="checkbox" id="flat_interruptedride" formControlName="flat_interruptedride" value="yes" name="flat_interruptedride" class="w-chk">\n<label for="flat_interruptedride" class="w-chk" style="width: 50% !important">Flat Rate \u2013 Ride Interrupted</label>\n</div>\n</div>\n            \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="funding_source">Funding Source (HRIA Only): </label>\n    <div class="col-md-5">\n      <select  class="col-md-5" name="funding_source" id="funding_source"  class="form-control" formControlName="funding_source">\n        <option value="">Select One</option>\n        <option value="1">HCS</option>\n        <option value="2">GLCF</option>\n        <option value="3">COOCLI</option>          \n      </select>  \n  </div>\n              \n  </div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="cmnts">Comments: </label>\n  <div class="col-md-8">\n  <input type="text" id="cmnts" name="cmnts" class="form-control" formControlName="cmnts">\n</div>\n            \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="submittedby">Submitted by: </label>\n  <div class="col-md-8">\n  <input type="text" id="submittedby" name="submittedby" class="form-control" formControlName="submittedby" readonly="readonly">\n</div>\n            \n</div>\n        \n\n      </div>\n      <div class="modal-footer">\n        <button type="button" class="button button_medium" (click)="closevalidation()" (click)="modal.close(\'Close click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\n        <button type="submit" class="button button_medium" value="submit"><i class="fa fa-save">&nbsp;</i>Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\n      </div>\n    </form>\n  </ng-template>',styles:[".btn {\n  margin: 2px !important;\n}\n\n::ng-deep .mat-cell {\n  text-align: center;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}\n\n.modal-content {\n  width: 75%;\n  margin-left: 85px;\n}\n\n.is-invalid {\n  border: 1px solid red !important;\n}"]})],yZ);let _Z=class{constructor(t,e,n,i,s,r){this.modalService=t,this.titleService=e,this.authService=n,this.fb=i,this.transportservice=s,this.datePipe=r,this.programData=[],this.transpotation=!0,this.submitted=!1,this.displayedColumns=["id","created_date","passanger_name","uniqueidentifier","pickup_city","pickup_time","drop_off_time","program_name","drop_of_location","mileage","submitted_by","funding_source","statuschangedate","actions"],this.transportdata=[],this.incompleteddata=[],this.users=[],this.editinfo=[],this.incomptravellog=[],this.loader=!1,this.modalOptions={backdrop:"static",backdropClass:"customBackdrop"},this.actionform=this.fb.group({programname:[""],nameofdriver:["",im.required],psngrname:["",im.required],callerphone:[""],pckuploc:["",im.required],pckupcity:[""],pckupdate_time:["",im.required],drop_of_loc:["",im.required],createddate:[""],fromDate_rmv:[""],mileage:["",im.required],cmnts:[""],submittedby:[""],primarysubst:[""],travelstatus:["",im.required],funding_source:[""],flat_matride:[""],flat_noshow:[""],flat_interruptedride:[""]}),this.authService.getMe().subscribe(t=>{"4"==t.contacttypeid&&this.transportservice.getTravelLog().subscribe(t=>{if(this.transportdata=t,console.log(this.transportdata.Completed),this.incompleteddata=this.transportdata.Incomplete,null!=this.incompleteddata){let t=0;if(this.incompleteddata){this.incompleteddata.forEach(e=>{t++;var n="";null!==e.dropofftime&&""!==e.dropofftime&&(n=new Date(e.dropofftime).toLocaleString()),this.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,pickup_city:e.pickupcity,pickup_time:null!==e.pickuptime?new Date(e.pickuptime).toLocaleString():"",drop_off_time:n,program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),this.sortindDate(this.users)});for(var e=0;e<this.users.length;e++)this.users[e].id=e+1;this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}}})})}get f(){return this.actionform.controls}ngOnInit(){this.programData=[{programName:"Apricot Residential Program (TEST PROGRAM)",programAddress:"FOR TRAINING PURPOSES ONLY<br>Boston  02130",waitlistName:[{waitlistnames:"River valley center Waitlist"},{waitlistnames:"Residential Waitlist"},{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"8"},{waitlistnum:"34"},{waitlistnum:"3"}],status:[{status:"Approved"},{status:"Approved"},{status:"Approved"}]},{programName:"Granada House",programAddress:"70-72 Adamson Street<br>Boston MA 02134",waitlistName:[{waitlistnames:"River valley center Waitlist"}],waiting:[{waitlistnum:"8"}],status:[{status:"Approved"}]},{programName:"McCleary Manor",programAddress:"40 Bright Side Drive<br>Holyoke MA 01040",waitlistName:[{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"3"}],status:[{status:"Approved"}]}],this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]]}),this.dataTable=$("#wl_screening_admission1"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"SCREENING_LOG.xls"}]}),this.dataTable=$("#wl_pending_admission"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!0,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ON_WAITLIST.xls"}]}),this.dataTable=$("#wl_admitted"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ADMITTED.xls"}]}),this.dataTable=$("#wl_removed"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_REMOVED.xls"}]})}export(){let t=this.tabGroup.selectedIndex>1?1:this.tabGroup.selectedIndex;$("body").find("button.exportBtn").eq(t).click()}ngAfterViewInit(){$('<span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span>').prependTo("#wl_pending_admission_wrapper"),document.getElementById("people_in_admit_clr").addEventListener("click",function(){}),document.getElementById("people_in_removelist_clr").addEventListener("click",function(){}),$("#sortable_pending_admission").sortable(),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))});const t=this;$("body").on("click","#people_in_slog_inc",function(){console.log("hi");let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1];let r={fromdate:e,todate:n,status:5};console.log("postObj",r),t.loader=!0,t.incomptravellog=t.transportservice.searchscheduledTravelLog(r).subscribe(e=>{t.incomptravellog=e,console.log(t.incomptravellog);if(t.users=[],t.incomptravellog.length>0){t.incomptravellog.forEach(e=>{t.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,pickup_city:e.pickupcity,pickup_time:new Date(e.pickuptime).toLocaleString(),drop_off_time:new Date(e.dropofftime).toLocaleString(),program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),t.sortindDate(this.users)});for(var n=0;n<t.users.length;n++)t.users[n].id=n+1;t.loader=!1,console.log(t.users),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}else t.loader=!1,t.users=[],t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})}}),$("body").on("click","#people_in_sl_clr_inc",function(){if(console.log($("#sl_fromDate").val()),console.log($("#sl_toDate").val()),$("#sl_fromDate").val()&&$("#sl_toDate").val("")?(console.log("firstdate"),$("#sl_fromDate").val("")):$("#sl_toDate").val(""),$("#sl_fromDate").val("")&&$("#sl_toDate").val("")&&($("#sl_fromDate,#sl_toDate").val(""),console.log(t.incompleteddata),null!=t.incompleteddata)){let n=0;if(t.users=[],t.incompleteddata){t.incompleteddata.forEach(e=>{n++,t.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,uniqueidentifier:e.uid,pickup_city:e.pickupcity,pickup_time:new Date(e.pickuptime).toLocaleString(),drop_off_time:new Date(e.dropofftime).toLocaleString(),program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),t.sortindDate(t.users)});for(var e=0;e<t.users.length;e++)t.users[e].id=e+1;console.log(t.users),t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}}})}sortindDate(t){return t.sort((t,e)=>new Date(e.statuschangedate)-new Date(t.statuschangedate))}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"COMPLETED_RIDES.xlsx")}addedit(t,e){this.closevalidation(),console.log("edit"),this.travelreference=e,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.transportservice.getTravelLogInfo(this.travelreference).subscribe(t=>{console.log(t),this.editinfo=t,this.actionform.patchValue({programname:this.editinfo.programname,nameofdriver:this.editinfo.nameofthedriver,psngrname:this.editinfo.nameofthetraveller,callerphone:this.editinfo.callerphone,pckupcity:this.editinfo.pickupcity,pckuploc:this.editinfo.pickuplocation,pckupdate_time:null==this.editinfo.pickuptime?"":new Date(this.editinfo.pickuptime),drop_of_loc:this.editinfo.dropofflocation,createddate:new Date(this.editinfo.createdtime).toLocaleString(),travelstatus:this.editinfo.travellerstatusid,fromDate_rmv:(this.editinfo.dropofftime,""),mileage:this.editinfo.mileage,cmnts:this.editinfo.comments,submittedby:this.editinfo.submittedby,funding_source:this.editinfo.fundingsourceid,flat_noshow:this.editinfo.flatnoshow,flat_matride:this.editinfo.flatmatride,flat_interruptedride:this.editinfo.flatinterruptedride,primarysubst:this.editinfo.primaryconcerndata}),console.log(null!=this.editinfo.fundingsourceid),null!=this.editinfo.fundingsourceid?this.actionform.get("funding_source").disable():this.actionform.get("funding_source").enable(),console.log(this.actionform)})}actionFormSubmit(){for(let n in this.actionform.controls)this.actionform.controls[n].errors&&console.log(n);var t,e;(this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("nameofdriver").setValidators([im.required]),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("pckuploc").setValidators([im.required]),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").setValidators([im.required]),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").setValidators([im.required]),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("drop_of_loc").setValidators([im.required]),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.submitted=!0,this.actionform.invalid)||(t=null==this.actionform.value.fromDate_rmv||""==this.actionform.value.fromDate_rmv?"":new Date(this.actionform.value.fromDate_rmv).toISOString().slice(0,16),e={id:this.editinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,pickuplocation:this.actionform.value.pckuploc,pickupcity:this.actionform.value.pckupcity,pickuptime:new Date(this.actionform.value.pckupdate_time).toISOString().slice(0,16),dropofftime:t,dropofflocation:this.actionform.value.drop_of_loc,travellerstatusid:this.actionform.value.travelstatus,comments:this.actionform.value.cmnts,fundingsourceid:this.actionform.value.funding_source,flatmatride:this.actionform.value.flat_matride,flatnoshow:this.actionform.value.flat_noshow,flatinterruptedride:this.actionform.value.flat_interruptedride,createdby:this.actionform.value.submittedby,mileage:this.actionform.value.mileage},console.log(e),this.loader=!0,this.transportservice.savedEditTravellogInfo(e).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),this.loader=!1,location.reload())}))}waitlistInfo(){}removePerson(){}addPerson2(){}addWaitlist(){}addPerson(){}numberOnly(t){const e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}closevalidation(){this.actionform.get("psngrname").clearValidators(),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("nameofdriver").clearValidators(),this.actionform.get("nameofdriver").updateValueAndValidity(),this.actionform.get("pckuploc").clearValidators(),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").clearValidators(),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").clearValidators(),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").clearValidators(),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("drop_of_loc").clearValidators(),this.actionform.get("drop_of_loc").updateValueAndValidity()}};_Z.ctorParameters=()=>[{type:ay},{type:wh},{type:sg},{type:Uf},{type:sV},{type:Cu.DatePipe}],_Z.propDecorators={table:[{type:s.ViewChild,args:["TABLE"]}],tabGroup:[{type:s.ViewChild,args:["tabGroup"]}],paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}]},_Z=Hh([Object(s.Component)({selector:"app-incompleted-rides",template:'<div align="center" style="margin-top:16px;">\n    From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n    To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n    <button class="btn btn-success req-btn" id="people_in_slog_inc">Search</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n    <button type="reset" class="btn btn-warning req-btn" id="people_in_sl_clr_inc">Clear</button>\n</div>\n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" [useExistingCss]="true" printSectionId="print-section" ngxPrint>Print</button>\n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" (click)="exportAsExcel()">Export to Excel</button>\n    \x3c!-- <div class="" align="right" style="width:100%;">\n    <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();">Export to Excel</button>\n    <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n    </div> --\x3e\n<mat-form-field style="float: right;margin-right: 14px;">\n<mat-label>Search</mat-label>\n<input matInput (keyup)="applyFilter($event)" placeholder="" #input>\n</mat-form-field>\n<div class="mat-elevation-z8" id="print-section" #TABLE>\n<table style="width:100%;" mat-table [dataSource]="dataSource" matSort class="custom-table"\n>\n        <ng-container matColumnDef="id">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n            <td mat-cell *matCellDef="let row"> {{row.id}} </td>\n        </ng-container>\n                \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="created_date">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>Created Date </th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.created_date}} </td>\n                </ng-container>\n            \n                \x3c!-- Progress Column --\x3e\n                <ng-container matColumnDef="passanger_name">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Passenger Name</th>\n                <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.passanger_name}} </td>\n                </ng-container>\n\n                            \x3c!-- Color Column --\x3e\n                \x3c!-- <ng-container matColumnDef="phone_number">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Phone Number </th>\n                <td  style="width: 120px;" mat-cell *matCellDef="let row"><span *ngIf="(row.phone_number!=\'\')"> ({{row.phone_number | slice:0:3}}) {{row.phone_number | slice:3:6}}-{{row.phone_number | slice:6:-1}}</span> </td>\n                </ng-container> --\x3e\n                <ng-container matColumnDef="uniqueidentifier">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header>Unique Identifier</th>\n                  <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.uniqueidentifier}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="pickup_city">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup City</th>\n                  <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.pickup_city}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="pickup_time">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Time</th>\n                  <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.pickup_time}} </td>\n                  </ng-container>\n                  \x3c!-- <ng-container matColumnDef="pickup_location">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Location</th>\n                  <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.pickup_location}} </td>\n                  </ng-container> --\x3e\n                  <ng-container matColumnDef="drop_off_time">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Drop off Time</th>\n                  <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.drop_off_time}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="program_name">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Program Name</th>\n                  <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.program_name}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="drop_of_location">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Drop off Location</th>\n                  <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.drop_of_location}} </td>\n                  </ng-container>\n                  \x3c!-- <ng-container matColumnDef="notes">\n                  <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Notes</th>\n                  <td mat-cell *matCellDef="let row"> {{row.notes}} </td>\n                  </ng-container> --\x3e\n                  <ng-container matColumnDef="mileage">\n                  <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Mileage</th>\n                  <td mat-cell *matCellDef="let row"> {{row.mileage}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="submitted_by">\n                  <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Submitted by</th>\n                  <td mat-cell *matCellDef="let row"> {{row.submitted_by}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="funding_source">\n                  <th mat-header-cell *matHeaderCellDef mat-sort-header> Funding Source</th>\n                  <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.funding_source}} </td>\n                  </ng-container>\n                  <ng-container matColumnDef="statuschangedate">\n                    <th mat-header-cell [hidden]="true" *matHeaderCellDef mat-sort-header>statuschangedate</th>\n                    <td style="width: 88px;" mat-cell [hidden]="true" *matCellDef="let row"> {{row.statuschangedate}} </td>\n                    </ng-container>\n                <ng-container matColumnDef="actions">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Actions</th>\n                <td mat-cell *matCellDef="let row" class="action-buttons"> \n                    <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" (click)="addedit(completecontent,row.ref);" class="btn btn-sm purple-bg">Edit</button>\n                </td>\n                </ng-container>\n                <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n                \x3c!-- Row shown when there is no matching data. --\x3e\n                <tr class="mat-row" *matNoDataRow>\n                \x3c!-- <td class="mat-cell" colspan="11">No Record Found "{{input.value}}"</td> --\x3e\n                <td class="mat-cell" colspan="13">No Record Found</td>\n                </tr>\n</table>\n<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n</div>\n<ng-template #completecontent let-modal>\n    <form [formGroup]="actionform" (ngSubmit)="actionFormSubmit()">\n      <div class="modal-header">\n        <h4 class="modal-title">Ride Information</h4>\n        <button type="button" class="close" aria-label="Close" (click)="closevalidation()" (click)="modal.dismiss(\'Cross click\')">\n          <span aria-hidden="true">&times;</span>\n        </button>\n      </div>\n      <div class="modal-body">\n        <div class="row" *ngIf="submitted &&  actionform.invalid">\n          <div class="col-sm-12">\n            <div id="ride_err_location" ><div class="alert alert-danger" >\n              <div  *ngIf="submitted && f.psngrname.errors">Passenger Name is required</div>\n              <div *ngIf="submitted && f.pckuploc.errors">Pickup Location is required</div>\n              <div *ngIf="submitted && f.pckupdate_time.errors">Pickup DateTime is required</div>\n              <div *ngIf="submitted && f.drop_of_loc.errors">Drop-off Location is required</div>\n              <div *ngIf="submitted && f.travelstatus.errors">Status is required</div>\n              <div *ngIf="submitted && f.mileage.errors">Mileage is required</div>\n            </div>\n          </div>\n          </div>\n        </div>\n        \n\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\n              <label class="col-md-4 col-form-label" for="programname">Program Name: </label>\n              <div class="col-md-8">\n              <input type="text" id="programname" name="programname" class="form-control" formControlName="programname" readonly="readonly">\n            </div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n          </div>\n          <div class="row form-group">\n\t\t\t\t\t\t\n            <label class="col-md-4 col-form-label" for="nameofdriver">Name of the Driver: </label>\n            <div class="col-md-8">\n            <input type="text" id="nameofdriver" name="nameofdriver" class="form-control" formControlName="nameofdriver" >\n          </div>\n                      \n        </div>\n        <div class="row form-group">\n\t\t\t\t\t\t\n          <label class="col-md-4 col-form-label" for="psngrname">Passenger Name::&nbsp;<span class="red ">*</span></label>\n          <div class="col-md-8">\n          <input type="text" id="psngrname" name="psngrname" class="form-control" formControlName="psngrname" [ngClass]="{ \'is-invalid\': submitted && f.psngrname.errors }">\n        </div>\n                    \n      </div>\n      <div class="row form-group">\n\t\t\t\t\t\t\n        <label class="col-md-4 col-form-label" for="callerphone">Caller Phone#: </label>\n        <div class="col-md-8">\n        <input type="text" id="callerphone" name="callerphone" class="form-control"  shownMaskExpression="(   ) ___-____"  mask="(000) 000-0000" formControlName="callerphone" [showMaskTyped]="true" [dropSpecialCharacters]="false">\n      </div>\n                  \n    </div>\n    <div class="row form-group" >\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="primarysubst">Primary Substance/Concern: </label>\n      <div class="col-md-8">\n      <textarea type="text" id="primarysubst" name="primarysubst" class="form-control" formControlName="primarysubst" readonly></textarea>\n    </div>\n    </div>\n    <div class="row form-group">\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="pckuploc">Pickup Location:&nbsp;<span class="red ">*</span></label>\n      <div class="col-md-8">\n      <input type="text" id="pckuploc" name="pckuploc" class="form-control" formControlName="pckuploc" [ngClass]="{ \'is-invalid\': submitted && f.pckuploc.errors }">\n    </div>\n                \n  </div>\n  <div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="pckupcity">Pickup City: </label>\n    <div class="col-md-8">\n    <input type="text" id="pckupcity" name="pckupcity" class="form-control" formControlName="pckupcity">\n  </div>\n              \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="pckupdate_time">Pickup Date Time:&nbsp;<span class="red ">*</span></label>\n  <div class="col-md-8">\n    <input [owlDateTimeTrigger]="dt" [owlDateTime]="dt" formControlName="pckupdate_time" [ngClass]="{ \'is-invalid\': submitted && f.pckupdate_time.errors }">\n          <owl-date-time #dt [hour12Timer] = "true"></owl-date-time>\n    \x3c!-- <mat-form-field>\n      <input matInput type="datetime-local"  name="fromDate_rmv" formControlName="pckupdate_time">\n    </mat-form-field> --\x3e\n    \x3c!-- <input type="text" autocomplete="off" name="fromDate_rmv" id="fromDate_rmv" data-date-start-date="-1w" class="date-picker-min hasDatepicker"  formControlName="pckupdate_time" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n</div>\n            \n</div>\n      <div class="row form-group">\n\t\t\t\t\t\t\n        <label class="col-md-4 col-form-label" for="drop_of_loc">Drop off Location::&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n        <input type="text" id="drop_of_loc" name="drop_of_loc" class="form-control" formControlName="drop_of_loc" [ngClass]="{ \'is-invalid\': submitted && f.drop_of_loc.errors }">\n      </div>\n                  \n    </div>\n    <div class="row form-group">\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="createddate">Created Date: </label>\n      <div class="col-md-8">\n        \n      <input type="text"  name="fromDate_rmv" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="createddate" readonly="readonly">\n    </div>\n  </div>     \n    <div class="row form-group">\n                 \n      <label class="col-md-4 col-form-label" for="travelstatus">Status:&nbsp;<span class="red ">*</span></label>\n      <div class="col-md-5">\n      <select  class="col-md-5" name="travelstatus" id="travelstatus"  class="form-control" formControlName="travelstatus" [ngClass]="{ \'is-invalid\': submitted && f.travelstatus.errors }">\n        <option value="">Select One</option>\n        <option value="1">New</option>\n        <option value="2">Scheduled</option>\n        <option value="4">Completed</option>\n        <option value="1457">Incomplete</option>\n        <option value="3">Cancelled</option>\n        \x3c!-- <option value="5">Incomplete</option>                 --\x3e                \n      </select>         \n            \n    </div>            \n  </div>\n  <div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="fromDate_rmv">Drop off Date Time: </label>\n    <div class="col-md-8">\n      <input [owlDateTimeTrigger]="dt1" [owlDateTime]="dt1" formControlName="fromDate_rmv">\n          <owl-date-time #dt1 [hour12Timer] = "true"></owl-date-time>\n      \x3c!-- <mat-form-field>\n        <input matInput type="datetime-local"  name="fromDate_rmv" formControlName="fromDate_rmv" \n        value="YYYY-MM-DDTHH:mm:ss"> \n        \n      </mat-form-field>--\x3e\n    \x3c!-- <input type="text"  autocomplete="off" name="fromDate_rmv" data-date-start-date="-1w" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="fromDate_rmv" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n  </div>\n              \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="mileage">Mileage:&nbsp;<span class="red ">*</span></label>\n  <div class="col-md-8">\n  <input type="text" id="mileage" name="mileage" class="form-control" formControlName="mileage" [ngClass]="{ \'is-invalid\': submitted && f.mileage.errors }" (keypress)="numberOnly($event)">\n  <br>\n<div>\n<input type="checkbox" id="flat_matride" formControlName="flat_matride" value="yes" name="flat_matride" class="w-chk">\n<label for="flat_matride" class="w-chk" style="width: 50% !important">Flat Rate \u2013 MAT Ride</label><br>\n  </div>\n<div>\n<input type="checkbox" id="flat_noshow" formControlName="flat_noshow" value="yes" name="flat_noshow" class="w-chk">\n<label for="flat_noshow" class="w-chk" style="width: 50% !important">Flat Rate \u2013 No Show</label><br>\n  </div>\n<div>\n<input type="checkbox" id="flat_interruptedride" formControlName="flat_interruptedride" value="yes" name="flat_interruptedride" class="w-chk">\n<label for="flat_interruptedride" class="w-chk" style="width: 50% !important">Flat Rate \u2013 Ride Interrupted</label>\n</div>\n</div>\n            \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="funding_source">Funding Source (HRIA Only): </label>\n  <div class="col-md-5">\n    <select  class="col-md-5" name="funding_source" id="funding_source"  class="form-control" formControlName="funding_source">\n      <option value="">Select One</option>\n      <option value="1">HCS</option>\n      <option value="2">GLCF</option>\n      <option value="3">COOCLI</option>         \n      </select>  \n  </div>\n              \n  </div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="cmnts">Comments: </label>\n  <div class="col-md-8">\n  <input type="text" id="cmnts" name="cmnts" class="form-control" formControlName="cmnts">\n</div>\n            \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="submittedby">Submitted by: </label>\n  <div class="col-md-8">\n  <input type="text" id="submittedby" name="submittedby" class="form-control" formControlName="submittedby" readonly="readonly">\n</div>\n            \n</div>\n        \n\n      </div>\n      <div class="modal-footer">\n        <button type="button" class="button button_medium" (click)="closevalidation()" (click)="modal.close(\'Close click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\n        <button type="submit" class="button button_medium" value="submit"><i class="fa fa-save">&nbsp;</i>Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\n      </div>\n    </form>\n  </ng-template>',styles:[".btn {\n  margin: 2px !important;\n}\n\n::ng-deep .mat-cell {\n  text-align: center;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}\n\n.modal-content {\n  width: 75%;\n  margin-left: 85px;\n}\n\n.is-invalid {\n  border: 1px solid red !important;\n}"]})],_Z);let wZ=class{constructor(t,e,n,i,s,r){this.modalService=t,this.titleService=e,this.authService=n,this.fb=i,this.transportservice=s,this.datePipe=r,this.programData=[],this.transpotation=!0,this.submitted=!1,this.displayedColumns=["id","created_date","program_name","passanger_name","phone_number","reason","comments","submitted_by","statuschangedate","actions"],this.transportdata=[],this.cancelleddata=[],this.users=[],this.editinfo=[],this.canceltravellog=[],this.loader=!1,this.modalOptions={backdrop:"static",backdropClass:"customBackdrop"},this.actionform=this.fb.group({programname:[""],psngrname:["",im.required],callerphone:[""],pckuploc:["",im.required],pckupcity:[""],pckupdate_time:["",im.required],drop_of_loc:["",im.required],createddate:[""],fromDate_rmv:[""],mileage:["",im.required],reasons:[""],cmnts:[""],submittedby:[""],primarysubst:[""],travelstatus:["",im.required],flat_noshow:[""],flat_matride:[""],flat_interruptedride:[""],funding_source:[""]}),this.authService.getMe().subscribe(t=>{"4"==t.contacttypeid&&this.transportservice.getTravelLog().subscribe(t=>{if(this.transportdata=t,console.log(this.transportdata),console.log(this.transportdata.Completed),this.cancelleddata=this.transportdata.Cancelled,null!=this.cancelleddata){let t=0;if(this.cancelleddata){this.cancelleddata.forEach(e=>{t++,this.users.push({id:null,reason:e.reason,created_date:null!==e.createdtime?new Date(e.createdtime).toLocaleString():"",phone_number:e.callerphone,program_name:e.programname,passanger_name:e.nameofthetraveller,unique_identifier:e.uid,submitted_by:e.submittedby,status:e.travellerstatusname,comments:e.comments,statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),this.sortindDate(this.users)});for(var e=0;e<this.users.length;e++)this.users[e].id=e+1;this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}}})})}get f(){return this.actionform.controls}ngOnInit(){this.programData=[{programName:"Apricot Residential Program (TEST PROGRAM)",programAddress:"FOR TRAINING PURPOSES ONLY<br>Boston  02130",waitlistName:[{waitlistnames:"River valley center Waitlist"},{waitlistnames:"Residential Waitlist"},{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"8"},{waitlistnum:"34"},{waitlistnum:"3"}],status:[{status:"Approved"},{status:"Approved"},{status:"Approved"}]},{programName:"Granada House",programAddress:"70-72 Adamson Street<br>Boston MA 02134",waitlistName:[{waitlistnames:"River valley center Waitlist"}],waiting:[{waitlistnum:"8"}],status:[{status:"Approved"}]},{programName:"McCleary Manor",programAddress:"40 Bright Side Drive<br>Holyoke MA 01040",waitlistName:[{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"3"}],status:[{status:"Approved"}]}],this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]]}),this.dataTable=$("#wl_screening_admission1"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"SCREENING_LOG.xls"}]}),this.dataTable=$("#wl_pending_admission"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!0,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ON_WAITLIST.xls"}]}),this.dataTable=$("#wl_admitted"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ADMITTED.xls"}]}),this.dataTable=$("#wl_removed"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_REMOVED.xls"}]})}export(){let t=this.tabGroup.selectedIndex>1?1:this.tabGroup.selectedIndex;$("body").find("button.exportBtn").eq(t).click()}ngAfterViewInit(){$('<span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span>').prependTo("#wl_pending_admission_wrapper"),document.getElementById("people_in_admit_clr").addEventListener("click",function(){}),document.getElementById("people_in_removelist_clr").addEventListener("click",function(){}),$("#sortable_pending_admission").sortable(),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))});const t=this;$("body").on("click","#people_in_slog_cncl",function(){console.log("hi");let e=$("#sl_fromDate").val(),n=$("#sl_toDate").val();if(""!=e&&""!=n){let i=e.split("/"),s=n.split("/");e=i[2]+"-"+i[0]+"-"+i[1],n=s[2]+"-"+s[0]+"-"+s[1];let r={fromdate:e,todate:n,status:3};console.log("postObj",r),t.loader=!0,t.canceltravellog=t.transportservice.searchscheduledTravelLog(r).subscribe(e=>{t.canceltravellog=e,console.log(t.canceltravellog);if(t.users=[],t.canceltravellog.length>0){t.canceltravellog.forEach(e=>{t.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,unique_identifier:e.uid,pickup_city:e.pickupcity,pickup_time:new Date(e.pickuptime).toLocaleString(),drop_off_time:new Date(e.dropofftime).toLocaleString(),program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),t.sortindDate(t.users)});for(var n=0;n<t.users.length;n++)t.users[n].id=n+1;t.loader=!1,t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}else t.loader=!1,t.users=[],t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort})}}),$("body").on("click","#people_in_sl_clr_cncl",function(){if(console.log($("#sl_fromDate").val()),console.log($("#sl_toDate").val()),$("#sl_fromDate").val()&&$("#sl_toDate").val("")?(console.log("firstdate"),$("#sl_fromDate").val("")):$("#sl_toDate").val(""),$("#sl_fromDate").val("")&&$("#sl_toDate").val("")&&($("#sl_fromDate,#sl_toDate").val(""),console.log(t.cancelleddata),null!=t.cancelleddata)){let n=0;if(t.users=[],t.cancelleddata){t.cancelleddata.forEach(e=>{n++,t.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,unique_identifier:e.uid,pickup_city:e.pickupcity,pickup_time:new Date(e.pickuptime).toLocaleString(),drop_off_time:new Date(e.dropofftime).toLocaleString(),program_name:e.programname,drop_of_location:e.dropofflocation,mileage:e.mileage,submitted_by:e.submittedby,funding_source:"1"==e.fundingsourceid?"HCS":"2"==e.fundingsourceid?"GLCF":"3"==e.fundingsourceid?"COOCLI":"",actions:"",ref:e.ref}),t.sortindDate(t.users)});for(var e=0;e<t.users.length;e++)t.users[e].id=e+1;t.dataSource=new JD(t.users),t.dataSource.paginator=t.paginator,t.dataSource.sort=t.sort}}})}sortindDate(t){return t.sort((t,e)=>new Date(e.statuschangedate)-new Date(t.statuschangedate))}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"SCHEDULED_RIDES.xlsx")}addedit(t,e){this.closevalidation(),console.log("edit"),this.travelreference=e,this.modalService.open(t,{windowClass:"myCustomModalClass"}),this.transportservice.getTravelLogInfo(this.travelreference).subscribe(t=>{console.log(t),this.editinfo=t,this.actionform.patchValue({programname:this.editinfo.programname,nameofdriver:this.editinfo.nameofthedriver,psngrname:this.editinfo.nameofthetraveller,callerphone:this.editinfo.callerphone,pckupcity:this.editinfo.pickupcity,pckuploc:this.editinfo.pickuplocation,pckupdate_time:null==this.editinfo.pickuptime?"":new Date(this.editinfo.pickuptime),drop_of_loc:this.editinfo.dropofflocation,createddate:new Date(this.editinfo.createdtime).toLocaleString(),travelstatus:this.editinfo.travellerstatusid,fromDate_rmv:null==this.editinfo.dropofftime?"":new Date(this.editinfo.dropofftime),mileage:this.editinfo.mileage,cmnts:this.editinfo.comments,submittedby:this.editinfo.submittedby,funding_source:this.editinfo.fundingsourceid,flat_noshow:this.editinfo.flatnoshow,flat_matride:this.editinfo.flatmatride,flat_interruptedride:this.editinfo.flatinterruptedrid,primarysubst:this.editinfo.primaryconcerndata})})}actionFormSubmit(){var t,e;(this.actionform.get("psngrname").setValidators([im.required]),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("pckuploc").setValidators([im.required]),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").setValidators([im.required]),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").setValidators([im.required]),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").setValidators([im.required]),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("drop_of_loc").setValidators([im.required]),this.actionform.get("drop_of_loc").updateValueAndValidity(),this.submitted=!0,this.actionform.invalid)||(t=null==this.actionform.value.fromDate_rmv||""==this.actionform.value.fromDate_rmv?"":new Date(this.actionform.value.fromDate_rmv).toISOString().slice(0,16),e={id:this.editinfo.id,ref:this.travelreference,nameofthedriver:this.actionform.value.nameofdriver,nameofthetraveller:this.actionform.value.psngrname,callerphone:this.actionform.value.callerphone,pickuplocation:this.actionform.value.pckuploc,pickupcity:this.actionform.value.pckupcity,dropofflocation:this.actionform.value.drop_of_loc,travellerstatusid:this.actionform.value.travelstatus,pickuptime:new Date(this.actionform.value.pckupdate_time).toISOString().slice(0,16),dropofftime:t,fundingsourceid:this.actionform.value.funding_source,flatmatride:this.actionform.value.flat_matride,flatnoshow:this.actionform.value.flat_noshow,flatinterruptedride:this.actionform.value.flat_interruptedride},console.log(e),this.loader=!0,this.transportservice.savedEditTravellogInfo(e).subscribe(t=>{console.log(t),t&&(this.modalService.dismissAll(),this.loader=!1,location.reload())}))}waitlistInfo(){}removePerson(){}addPerson2(){}addWaitlist(){}addPerson(){}numberOnly(t){const e=t.which?t.which:t.keyCode;return!(e>31&&(e<48||e>57))}closevalidation(){this.actionform.get("psngrname").clearValidators(),this.actionform.get("psngrname").updateValueAndValidity(),this.actionform.get("pckuploc").clearValidators(),this.actionform.get("pckuploc").updateValueAndValidity(),this.actionform.get("pckupdate_time").clearValidators(),this.actionform.get("pckupdate_time").updateValueAndValidity(),this.actionform.get("travelstatus").clearValidators(),this.actionform.get("travelstatus").updateValueAndValidity(),this.actionform.get("mileage").clearValidators(),this.actionform.get("mileage").updateValueAndValidity(),this.actionform.get("drop_of_loc").clearValidators(),this.actionform.get("drop_of_loc").updateValueAndValidity()}};wZ.ctorParameters=()=>[{type:ay},{type:wh},{type:sg},{type:Uf},{type:sV},{type:Cu.DatePipe}],wZ.propDecorators={table:[{type:s.ViewChild,args:["TABLE"]}],tabGroup:[{type:s.ViewChild,args:["tabGroup"]}],paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}]},wZ=Hh([Object(s.Component)({selector:"app-cancelled-rides",template:'<div align="center" style="margin-top:16px;">\n    From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n    To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n    <button class="btn btn-success req-btn" id="people_in_slog_cncl">Search</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n    <button type="reset" class="btn btn-warning req-btn" id="people_in_sl_clr_cncl">Clear</button>\n</div> \n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" [useExistingCss]="true" printSectionId="print-section" ngxPrint>Print</button>\n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" (click)="exportAsExcel()">Export to Excel</button>\n    \x3c!-- <div class="" align="right" style="width:100%;">\n    <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();">Export to Excel</button>\n    <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n    </div> --\x3e\n<mat-form-field style="float: right;margin-right: 14px;">\n<mat-label>Search</mat-label>\n<input matInput (keyup)="applyFilter($event)" placeholder="" #input>\n</mat-form-field>\n<div class="mat-elevation-z8" id="print-section" #TABLE>\n<table style="width:100%;" mat-table [dataSource]="dataSource" matSort class="custom-table"\nmatSortActive="statuschangedate" matSortDirection="desc">\n        <ng-container matColumnDef="id">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n            <td mat-cell *matCellDef="let row"> {{row.id}} </td> \n            \x3c!-- <td mat-cell *matCellDef="let element; let i = index;"> {{i + 1}} </td>--\x3e\n        </ng-container>\n            \n                \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="created_date">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>Created Date </th>\n                <td style="width: 165px;" mat-cell *matCellDef="let row"> {{row.created_date}} </td>\n                </ng-container>\n            \n                \x3c!-- Progress Column --\x3e\n                <ng-container matColumnDef="program_name">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Program Name</th>\n                <td style="width: 250px;" mat-cell *matCellDef="let row"> {{row.program_name}} </td>\n                </ng-container>\n\n                \x3c!-- Color Column --\x3e\n                <ng-container matColumnDef="passanger_name">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Passenger Name </th>\n                <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.passanger_name}} </td>\n                </ng-container>\n                <ng-container matColumnDef="phone_number">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>Unique Identifier</th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.unique_identifier}} </td>\n                </ng-container>\n                <ng-container matColumnDef="pickup_location">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Location</th>\n                <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.pickup_location}} </td>\n                </ng-container>\n                <ng-container matColumnDef="reason">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>Reason</th>\n                <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.reason}} </td>\n                </ng-container>\n                <ng-container matColumnDef="comments">\n                  <th style="width: 130px;" mat-header-cell *matHeaderCellDef mat-sort-header> Comments</th>\n                  <td mat-cell *matCellDef="let row"> {{row.comments}} </td>\n                  </ng-container>\n                <ng-container matColumnDef="submitted_by">\n                <th style="width: 130px;" mat-header-cell *matHeaderCellDef mat-sort-header> Submitted by</th>\n                <td mat-cell *matCellDef="let row"> {{row.submitted_by}} </td>\n                </ng-container>\n                \x3c!-- <ng-container matColumnDef="status">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Status</th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.status}} </td>\n                </ng-container> --\x3e\n                <ng-container matColumnDef="statuschangedate">\n                  <th mat-header-cell [hidden]="true" *matHeaderCellDef mat-sort-header>statuschangedate</th>\n                  <td style="width: 88px;" [hidden]="true" mat-cell *matCellDef="let row"> {{row.statuschangedate}} </td>\n                  </ng-container>\n                <ng-container matColumnDef="actions">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header style="width: 30px;"> Actions</th>\n                <td mat-cell *matCellDef="let row" class="action-buttons"> \n                    \x3c!-- <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" class="btn btn-sm btn-success">Complete</button>\n                    <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" (click)="addWaitlist();" class="btn btn-sm btn-warning wl_admit_again">Incomplete</button>\n                    <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570" (click)="addWaitlist();" class="btn btn-sm btn-danger wl_admit_again">Cancel</button> --\x3e\n                    <button data-wlid="163" data-name="MARY BLUES" data-cid="21405" data-cwlid="11570"  (click)="addedit(completecontent,row.ref);" class="btn btn-sm purple-bg wl_admit_again">Edit</button>\n                </td>\n                </ng-container>\n                <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n            \n                \x3c!-- Row shown when there is no matching data. --\x3e\n                <tr class="mat-row" *matNoDataRow>\n                \x3c!-- <td class="mat-cell" colspan="13">No Record Found "{{input.value}}"</td> --\x3e\n                <td class="mat-cell" colspan="13">No Record Found</td>\n                </tr>\n</table>\n<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n</div>\n<ng-template #completecontent let-modal>\n    <form [formGroup]="actionform" (ngSubmit)="actionFormSubmit()">\n      <div class="modal-header">\n        <h4 class="modal-title">Ride Information</h4>\n        <button type="button" class="close" aria-label="Close" (click)="closevalidation()" (click)="modal.dismiss(\'Cross click\')">\n          <span aria-hidden="true">&times;</span>\n        </button>\n      </div>\n      <div class="modal-body">\n        <div class="row" *ngIf="submitted &&  actionform.invalid">\n          <div class="col-sm-12">\n            <div id="ride_err_location" ><div class="alert alert-danger" >\n              <div  *ngIf="submitted && f.psngrname.errors">Passenger Name is required</div>\n              <div *ngIf="submitted && f.pckuploc.errors">Pickup Location is required</div>\n              <div *ngIf="submitted && f.pckupdate_time.errors">Pickup DateTime is required</div>\n              <div *ngIf="submitted && f.drop_of_loc.errors">Drop-off Location is required</div>\n              <div *ngIf="submitted && f.travelstatus.errors">Status is required</div>\n              <div *ngIf="submitted && f.mileage.errors">Mileage is required</div>\n            </div>\n          </div>\n          </div>\n        </div>\n        \n\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\n              <label class="col-md-4 col-form-label" for="programname">Program Name: </label>\n              <div class="col-md-8">\n              <input type="text" id="programname" name="programname" class="form-control" formControlName="programname" readonly="readonly">\n            </div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n          </div>\n         \n        <div class="row form-group">\n\t\t\t\t\t\t\n          <label class="col-md-4 col-form-label" for="psngrname">Passenger Name:&nbsp;<span class="red ">*</span></label>\n          <div class="col-md-8">\n          <input type="text" id="psngrname" name="psngrname" class="form-control" formControlName="psngrname" [ngClass]="{ \'is-invalid\': submitted && f.psngrname.errors }">\n        </div>\n                    \n      </div>\n      <div class="row form-group">\n\t\t\t\t\t\t\n        <label class="col-md-4 col-form-label" for="callerphone">Caller Phone#: </label>\n        <div class="col-md-8">\n        <input type="text" id="callerphone" name="callerphone" class="form-control" shownMaskExpression="(   ) ___-____"  mask="(000) 000-0000" formControlName="callerphone" [showMaskTyped]="true" [dropSpecialCharacters]="false">\n      </div>\n                  \n    </div>\n    <div class="row form-group" >\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="primarysubst">Primary Substance/Concern: </label>\n      <div class="col-md-8">\n      <textarea type="text" id="primarysubst" name="primarysubst" class="form-control" formControlName="primarysubst" readonly></textarea>\n    </div>\n    </div>\n    <div class="row form-group">\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="pckuploc">Pickup Location:&nbsp;<span class="red ">*</span></label>\n      <div class="col-md-8">\n      <input type="text" id="pckuploc" name="pckuploc" class="form-control" formControlName="pckuploc" [ngClass]="{ \'is-invalid\': submitted && f.pckuploc.errors }">\n    </div>\n                \n  </div>\n  <div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="pckupcity">Pickup City: </label>\n    <div class="col-md-8">\n    <input type="text" id="pckupcity" name="pckupcity" class="form-control" formControlName="pckupcity">\n  </div>\n              \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="pckupdate_time">Pickup Date Time:&nbsp;<span class="red ">*</span></label>\n  <div class="col-md-8">\n\n    <input [owlDateTimeTrigger]="dt" [owlDateTime]="dt" formControlName="pckupdate_time" [ngClass]="{ \'is-invalid\': submitted && f.pckupdate_time.errors }">\n    <owl-date-time #dt [hour12Timer] = "true"></owl-date-time>\n    \x3c!-- <mat-form-field>\n      <input matInput type="datetime-local"  name="fromDate_rmv" formControlName="pckupdate_time"> --\x3e\n      \x3c!-- <input matInput type="datetime-local" name="fromDate_rmv" formControlName="pckupdate_time" > --\x3e\n    \x3c!-- </mat-form-field> --\x3e\n    \x3c!-- <input type="text" autocomplete="off" name="fromDate_rmv" id="fromDate_rmv" data-date-start-date="-1w" class="date-picker-min hasDatepicker"  formControlName="pckupdate_time" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n</div>\n            \n</div>\n      <div class="row form-group">\n\t\t\t\t\t\t\n        <label class="col-md-4 col-form-label" for="drop_of_loc">Drop off Location::&nbsp;<span class="red ">*</span></label>\n        <div class="col-md-8">\n        <input type="text" id="drop_of_loc" name="drop_of_loc" class="form-control" formControlName="drop_of_loc" [ngClass]="{ \'is-invalid\': submitted && f.drop_of_loc.errors }">\n      </div>\n                  \n    </div>\n    <div class="row form-group">\n\t\t\t\t\t\t\n      <label class="col-md-4 col-form-label" for="createddate">Created Date: </label>\n      <div class="col-md-8">\n      <input type="text"  name="fromDate_rmv" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="createddate" readonly="readonly">\n    </div>\n  </div>     \n    <div class="row form-group">\n                 \n      <label class="col-md-4 col-form-label" for="travelstatus">Status:&nbsp;<span class="red ">*</span></label>\n      <div class="col-md-5">\n      <select  class="col-md-5" name="travelstatus" id="travelstatus"  class="form-control" formControlName="travelstatus" [ngClass]="{ \'is-invalid\': submitted && f.travelstatus.errors }">\n        <option value="">Select One</option>\n        <option value="1">New</option>\n        <option value="2">Scheduled</option>\n        <option value="4">Completed</option>\n        <option value="1457">Incomplete</option>\n        <option value="3">Cancelled</option>\n        \x3c!-- <option value="5">Incomplete</option>                 --\x3e                \n      </select>         \n            \n    </div>            \n  </div>\n  <div class="row form-group">\n\t\t\t\t\t\t\n    \x3c!-- <label class="col-md-4 col-form-label" for="creasonsmnts">Reason: </label>\n    <div class="col-md-8">\n    <input type="text" id="reasons" name="reasons" class="form-control" formControlName="reasons"> --\x3e\n    <label class="col-md-4 col-form-label" for="fromDate_rmv">Drop off Date Time: </label>\n    <div class="col-md-8">\n      <input [owlDateTimeTrigger]="dt1" [owlDateTime]="dt1" formControlName="fromDate_rmv">\n      <owl-date-time #dt1 [hour12Timer] = "true"></owl-date-time>\n      \x3c!-- <mat-form-field>\n        <input matInput type="datetime-local" name="fromDate_rmv" formControlName="fromDate_rmv" >\n      </mat-form-field> --\x3e\n    \x3c!-- <input type="text"  autocomplete="off" name="fromDate_rmv" data-date-start-date="-1w" id="fromDate_rmv" class="date-picker-min hasDatepicker"  formControlName="fromDate_rmv" (keypress)="keyPress($event)"  maxlength="10"  style="width:30%;" placeholder="MM/DD/YYYY" bsDatepicker> --\x3e\n  </div>\n              \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="mileage">Mileage:&nbsp;<span class="red ">*</span></label>\n  <div class="col-md-8">\n  <input type="text" id="mileage" name="mileage" class="form-control" formControlName="mileage" [ngClass]="{ \'is-invalid\': submitted && f.mileage.errors }" (keypress)="numberOnly($event)">\n  <br>\n<div>\n<input type="checkbox" id="flat_matride" value="yes" formControlName="flat_matride" name="flat_matride" class="w-chk">\n<label for="flat_matride" class="w-chk" style="width: 50% !important">Flat Rate \u2013 MAT Ride</label><br>\n  </div>\n<div>\n<input type="checkbox" id="flat_noshow" value="yes" formControlName="flat_noshow" name="flat_noshow" class="w-chk">\n<label for="flat_noshow" class="w-chk" style="width: 50% !important">Flat Rate \u2013 No Show</label><br>\n  </div>\n<div>\n<input type="checkbox" id="flat_interruptedride" formControlName="flat_interruptedride" value="yes" name="flat_interruptedride" class="w-chk">\n<label for="flat_interruptedride" class="w-chk" style="width: 50% !important">Flat Rate \u2013 Ride Interrupted</label>\n</div>\n</div>\n            \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n    <label class="col-md-4 col-form-label" for="cmnts">Funding Source (HRIA Only): </label>\n    <div class="col-md-5">\n      <select  class="col-md-5" name="status" id="status" formControlName="funding_source"  class="form-control">\n        <option value="">Select One</option>\n        <option value="1">HCS</option>\n        <option value="2">GLCF</option>\n        <option value="3">COOCLI</option>          \n      </select>  \n  </div>\n              \n  </div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="cmnts">Comments: </label>\n  <div class="col-md-8">\n  <input type="text" id="cmnts" name="cmnts" class="form-control" formControlName="cmnts">\n</div>\n            \n</div>\n<div class="row form-group">\n\t\t\t\t\t\t\n  <label class="col-md-4 col-form-label" for="submittedby">Submitted by: </label>\n  <div class="col-md-8">\n  <input type="text" id="submittedby" name="submittedby" class="form-control" formControlName="submittedby" readonly="readonly">\n</div>\n            \n</div>\n        \n\n      </div>\n      <div class="modal-footer">\n        <button type="button" class="button button_medium" (click)="closevalidation()" (click)="modal.close(\'Close click\')"><i class="fa fa-close">&nbsp;</i>Close</button>\n        <button type="submit" class="button button_medium" value="submit"><i class="fa fa-save">&nbsp;</i>Save</button><img *ngIf="loader" src="assets/images/loader.gif" style="padding-right: 6px; height:20px;" />\n\n      </div>\n    </form>\n  </ng-template>',styles:[".btn {\n  margin: 2px !important;\n}\n\n::ng-deep .mat-cell {\n  text-align: center;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}\n\n.modal-content {\n  width: 75%;\n  margin-left: 85px;\n}\n\n.is-invalid {\n  border: 1px solid red !important;\n}"]})],wZ);let xZ=class{constructor(t,e,n,i,s,r){this.transportservice=t,this.authService=e,this.datePipe=n,this.titleService=s,this.fb=r,this.programData=[],this.transpotation=!0,this.submitted=!1,this.transportdata=[],this.deletedddata=[],this.users=[],this.displayedColumns=["id","created_date","passanger_name","pickup_time","pickup_location","drop_off_location","reason","notes","statuschangedate","status"],this.modalOptions={backdrop:"static",backdropClass:"customBackdrop"},this.authService.getMe().subscribe(t=>{"4"==t.contacttypeid&&this.transportservice.getTravelLog().subscribe(t=>{if(this.transportdata=t,console.log(this.transportdata.Deleted),this.deletedddata=this.transportdata.Deleted,null!=this.deletedddata){let t=0;if(this.deletedddata){this.deletedddata.forEach(e=>{t++,this.users.push({id:null,created_date:new Date(e.createdtime).toLocaleString(),passanger_name:e.nameofthetraveller,driver_name:e.nameofthedriver,phone_number:null==e.callerphone?"":e.callerphone,pickup_time:null!==e.pickuptime?new Date(e.pickuptime).toLocaleString():"",drop_off_time:null!==e.dropofftime?new Date(e.dropofftime).toLocaleString():"",program_name:e.programname,drop_of_location:e.dropofflocation,reason:e.reason,submitted_by:e.updatedby,pickup_location:e.pickuplocation,notes:e.notes,status:e.travellerstatusname,statuschangedate:e.statuschangedate,actions:"",ref:e.ref}),this.sortindDate(this.users)});for(var e=0;e<this.users.length;e++)this.users[e].id=e+1;console.log(this.users),this.dataSource=new JD(this.users),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}}})})}get f(){return this.rvmprForm.controls}ngOnInit(){this.programData=[{programName:"Apricot Residential Program (TEST PROGRAM)",programAddress:"FOR TRAINING PURPOSES ONLY<br>Boston  02130",waitlistName:[{waitlistnames:"River valley center Waitlist"},{waitlistnames:"Residential Waitlist"},{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"8"},{waitlistnum:"34"},{waitlistnum:"3"}],status:[{status:"Approved"},{status:"Approved"},{status:"Approved"}]},{programName:"Granada House",programAddress:"70-72 Adamson Street<br>Boston MA 02134",waitlistName:[{waitlistnames:"River valley center Waitlist"}],waiting:[{waitlistnum:"8"}],status:[{status:"Approved"}]},{programName:"McCleary Manor",programAddress:"40 Bright Side Drive<br>Holyoke MA 01040",waitlistName:[{waitlistnames:"Wait List Test"}],waiting:[{waitlistnum:"3"}],status:[{status:"Approved"}]}],this.rvmprForm=this.fb.group({remove_type:[null,[im.required]],wl_removal_reason:[null,[im.required]]}),this.dataTable=$("#wl_screening_admission1"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"SCREENING_LOG.xls"}]}),this.dataTable=$("#wl_pending_admission"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!0,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ON_WAITLIST.xls"}]}),this.dataTable=$("#wl_admitted"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_ADMITTED.xls"}]}),this.dataTable=$("#wl_removed"),this.dataTable.DataTable({stateSave:!0,bDestroy:!0,dom:"Bfrtip",bFilter:!1,buttons:[{extend:"excel",text:"Export to Excel",filename:"PEOPLE_REMOVED.xls"}]})}export(){let t=this.tabGroup.selectedIndex>1?1:this.tabGroup.selectedIndex;$("body").find("button.exportBtn").eq(t).click()}ngAfterViewInit(){$('<span class="notes-text">Note : To move a person up or down the waitlist, click and drag their record</span>').prependTo("#wl_pending_admission_wrapper"),document.getElementById("people_in_admit_clr").addEventListener("click",function(){}),document.getElementById("people_in_removelist_clr").addEventListener("click",function(){}),$("#sortable_pending_admission").sortable(),$("input#sl_fromDate,input#sl_toDate,input#fromDate,input#toDate,input#fromDate_rmv,input#toDate_rmv").on("input",function(t){let e=$(this).val();3==e.length&&"/"!=e.substr(2,1)&&$(this).val(e.substr(0,2)+"/"+e.substr(2,1)),6==e.length&&"/"!=e.substr(5,1)&&$(this).val(e.substr(0,5)+"/"+e.substr(5,1))})}sortindDate(t){return t.sort((t,e)=>new Date(e.statuschangedate)-new Date(t.statuschangedate))}keyPress(t){var e=t.which||t.keycode;return e>=48&&e<=57||47==e}applyFilter(t){const e=t.target.value;this.dataSource.filter=e.trim().toLowerCase(),this.dataSource.paginator&&this.dataSource.paginator.firstPage()}exportAsExcel(){const t=Nj.table_to_sheet(this.table.nativeElement),e=Nj.book_new();Nj.book_append_sheet(e,t,"Sheet1"),wj(e,"SCHEDULED_RIDES.xlsx")}waitlistInfo(){}removePerson(){}addPerson2(){}addWaitlist(){}addPerson(){}};xZ.ctorParameters=()=>[{type:sV},{type:sg},{type:Cu.DatePipe},{type:ay},{type:wh},{type:Uf}],xZ.propDecorators={table:[{type:s.ViewChild,args:["TABLE"]}],tabGroup:[{type:s.ViewChild,args:["tabGroup"]}],paginator:[{type:s.ViewChild,args:[LA]}],sort:[{type:s.ViewChild,args:[BA]}]},xZ=Hh([Object(s.Component)({selector:"app-deleted-rides",template:'\x3c!-- <div align="center" style="margin-top:16px;">\n    From:&nbsp;&nbsp;<input type="text" name="sl_fromDate" id="sl_fromDate" class="date-picker-min hasDatepicker" (keypress)="keyPress($event)"  maxlength="10" style="width:20%;" autocomplete="off" bsDatepicker placeholder="MM/DD/YYYY"> \n    To:&nbsp;&nbsp;<input type="text" name="sl_toDate" id="sl_toDate" class="date-picker-max hasDatepicker" (keypress)="keyPress($event)" maxlength="10" style="width:20%;" autocomplete="off" placeholder="MM/DD/YYYY" bsDatepicker> &nbsp; \n    <button class="btn btn-success req-btn" id="people_in_slog">Search</button>\n    <button type="reset" class="btn btn-warning req-btn" id="people_in_sl_clr">Clear</button>\n</div>  --\x3e\n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" [useExistingCss]="true" printSectionId="print-section" ngxPrint>Print</button>\n    <button style="margin-top: 14px !important;" class="btn purple-bg pull-right addperson_btn" (click)="exportAsExcel()">Export to Excel</button>\n    \x3c!-- <div class="" align="right" style="width:100%;">\n    <button class="btn purple-bg" style="margin-top: 4px; font-size: 16px;" id="exportel" (click)="export();">Export to Excel</button>\n    <button mat-raised-button color="primary" class="exportBtn" (click)="exportAsExcel()">Export as Excel</button>\n    </div> --\x3e\n<mat-form-field style="float: right;margin-right: 14px;">\n<mat-label>Search</mat-label>\n<input matInput (keyup)="applyFilter($event)" placeholder="" #input>\n</mat-form-field>\n<div class="mat-elevation-z8" id="print-section" #TABLE>\n<table style="width:100%;" mat-table [dataSource]="dataSource" matSort class="custom-table" >\n        <ng-container matColumnDef="id">\n            <th mat-header-cell *matHeaderCellDef mat-sort-header>#</th>\n            <td mat-cell *matCellDef="let row"> {{row.id}} </td> \n            \x3c!-- <td mat-cell *matCellDef="let element; let i = index;"> {{i+1}} </td>--\x3e\n        </ng-container>\n            \n                \x3c!-- Name Column --\x3e\n                <ng-container matColumnDef="created_date">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header>Created Date </th>\n                <td mat-cell *matCellDef="let row"> {{row.created_date}} </td>\n                </ng-container>\n            \n                \x3c!-- Progress Column --\x3e\n                <ng-container matColumnDef="passanger_name">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Passenger Name</th>\n                <td style="width: 120px;" mat-cell *matCellDef="let row"> {{row.passanger_name}} </td>\n                </ng-container>\n\n                \x3c!-- Color Column --\x3e\n                <ng-container matColumnDef="pickup_time">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Time</th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.pickup_time}} </td>\n                </ng-container>\n                <ng-container matColumnDef="pickup_location">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Pickup Location</th>\n                <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.pickup_location}} </td>\n                </ng-container>\n                <ng-container matColumnDef="drop_off_location">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Drop off Location</th>\n                <td style="width: 180px;" mat-cell *matCellDef="let row"> {{row.drop_of_location}} </td>\n                </ng-container>\n                <ng-container matColumnDef="reason">\n                <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Reason</th>\n                <td mat-cell *matCellDef="let row"> {{row.reason}} </td>\n                </ng-container>\n                <ng-container matColumnDef="notes">\n                <th style="width: 80px;" mat-header-cell *matHeaderCellDef mat-sort-header> Notes</th>\n                <td mat-cell *matCellDef="let row"> {{row.notes}} </td>\n                </ng-container>\n                <ng-container matColumnDef="statuschangedate">\n                    <th mat-header-cell [hidden]="true" *matHeaderCellDef mat-sort-header>statuschangedate</th>\n                    <td style="width: 88px;" mat-cell [hidden]="true" *matCellDef="let row"> {{row.statuschangedate}} </td>\n                    </ng-container>\n                <ng-container matColumnDef="status">\n                <th mat-header-cell *matHeaderCellDef mat-sort-header> Status</th>\n                <td style="width: 88px;" mat-cell *matCellDef="let row"> {{row.status}} </td>\n                </ng-container>\n                <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>\n                <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>\n            \n                \x3c!-- Row shown when there is no matching data. --\x3e\n                <tr class="mat-row" *matNoDataRow>\n                <td class="mat-cell" colspan="4">No data matching the filter "{{input.value}}"</td>\n                </tr>\n</table>\n<mat-paginator [pageSizeOptions]="[5, 10, 25, 100]"></mat-paginator>\n</div>',styles:[".btn {\n  margin: 2px !important;\n}\n\n::ng-deep .mat-cell {\n  text-align: center;\n}\n\n:host ::ng-deep th.mat-column-action .mat-sort-header-container {\n  left: 21%;\n}\n\na {\n  color: blue !important;\n  cursor: pointer;\n}\n\n#hader-col img {\n  height: 30px;\n  width: 30px;\n  padding: 0px 0px 6px 3px;\n}\n\ntr:nth-child(even) {\n  background-color: #f2f2f2;\n}\n\n::ng-deep app-footer {\n  width: 100% !important;\n  left: 0% !important;\n}\n\n::ng-deep .mat-sort-header-container {\n  display: flex;\n  justify-content: center;\n}\n\n:host ::ng-deep .mat-sort-header-content {\n  font-weight: bold !important;\n  color: #000;\n}"]})],xZ);class CZ{constructor(){this._printStyle=[],this.useExistingCss=!1,this.printDelay=0,this._styleSheetFile=""}set printStyle(t){for(let e in t)t.hasOwnProperty(e)&&this._printStyle.push((e+JSON.stringify(t[e])).replace(/['"]+/g,""));this.returnStyleValues()}returnStyleValues(){return`<style> ${this._printStyle.join(" ").replace(/,/g,";")} </style>`}set styleSheetFile(t){let e=function(t){return`<link rel="stylesheet" type="text/css" href="${t}">`};if(-1!==t.indexOf(",")){const n=t.split(",");for(let t of n)this._styleSheetFile=this._styleSheetFile+e(t)}else this._styleSheetFile=e(t)}returnStyleSheetLinkTags(){return this._styleSheetFile}getElementTag(t){const e=[],n=document.getElementsByTagName(t);for(let i=0;i<n.length;i++)e.push(n[i].outerHTML);return e.join("\r\n")}getFormData(t){for(var e=0;e<t.length;e++)t[e].defaultValue=t[e].value,t[e].checked&&(t[e].defaultChecked=!0)}getHtmlContents(){let t=document.getElementById(this.printSectionId),e=t.getElementsByTagName("input");this.getFormData(e);let n=t.getElementsByTagName("textarea");return this.getFormData(n),t.innerHTML}print(){let t,e,n="",i="";const s=this.getElementTag("base");this.useExistingCss&&(n=this.getElementTag("style"),i=this.getElementTag("link")),t=this.getHtmlContents(),e=window.open("","_blank","top=0,left=0,height=auto,width=auto"),e.document.open(),e.document.write(`\n      <html>\n        <head>\n          <title>${this.printTitle?this.printTitle:""}</title>\n          ${s}\n          ${this.returnStyleValues()}\n          ${this.returnStyleSheetLinkTags()}\n          ${n}\n          ${i}\n        </head>\n        <body>\n          ${t}\n          <script defer>\n            function triggerPrint(event) {\n              window.removeEventListener('load', triggerPrint, false);\n              setTimeout(function() {\n                closeWindow(window.print());\n              }, ${this.printDelay});\n            }\n            function closeWindow(){\n                window.close();\n            }\n            window.addEventListener('load', triggerPrint, false);\n          <\/script>\n        </body>\n      </html>`),e.document.close()}}CZ.decorators=[{type:s.Directive,args:[{selector:"button[ngxPrint]"}]}],CZ.propDecorators={printSectionId:[{type:s.Input}],printTitle:[{type:s.Input}],useExistingCss:[{type:s.Input}],printDelay:[{type:s.Input}],printStyle:[{type:s.Input}],styleSheetFile:[{type:s.Input}],print:[{type:s.HostListener,args:["click"]}]};class SZ{}SZ.decorators=[{type:s.NgModule,args:[{declarations:[CZ],imports:[],exports:[CZ]}]}];let kZ=class{constructor(t){this.authService=t}intercept(t,e){return console.log("requesturl ",t.url),this.authService.isLoggedIn()&&(console.log("environmenturl",t.url),t=t.clone({setHeaders:{Authorization:localStorage.getItem("msal.idtoken")}})),e.handle(t)}};kZ.ctorParameters=()=>[{type:sg}],kZ=Hh([Object(s.Injectable)()],kZ);let EZ=class{constructor(t,e){this.auth=t,this.router=e}intercept(t,e){return e.handle(t).pipe(Object(N_.a)(t=>(console.log("err",t),Object(O_.a)(t))))}};EZ.ctorParameters=()=>[{type:sg},{type:Wf.Router}],EZ=Hh([Object(s.Injectable)({providedIn:"root"})],EZ);function IZ(t,e,n,i){return new(n||(n=Promise))(function(s,r){function a(t){try{l(i.next(t))}catch(TH){r(TH)}}function o(t){try{l(i.throw(t))}catch(TH){r(TH)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,o)}l((i=i.apply(t,e||[])).next())})}Object.create;Object.create;const AZ=new s.InjectionToken("config"),DZ=new s.InjectionToken("NEW_CONFIG"),TZ=new s.InjectionToken("INITIAL_CONFIG"),OZ={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},PZ=["Hh:m0:s0","Hh:m0","m0:s0"],NZ=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];class MZ{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,i)=>{const s=t.split(n),r=s.length>1?`${n}${s[1]}`:"";let a=s[0];const o=this.separatorLimit.replace(/\s/g,"");o&&+o&&(a="-"===a[0]?`-${a.slice(1,a.length).slice(0,o.length)}`:a.slice(0,o.length));const l=/(\d+)(\d{3})/;for(;e&&l.test(a);)a=a.replace(l,"$1"+e+"$2");return void 0===i?a+r:0===i?a:a+r.substr(0,i+1)},this.percentage=t=>Number(t)>=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkAndRemoveSuffix=t=>{var e,n,i;for(let s=(null===(e=this.suffix)||void 0===e?void 0:e.length)-1;s>=0;s--){const e=this.suffix.substr(s,null===(n=this.suffix)||void 0===n?void 0:n.length);if(t.includes(e)&&(s-1<0||!t.includes(this.suffix.substr(s-1,null===(i=this.suffix)||void 0===i?void 0:i.length))))return t.replace(e,"")}return t},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const i=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),s=t.match(i);if(s&&s[0].length-1>e){const n=s[0].length-1-e;t=t.substring(0,t.length-n)}0===e&&t.endsWith(n)&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,e){const[n,i]=e;return this.customPattern=i,this.applyMask(t,n)}applyMask(t,e,n=0,i=!1,s=!1,r=(()=>{})){if(null==t||void 0===e)return"";let a=0,o="",l=!1,c=!1,d=1,p=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const u=t.toString().split("");"IP"===e&&(this.ipError=!!(u.filter(t=>"."===t).length<3&&u.length<7),e="099.099.099.099");const h=[];for(let v=0;v<t.length;v++)t[v].match("\\d")&&h.push(t[v]);if("CPF_CNPJ"===e&&(this.cpfCnpjError=!(11===h.length||14===h.length),e=h.length>11?"00.000.000/0000-00":"000.000.000-00"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,this.decimalMarker)}if(t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))){const e=t.substring(0,t.indexOf(".")-1);t=`${e}${t.substring(t.indexOf("."),t.length)}`}o=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const i=this._charToRegExpExpression(this.thousandSeparator),s=this._charToRegExpExpression(this.decimalMarker),r='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(i,"").replace(s,""),a=new RegExp("["+r+"]");t.match(a)&&(t=t.substring(0,t.length-1));const l=this.getPrecision(e),p=(t=this.checkInputPrecision(t,l,this.decimalMarker)).replace(new RegExp(i,"g"),"");o=this._formatWithSeparators(p,this.thousandSeparator,this.decimalMarker,l);const u=o.indexOf(",")-t.indexOf(","),h=o.length-t.length;if(h>0&&","!==o[n]){c=!0;let t=0;do{this._shift.add(n+t),t++}while(t<h)}else 0!==u&&n>0&&!(o.indexOf(",")>=n&&n>3)||!(o.indexOf(".")>=n&&n>3)&&h<=0?(this._shift.clear(),c=!0,d=h,n+=h,this._shift.add(n)):this._shift.clear()}else for(let v=0,y=u[0];v<u.length&&a!==e.length;v++,y=u[v])if(this._checkSymbolMask(y,e[a])&&"?"===e[a+1])o+=y,a+=2;else if("*"===e[a+1]&&l&&this._checkSymbolMask(y,e[a+2]))o+=y,a+=3,l=!1;else if(this._checkSymbolMask(y,e[a])&&"*"===e[a+1])o+=y,l=!0;else if("?"===e[a+1]&&this._checkSymbolMask(y,e[a+2]))o+=y,a+=3;else if(this._checkSymbolMask(y,e[a])){if("H"===e[a]&&Number(y)>2){a+=1,this._shiftStep(e,a,u.length),v--,this.leadZeroDateTime&&(o+="0");continue}if("h"===e[a]&&"2"===o&&Number(y)>3){a+=1,v--;continue}if("m"===e[a]&&Number(y)>5){a+=1,this._shiftStep(e,a,u.length),v--,this.leadZeroDateTime&&(o+="0");continue}if("s"===e[a]&&Number(y)>5){a+=1,this._shiftStep(e,a,u.length),v--,this.leadZeroDateTime&&(o+="0");continue}const n=31;if("d"===e[a]&&(Number(y)>3&&this.leadZeroDateTime||Number(t.slice(a,a+2))>n||"/"===t[a+1])){a+=1,this._shiftStep(e,a,u.length),v--,this.leadZeroDateTime&&(o+="0");continue}if("M"===e[a]){const i=12,s=0===a&&(Number(y)>2||Number(t.slice(a,a+2))>i||"/"===t[a+1]),r=t.slice(a-3,a-1).includes("/")&&("/"===t[a-2]&&Number(t.slice(a-1,a+1))>i&&"/"!==t[a]||"/"===t[a]||"/"===t[a-3]&&Number(t.slice(a-2,a))>i&&"/"!==t[a-1]||"/"===t[a-1]),l=Number(t.slice(a-3,a-1))<=n&&!t.slice(a-3,a-1).includes("/")&&"/"===t[a-1]&&(Number(t.slice(a,a+2))>i||"/"===t[a+1]),c=Number(t.slice(a-3,a-1))>n&&!t.slice(a-3,a-1).includes("/")&&!t.slice(a-2,a).includes("/")&&Number(t.slice(a-2,a))>i,d=Number(t.slice(a-3,a-1))<=n&&!t.slice(a-3,a-1).includes("/")&&"/"!==t[a-1]&&Number(t.slice(a-1,a+1))>i;if(Number(y)>1&&this.leadZeroDateTime||s||r||l||c||d){a+=1,this._shiftStep(e,a,u.length),v--,this.leadZeroDateTime&&(o+="0");continue}}o+=y,a++}else-1!==this.maskSpecialCharacters.indexOf(e[a])?(o+=e[a],a++,this._shiftStep(e,a,u.length),v--):this.maskSpecialCharacters.indexOf(y)>-1&&this.maskAvailablePatterns[e[a]]&&this.maskAvailablePatterns[e[a]].optional?(u[a]&&"099.099.099.099"!==e&&"000.000.000-00"!==e&&"00.000.000/0000-00"!==e&&(o+=u[a]),a++,v--):"*"===this.maskExpression[a+1]&&this._findSpecialChar(this.maskExpression[a+2])&&this._findSpecialChar(y)===this.maskExpression[a+2]&&l||"?"===this.maskExpression[a+1]&&this._findSpecialChar(this.maskExpression[a+2])&&this._findSpecialChar(y)===this.maskExpression[a+2]&&l?(a+=3,o+=y):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(y)<0&&y!==this.placeHolderCharacter&&(p=!0);o.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(o+=e[e.length-1]);let m=n+1;for(;this._shift.has(m);)d++,m++;let f=i?a:this._shift.has(n)?d:0;p&&f--,r(f,c),d<0&&this._shift.clear();let g=!1;s&&(g=u.every(t=>this.maskSpecialCharacters.includes(t)));let b=`${this.prefix}${g?"":o}${this.suffix}`;return 0===o.length&&(b=`${this.prefix}${o}`),b}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||t.match("\\s")||"."===t||","===t||"-"===t&&0===e&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){if(t){const e="[\\^$.|?*+()";return" "===t?"\\s":e.indexOf(t)>=0?"\\"+t:t}return t}_shiftStep(t,e,n){const i=/[*?]/g.test(t.slice(0,e))?n:e;this._shift.add(i+this.prefix.length||0)}}MZ.decorators=[{type:s.Injectable}],MZ.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[AZ]}]}];class RZ extends MZ{constructor(t,e,n,i){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=i,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=t=>{}}applyMask(t,e,n=0,i=!1,s=!1,r=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const a=t&&"number"==typeof this.selStart?t[this.selStart]:"";let o="";if(this.hiddenInput&&!this.writingValue){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,a):t.length<e.length&&(e.length-t.length==1?e.splice(this.selStart-1,1):e.splice(this.selStart,this.selEnd-this.selStart))):e=[],o=this.actualValue.length&&e.length<=t.length?this.shiftTypedSymbols(e.join("")):t}o=Boolean(o)&&o.length?o:t;const l=super.applyMask(o,e,n,i,s,r);if(this.actualValue=this.getActualValue(l),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(t=>t!==this.decimalMarker)),this.formControlResult(l),!this.showMaskTyped)return this.hiddenInput&&l&&l.length?this.hideInput(l,this.maskExpression):l;const c=l.length,d=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const t=this._numberSkipedSymbols(l);return l+d.slice(c+t)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?l+d:l+d.slice(c)}_numberSkipedSymbols(t){const e=/(^|\D)(\d\D)/g;let n=e.exec(t),i=0;for(;null!=n;)i+=1,n=e.exec(t);return i}applyValueChanges(t=0,e,n,i=(()=>{})){const s=this._elementRef.nativeElement;s.value=this.applyMask(s.value,this.maskExpression,t,e,n,i),s!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,i)=>{if(this.maskSpecialCharacters.includes(t[i+1])&&t[i+1]!==this.maskExpression[i+1])return e=n,t[i+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,e]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,e))}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n<t.length;n++)t[n].match("\\d")&&e.push(t[n]);return e.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:(e.length>9&&e.length,"")}_checkForCpfCnpj(t){const e=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return e;const i=[];for(let s=0;s<t.length;s++)t[s].match("\\d")&&i.push(t[s]);return i.length<=3?e.slice(i.length,e.length):i.length>3&&i.length<=6?e.slice(i.length+1,e.length):i.length>6&&i.length<=9?e.slice(i.length+2,e.length):i.length>9&&i.length<11?e.slice(i.length+3,e.length):11===i.length?"":12===i.length?17===t.length?n.slice(16,n.length):n.slice(15,n.length):i.length>12&&i.length<=14?n.slice(i.length+4,n.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.dropSpecialCharacters?this.onChange(this._toNumber(this._checkSymbols(t))):this.onChange(this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue||""===t)return t;const e=Number(t);return Number.isNaN(e)?t:e}_removeMask(t,e){return t?t.replace(this._regExpForRemove(e),""):t}_removePrefix(t){return this.prefix&&t?t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix&&t?t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>`\\${t}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}}RZ.decorators=[{type:s.Injectable}],RZ.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:void 0,decorators:[{type:s.Inject,args:[AZ]}]},{type:s.ElementRef},{type:s.Renderer2}];class LZ{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:i,prefix:s,suffix:r,thousandSeparator:a,decimalMarker:o,dropSpecialCharacters:l,hiddenInput:c,showMaskTyped:d,placeHolderCharacter:p,shownMaskExpression:u,showTemplate:h,clearIfNotMatch:m,validation:f,separatorLimit:g,allowNegativeNumbers:b,leadZeroDateTime:v}=t;if(e&&(this._maskValue=e.currentValue||"",e.currentValue&&e.currentValue.split("||").length>1&&(this._maskExpressionArray=e.currentValue.split("||").sort((t,e)=>t.length-e.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=n.currentValue||[]}i&&i.currentValue&&(this._maskService.maskAvailablePatterns=i.currentValue),s&&(this._maskService.prefix=s.currentValue),r&&(this._maskService.suffix=r.currentValue),a&&(this._maskService.thousandSeparator=a.currentValue),o&&(this._maskService.decimalMarker=o.currentValue),l&&(this._maskService.dropSpecialCharacters=l.currentValue),c&&(this._maskService.hiddenInput=c.currentValue),d&&(this._maskService.showMaskTyped=d.currentValue),p&&(this._maskService.placeHolderCharacter=p.currentValue),u&&(this._maskService.shownMaskExpression=u.currentValue),h&&(this._maskService.showTemplate=h.currentValue),m&&(this._maskService.clearIfNotMatch=m.currentValue),f&&(this._maskService.validation=f.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),b&&(this._maskService.allowNegativeNumbers=b.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t))),v&&(this._maskService.leadZeroDateTime=v.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator"))return null;if(NZ.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(PZ.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional){if(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)){e+=this._maskValue.split("").filter(t=>t===n).join("").length}else-1!==this._maskValue.indexOf(n)&&e++;if(-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n))return null;if(e===this._maskValue.length)return null}if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const n=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-e:this._maskValue.length-e;if(t.toString().length<n)return this._createValidationError(t)}}return null}onPaste(){this._justPasted=!0}onInput(t){const e=t.target;if(this._inputValue=e.value,this._setMask(),!this._maskValue)return void this.onChange(e.value);const n=1===e.selectionStart?e.selectionStart+this._maskService.prefix.length:e.selectionStart;let i=0,s=!1;if(this._maskService.applyValueChanges(n,this._justPasted,"Backspace"===this._code,(t,e)=>{this._justPasted=!1,i=t,s=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let r=this._position?this._inputValue.length+n+i:n+("Backspace"!==this._code||s?i:0);r>this._getActualInputLength()&&(r=this._getActualInputLength()),e.setSelectionRange(r,r),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){var e;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const n=t.target;if(this._inputValue=n.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===n.value.length&&(n.selectionStart=n.selectionEnd),8===t.keyCode&&0!==n.selectionStart)if(this.specialCharacters=(null===(e=this.specialCharacters)||void 0===e?void 0:e.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&n.selectionStart<=this.prefix.length)n.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==n.selectionStart&&1!==n.selectionStart)for(;this.specialCharacters.includes(this._inputValue[n.selectionStart-1].toString())&&(this.prefix.length>=1&&n.selectionStart>this.prefix.length||0===this.prefix.length);)n.setSelectionRange(n.selectionStart-1,n.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,n)}this.suffixCheckOnPressDelete(t.keyCode,n),this._maskService.prefix.length&&n.selectionStart<=this._maskService.prefix.length&&n.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const i=n.selectionStart;8!==t.keyCode||n.readOnly||0!==i||n.selectionEnd!==n.value.length||0===n.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<n.selectionStart?n.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(n.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=n.selectionStart,this._maskService.selEnd=n.selectionEnd}writeValue(t){return IZ(this,void 0,void 0,function*(){"object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&this.setDisabledState(Boolean(t.disable)),t=t.value),void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),this._inputValue=t,this._setMask(),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t})}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,e){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===e.selectionStart&&e.setSelectionRange(e.selectionStart-1,e.selectionStart-1))}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((e,n,i)=>{if(this._start="{"===n?i:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=i;const s=Number(t.slice(this._start+1,this._end));return e+new Array(s+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<e||t.length<=e-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const e=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&e)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,e;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}LZ.decorators=[{type:s.Directive,args:[{selector:"input[mask], textarea[mask]",providers:[{provide:Wh,useExisting:Object(s.forwardRef)(()=>LZ),multi:!0},{provide:tm,useExisting:Object(s.forwardRef)(()=>LZ),multi:!0},RZ]}]}],LZ.ctorParameters=()=>[{type:void 0,decorators:[{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:RZ},{type:void 0,decorators:[{type:s.Inject,args:[AZ]}]}],LZ.propDecorators={maskExpression:[{type:s.Input,args:["mask"]}],specialCharacters:[{type:s.Input}],patterns:[{type:s.Input}],prefix:[{type:s.Input}],suffix:[{type:s.Input}],thousandSeparator:[{type:s.Input}],decimalMarker:[{type:s.Input}],dropSpecialCharacters:[{type:s.Input}],hiddenInput:[{type:s.Input}],showMaskTyped:[{type:s.Input}],placeHolderCharacter:[{type:s.Input}],shownMaskExpression:[{type:s.Input}],showTemplate:[{type:s.Input}],clearIfNotMatch:[{type:s.Input}],validation:[{type:s.Input}],separatorLimit:[{type:s.Input}],allowNegativeNumbers:[{type:s.Input}],leadZeroDateTime:[{type:s.Input}],onPaste:[{type:s.HostListener,args:["paste"]}],onInput:[{type:s.HostListener,args:["input",["$event"]]}],onBlur:[{type:s.HostListener,args:["blur"]}],onFocus:[{type:s.HostListener,args:["click",["$event"]]}],onKeyDown:[{type:s.HostListener,args:["keydown",["$event"]]}]};class FZ{constructor(t){this._maskService=t}transform(t,e,n=null){return t||"number"==typeof t?(n&&(this._maskService.thousandSeparator=n),"string"==typeof e?this._maskService.applyMask(`${t}`,e):this._maskService.applyMaskWithPattern(`${t}`,e)):""}}FZ.decorators=[{type:s.Pipe,args:[{name:"mask",pure:!0}]}],FZ.ctorParameters=()=>[{type:MZ}];class jZ{static forRoot(t){return{ngModule:jZ,providers:[{provide:DZ,useValue:t},{provide:TZ,useValue:OZ},{provide:AZ,useFactory:VZ,deps:[TZ,DZ]},MZ]}}static forChild(){return{ngModule:jZ}}}function VZ(t,e){return e instanceof Function?Object.assign(Object.assign({},t),e()):Object.assign(Object.assign({},t),e)}jZ.decorators=[{type:s.NgModule,args:[{exports:[LZ,FZ],declarations:[LZ,FZ]}]}];const BZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};BZ.KeyboardEvent||(BZ.KeyboardEvent=function(t,e){});let HZ=0;class zZ{constructor(t,e){this.source=t,this.option=e}}const UZ=Sk(class{}),qZ=new s.InjectionToken("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});class $Z extends UZ{constructor(t,e,n,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Aw.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.EventEmitter,this.opened=new s.EventEmitter,this.closed=new s.EventEmitter,this.optionActivated=new s.EventEmitter,this._classList={},this.id="mat-autocomplete-"+HZ++,this.inertGroups=(null==i?void 0:i.SAFARI)||!1,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Ow(t)}set classList(t){t&&t.length?this._classList=function(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:`${t}`.split(e);for(const t of i){const e=`${t}`.trim();e&&n.push(e)}}return n}(t).reduce((t,e)=>(t[e]=!0,t),{}):this._classList={},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new cx(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new zZ(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;const e=t?t+" ":"";return this.ariaLabelledby?e+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}$Z.decorators=[{type:s.Directive}],$Z.ctorParameters=()=>[{type:s.ChangeDetectorRef},{type:s.ElementRef},{type:void 0,decorators:[{type:s.Inject,args:[qZ]}]},{type:Vw}],$Z.propDecorators={template:[{type:s.ViewChild,args:[s.TemplateRef,{static:!0}]}],panel:[{type:s.ViewChild,args:["panel"]}],ariaLabel:[{type:s.Input,args:["aria-label"]}],ariaLabelledby:[{type:s.Input,args:["aria-labelledby"]}],displayWith:[{type:s.Input}],autoActiveFirstOption:[{type:s.Input}],panelWidth:[{type:s.Input}],optionSelected:[{type:s.Output}],opened:[{type:s.Output}],closed:[{type:s.Output}],optionActivated:[{type:s.Output}],classList:[{type:s.Input,args:["class"]}]};class WZ extends $Z{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}WZ.decorators=[{type:s.Component,args:[{selector:"mat-autocomplete",template:'<ng-template let-formFieldId="id">\n  <div class="mat-autocomplete-panel"\n       role="listbox"\n       [id]="id"\n       [attr.aria-label]="ariaLabel || null"\n       [attr.aria-labelledby]="_getPanelAriaLabelledby(formFieldId)"\n       [ngClass]="_classList"\n       #panel>\n    <ng-content></ng-content>\n  </div>\n</ng-template>\n',encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,exportAs:"matAutocomplete",inputs:["disableRipple"],host:{class:"mat-autocomplete"},providers:[{provide:tE,useExisting:WZ}],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"]}]}],WZ.propDecorators={optionGroups:[{type:s.ContentChildren,args:[sE,{descendants:!0}]}],options:[{type:s.ContentChildren,args:[cE,{descendants:!0}]}]};class YZ{constructor(t){this.elementRef=t}}YZ.decorators=[{type:s.Directive}],YZ.ctorParameters=()=>[{type:s.ElementRef}];class GZ extends YZ{}GZ.decorators=[{type:s.Directive,args:[{selector:"[matAutocompleteOrigin]",exportAs:"matAutocompleteOrigin"}]}];const KZ=new s.InjectionToken("mat-autocomplete-scroll-strategy");const ZZ={provide:KZ,deps:[II],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},XZ={provide:Wh,useExisting:Object(s.forwardRef)(()=>JZ),multi:!0};class QZ{constructor(t,e,n,i,s,r,a,o,l,c,d){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=s,this._dir=a,this._formField=o,this._document=l,this._viewportRuler=c,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Aw.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Gf.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Object(eA.a)(()=>this.autocomplete&&this.autocomplete.options?Object(gg.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Object(Sg.a)(1),Object(wg.a)(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Ow(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(gg.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(Cg.a)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(Cg.a)(()=>this._overlayAttached)):Object(Dw.a)()).pipe(Object($h.a)(t=>t instanceof oE?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(gg.a)(Object(fg.a)(this._document,"click"),Object(fg.a)(this._document,"auxclick"),Object(fg.a)(this._document,"touchend")).pipe(Object(Cg.a)(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||Tw(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe(Object(Sg.a)(1)),e=this.autocomplete.options.changes.pipe(Object(kg.a)(()=>this._positionStrategy.reapplyLastPosition()),Object(Ig.a)(0));return Object(gg.a)(t,e).pipe(Object(wg.a)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Object(Sg.a)(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){var t;this.autocomplete,null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Zw(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new UE(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(27===t.keyCode&&!Tw(t)||38===t.keyCode&&Tw(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new lI({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];let s;s="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,n=dE(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){const n=e.options.toArray()[t];if(n){const t=n._getHostElement(),i=pE(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(i)}}}}QZ.decorators=[{type:s.Directive}],QZ.ctorParameters=()=>[{type:s.ElementRef},{type:II},{type:s.ViewContainerRef},{type:s.NgZone},{type:s.ChangeDetectorRef},{type:void 0,decorators:[{type:s.Inject,args:[KZ]}]},{type:Bx,decorators:[{type:s.Optional}]},{type:JI,decorators:[{type:s.Optional},{type:s.Inject,args:[QI]},{type:s.Host}]},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[Cu.DOCUMENT]}]},{type:ME},{type:void 0,decorators:[{type:s.Optional},{type:s.Inject,args:[qZ]}]}],QZ.propDecorators={autocomplete:[{type:s.Input,args:["matAutocomplete"]}],position:[{type:s.Input,args:["matAutocompletePosition"]}],connectedTo:[{type:s.Input,args:["matAutocompleteConnectedTo"]}],autocompleteAttribute:[{type:s.Input,args:["autocomplete"]}],autocompleteDisabled:[{type:s.Input,args:["matAutocompleteDisabled"]}]};class JZ extends QZ{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}JZ.decorators=[{type:s.Directive,args:[{selector:"input[matAutocomplete], textarea[matAutocomplete]",host:{class:"mat-autocomplete-trigger","[attr.autocomplete]":"autocompleteAttribute","[attr.role]":'autocompleteDisabled ? null : "combobox"',"[attr.aria-autocomplete]":'autocompleteDisabled ? null : "list"',"[attr.aria-activedescendant]":"(panelOpen && activeOption) ? activeOption.id : null","[attr.aria-expanded]":"autocompleteDisabled ? null : panelOpen.toString()","[attr.aria-owns]":"(autocompleteDisabled || !panelOpen) ? null : autocomplete?.id","[attr.aria-haspopup]":"!autocompleteDisabled","(focusin)":"_handleFocus()","(blur)":"_onTouched()","(input)":"_handleInput($event)","(keydown)":"_handleKeydown($event)"},exportAs:"matAutocompleteTrigger",providers:[XZ]}]}];class tX{}tX.decorators=[{type:s.NgModule,args:[{imports:[NI,uE,wk,Cu.CommonModule],exports:[WZ,JZ,GZ,VE,uE,wk],declarations:[WZ,JZ,GZ],providers:[ZZ]}]}];var eX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},nX=function(){function t(){this.changes=new Gf.a,this.upSecondLabel="Add a second",this.downSecondLabel="Minus a second",this.upMinuteLabel="Add a minute",this.downMinuteLabel="Minus a minute",this.upHourLabel="Add a hour",this.downHourLabel="Minus a hour",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 21 years",this.nextMultiYearLabel="Next 21 years",this.switchToMonthViewLabel="Change to month view",this.switchToMultiYearViewLabel="Choose month and year",this.cancelBtnLabel="Cancel",this.setBtnLabel="Set",this.rangeFromLabel="From",this.rangeToLabel="To",this.hour12AMLabel="AM",this.hour12PMLabel="PM"}return t.ngInjectableDef=s.defineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=eX([Object(s.Injectable)({providedIn:"root"})],t)}(),iX=new s.InjectionToken("OWL_DATE_TIME_LOCALE",{providedIn:"root",factory:function(){return Object(s.inject)(s.LOCALE_ID)}});s.LOCALE_ID;var sX=function(){function t(){this._localeChanges=new Gf.a,this.millisecondsInDay=864e5,this.milliseondsInMinute=6e4}return Object.defineProperty(t.prototype,"localeChanges",{get:function(){return this._localeChanges},enumerable:!0,configurable:!0}),t.prototype.compare=function(t,e){if(!this.isValid(t)||!this.isValid(e))throw Error("JSNativeDate: Cannot compare invalid dates.");var n=this.clone(t),i=this.clone(e),s=this.getTime(n)-this.getTime(i);return s<0?-1:s>0?1:s},t.prototype.compareYear=function(t,e){if(!this.isValid(t)||!this.isValid(e))throw Error("JSNativeDate: Cannot compare invalid dates.");var n=this.getYear(t)-this.getYear(e);return n<0?-1:n>0?1:0},t.prototype.deserialize=function(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()},t.prototype.setLocale=function(t){this.locale=t,this._localeChanges.next()},t.prototype.clampDate=function(t,e,n){return e&&this.compare(t,e)<0?e:n&&this.compare(t,n)>0?n:t},t}(),rX=new s.InjectionToken("OWL_DATE_TIME_FORMATS"),aX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},oX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},lX=function(t,e){return function(n,i){e(n,i,t)}},cX=function(){function t(t,e,n,i,r,a){var o=this;this.elmRef=t,this.pickerIntl=e,this.ngZone=n,this.cdRef=i,this.dateTimeAdapter=r,this.dateTimeFormats=a,this.firstDayOfWeek=0,this._selecteds=[],this.startView="month",this.pickerMomentChange=new s.EventEmitter,this.selectedChange=new s.EventEmitter,this.userSelection=new s.EventEmitter,this.yearSelected=new s.EventEmitter,this.monthSelected=new s.EventEmitter,this.dateFilterForViews=function(t){return!!t&&(!o.dateFilter||o.dateFilter(t))&&(!o.minDate||o.dateTimeAdapter.compare(t,o.minDate)>=0)&&(!o.maxDate||o.dateTimeAdapter.compare(t,o.maxDate)<=0)},this.intlChangesSub=Aw.a.EMPTY,this.moveFocusOnNextTick=!1,this.intlChangesSub=this.pickerIntl.changes.subscribe(function(){o.cdRef.markForCheck()})}return Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),t=this.getValidDate(t),this._minDate=t?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(t),this.dateTimeAdapter.getMonth(t),this.dateTimeAdapter.getDate(t)):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),t=this.getValidDate(t),this._maxDate=t?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(t),this.dateTimeAdapter.getMonth(t),this.dateTimeAdapter.getDate(t)):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._pickerMoment=this.getValidDate(t)||this.dateTimeAdapter.now()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._selected=this.getValidDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selecteds",{get:function(){return this._selecteds},set:function(t){var e=this;this._selecteds=t.map(function(t){return t=e.dateTimeAdapter.deserialize(t),e.getValidDate(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"periodButtonText",{get:function(){return this.isMonthView?this.dateTimeAdapter.format(this.pickerMoment,this.dateTimeFormats.monthYearLabel):this.dateTimeAdapter.getYearName(this.pickerMoment)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"periodButtonLabel",{get:function(){return this.isMonthView?this.pickerIntl.switchToMultiYearViewLabel:this.pickerIntl.switchToMonthViewLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prevButtonLabel",{get:function(){return"month"===this._currentView?this.pickerIntl.prevMonthLabel:"year"===this._currentView?this.pickerIntl.prevYearLabel:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextButtonLabel",{get:function(){return"month"===this._currentView?this.pickerIntl.nextMonthLabel:"year"===this._currentView?this.pickerIntl.nextYearLabel:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentView",{get:function(){return this._currentView},set:function(t){this._currentView=t,this.moveFocusOnNextTick=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showControlArrows",{get:function(){return"multi-years"!==this._currentView},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMonthView",{get:function(){return"month"===this._currentView},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTCalendarClass",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this._currentView=this.startView},t.prototype.ngAfterViewChecked=function(){this.moveFocusOnNextTick&&(this.moveFocusOnNextTick=!1,this.focusActiveCell())},t.prototype.ngOnDestroy=function(){this.intlChangesSub.unsubscribe()},t.prototype.toggleViews=function(){this.currentView="month"==this._currentView?"multi-years":"month"},t.prototype.previousClicked=function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1),this.pickerMomentChange.emit(this.pickerMoment)},t.prototype.nextClicked=function(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1),this.pickerMomentChange.emit(this.pickerMoment)},t.prototype.dateSelected=function(t){this.dateFilterForViews(t)&&this.selectedChange.emit(t)},t.prototype.goToDateInView=function(t,e){this.handlePickerMomentChange(t),this.currentView=e},t.prototype.handlePickerMomentChange=function(t){this.pickerMoment=this.dateTimeAdapter.clampDate(t,this.minDate,this.maxDate),this.pickerMomentChange.emit(this.pickerMoment)},t.prototype.userSelected=function(){this.userSelection.emit()},t.prototype.prevButtonEnabled=function(){return!this.minDate||!this.isSameView(this.pickerMoment,this.minDate)},t.prototype.nextButtonEnabled=function(){return!this.maxDate||!this.isSameView(this.pickerMoment,this.maxDate)},t.prototype.focusActiveCell=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.ngZone.onStable.asObservable().pipe(Object(Sg.a)(1)).subscribe(function(){t.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()})})},t.prototype.selectYearInMultiYearView=function(t){this.yearSelected.emit(t)},t.prototype.selectMonthInYearView=function(t){this.monthSelected.emit(t)},t.prototype.isSameView=function(t,e){return"month"===this._currentView?!(!t||!e||this.dateTimeAdapter.getYear(t)!==this.dateTimeAdapter.getYear(e)||this.dateTimeAdapter.getMonth(t)!==this.dateTimeAdapter.getMonth(e)):"year"===this._currentView&&!(!t||!e||this.dateTimeAdapter.getYear(t)!==this.dateTimeAdapter.getYear(e))},t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},aX([Object(s.Input)(),oX("design:type",Function)],t.prototype,"dateFilter",void 0),aX([Object(s.Input)(),oX("design:type",Object)],t.prototype,"firstDayOfWeek",void 0),aX([Object(s.Input)(),oX("design:type",Object),oX("design:paramtypes",[Object])],t.prototype,"minDate",null),aX([Object(s.Input)(),oX("design:type",Object),oX("design:paramtypes",[Object])],t.prototype,"maxDate",null),aX([Object(s.Input)(),oX("design:type",Object),oX("design:paramtypes",[Object])],t.prototype,"pickerMoment",null),aX([Object(s.Input)(),oX("design:type",String)],t.prototype,"selectMode",void 0),aX([Object(s.Input)(),oX("design:type",Object),oX("design:paramtypes",[Object])],t.prototype,"selected",null),aX([Object(s.Input)(),oX("design:type",Array),oX("design:paramtypes",[Array])],t.prototype,"selecteds",null),aX([Object(s.Input)(),oX("design:type",String)],t.prototype,"startView",void 0),aX([Object(s.Input)(),oX("design:type",Boolean)],t.prototype,"hideOtherMonths",void 0),aX([Object(s.Output)(),oX("design:type",Object)],t.prototype,"pickerMomentChange",void 0),aX([Object(s.Output)(),oX("design:type",Object)],t.prototype,"selectedChange",void 0),aX([Object(s.Output)(),oX("design:type",Object)],t.prototype,"userSelection",void 0),aX([Object(s.Output)(),oX("design:type",Object)],t.prototype,"yearSelected",void 0),aX([Object(s.Output)(),oX("design:type",Object)],t.prototype,"monthSelected",void 0),aX([Object(s.HostBinding)("class.owl-dt-calendar"),oX("design:type",Boolean),oX("design:paramtypes",[])],t.prototype,"owlDTCalendarClass",null),t=aX([Object(s.Component)({selector:"owl-date-time-calendar",exportAs:"owlDateTimeCalendar",template:'<div class="owl-dt-calendar-control">\x3c!-- focus when keyboard tab (http://kizu.ru/en/blog/keyboard-only-focus/#x) --\x3e <button class="owl-dt-control owl-dt-control-button owl-dt-control-arrow-button" type="button" tabindex="0" [style.visibility]="showControlArrows? \'visible\': \'hidden\'" [disabled]="!prevButtonEnabled()" [attr.aria-label]="prevButtonLabel" (click)="previousClicked()"><span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\x3c!-- <editor-fold desc="SVG Arrow Left"> --\x3e <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 250.738 250.738" style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve" width="100%" height="100%"><path style="fill-rule: evenodd; clip-rule: evenodd;" d="M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546   c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681   l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z"/></svg>\x3c!-- </editor-fold> --\x3e</span></button><div class="owl-dt-calendar-control-content"><button class="owl-dt-control owl-dt-control-button owl-dt-control-period-button" type="button" tabindex="0" [attr.aria-label]="periodButtonLabel" (click)="toggleViews()"><span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">{{periodButtonText}} <span class="owl-dt-control-button-arrow" [style.transform]="\'rotate(\' + (isMonthView? 0 : 180) +\'deg)\'">\x3c!-- <editor-fold desc="SVG Arrow"> --\x3e <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="50%" height="50%" viewBox="0 0 292.362 292.362" style="enable-background:new 0 0 292.362 292.362;" xml:space="preserve"><g><path d="M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424\n                                C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428\n                                s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z"/></g></svg>\x3c!-- </editor-fold> --\x3e</span></span></button></div><button class="owl-dt-control owl-dt-control-button owl-dt-control-arrow-button" type="button" tabindex="0" [style.visibility]="showControlArrows? \'visible\': \'hidden\'" [disabled]="!nextButtonEnabled()" [attr.aria-label]="nextButtonLabel" (click)="nextClicked()"><span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">\x3c!-- <editor-fold desc="SVG Arrow Right"> --\x3e <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 250.738 250.738" style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve"><path style="fill-rule:evenodd;clip-rule:evenodd;" d="M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n                    c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n                    c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n                    C197.237,120.447,195.534,115.448,191.75,111.689z"/></svg>\x3c!-- </editor-fold> --\x3e</span></button></div><div class="owl-dt-calendar-main" cdkMonitorSubtreeFocus [ngSwitch]="currentView" tabindex="-1"><owl-date-time-month-view *ngSwitchCase="\'month\'" [pickerMoment]="pickerMoment" [firstDayOfWeek]="firstDayOfWeek" [selected]="selected" [selecteds]="selecteds" [selectMode]="selectMode" [minDate]="minDate" [maxDate]="maxDate" [dateFilter]="dateFilter" [hideOtherMonths]="hideOtherMonths" (pickerMomentChange)="handlePickerMomentChange($event)" (selectedChange)="dateSelected($event)" (userSelection)="userSelected()"></owl-date-time-month-view><owl-date-time-year-view *ngSwitchCase="\'year\'" [pickerMoment]="pickerMoment" [selected]="selected" [selecteds]="selecteds" [selectMode]="selectMode" [minDate]="minDate" [maxDate]="maxDate" [dateFilter]="dateFilter" (keyboardEnter)="focusActiveCell()" (pickerMomentChange)="handlePickerMomentChange($event)" (monthSelected)="selectMonthInYearView($event)" (change)="goToDateInView($event, \'month\')"></owl-date-time-year-view><owl-date-time-multi-year-view *ngSwitchCase="\'multi-years\'" [pickerMoment]="pickerMoment" [selected]="selected" [selecteds]="selecteds" [selectMode]="selectMode" [minDate]="minDate" [maxDate]="maxDate" [dateFilter]="dateFilter" (keyboardEnter)="focusActiveCell()" (pickerMomentChange)="handlePickerMomentChange($event)" (yearSelected)="selectYearInMultiYearView($event)" (change)="goToDateInView($event, \'year\')"></owl-date-time-multi-year-view></div>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),lX(4,Object(s.Optional)()),lX(5,Object(s.Optional)()),lX(5,Object(s.Inject)(rX)),oX("design:paramtypes",[s.ElementRef,nX,s.NgZone,s.ChangeDetectorRef,sX,Object])],t)}(),dX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},pX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},uX=function(t,e){return function(n,i){e(n,i,t)}},hX=function(){function t(t,e,n,i,r){this.ngZone=t,this.elmRef=e,this.pickerIntl=n,this.cdRef=i,this.dateTimeAdapter=r,this.isPM=!1,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.selectedChange=new s.EventEmitter}return Object.defineProperty(t.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._pickerMoment=this.getValidDate(t)||this.dateTimeAdapter.now()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDateTime",{get:function(){return this._minDateTime},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._minDateTime=this.getValidDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDateTime",{get:function(){return this._maxDateTime},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._maxDateTime=this.getValidDate(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hourValue",{get:function(){return this.dateTimeAdapter.getHours(this.pickerMoment)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hourBoxValue",{get:function(){var t=this.hourValue;return this.hour12Timer?(0===t?(t=12,this.isPM=!1):t>0&&t<12?this.isPM=!1:12===t?this.isPM=!0:t>12&&t<24&&(t-=12,this.isPM=!0),t):t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minuteValue",{get:function(){return this.dateTimeAdapter.getMinutes(this.pickerMoment)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secondValue",{get:function(){return this.dateTimeAdapter.getSeconds(this.pickerMoment)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"upHourButtonLabel",{get:function(){return this.pickerIntl.upHourLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downHourButtonLabel",{get:function(){return this.pickerIntl.downHourLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"upMinuteButtonLabel",{get:function(){return this.pickerIntl.upMinuteLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downMinuteButtonLabel",{get:function(){return this.pickerIntl.downMinuteLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"upSecondButtonLabel",{get:function(){return this.pickerIntl.upSecondLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downSecondButtonLabel",{get:function(){return this.pickerIntl.downSecondLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hour12ButtonLabel",{get:function(){return this.isPM?this.pickerIntl.hour12PMLabel:this.pickerIntl.hour12AMLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTTimerClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTTimeTabIndex",{get:function(){return-1},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.focus=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.ngZone.onStable.asObservable().pipe(Object(Sg.a)(1)).subscribe(function(){t.elmRef.nativeElement.focus()})})},t.prototype.setHourValueViaInput=function(t){this.hour12Timer&&this.isPM&&t>=1&&t<=11?t+=12:this.hour12Timer&&!this.isPM&&12===t&&(t=0),this.setHourValue(t)},t.prototype.setHourValue=function(t){var e=this.dateTimeAdapter.setHours(this.pickerMoment,t);this.selectedChange.emit(e),this.cdRef.markForCheck()},t.prototype.setMinuteValue=function(t){var e=this.dateTimeAdapter.setMinutes(this.pickerMoment,t);this.selectedChange.emit(e),this.cdRef.markForCheck()},t.prototype.setSecondValue=function(t){var e=this.dateTimeAdapter.setSeconds(this.pickerMoment,t);this.selectedChange.emit(e),this.cdRef.markForCheck()},t.prototype.setMeridiem=function(t){this.isPM=!this.isPM;var e=this.hourValue;this.isPM?e+=12:e-=12,e>=0&&e<=23&&this.setHourValue(e),this.cdRef.markForCheck(),t.preventDefault()},t.prototype.upHourEnabled=function(){return!this.maxDateTime||this.compareHours(this.stepHour,this.maxDateTime)<1},t.prototype.downHourEnabled=function(){return!this.minDateTime||this.compareHours(-this.stepHour,this.minDateTime)>-1},t.prototype.upMinuteEnabled=function(){return!this.maxDateTime||this.compareMinutes(this.stepMinute,this.maxDateTime)<1},t.prototype.downMinuteEnabled=function(){return!this.minDateTime||this.compareMinutes(-this.stepMinute,this.minDateTime)>-1},t.prototype.upSecondEnabled=function(){return!this.maxDateTime||this.compareSeconds(this.stepSecond,this.maxDateTime)<1},t.prototype.downSecondEnabled=function(){return!this.minDateTime||this.compareSeconds(-this.stepSecond,this.minDateTime)>-1},t.prototype.compareHours=function(t,e){var n=this.dateTimeAdapter.getHours(this.pickerMoment)+t,i=this.dateTimeAdapter.setHours(this.pickerMoment,n);return this.dateTimeAdapter.compare(i,e)},t.prototype.compareMinutes=function(t,e){var n=this.dateTimeAdapter.getMinutes(this.pickerMoment)+t,i=this.dateTimeAdapter.setMinutes(this.pickerMoment,n);return this.dateTimeAdapter.compare(i,e)},t.prototype.compareSeconds=function(t,e){var n=this.dateTimeAdapter.getSeconds(this.pickerMoment)+t,i=this.dateTimeAdapter.setSeconds(this.pickerMoment,n);return this.dateTimeAdapter.compare(i,e)},t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},dX([Object(s.Input)(),pX("design:type",Object),pX("design:paramtypes",[Object])],t.prototype,"pickerMoment",null),dX([Object(s.Input)(),pX("design:type",Object),pX("design:paramtypes",[Object])],t.prototype,"minDateTime",null),dX([Object(s.Input)(),pX("design:type",Object),pX("design:paramtypes",[Object])],t.prototype,"maxDateTime",null),dX([Object(s.Input)(),pX("design:type",Boolean)],t.prototype,"showSecondsTimer",void 0),dX([Object(s.Input)(),pX("design:type",Boolean)],t.prototype,"hour12Timer",void 0),dX([Object(s.Input)(),pX("design:type",Object)],t.prototype,"stepHour",void 0),dX([Object(s.Input)(),pX("design:type",Object)],t.prototype,"stepMinute",void 0),dX([Object(s.Input)(),pX("design:type",Object)],t.prototype,"stepSecond",void 0),dX([Object(s.Output)(),pX("design:type",Object)],t.prototype,"selectedChange",void 0),dX([Object(s.HostBinding)("class.owl-dt-timer"),pX("design:type",Boolean),pX("design:paramtypes",[])],t.prototype,"owlDTTimerClass",null),dX([Object(s.HostBinding)("attr.tabindex"),pX("design:type",Number),pX("design:paramtypes",[])],t.prototype,"owlDTTimeTabIndex",null),t=dX([Object(s.Component)({exportAs:"owlDateTimeTimer",selector:"owl-date-time-timer",template:'<owl-date-time-timer-box [upBtnAriaLabel]="upHourButtonLabel" [downBtnAriaLabel]="downHourButtonLabel" [upBtnDisabled]="!upHourEnabled()" [downBtnDisabled]="!downHourEnabled()" [boxValue]="hourBoxValue" [value]="hourValue" [min]="0" [max]="23" [step]="stepHour" [inputLabel]="\'Hour\'" (inputChange)="setHourValueViaInput($event)" (valueChange)="setHourValue($event)"></owl-date-time-timer-box><owl-date-time-timer-box [showDivider]="true" [upBtnAriaLabel]="upMinuteButtonLabel" [downBtnAriaLabel]="downMinuteButtonLabel" [upBtnDisabled]="!upMinuteEnabled()" [downBtnDisabled]="!downMinuteEnabled()" [value]="minuteValue" [min]="0" [max]="59" [step]="stepMinute" [inputLabel]="\'Minute\'" (inputChange)="setMinuteValue($event)" (valueChange)="setMinuteValue($event)"></owl-date-time-timer-box><owl-date-time-timer-box *ngIf="showSecondsTimer" [showDivider]="true" [upBtnAriaLabel]="upSecondButtonLabel" [downBtnAriaLabel]="downSecondButtonLabel" [upBtnDisabled]="!upSecondEnabled()" [downBtnDisabled]="!downSecondEnabled()" [value]="secondValue" [min]="0" [max]="59" [step]="stepSecond" [inputLabel]="\'Second\'" (inputChange)="setSecondValue($event)" (valueChange)="setSecondValue($event)"></owl-date-time-timer-box><div *ngIf="hour12Timer" class="owl-dt-timer-hour12"><button class="owl-dt-control-button owl-dt-timer-hour12-box" type="button" tabindex="0" (click)="setMeridiem($event)"><span class="owl-dt-control-button-content" tabindex="-1">{{hour12ButtonLabel}}</span></button></div>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),uX(4,Object(s.Optional)()),pX("design:paramtypes",[s.NgZone,s.ElementRef,nX,s.ChangeDetectorRef,sX])],t)}(),mX={transformPicker:$x("transformPicker",[Kx("void",Gx({opacity:0,transform:"scale(1, 0)"})),Kx("enter",Gx({opacity:1,transform:"scale(1, 1)"})),Xx("void => enter",function(t,e=null){return{type:3,steps:t,options:e}}([Jx("@fadeInPicker",Qx(),{optional:!0}),Wx("400ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),Xx("enter => void",Wx("100ms linear",Gx({opacity:0})))]),fadeInPicker:$x("fadeInPicker",[Kx("enter",Gx({opacity:1})),Kx("void",Gx({opacity:0})),Xx("void => enter",Wx("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},fX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},gX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},bX=function(t,e){return function(n,i){e(n,i,t)}},vX=function(){function t(t,e,n,i){this.cdRef=t,this.elmRef=e,this.pickerIntl=n,this.dateTimeAdapter=i,this.activeSelectedIndex=0,this.hidePicker$=new Gf.a,this.confirmSelected$=new Gf.a,this.pickerOpened$=new Gf.a}return Object.defineProperty(t.prototype,"hidePickerStream",{get:function(){return this.hidePicker$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmSelectedStream",{get:function(){return this.confirmSelected$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerOpenedStream",{get:function(){return this.pickerOpened$.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerMoment",{get:function(){return this._clamPickerMoment},set:function(t){t&&(this._clamPickerMoment=this.dateTimeAdapter.clampDate(t,this.picker.minDateTime,this.picker.maxDateTime)),this.cdRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerType",{get:function(){return this.picker.pickerType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cancelLabel",{get:function(){return this.pickerIntl.cancelBtnLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"setLabel",{get:function(){return this.pickerIntl.setBtnLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fromLabel",{get:function(){return this.pickerIntl.rangeFromLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toLabel",{get:function(){return this.pickerIntl.rangeToLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fromFormattedValue",{get:function(){var t=this.picker.selecteds[0];return t?this.dateTimeAdapter.format(t,this.picker.formatString):""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"toFormattedValue",{get:function(){var t=this.picker.selecteds[1];return t?this.dateTimeAdapter.format(t,this.picker.formatString):""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showControlButtons",{get:function(){return"dialog"===this.picker.pickerMode||"calendar"!==this.picker.pickerType&&"inline"!==this.picker.pickerMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"containerElm",{get:function(){return this.elmRef.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTContainerClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTPopupContainerClass",{get:function(){return"popup"===this.picker.pickerMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTDialogContainerClass",{get:function(){return"dialog"===this.picker.pickerMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTInlineContainerClass",{get:function(){return"inline"===this.picker.pickerMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTContainerDisabledClass",{get:function(){return this.picker.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTContainerId",{get:function(){return this.picker.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTContainerAnimation",{get:function(){return"inline"===this.picker.pickerMode?"":"enter"},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this.initPicker()},t.prototype.ngAfterViewInit=function(){this.focusPicker()},t.prototype.handleContainerAnimationDone=function(t){"enter"===t.toState&&this.pickerOpened$.next()},t.prototype.dateSelected=function(t){var e;this.picker.isInSingleMode?(e=this.dateSelectedInSingleMode(t))?(this.pickerMoment=e,this.picker.select(e)):"calendar"===this.pickerType&&this.hidePicker$.next(null):this.picker.isInRangeMode&&(e=this.dateSelectedInRangeMode(t))&&(this.pickerMoment=e[this.activeSelectedIndex],this.picker.select(e))},t.prototype.timeSelected=function(t){if(this.pickerMoment=this.dateTimeAdapter.clone(t),this.picker.dateTimeChecker(this.pickerMoment))if(this.picker.isInSingleMode)this.picker.select(this.pickerMoment);else if(this.picker.isInRangeMode){var e=this.picker.selecteds.slice();0===this.activeSelectedIndex&&e[1]&&1===this.dateTimeAdapter.compare(this.pickerMoment,e[1])||1===this.activeSelectedIndex&&e[0]&&-1===this.dateTimeAdapter.compare(this.pickerMoment,e[0])?(e[0]=this.pickerMoment,e[1]=this.pickerMoment):e[this.activeSelectedIndex]=this.pickerMoment,this.picker.select(e)}},t.prototype.onCancelClicked=function(t){this.hidePicker$.next(null),t.preventDefault()},t.prototype.onSetClicked=function(t){if(!this.picker.dateTimeChecker(this.pickerMoment))return this.hidePicker$.next(null),void t.preventDefault();this.confirmSelected$.next(t),t.preventDefault()},t.prototype.handleClickOnInfoGroup=function(t,e){this.setActiveSelectedIndex(e),t.preventDefault(),t.stopPropagation()},t.prototype.handleKeydownOnInfoGroup=function(t,e,n){switch(t.keyCode){case 40:case 39:case 38:case 37:e.focus(),this.setActiveSelectedIndex(0===n?1:0),t.preventDefault(),t.stopPropagation();break;case 32:this.setActiveSelectedIndex(n),t.preventDefault(),t.stopPropagation();break;default:return}},t.prototype.setActiveSelectedIndex=function(t){if("range"===this.picker.selectMode&&this.activeSelectedIndex!==t){this.activeSelectedIndex=t;var e=this.picker.selecteds[this.activeSelectedIndex];this.picker.selecteds&&e&&(this.pickerMoment=this.dateTimeAdapter.clone(e))}},t.prototype.initPicker=function(){this.pickerMoment=this.picker.startAt||this.dateTimeAdapter.now(),this.activeSelectedIndex="rangeTo"===this.picker.selectMode?1:0},t.prototype.dateSelectedInSingleMode=function(t){return this.dateTimeAdapter.isSameDay(t,this.picker.selected)?null:this.updateAndCheckCalendarDate(t)},t.prototype.dateSelectedInRangeMode=function(t){var e=this.picker.selecteds[0],n=this.picker.selecteds[1],i=this.updateAndCheckCalendarDate(t);return i?("range"===this.picker.selectMode?this.picker.selecteds&&this.picker.selecteds.length&&!n&&e&&this.dateTimeAdapter.differenceInCalendarDays(i,e)>=0?(n=i,this.activeSelectedIndex=1):(e=i,n=null,this.activeSelectedIndex=0):"rangeFrom"===this.picker.selectMode?(e=i,n&&this.dateTimeAdapter.compare(e,n)>0&&(n=null)):"rangeTo"===this.picker.selectMode&&(n=i,e&&this.dateTimeAdapter.compare(e,n)>0&&(e=null)),[e,n]):null},t.prototype.updateAndCheckCalendarDate=function(t){var e;return"both"===this.picker.pickerType?(e=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(t),this.dateTimeAdapter.getMonth(t),this.dateTimeAdapter.getDate(t),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment)),e=this.dateTimeAdapter.clampDate(e,this.picker.minDateTime,this.picker.maxDateTime)):e=this.dateTimeAdapter.clone(t),this.picker.dateTimeChecker(e)?e:null},t.prototype.focusPicker=function(){"inline"!==this.picker.pickerMode&&(this.calendar?this.calendar.focusActiveCell():this.timer&&this.timer.focus())},fX([Object(s.ViewChild)(cX),gX("design:type",cX)],t.prototype,"calendar",void 0),fX([Object(s.ViewChild)(hX),gX("design:type",hX)],t.prototype,"timer",void 0),fX([Object(s.HostBinding)("class.owl-dt-container"),gX("design:type",Boolean),gX("design:paramtypes",[])],t.prototype,"owlDTContainerClass",null),fX([Object(s.HostBinding)("class.owl-dt-popup-container"),gX("design:type",Boolean),gX("design:paramtypes",[])],t.prototype,"owlDTPopupContainerClass",null),fX([Object(s.HostBinding)("class.owl-dt-dialog-container"),gX("design:type",Boolean),gX("design:paramtypes",[])],t.prototype,"owlDTDialogContainerClass",null),fX([Object(s.HostBinding)("class.owl-dt-inline-container"),gX("design:type",Boolean),gX("design:paramtypes",[])],t.prototype,"owlDTInlineContainerClass",null),fX([Object(s.HostBinding)("class.owl-dt-container-disabled"),gX("design:type",Boolean),gX("design:paramtypes",[])],t.prototype,"owlDTContainerDisabledClass",null),fX([Object(s.HostBinding)("attr.id"),gX("design:type",String),gX("design:paramtypes",[])],t.prototype,"owlDTContainerId",null),fX([Object(s.HostBinding)("@transformPicker"),gX("design:type",Object),gX("design:paramtypes",[])],t.prototype,"owlDTContainerAnimation",null),fX([Object(s.HostListener)("@transformPicker.done",["$event"]),gX("design:type",Function),gX("design:paramtypes",[Object]),gX("design:returntype",void 0)],t.prototype,"handleContainerAnimationDone",null),t=fX([Object(s.Component)({exportAs:"owlDateTimeContainer",selector:"owl-date-time-container",template:'<div [cdkTrapFocus]="picker.pickerMode !== \'inline\'" [@fadeInPicker]="picker.pickerMode === \'inline\'? \'\' : \'enter\'" class="owl-dt-container-inner"><owl-date-time-calendar *ngIf="pickerType === \'both\' || pickerType === \'calendar\'" class="owl-dt-container-row" [firstDayOfWeek]="picker.firstDayOfWeek" [(pickerMoment)]="pickerMoment" [selected]="picker.selected" [selecteds]="picker.selecteds" [selectMode]="picker.selectMode" [minDate]="picker.minDateTime" [maxDate]="picker.maxDateTime" [dateFilter]="picker.dateTimeFilter" [startView]="picker.startView" [hideOtherMonths]="picker.hideOtherMonths" (yearSelected)="picker.selectYear($event)" (monthSelected)="picker.selectMonth($event)" (selectedChange)="dateSelected($event)"></owl-date-time-calendar><owl-date-time-timer *ngIf="pickerType === \'both\' || pickerType === \'timer\'" class="owl-dt-container-row" [pickerMoment]="pickerMoment" [minDateTime]="picker.minDateTime" [maxDateTime]="picker.maxDateTime" [showSecondsTimer]="picker.showSecondsTimer" [hour12Timer]="picker.hour12Timer" [stepHour]="picker.stepHour" [stepMinute]="picker.stepMinute" [stepSecond]="picker.stepSecond" (selectedChange)="timeSelected($event)"></owl-date-time-timer><div *ngIf="picker.isInRangeMode" role="radiogroup" class="owl-dt-container-info owl-dt-container-row"><div role="radio" [tabindex]="activeSelectedIndex === 0 ? 0 : -1" [attr.aria-checked]="activeSelectedIndex === 0" class="owl-dt-control owl-dt-container-range owl-dt-container-from" [ngClass]="{\'owl-dt-container-info-active\': activeSelectedIndex === 0}" (click)="handleClickOnInfoGroup($event, 0)" (keydown)="handleKeydownOnInfoGroup($event, to, 0)" #from><span class="owl-dt-control-content owl-dt-container-range-content" tabindex="-1"><span class="owl-dt-container-info-label">{{fromLabel}}:</span> <span class="owl-dt-container-info-value">{{fromFormattedValue}}</span></span></div><div role="radio" [tabindex]="activeSelectedIndex === 1 ? 0 : -1" [attr.aria-checked]="activeSelectedIndex === 1" class="owl-dt-control owl-dt-container-range owl-dt-container-to" [ngClass]="{\'owl-dt-container-info-active\': activeSelectedIndex === 1}" (click)="handleClickOnInfoGroup($event, 1)" (keydown)="handleKeydownOnInfoGroup($event, from, 1)" #to><span class="owl-dt-control-content owl-dt-container-range-content" tabindex="-1"><span class="owl-dt-container-info-label">{{toLabel}}:</span> <span class="owl-dt-container-info-value">{{toFormattedValue}}</span></span></div></div><div *ngIf="showControlButtons" class="owl-dt-container-buttons owl-dt-container-row"><button class="owl-dt-control owl-dt-control-button owl-dt-container-control-button" type="button" tabindex="0" (click)="onCancelClicked($event)"><span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">{{cancelLabel}}</span></button> <button class="owl-dt-control owl-dt-control-button owl-dt-container-control-button" type="button" tabindex="0" (click)="onSetClicked($event)"><span class="owl-dt-control-content owl-dt-control-button-content" tabindex="-1">{{setLabel}}</span></button></div></div>',styles:[""],changeDetection:s.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,animations:[mX.transformPicker,mX.fadeInPicker]}),bX(3,Object(s.Optional)()),gX("design:paramtypes",[s.ChangeDetectorRef,s.ElementRef,nX,sX])],t)}(),yX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},_X=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},wX=function(t,e){return function(n,i){e(n,i,t)}},xX=0,CX=function(){function t(t,e){var n=this;if(this.dateTimeAdapter=t,this.dateTimeFormats=e,this._showSecondsTimer=!1,this._hour12Timer=!1,this.startView="month",this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._firstDayOfWeek=0,this._hideOtherMonths=!1,this.dateTimeChecker=function(t){return!!t&&(!n.dateTimeFilter||n.dateTimeFilter(t))&&(!n.minDateTime||n.dateTimeAdapter.compare(t,n.minDateTime)>=0)&&(!n.maxDateTime||n.dateTimeAdapter.compare(t,n.maxDateTime)<=0)},!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimeAdapter. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this._id="owl-dt-picker-"+xX++}return Object.defineProperty(t.prototype,"showSecondsTimer",{get:function(){return this._showSecondsTimer},set:function(t){this._showSecondsTimer=Ow(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hour12Timer",{get:function(){return this._hour12Timer},set:function(t){this._hour12Timer=Ow(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stepHour",{get:function(){return this._stepHour},set:function(t){this._stepHour=Pw(t,1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stepMinute",{get:function(){return this._stepMinute},set:function(t){this._stepMinute=Pw(t,1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stepSecond",{get:function(){return this._stepSecond},set:function(t){this._stepSecond=Pw(t,1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){t=Pw(t,0),this._firstDayOfWeek=t>6||t<0?0:t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideOtherMonths",{get:function(){return this._hideOtherMonths},set:function(t){this._hideOtherMonths=Ow(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formatString",{get:function(){return"both"===this.pickerType?this.dateTimeFormats.fullPickerInput:"calendar"===this.pickerType?this.dateTimeFormats.datePickerInput:this.dateTimeFormats.timePickerInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},yX([Object(s.Input)(),_X("design:type",Boolean),_X("design:paramtypes",[Boolean])],t.prototype,"showSecondsTimer",null),yX([Object(s.Input)(),_X("design:type",Boolean),_X("design:paramtypes",[Boolean])],t.prototype,"hour12Timer",null),yX([Object(s.Input)(),_X("design:type",String)],t.prototype,"startView",void 0),yX([Object(s.Input)(),_X("design:type",Number),_X("design:paramtypes",[Number])],t.prototype,"stepHour",null),yX([Object(s.Input)(),_X("design:type",Number),_X("design:paramtypes",[Number])],t.prototype,"stepMinute",null),yX([Object(s.Input)(),_X("design:type",Number),_X("design:paramtypes",[Number])],t.prototype,"stepSecond",null),yX([Object(s.Input)(),_X("design:type",Number),_X("design:paramtypes",[Number])],t.prototype,"firstDayOfWeek",null),yX([Object(s.Input)(),_X("design:type",Boolean),_X("design:paramtypes",[Boolean])],t.prototype,"hideOtherMonths",null),t=yX([wX(0,Object(s.Optional)()),wX(1,Object(s.Optional)()),wX(1,Object(s.Inject)(rX)),_X("design:paramtypes",[sX,Object])],t)}(),SX=0,kX=function(){this.ariaDescribedBy=null,this.autoFocus=!0,this.hasBackdrop=!0,this.data=null,this.disableClose=!1,this.role="dialog",this.paneClass="",this.event=null,this.backdropClass="",this.closeOnNavigation=!0,this.width="",this.height="",this.maxWidth="85vw",this.scrollStrategy=new iI,this.id="owl-dialog-"+SX++},EX=function(){function t(t,e,n,i){var s=this;this.overlayRef=t,this.container=e,this.id=n,this._beforeClose$=new Gf.a,this._afterOpen$=new Gf.a,this._afterClosed$=new Gf.a,this.locationChanged=Aw.a.EMPTY,this.disableClose=this.container.config.disableClose,this.container.animationStateChanged.pipe(Object(Cg.a)(function(t){return"done"===t.phaseName&&"enter"===t.toState}),Object(Sg.a)(1)).subscribe(function(){s._afterOpen$.next(),s._afterOpen$.complete()}),this.container.animationStateChanged.pipe(Object(Cg.a)(function(t){return"done"===t.phaseName&&"exit"===t.toState}),Object(Sg.a)(1)).subscribe(function(){s.overlayRef.dispose(),s.locationChanged.unsubscribe(),s._afterClosed$.next(s.result),s._afterClosed$.complete(),s.componentInstance=null}),this.overlayRef.keydownEvents().pipe(Object(Cg.a)(function(t){return 27===t.keyCode&&!s.disableClose})).subscribe(function(){return s.close()}),i&&(this.locationChanged=i.subscribe(function(){s.container.config.closeOnNavigation&&s.close()}))}return t.prototype.close=function(t){var e=this;this.result=t,this.container.animationStateChanged.pipe(Object(Cg.a)(function(t){return"start"===t.phaseName}),Object(Sg.a)(1)).subscribe(function(){e._beforeClose$.next(t),e._beforeClose$.complete(),e.overlayRef.detachBackdrop()}),this.container.startExitAnimation()},t.prototype.backdropClick=function(){return this.overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this.overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this.getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this.overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t="auto"),void 0===e&&(e="auto"),this.getPositionStrategy().width(t).height(e),this.overlayRef.updatePosition(),this},t.prototype.isAnimating=function(){return this.container.isAnimating},t.prototype.afterOpen=function(){return this._afterOpen$.asObservable()},t.prototype.beforeClose=function(){return this._beforeClose$.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed$.asObservable()},t.prototype.getPositionStrategy=function(){return this.overlayRef.getConfig().positionStrategy},t}(),IX=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),AX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},DX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},TX=function(t,e){return function(n,i){e(n,i,t)}},OX={opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})"},PX={opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})",transformOrigin:"{{ ox }} {{ oy }}"},NX=function(t){function e(e,n,i,r){var a=t.call(this)||this;return a.changeDetector=e,a.elementRef=n,a.focusTrapFactory=i,a.document=r,a.ariaLabelledBy=null,a.animationStateChanged=new s.EventEmitter,a.isAnimating=!1,a.state="enter",a.params={x:"0px",y:"0px",ox:"50%",oy:"50%",scale:0},a.elementFocusedBeforeDialogWasOpened=null,a}return IX(e,t),Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerTabIndex",{get:function(){return-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerId",{get:function(){return this._config.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerRole",{get:function(){return this._config.role||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerAriaLabelledby",{get:function(){return this.ariaLabelledBy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerAriaDescribedby",{get:function(){return this._config.ariaDescribedBy||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDialogContainerAnimation",{get:function(){return{value:this.state,params:this.params}},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.attachComponentPortal=function(t){if(this.portalOutlet.hasAttached())throw Error("Attempting to attach dialog content after content is already attached");return this.savePreviouslyFocusedElement(),this.portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){throw new Error("Method not implemented.")},e.prototype.setConfig=function(t){this._config=t,t.event&&this.calculateZoomOrigin(event)},e.prototype.onAnimationStart=function(t){this.isAnimating=!0,this.animationStateChanged.emit(t)},e.prototype.onAnimationDone=function(t){"enter"===t.toState?this.trapFocus():"exit"===t.toState&&this.restoreFocus(),this.animationStateChanged.emit(t),this.isAnimating=!1},e.prototype.startExitAnimation=function(){this.state="exit",this.changeDetector.markForCheck()},e.prototype.calculateZoomOrigin=function(t){if(t){var e=t.clientX,n=t.clientY,i=e-window.innerWidth/2,s=n-window.innerHeight/2,r=e/window.innerWidth,a=n/window.innerHeight;this.params.x=i+"px",this.params.y=s+"px",this.params.ox=100*r+"%",this.params.oy=100*a+"%",this.params.scale=0}},e.prototype.savePreviouslyFocusedElement=function(){var t=this;this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement,Promise.resolve().then(function(){return t.elementRef.nativeElement.focus()}))},e.prototype.trapFocus=function(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this._config.autoFocus&&this.focusTrap.focusInitialElementWhenReady()},e.prototype.restoreFocus=function(){var t=this.elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this.focusTrap&&this.focusTrap.destroy()},AX([Object(s.ViewChild)(KE),DX("design:type",KE)],e.prototype,"portalOutlet",void 0),AX([Object(s.HostBinding)("class.owl-dialog-container"),DX("design:type",Boolean),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerClass",null),AX([Object(s.HostBinding)("attr.tabindex"),DX("design:type",Number),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerTabIndex",null),AX([Object(s.HostBinding)("attr.id"),DX("design:type",String),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerId",null),AX([Object(s.HostBinding)("attr.role"),DX("design:type",String),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerRole",null),AX([Object(s.HostBinding)("attr.aria-labelledby"),DX("design:type",String),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerAriaLabelledby",null),AX([Object(s.HostBinding)("attr.aria-describedby"),DX("design:type",String),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerAriaDescribedby",null),AX([Object(s.HostBinding)("@slideModal"),DX("design:type",Object),DX("design:paramtypes",[])],e.prototype,"owlDialogContainerAnimation",null),AX([Object(s.HostListener)("@slideModal.start",["$event"]),DX("design:type",Function),DX("design:paramtypes",[Object]),DX("design:returntype",void 0)],e.prototype,"onAnimationStart",null),AX([Object(s.HostListener)("@slideModal.done",["$event"]),DX("design:type",Function),DX("design:paramtypes",[Object]),DX("design:returntype",void 0)],e.prototype,"onAnimationDone",null),e=AX([Object(s.Component)({selector:"owl-dialog-container",template:"<ng-template cdkPortalOutlet></ng-template>",animations:[$x("slideModal",[Xx("void => enter",[Gx(PX),Wx("300ms cubic-bezier(0.35, 0, 0.25, 1)",Gx("*")),Wx("150ms",Zx([Gx({transform:"scale(1)",offset:0}),Gx({transform:"scale(1.05)",offset:.3}),Gx({transform:"scale(.95)",offset:.8}),Gx({transform:"scale(1)",offset:1})])),Qx()],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%",scale:1}}),Xx("enter => exit",[Qx(),Wx(200,Gx(OX))],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%"}})])]}),TX(3,Object(s.Optional)()),TX(3,Object(s.Inject)(Cu.DOCUMENT)),DX("design:paramtypes",[s.ChangeDetectorRef,s.ElementRef,fx,Object])],e)}($E);var MX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},RX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},LX=function(t,e){return function(n,i){e(n,i,t)}},FX=new s.InjectionToken("OwlDialogData"),jX=new s.InjectionToken("owl-dialog-scroll-strategy");var VX={provide:jX,deps:[II],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},BX=new s.InjectionToken("owl-dialog-default-options"),HX=function(){function t(t,e,n,i,s,r,a){var o=this;this.overlay=t,this.injector=e,this.location=n,this.scrollStrategy=i,this.defaultOptions=s,this.parentDialog=r,this.overlayContainer=a,this.ariaHiddenElements=new Map,this._openDialogsAtThisLevel=[],this._afterOpenAtThisLevel=new Gf.a,this._afterAllClosedAtThisLevel=new Gf.a,this.afterAllClosed=Object(eA.a)(function(){return o._openDialogsAtThisLevel.length?o._afterAllClosed:o._afterAllClosed.pipe(Object(yg.a)(void 0))}),!r&&n&&n.subscribe(function(){return o.closeAll()})}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this.parentDialog?this.parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this.parentDialog?this.parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this.parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;if((e=function(t,e){return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var i=0,s=e;i<s.length;i++){var r=s[i];if(null!=r)for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a])}return t}(new kX,t,e)}(e,this.defaultOptions)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this.createOverlay(e),s=this.attachDialogContainer(i,e),r=this.attachDialogContent(t,s,i,e);return this.openDialogs.length||this.hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(function(){return n.removeOpenDialog(r)}),this.afterOpen.next(r),r},t.prototype.closeAll=function(){for(var t=this.openDialogs.length;t--;)this.openDialogs[t].close()},t.prototype.getDialogById=function(t){return this.openDialogs.find(function(e){return e.id===t})},t.prototype.attachDialogContent=function(t,e,n,i){var r=new EX(n,e,i.id,this.location);if(i.hasBackdrop&&n.backdropClick().subscribe(function(){r.disableClose||r.close()}),t instanceof s.TemplateRef);else{var a=this.createInjector(i,r,e),o=e.attachComponentPortal(new zE(t,void 0,a));r.componentInstance=o.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r},t.prototype.createInjector=function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=new WeakMap;return s.set(EX,e),s.set(NX,n),s.set(FX,t.data),new QE(i||this.injector,s)},t.prototype.createOverlay=function(t){var e=this.getOverlayConfig(t);return this.overlay.create(e)},t.prototype.attachDialogContainer=function(t,e){var n=new zE(NX,e.viewContainerRef),i=t.attach(n);return i.instance.setConfig(e),i.instance},t.prototype.getOverlayConfig=function(t){var e=new lI({positionStrategy:this.overlay.position().global(),scrollStrategy:t.scrollStrategy||this.scrollStrategy(),panelClass:t.paneClass,hasBackdrop:t.hasBackdrop,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype.removeOpenDialog=function(t){var e=this._openDialogsAtThisLevel.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this.ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this.ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype.hideNonDialogContentFromAssistiveTechnology=function(){var t=this.overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this.ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t=MX([Object(s.Injectable)(),LX(2,Object(s.Optional)()),LX(3,Object(s.Inject)(jX)),LX(4,Object(s.Optional)()),LX(4,Object(s.Inject)(BX)),LX(5,Object(s.Optional)()),LX(5,Object(s.SkipSelf)()),RX("design:paramtypes",[II,s.Injector,Cu.Location,Function,kX,t,gI])],t)}();var zX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},UX=function(){function t(){}return t=zX([Object(s.NgModule)({imports:[Cu.CommonModule,jx,NI,XE],exports:[],declarations:[NX],providers:[VX,HX],entryComponents:[NX]})],t)}(),qX=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),$X=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},WX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},YX=function(t,e){return function(n,i){e(n,i,t)}},GX=new s.InjectionToken("owl-dtpicker-scroll-strategy");var KX={provide:GX,deps:[II],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},ZX=function(t){function e(e,n,i,r,a,o,l,c,d){var p=t.call(this,o,c)||this;return p.overlay=e,p.viewContainerRef=n,p.dialogService=i,p.ngZone=r,p.changeDetector=a,p.dateTimeAdapter=o,p.defaultScrollStrategy=l,p.dateTimeFormats=c,p.document=d,p.backdropClass=[],p.panelClass=[],p._pickerType="both",p._pickerMode="popup",p._opened=!1,p.afterPickerClosed=new s.EventEmitter,p.afterPickerOpen=new s.EventEmitter,p.yearSelected=new s.EventEmitter,p.monthSelected=new s.EventEmitter,p.confirmSelectedChange=new s.EventEmitter,p.disabledChange=new s.EventEmitter,p.dtInputSub=Aw.a.EMPTY,p.hidePickerStreamSub=Aw.a.EMPTY,p.confirmSelectedStreamSub=Aw.a.EMPTY,p.pickerOpenedStreamSub=Aw.a.EMPTY,p.focusedElementBeforeOpen=null,p._selecteds=[],p}return qX(e,t),Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt?this._startAt:this._dtInput?"single"===this._dtInput.selectMode?this._dtInput.value||null:"range"===this._dtInput.selectMode||"rangeFrom"===this._dtInput.selectMode?this._dtInput.values[0]||null:"rangeTo"===this._dtInput.selectMode?this._dtInput.values[1]||null:void 0:null},set:function(t){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pickerType",{get:function(){return this._pickerType},set:function(t){t!==this._pickerType&&(this._pickerType=t,this._dtInput&&this._dtInput.formatNativeInputValue())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pickerMode",{get:function(){return this._pickerMode},set:function(t){this._pickerMode="popup"===t?t:"dialog"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._dtInput?this._dtInput.disabled:!!this._disabled},set:function(t){(t=Ow(t))!==this._disabled&&(this._disabled=t,this.disabledChange.next(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(t){t?this.open():this.close()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dtInput",{get:function(){return this._dtInput},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.changeDetector.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(t){this._selecteds=t,this.changeDetector.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDateTime",{get:function(){return this._dtInput&&this._dtInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDateTime",{get:function(){return this._dtInput&&this._dtInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateTimeFilter",{get:function(){return this._dtInput&&this._dtInput.dateTimeFilter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._dtInput.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return this._dtInput.isInSingleMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return this._dtInput.isInRangeMode},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.close(),this.dtInputSub.unsubscribe(),this.disabledChange.complete(),this.popupRef&&this.popupRef.dispose()},e.prototype.registerInput=function(t){var e=this;if(this._dtInput)throw Error("A Owl DateTimePicker can only be associated with a single input.");this._dtInput=t,this.dtInputSub=this._dtInput.valueChange.subscribe(function(t){Array.isArray(t)?e.selecteds=t:e.selected=t})},e.prototype.open=function(){var t=this;if(!this._opened&&!this.disabled){if(!this._dtInput)throw Error("Attempted to open an DateTimePicker with no associated input.");this.document&&(this.focusedElementBeforeOpen=this.document.activeElement),this.isInSingleMode?this.selected=this._dtInput.value:this.isInRangeMode&&(this.selecteds=this._dtInput.values),this.selected&&"calendar"!==this.pickerType&&this._startAt&&(this.selected=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.selected),this.dateTimeAdapter.getMonth(this.selected),this.dateTimeAdapter.getDate(this.selected),this.dateTimeAdapter.getHours(this._startAt),this.dateTimeAdapter.getMinutes(this._startAt),this.dateTimeAdapter.getSeconds(this._startAt))),"dialog"===this.pickerMode?this.openAsDialog():this.openAsPopup(),this.pickerContainer.picker=this,this.hidePickerStreamSub=this.pickerContainer.hidePickerStream.subscribe(function(){t.close()}),this.confirmSelectedStreamSub=this.pickerContainer.confirmSelectedStream.subscribe(function(e){t.confirmSelect(e)})}},e.prototype.select=function(t){Array.isArray(t)?this.selecteds=t.slice():this.selected=t,"dialog"!==this.pickerMode&&"calendar"===this.pickerType&&("single"===this.selectMode&&this.selected||"rangeFrom"===this.selectMode&&this.selecteds[0]||"rangeTo"===this.selectMode&&this.selecteds[1]||"range"===this.selectMode&&this.selecteds[0]&&this.selecteds[1])&&this.confirmSelect()},e.prototype.selectYear=function(t){this.yearSelected.emit(t)},e.prototype.selectMonth=function(t){this.monthSelected.emit(t)},e.prototype.close=function(){var t=this;if(this._opened){this.popupRef&&this.popupRef.hasAttached()&&this.popupRef.detach(),this.pickerContainerPortal&&this.pickerContainerPortal.isAttached&&this.pickerContainerPortal.detach(),this.hidePickerStreamSub&&(this.hidePickerStreamSub.unsubscribe(),this.hidePickerStreamSub=null),this.confirmSelectedStreamSub&&(this.confirmSelectedStreamSub.unsubscribe(),this.confirmSelectedStreamSub=null),this.pickerOpenedStreamSub&&(this.pickerOpenedStreamSub.unsubscribe(),this.pickerOpenedStreamSub=null),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null);var e=function(){t._opened&&(t._opened=!1,t.afterPickerClosed.emit(null),t.focusedElementBeforeOpen=null)};this.focusedElementBeforeOpen&&"function"==typeof this.focusedElementBeforeOpen.focus?(this.focusedElementBeforeOpen.focus(),setTimeout(e)):e()}},e.prototype.confirmSelect=function(t){if(this.isInSingleMode){var e=this.selected||this.startAt||this.dateTimeAdapter.now();this.confirmSelectedChange.emit(e)}else this.isInRangeMode&&this.confirmSelectedChange.emit(this.selecteds);this.close()},e.prototype.openAsDialog=function(){var t=this;this.dialogRef=this.dialogService.open(vX,{autoFocus:!1,backdropClass:["cdk-overlay-dark-backdrop"].concat(Mw(this.backdropClass)),paneClass:["owl-dt-dialog"].concat(Mw(this.panelClass)),viewContainerRef:this.viewContainerRef,scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy()}),this.pickerContainer=this.dialogRef.componentInstance,this.dialogRef.afterOpen().subscribe(function(){t.afterPickerOpen.emit(null),t._opened=!0}),this.dialogRef.afterClosed().subscribe(function(){return t.close()})},e.prototype.openAsPopup=function(){var t=this;if(this.pickerContainerPortal||(this.pickerContainerPortal=new zE(vX,this.viewContainerRef)),this.popupRef||this.createPopup(),!this.popupRef.hasAttached()){var e=this.popupRef.attach(this.pickerContainerPortal);this.pickerContainer=e.instance,this.ngZone.onStable.asObservable().pipe(Object(Sg.a)(1)).subscribe(function(){t.popupRef.updatePosition()}),this.pickerOpenedStreamSub=this.pickerContainer.pickerOpenedStream.pipe(Object(Sg.a)(1)).subscribe(function(){t.afterPickerOpen.emit(null),t._opened=!0})}},e.prototype.createPopup=function(){var t=this,e=new lI({positionStrategy:this.createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:["cdk-overlay-transparent-backdrop"].concat(Mw(this.backdropClass)),scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy(),panelClass:["owl-dt-popup"].concat(Mw(this.panelClass))});this.popupRef=this.overlay.create(e),Object(gg.a)(this.popupRef.backdropClick(),this.popupRef.detachments(),this.popupRef.keydownEvents().pipe(Object(Cg.a)(function(e){return 27===e.keyCode||t._dtInput&&e.altKey&&38===e.keyCode}))).subscribe(function(){return t.close()})},e.prototype.createPopupPositionStrategy=function(){return this.overlay.position().flexibleConnectedTo(this._dtInput.elementRef).withTransformOriginOn(".owl-dt-container").withFlexibleDimensions(!1).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-176},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-352}])},$X([Object(s.Input)(),WX("design:type",Object)],e.prototype,"backdropClass",void 0),$X([Object(s.Input)(),WX("design:type",Object)],e.prototype,"panelClass",void 0),$X([Object(s.Input)(),WX("design:type",Object),WX("design:paramtypes",[Object])],e.prototype,"startAt",null),$X([Object(s.Input)(),WX("design:type",String),WX("design:paramtypes",[String])],e.prototype,"pickerType",null),$X([Object(s.Input)(),WX("design:type",String),WX("design:paramtypes",[String])],e.prototype,"pickerMode",null),$X([Object(s.Input)(),WX("design:type",Boolean),WX("design:paramtypes",[Boolean])],e.prototype,"disabled",null),$X([Object(s.Input)(),WX("design:type",Boolean),WX("design:paramtypes",[Boolean])],e.prototype,"opened",null),$X([Object(s.Input)(),WX("design:type",Object)],e.prototype,"scrollStrategy",void 0),$X([Object(s.Output)(),WX("design:type",Object)],e.prototype,"afterPickerClosed",void 0),$X([Object(s.Output)(),WX("design:type",Object)],e.prototype,"afterPickerOpen",void 0),$X([Object(s.Output)(),WX("design:type",Object)],e.prototype,"yearSelected",void 0),$X([Object(s.Output)(),WX("design:type",Object)],e.prototype,"monthSelected",void 0),e=$X([Object(s.Component)({selector:"owl-date-time",exportAs:"owlDateTime",template:"",styles:[""],changeDetection:s.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1}),YX(5,Object(s.Optional)()),YX(6,Object(s.Inject)(GX)),YX(7,Object(s.Optional)()),YX(7,Object(s.Inject)(rX)),YX(8,Object(s.Optional)()),YX(8,Object(s.Inject)(Cu.DOCUMENT)),WX("design:paramtypes",[II,s.ViewContainerRef,HX,s.NgZone,s.ChangeDetectorRef,sX,Function,Object,Object])],e)}(CX),XX=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},QX=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},JX=function(){function t(t){this.changeDetector=t,this.stateChanges=Aw.a.EMPTY}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled?this.dtPicker.disabled:!!this._disabled},set:function(t){this._disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTTriggerDisabledClass",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngOnChanges=function(t){t.datepicker&&this.watchStateChanges()},t.prototype.ngAfterContentInit=function(){this.watchStateChanges()},t.prototype.ngOnDestroy=function(){this.stateChanges.unsubscribe()},t.prototype.handleClickOnHost=function(t){this.dtPicker&&(this.dtPicker.open(),t.stopPropagation())},t.prototype.watchStateChanges=function(){var t=this;this.stateChanges.unsubscribe();var e=this.dtPicker&&this.dtPicker.dtInput?this.dtPicker.dtInput.disabledChange:Object(Dw.a)(),n=this.dtPicker?this.dtPicker.disabledChange:Object(Dw.a)();this.stateChanges=Object(gg.a)(n,e).subscribe(function(){t.changeDetector.markForCheck()})},XX([Object(s.Input)("owlDateTimeTrigger"),QX("design:type",ZX)],t.prototype,"dtPicker",void 0),XX([Object(s.Input)(),QX("design:type",Boolean),QX("design:paramtypes",[Boolean])],t.prototype,"disabled",null),XX([Object(s.HostBinding)("class.owl-dt-trigger-disabled"),QX("design:type",Boolean),QX("design:paramtypes",[])],t.prototype,"owlDTTriggerDisabledClass",null),XX([Object(s.HostListener)("click",["$event"]),QX("design:type",Function),QX("design:paramtypes",[Event]),QX("design:returntype",void 0)],t.prototype,"handleClickOnHost",null),t=XX([Object(s.Directive)({selector:"[owlDateTimeTrigger]"}),QX("design:paramtypes",[s.ChangeDetectorRef])],t)}(),tQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},eQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},nQ=function(t,e){return function(n,i){e(n,i,t)}},iQ={provide:Wh,useExisting:Object(s.forwardRef)(function(){return rQ}),multi:!0},sQ={provide:tm,useExisting:Object(s.forwardRef)(function(){return rQ}),multi:!0},rQ=function(){function t(t,e,n,i){var r=this;if(this.elmRef=t,this.renderer=e,this.dateTimeAdapter=n,this.dateTimeFormats=i,this._selectMode="single",this.rangeSeparator="~",this._values=[],this.dateTimeChange=new s.EventEmitter,this.dateTimeInput=new s.EventEmitter,this.dtPickerSub=Aw.a.EMPTY,this.localeSub=Aw.a.EMPTY,this.lastValueValid=!0,this.onModelChange=function(){},this.onModelTouched=function(){},this.validatorOnChange=function(){},this.parseValidator=function(){return r.lastValueValid?null:{owlDateTimeParse:{text:r.elmRef.nativeElement.value}}},this.minValidator=function(t){if(r.isInSingleMode){var e=r.getValidDate(r.dateTimeAdapter.deserialize(t.value));return!r.min||!e||r.dateTimeAdapter.compare(r.min,e)<=0?null:{owlDateTimeMin:{min:r.min,actual:e}}}if(r.isInRangeMode&&t.value){var n=r.getValidDate(r.dateTimeAdapter.deserialize(t.value[0])),i=r.getValidDate(r.dateTimeAdapter.deserialize(t.value[1]));return!r.min||!n||!i||r.dateTimeAdapter.compare(r.min,n)<=0?null:{owlDateTimeMin:{min:r.min,actual:[n,i]}}}},this.maxValidator=function(t){if(r.isInSingleMode){var e=r.getValidDate(r.dateTimeAdapter.deserialize(t.value));return!r.max||!e||r.dateTimeAdapter.compare(r.max,e)>=0?null:{owlDateTimeMax:{max:r.max,actual:e}}}if(r.isInRangeMode&&t.value){var n=r.getValidDate(r.dateTimeAdapter.deserialize(t.value[0])),i=r.getValidDate(r.dateTimeAdapter.deserialize(t.value[1]));return!r.max||!n||!i||r.dateTimeAdapter.compare(r.max,i)>=0?null:{owlDateTimeMax:{max:r.max,actual:[n,i]}}}},this.filterValidator=function(t){var e=r.getValidDate(r.dateTimeAdapter.deserialize(t.value));return r._dateTimeFilter&&e&&!r._dateTimeFilter(e)?{owlDateTimeFilter:!0}:null},this.rangeValidator=function(t){if(r.isInSingleMode||!t.value)return null;var e=r.getValidDate(r.dateTimeAdapter.deserialize(t.value[0])),n=r.getValidDate(r.dateTimeAdapter.deserialize(t.value[1]));return!e||!n||r.dateTimeAdapter.compare(e,n)<=0?null:{owlDateTimeRange:!0}},this.validator=im.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator,this.rangeValidator]),this.valueChange=new s.EventEmitter,this.disabledChange=new s.EventEmitter,!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimePicker. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this.localeSub=this.dateTimeAdapter.localeChanges.subscribe(function(){r.value=r.value})}return Object.defineProperty(t.prototype,"owlDateTime",{set:function(t){this.registerDateTimePicker(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDateTimeFilter",{set:function(t){this._dateTimeFilter=t,this.validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateTimeFilter",{get:function(){return this._dateTimeFilter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=Ow(t),n=this.elmRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.disabledChange.emit(e)),e&&n.blur&&n.blur()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(t)),this.validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(t)),this.validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectMode",{get:function(){return this._selectMode},set:function(t){if("single"!==t&&"range"!==t&&"rangeFrom"!==t&&"rangeTo"!==t)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this.dateTimeAdapter.deserialize(t),this.lastValueValid=!t||this.dateTimeAdapter.isValid(t),t=this.getValidDate(t);var e=this._value;this._value=t,this.formatNativeInputValue(),this.dateTimeAdapter.isEqual(e,t)||this.valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._values},set:function(t){var e=this;t&&t.length>0?(this._values=t.map(function(t){return t=e.dateTimeAdapter.deserialize(t),e.getValidDate(t)}),this.lastValueValid=(!this._values[0]||this.dateTimeAdapter.isValid(this._values[0]))&&(!this._values[1]||this.dateTimeAdapter.isValid(this._values[1]))):(this._values=[],this.lastValueValid=!0),this.formatNativeInputValue(),this.valueChange.emit(this._values)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elementRef",{get:function(){return this.elmRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInSingleMode",{get:function(){return"single"===this._selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInRangeMode",{get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDateTimeInputAriaHaspopup",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDateTimeInputAriaOwns",{get:function(){return this.dtPicker.opened&&this.dtPicker.id||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minIso8601",{get:function(){return this.min?this.dateTimeAdapter.toIso8601(this.min):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxIso8601",{get:function(){return this.max?this.dateTimeAdapter.toIso8601(this.max):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDateTimeInputDisabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){if(!this.dtPicker)throw Error("OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component")},t.prototype.ngAfterContentInit=function(){var t=this;this.dtPickerSub=this.dtPicker.confirmSelectedChange.subscribe(function(e){Array.isArray(e)?t.values=e:t.value=e,t.onModelChange(e),t.onModelTouched(),t.dateTimeChange.emit({source:t,value:e,input:t.elmRef.nativeElement}),t.dateTimeInput.emit({source:t,value:e,input:t.elmRef.nativeElement})})},t.prototype.ngOnDestroy=function(){this.dtPickerSub.unsubscribe(),this.localeSub.unsubscribe(),this.valueChange.complete(),this.disabledChange.complete()},t.prototype.writeValue=function(t){this.isInSingleMode?this.value=t:this.values=t},t.prototype.registerOnChange=function(t){this.onModelChange=t},t.prototype.registerOnTouched=function(t){this.onModelTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.validate=function(t){return this.validator?this.validator(t):null},t.prototype.registerOnValidatorChange=function(t){this.validatorOnChange=t},t.prototype.handleKeydownOnHost=function(t){t.altKey&&40===t.keyCode&&(this.dtPicker.open(),t.preventDefault())},t.prototype.handleBlurOnHost=function(t){this.onModelTouched()},t.prototype.handleInputOnHost=function(t){var e=t.target.value;"single"===this._selectMode?this.changeInputInSingleMode(e):"range"===this._selectMode?this.changeInputInRangeMode(e):this.changeInputInRangeFromToMode(e)},t.prototype.handleChangeOnHost=function(t){var e;this.isInSingleMode?e=this.value:this.isInRangeMode&&(e=this.values),this.dateTimeChange.emit({source:this,value:e,input:this.elmRef.nativeElement})},t.prototype.formatNativeInputValue=function(){if(this.isInSingleMode)this.renderer.setProperty(this.elmRef.nativeElement,"value",this._value?this.dateTimeAdapter.format(this._value,this.dtPicker.formatString):"");else if(this.isInRangeMode)if(this._values&&this.values.length>0){var t=this._values[0],e=this._values[1],n=t?this.dateTimeAdapter.format(t,this.dtPicker.formatString):"",i=e?this.dateTimeAdapter.format(e,this.dtPicker.formatString):"";n||i?"range"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",n+" "+this.rangeSeparator+" "+i):"rangeFrom"===this._selectMode?this.renderer.setProperty(this.elmRef.nativeElement,"value",n):"rangeTo"===this._selectMode&&this.renderer.setProperty(this.elmRef.nativeElement,"value",i):this.renderer.setProperty(this.elmRef.nativeElement,"value",null)}else this.renderer.setProperty(this.elmRef.nativeElement,"value","")},t.prototype.registerDateTimePicker=function(t){t&&(this.dtPicker=t,this.dtPicker.registerInput(this))},t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},t.prototype.convertTimeStringToDateTimeString=function(t,e){if(t){var n=e||this.dateTimeAdapter.now();return this.dateTimeAdapter.format(n,this.dateTimeFormats.datePickerInput)+" "+t}return null},t.prototype.changeInputInSingleMode=function(t){var e=t;"timer"===this.dtPicker.pickerType&&(e=this.convertTimeStringToDateTimeString(e,this.value));var n=this.dateTimeAdapter.parse(e,this.dateTimeFormats.parseInput);this.lastValueValid=!n||this.dateTimeAdapter.isValid(n),n=this.getValidDate(n),this.isSameValue(n,this._value)&&null!==n||(this._value=n,this.valueChange.emit(n),this.onModelChange(n),this.dateTimeInput.emit({source:this,value:n,input:this.elmRef.nativeElement}))},t.prototype.changeInputInRangeFromToMode=function(t){var e="rangeFrom"===this._selectMode?this._values[0]:this._values[1];"timer"===this.dtPicker.pickerType&&(t=this.convertTimeStringToDateTimeString(t,e));var n=this.dateTimeAdapter.parse(t,this.dateTimeFormats.parseInput);this.lastValueValid=!n||this.dateTimeAdapter.isValid(n),n=this.getValidDate(n),"rangeFrom"===this._selectMode&&this.isSameValue(n,this._values[0])&&n||"rangeTo"===this._selectMode&&this.isSameValue(n,this._values[1])&&n||(this._values="rangeFrom"===this._selectMode?[n,this._values[1]]:[this._values[0],n],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))},t.prototype.changeInputInRangeMode=function(t){var e=t.split(this.rangeSeparator),n=e[0],i=e[1];"timer"===this.dtPicker.pickerType&&(n=this.convertTimeStringToDateTimeString(n,this.values[0]),i=this.convertTimeStringToDateTimeString(i,this.values[1]));var s=this.dateTimeAdapter.parse(n,this.dateTimeFormats.parseInput),r=this.dateTimeAdapter.parse(i,this.dateTimeFormats.parseInput);this.lastValueValid=(!s||this.dateTimeAdapter.isValid(s))&&(!r||this.dateTimeAdapter.isValid(r)),s=this.getValidDate(s),r=this.getValidDate(r),this.isSameValue(s,this._values[0])&&this.isSameValue(r,this._values[1])&&(null!==s||null!==r)||(this._values=[s,r],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))},t.prototype.isSameValue=function(t,e){return t&&e?0===this.dateTimeAdapter.compare(t,e):t==e},tQ([Object(s.Input)(),eQ("design:type",ZX),eQ("design:paramtypes",[ZX])],t.prototype,"owlDateTime",null),tQ([Object(s.Input)(),eQ("design:type",Function),eQ("design:paramtypes",[Function])],t.prototype,"owlDateTimeFilter",null),tQ([Object(s.Input)(),eQ("design:type",Boolean)],t.prototype,"_disabled",void 0),tQ([Object(s.Input)(),eQ("design:type",Object),eQ("design:paramtypes",[Object])],t.prototype,"min",null),tQ([Object(s.Input)(),eQ("design:type",Object),eQ("design:paramtypes",[Object])],t.prototype,"max",null),tQ([Object(s.Input)(),eQ("design:type",String),eQ("design:paramtypes",[String])],t.prototype,"selectMode",null),tQ([Object(s.Input)(),eQ("design:type",Object)],t.prototype,"rangeSeparator",void 0),tQ([Object(s.Input)(),eQ("design:type",Object),eQ("design:paramtypes",[Object])],t.prototype,"value",null),tQ([Object(s.Input)(),eQ("design:type",Array),eQ("design:paramtypes",[Array])],t.prototype,"values",null),tQ([Object(s.Output)(),eQ("design:type",Object)],t.prototype,"dateTimeChange",void 0),tQ([Object(s.Output)(),eQ("design:type",Object)],t.prototype,"dateTimeInput",void 0),tQ([Object(s.HostBinding)("attr.aria-haspopup"),eQ("design:type",Boolean),eQ("design:paramtypes",[])],t.prototype,"owlDateTimeInputAriaHaspopup",null),tQ([Object(s.HostBinding)("attr.aria-owns"),eQ("design:type",String),eQ("design:paramtypes",[])],t.prototype,"owlDateTimeInputAriaOwns",null),tQ([Object(s.HostBinding)("attr.min"),eQ("design:type",String),eQ("design:paramtypes",[])],t.prototype,"minIso8601",null),tQ([Object(s.HostBinding)("attr.max"),eQ("design:type",String),eQ("design:paramtypes",[])],t.prototype,"maxIso8601",null),tQ([Object(s.HostBinding)("disabled"),eQ("design:type",Boolean),eQ("design:paramtypes",[])],t.prototype,"owlDateTimeInputDisabled",null),tQ([Object(s.HostListener)("keydown",["$event"]),eQ("design:type",Function),eQ("design:paramtypes",[KeyboardEvent]),eQ("design:returntype",void 0)],t.prototype,"handleKeydownOnHost",null),tQ([Object(s.HostListener)("blur",["$event"]),eQ("design:type",Function),eQ("design:paramtypes",[Event]),eQ("design:returntype",void 0)],t.prototype,"handleBlurOnHost",null),tQ([Object(s.HostListener)("input",["$event"]),eQ("design:type",Function),eQ("design:paramtypes",[Object]),eQ("design:returntype",void 0)],t.prototype,"handleInputOnHost",null),tQ([Object(s.HostListener)("change",["$event"]),eQ("design:type",Function),eQ("design:paramtypes",[Object]),eQ("design:returntype",void 0)],t.prototype,"handleChangeOnHost",null),t=tQ([Object(s.Directive)({selector:"input[owlDateTime]",exportAs:"owlDateTimeInput",providers:[iQ,sQ]}),nQ(2,Object(s.Optional)()),nQ(3,Object(s.Optional)()),nQ(3,Object(s.Inject)(rX)),eQ("design:paramtypes",[s.ElementRef,s.Renderer2,sX,Object])],t)}(),aQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},oQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},lQ=function(t,e,n,i,s,r){void 0===s&&(s=!1),void 0===r&&(r=""),this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.out=s,this.cellClass=r},cQ=function(){function t(t,e){this.elmRef=t,this.ngZone=e,this.activeCell=0,this.numCols=7,this.cellRatio=1,this.select=new s.EventEmitter}return Object.defineProperty(t.prototype,"owlDTCalendarBodyClass",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.selectCell=function(t){this.select.emit(t)},t.prototype.isActiveCell=function(t,e){return t*this.numCols+e===this.activeCell},t.prototype.isSelected=function(t){if(!this.selectedValues||0===this.selectedValues.length)return!1;if(this.isInSingleMode)return t===this.selectedValues[0];if(this.isInRangeMode){var e=this.selectedValues[0],n=this.selectedValues[1];return t===e||t===n}},t.prototype.isInRange=function(t){if(this.isInRangeMode){var e=this.selectedValues[0],n=this.selectedValues[1];return null!==e&&null!==n?t>=e&&t<=n:t===e||t===n}},t.prototype.isRangeFrom=function(t){if(this.isInRangeMode){var e=this.selectedValues[0];return null!==e&&t===e}},t.prototype.isRangeTo=function(t){if(this.isInRangeMode){var e=this.selectedValues[1];return null!==e&&t===e}},t.prototype.focusActiveCell=function(){var t=this;this.ngZone.runOutsideAngular(function(){t.ngZone.onStable.asObservable().pipe(Object(Sg.a)(1)).subscribe(function(){t.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()})})},aQ([Object(s.Input)(),oQ("design:type",Object)],t.prototype,"activeCell",void 0),aQ([Object(s.Input)(),oQ("design:type",Array)],t.prototype,"rows",void 0),aQ([Object(s.Input)(),oQ("design:type",Object)],t.prototype,"numCols",void 0),aQ([Object(s.Input)(),oQ("design:type",Object)],t.prototype,"cellRatio",void 0),aQ([Object(s.Input)(),oQ("design:type",Number)],t.prototype,"todayValue",void 0),aQ([Object(s.Input)(),oQ("design:type",Array)],t.prototype,"selectedValues",void 0),aQ([Object(s.Input)(),oQ("design:type",String)],t.prototype,"selectMode",void 0),aQ([Object(s.Output)(),oQ("design:type",Object)],t.prototype,"select",void 0),aQ([Object(s.HostBinding)("class.owl-dt-calendar-body"),oQ("design:type",Boolean),oQ("design:paramtypes",[])],t.prototype,"owlDTCalendarBodyClass",null),t=aQ([Object(s.Component)({selector:"[owl-date-time-calendar-body]",exportAs:"owlDateTimeCalendarBody",template:'<tr *ngFor="let row of rows; let rowIndex = index" role="row"><td *ngFor="let item of row; let colIndex = index" class="owl-dt-calendar-cell {{item.cellClass}}" [tabindex]="isActiveCell(rowIndex, colIndex) ? 0 : -1" [class.owl-dt-calendar-cell-active]="isActiveCell(rowIndex, colIndex)" [class.owl-dt-calendar-cell-disabled]="!item.enabled" [class.owl-dt-calendar-cell-in-range]="isInRange(item.value)" [class.owl-dt-calendar-cell-range-from]="isRangeFrom(item.value)" [class.owl-dt-calendar-cell-range-to]="isRangeTo(item.value)" [attr.aria-label]="item.ariaLabel" [attr.aria-disabled]="!item.enabled || null" [style.width.%]="100 / numCols" [style.paddingTop.%]="50 * cellRatio / numCols" [style.paddingBottom.%]="50 * cellRatio / numCols" (click)="selectCell(item)"><span class="owl-dt-calendar-cell-content" [ngClass]="{\n                \'owl-dt-calendar-cell-out\': item.out,\n                \'owl-dt-calendar-cell-today\': item.value === todayValue,\n                \'owl-dt-calendar-cell-selected\': isSelected(item.value)\n              }">{{item.displayValue}}</span></td></tr>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),oQ("design:paramtypes",[s.ElementRef,s.NgZone])],t)}(),dQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},pQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},uQ=function(t,e){return function(n,i){e(n,i,t)}},hQ=function(){function t(t,e,n){this.cdRef=t,this.dateTimeAdapter=e,this.dateTimeFormats=n,this.hideOtherMonths=!1,this._firstDayOfWeek=0,this._selectMode="single",this._selecteds=[],this.localeSub=Aw.a.EMPTY,this.initiated=!1,this.selectedDates=[],this.selectedChange=new s.EventEmitter,this.userSelection=new s.EventEmitter,this.pickerMomentChange=new s.EventEmitter}return Object.defineProperty(t.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(t){(t=Pw(t))>=0&&t<=6&&t!==this._firstDayOfWeek&&(this._firstDayOfWeek=t,this.initiated&&(this.generateWeekDays(),this.generateCalendar(),this.cdRef.markForCheck()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectMode",{get:function(){return this._selectMode},set:function(t){this._selectMode=t,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){var e=this._selected;t=this.dateTimeAdapter.deserialize(t),this._selected=this.getValidDate(t),this.dateTimeAdapter.isSameDay(e,this._selected)||this.setSelectedDates()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selecteds",{get:function(){return this._selecteds},set:function(t){var e=this;this._selecteds=t.map(function(t){return t=e.dateTimeAdapter.deserialize(t),e.getValidDate(t)}),this.setSelectedDates()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(t){var e=this._pickerMoment;t=this.dateTimeAdapter.deserialize(t),this._pickerMoment=this.getValidDate(t)||this.dateTimeAdapter.now(),this.firstDateOfMonth=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this._pickerMoment),this.dateTimeAdapter.getMonth(this._pickerMoment),1),!this.isSameMonth(e,this._pickerMoment)&&this.initiated&&this.generateCalendar()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._minDate=this.getValidDate(t),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._maxDate=this.getValidDate(t),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"weekdays",{get:function(){return this._weekdays},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"days",{get:function(){return this._days},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeCell",{get:function(){if(this.pickerMoment)return this.dateTimeAdapter.getDate(this.pickerMoment)+this.firstRowOffset-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.generateWeekDays(),this.localeSub=this.dateTimeAdapter.localeChanges.subscribe(function(){t.generateWeekDays(),t.generateCalendar(),t.cdRef.markForCheck()})},t.prototype.ngAfterContentInit=function(){this.generateCalendar(),this.initiated=!0},t.prototype.ngOnDestroy=function(){this.localeSub.unsubscribe()},t.prototype.selectCalendarCell=function(t){!t.enabled||this.hideOtherMonths&&t.out||this.selectDate(t.value)},t.prototype.selectDate=function(t){var e=t-1,n=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,e);this.selectedChange.emit(n),this.userSelection.emit()},t.prototype.handleCalendarKeydown=function(t){var e;switch(t.keyCode){case 37:e=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-1),this.pickerMomentChange.emit(e);break;case 39:e=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1),this.pickerMomentChange.emit(e);break;case 38:e=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-7),this.pickerMomentChange.emit(e);break;case 40:e=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,7),this.pickerMomentChange.emit(e);break;case 36:e=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(e);break;case 35:e=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment)-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(e);break;case 33:e=t.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(e);break;case 34:e=t.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(e);break;case 13:this.dateFilter&&!this.dateFilter(this.pickerMoment)||this.selectDate(this.dateTimeAdapter.getDate(this.pickerMoment));break;default:return}this.focusActiveCell(),t.preventDefault()},t.prototype.generateWeekDays=function(){var t=this.dateTimeAdapter.getDayOfWeekNames("long"),e=this.dateTimeAdapter.getDayOfWeekNames("short"),n=this.dateTimeAdapter.getDayOfWeekNames("narrow"),i=this.firstDayOfWeek,s=t.map(function(t,i){return{long:t,short:e[i],narrow:n[i]}});this._weekdays=s.slice(i).concat(s.slice(0,i)),this.dateNames=this.dateTimeAdapter.getDateNames()},t.prototype.generateCalendar=function(){if(this.pickerMoment){this.todayDate=null;var t=0-(this.dateTimeAdapter.getDay(this.firstDateOfMonth)+(7-this.firstDayOfWeek))%7;this.firstRowOffset=Math.abs(t),this._days=[];for(var e=0;e<6;e++){for(var n=[],i=0;i<7;i++){var s=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,t),r=this.createDateCell(s,t);this.dateTimeAdapter.isSameDay(this.dateTimeAdapter.now(),s)&&(this.todayDate=t+1),n.push(r),t+=1}this._days.push(n)}this.setSelectedDates()}},t.prototype.createDateCell=function(t,e){var n=this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment),i=this.dateTimeAdapter.getDate(t).toString(),s=this.dateTimeAdapter.format(t,this.dateTimeFormats.dateA11yLabel),r=this.isDateEnabled(t),a=e+1,o=a<1||a>n,l="owl-dt-day-"+this.dateTimeAdapter.getDay(t);return new lQ(a,i,s,r,o,l)},t.prototype.isDateEnabled=function(t){return!!t&&(!this.dateFilter||this.dateFilter(t))&&(!this.minDate||this.dateTimeAdapter.compare(t,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(t,this.maxDate)<=0)},t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},t.prototype.isSameMonth=function(t,e){return!!(t&&e&&this.dateTimeAdapter.isValid(t)&&this.dateTimeAdapter.isValid(e)&&this.dateTimeAdapter.getYear(t)===this.dateTimeAdapter.getYear(e)&&this.dateTimeAdapter.getMonth(t)===this.dateTimeAdapter.getMonth(e))},t.prototype.setSelectedDates=function(){var t=this;if(this.selectedDates=[],this.firstDateOfMonth)if(this.isInSingleMode&&this.selected){var e=this.dateTimeAdapter.differenceInCalendarDays(this.selected,this.firstDateOfMonth);this.selectedDates[0]=e+1}else this.isInRangeMode&&this.selecteds&&(this.selectedDates=this.selecteds.map(function(e){return t.dateTimeAdapter.isValid(e)?t.dateTimeAdapter.differenceInCalendarDays(e,t.firstDateOfMonth)+1:null}))},t.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},dQ([Object(s.Input)(),pQ("design:type",Boolean)],t.prototype,"hideOtherMonths",void 0),dQ([Object(s.Input)(),pQ("design:type",Number),pQ("design:paramtypes",[Number])],t.prototype,"firstDayOfWeek",null),dQ([Object(s.Input)(),pQ("design:type",String),pQ("design:paramtypes",[String])],t.prototype,"selectMode",null),dQ([Object(s.Input)(),pQ("design:type",Object),pQ("design:paramtypes",[Object])],t.prototype,"selected",null),dQ([Object(s.Input)(),pQ("design:type",Array),pQ("design:paramtypes",[Array])],t.prototype,"selecteds",null),dQ([Object(s.Input)(),pQ("design:type",Object),pQ("design:paramtypes",[Object])],t.prototype,"pickerMoment",null),dQ([Object(s.Input)(),pQ("design:type",Function),pQ("design:paramtypes",[Function])],t.prototype,"dateFilter",null),dQ([Object(s.Input)(),pQ("design:type",Object),pQ("design:paramtypes",[Object])],t.prototype,"minDate",null),dQ([Object(s.Input)(),pQ("design:type",Object),pQ("design:paramtypes",[Object])],t.prototype,"maxDate",null),dQ([Object(s.Output)(),pQ("design:type",Object)],t.prototype,"selectedChange",void 0),dQ([Object(s.Output)(),pQ("design:type",Object)],t.prototype,"userSelection",void 0),dQ([Object(s.Output)(),pQ("design:type",s.EventEmitter)],t.prototype,"pickerMomentChange",void 0),dQ([Object(s.ViewChild)(cQ),pQ("design:type",cQ)],t.prototype,"calendarBodyElm",void 0),dQ([Object(s.HostBinding)("class.owl-dt-calendar-view"),pQ("design:type",Boolean),pQ("design:paramtypes",[])],t.prototype,"owlDTCalendarView",null),t=dQ([Object(s.Component)({selector:"owl-date-time-month-view",exportAs:"owlYearView",template:'<table class="owl-dt-calendar-table owl-dt-calendar-month-table" [class.owl-dt-calendar-only-current-month]="hideOtherMonths"><thead class="owl-dt-calendar-header"><tr class="owl-dt-weekdays"><th *ngFor="let weekday of weekdays" [attr.aria-label]="weekday.long" class="owl-dt-weekday" scope="col"><span>{{weekday.short}}</span></th></tr><tr><th class="owl-dt-calendar-table-divider" aria-hidden="true" colspan="7"></th></tr></thead><tbody owl-date-time-calendar-body role="grid" [rows]="days" [todayValue]="todayDate" [selectedValues]="selectedDates" [selectMode]="selectMode" [activeCell]="activeCell" (keydown)="handleCalendarKeydown($event)" (select)="selectCalendarCell($event)"></tbody></table>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),uQ(1,Object(s.Optional)()),uQ(2,Object(s.Optional)()),uQ(2,Object(s.Inject)(rX)),pQ("design:paramtypes",[s.ChangeDetectorRef,sX,Object])],t)}(),mQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},fQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},gQ=function(t,e){return function(n,i){e(n,i,t)}},bQ=function(){function t(t,e,n){this.cdRef=t,this.dateTimeAdapter=e,this.dateTimeFormats=n,this._selectMode="single",this._selecteds=[],this.localeSub=Aw.a.EMPTY,this.initiated=!1,this.selectedMonths=[],this.change=new s.EventEmitter,this.monthSelected=new s.EventEmitter,this.pickerMomentChange=new s.EventEmitter,this.keyboardEnter=new s.EventEmitter,this.monthNames=this.dateTimeAdapter.getMonthNames("short")}return Object.defineProperty(t.prototype,"selectMode",{get:function(){return this._selectMode},set:function(t){this._selectMode=t,this.initiated&&(this.generateMonthList(),this.cdRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._selected=this.getValidDate(t),this.setSelectedMonths()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selecteds",{get:function(){return this._selecteds},set:function(t){this._selecteds=[];for(var e=0;e<t.length;e++){var n=this.dateTimeAdapter.deserialize(t[e]);this._selecteds.push(this.getValidDate(n))}this.setSelectedMonths()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(t){var e=this._pickerMoment;t=this.dateTimeAdapter.deserialize(t),this._pickerMoment=this.getValidDate(t)||this.dateTimeAdapter.now(),!this.hasSameYear(e,this._pickerMoment)&&this.initiated&&this.generateMonthList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this.initiated&&this.generateMonthList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._minDate=this.getValidDate(t),this.initiated&&this.generateMonthList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._maxDate=this.getValidDate(t),this.initiated&&this.generateMonthList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"months",{get:function(){return this._months},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeCell",{get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getMonth(this._pickerMoment)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.localeSub=this.dateTimeAdapter.localeChanges.subscribe(function(){t.generateMonthList(),t.cdRef.markForCheck()})},t.prototype.ngAfterContentInit=function(){this.generateMonthList(),this.initiated=!0},t.prototype.ngOnDestroy=function(){this.localeSub.unsubscribe()},t.prototype.selectCalendarCell=function(t){this.selectMonth(t.value)},t.prototype.selectMonth=function(t){var e=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),t,1);this.monthSelected.emit(e);var n=this.dateTimeAdapter.getNumDaysInMonth(e),i=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),t,Math.min(n,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(i)},t.prototype.handleCalendarKeydown=function(t){var e;switch(t.keyCode){case 37:e=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(e);break;case 39:e=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(e);break;case 38:e=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-3),this.pickerMomentChange.emit(e);break;case 40:e=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,3),this.pickerMomentChange.emit(e);break;case 36:e=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(e);break;case 35:e=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,11-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(e);break;case 33:e=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,t.altKey?-10:-1),this.pickerMomentChange.emit(e);break;case 34:e=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,t.altKey?10:1),this.pickerMomentChange.emit(e);break;case 13:this.selectMonth(this.dateTimeAdapter.getMonth(this.pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),t.preventDefault()},t.prototype.generateMonthList=function(){if(this.pickerMoment){this.setSelectedMonths(),this.todayMonth=this.getMonthInCurrentYear(this.dateTimeAdapter.now()),this._months=[];for(var t=0;t<4;t++){for(var e=[],n=0;n<3;n++){var i=n+3*t,s=this.createMonthCell(i);e.push(s)}this._months.push(e)}}},t.prototype.createMonthCell=function(t){var e=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),t,1),n=this.dateTimeAdapter.format(e,this.dateTimeFormats.monthYearA11yLabel),i="owl-dt-month-"+t;return new lQ(t,this.monthNames[t],n,this.isMonthEnabled(t),!1,i)},t.prototype.isMonthEnabled=function(t){for(var e=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),t,1);this.dateTimeAdapter.getMonth(e)===t;e=this.dateTimeAdapter.addCalendarDays(e,1))if(e&&(!this.dateFilter||this.dateFilter(e))&&(!this.minDate||this.dateTimeAdapter.compare(e,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(e,this.maxDate)<=0))return!0;return!1},t.prototype.getMonthInCurrentYear=function(t){if(this.getValidDate(t)&&this.getValidDate(this._pickerMoment)){var e=this.dateTimeAdapter.compareYear(t,this._pickerMoment);return e<0?-1:e>0?12:this.dateTimeAdapter.getMonth(t)}return null},t.prototype.setSelectedMonths=function(){this.selectedMonths=[],this.isInSingleMode&&this.selected&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selecteds[0]),this.selectedMonths[1]=this.getMonthInCurrentYear(this.selecteds[1]))},t.prototype.hasSameYear=function(t,e){return!(!t||!e||this.dateTimeAdapter.getYear(t)!==this.dateTimeAdapter.getYear(e))},t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},t.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},mQ([Object(s.Input)(),fQ("design:type",String),fQ("design:paramtypes",[String])],t.prototype,"selectMode",null),mQ([Object(s.Input)(),fQ("design:type",Object),fQ("design:paramtypes",[Object])],t.prototype,"selected",null),mQ([Object(s.Input)(),fQ("design:type",Array),fQ("design:paramtypes",[Array])],t.prototype,"selecteds",null),mQ([Object(s.Input)(),fQ("design:type",Object),fQ("design:paramtypes",[Object])],t.prototype,"pickerMoment",null),mQ([Object(s.Input)(),fQ("design:type",Function),fQ("design:paramtypes",[Function])],t.prototype,"dateFilter",null),mQ([Object(s.Input)(),fQ("design:type",Object),fQ("design:paramtypes",[Object])],t.prototype,"minDate",null),mQ([Object(s.Input)(),fQ("design:type",Object),fQ("design:paramtypes",[Object])],t.prototype,"maxDate",null),mQ([Object(s.Output)(),fQ("design:type",Object)],t.prototype,"change",void 0),mQ([Object(s.Output)(),fQ("design:type",Object)],t.prototype,"monthSelected",void 0),mQ([Object(s.Output)(),fQ("design:type",s.EventEmitter)],t.prototype,"pickerMomentChange",void 0),mQ([Object(s.Output)(),fQ("design:type",s.EventEmitter)],t.prototype,"keyboardEnter",void 0),mQ([Object(s.ViewChild)(cQ),fQ("design:type",cQ)],t.prototype,"calendarBodyElm",void 0),mQ([Object(s.HostBinding)("class.owl-dt-calendar-view"),fQ("design:type",Boolean),fQ("design:paramtypes",[])],t.prototype,"owlDTCalendarView",null),t=mQ([Object(s.Component)({selector:"owl-date-time-year-view",exportAs:"owlMonthView",template:'<table class="owl-dt-calendar-table owl-dt-calendar-year-table"><thead class="owl-dt-calendar-header"><tr><th class="owl-dt-calendar-table-divider" aria-hidden="true" colspan="3"></th></tr></thead><tbody owl-date-time-calendar-body role="grid" [rows]="months" [numCols]="3" [cellRatio]="3 / 7" [activeCell]="activeCell" [todayValue]="todayMonth" [selectedValues]="selectedMonths" [selectMode]="selectMode" (keydown)="handleCalendarKeydown($event)" (select)="selectCalendarCell($event)"></tbody></table>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),gQ(1,Object(s.Optional)()),gQ(2,Object(s.Optional)()),gQ(2,Object(s.Inject)(rX)),fQ("design:paramtypes",[s.ChangeDetectorRef,sX,Object])],t)}(),vQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},yQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},_Q=function(t,e){return function(n,i){e(n,i,t)}},wQ=function(){function t(t,e,n){this.cdRef=t,this.pickerIntl=e,this.dateTimeAdapter=n,this._selectMode="single",this._selecteds=[],this.initiated=!1,this.change=new s.EventEmitter,this.yearSelected=new s.EventEmitter,this.pickerMomentChange=new s.EventEmitter,this.keyboardEnter=new s.EventEmitter}return Object.defineProperty(t.prototype,"selectMode",{get:function(){return this._selectMode},set:function(t){this._selectMode=t,this.initiated&&(this.setSelectedYears(),this.cdRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){var e=this._selected;t=this.dateTimeAdapter.deserialize(t),this._selected=this.getValidDate(t),this.dateTimeAdapter.isSameDay(e,this._selected)||this.setSelectedYears()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selecteds",{get:function(){return this._selecteds},set:function(t){var e=this;this._selecteds=t.map(function(t){return t=e.dateTimeAdapter.deserialize(t),e.getValidDate(t)}),this.setSelectedYears()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pickerMoment",{get:function(){return this._pickerMoment},set:function(t){var e=this._pickerMoment;t=this.dateTimeAdapter.deserialize(t),this._pickerMoment=this.getValidDate(t)||this.dateTimeAdapter.now(),e&&this._pickerMoment&&!this.isSameYearList(e,this._pickerMoment)&&this.generateYearList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(t){this._dateFilter=t,this.initiated&&this.generateYearList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._minDate=this.getValidDate(t),this.initiated&&this.generateYearList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){t=this.dateTimeAdapter.deserialize(t),this._maxDate=this.getValidDate(t),this.initiated&&this.generateYearList()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"todayYear",{get:function(){return this._todayYear},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"years",{get:function(){return this._years},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedYears",{get:function(){return this._selectedYears},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInSingleMode",{get:function(){return"single"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInRangeMode",{get:function(){return"range"===this.selectMode||"rangeFrom"===this.selectMode||"rangeTo"===this.selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeCell",{get:function(){if(this._pickerMoment)return this.dateTimeAdapter.getYear(this._pickerMoment)%21},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tableHeader",{get:function(){if(this._years&&this._years.length>0)return this._years[0][0].displayValue+" ~ "+this._years[6][2].displayValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prevButtonLabel",{get:function(){return this.pickerIntl.prevMultiYearLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextButtonLabel",{get:function(){return this.pickerIntl.nextMultiYearLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTCalendarView",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTCalendarMultiYearView",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){this._todayYear=this.dateTimeAdapter.getYear(this.dateTimeAdapter.now()),this.generateYearList(),this.initiated=!0},t.prototype.selectCalendarCell=function(t){this.selectYear(t.value)},t.prototype.selectYear=function(t){this.yearSelected.emit(this.dateTimeAdapter.createDate(t,0,1));var e=this.dateTimeAdapter.createDate(t,this.dateTimeAdapter.getMonth(this.pickerMoment),1),n=this.dateTimeAdapter.getNumDaysInMonth(e),i=this.dateTimeAdapter.createDate(t,this.dateTimeAdapter.getMonth(this.pickerMoment),Math.min(n,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(i)},t.prototype.prevYearList=function(t){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-21),this.generateYearList(),t.preventDefault()},t.prototype.nextYearList=function(t){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,21),this.generateYearList(),t.preventDefault()},t.prototype.generateYearList=function(){this._years=[];for(var t=this.dateTimeAdapter.getYear(this._pickerMoment),e=t%21,n=0;n<7;n++){for(var i=[],s=0;s<3;s++){var r=t-e+(s+3*n),a=this.createYearCell(r);i.push(a)}this._years.push(i)}},t.prototype.previousEnabled=function(){return!this.minDate||(!this.minDate||!this.isSameYearList(this._pickerMoment,this.minDate))},t.prototype.nextEnabled=function(){return!this.maxDate||!this.isSameYearList(this._pickerMoment,this.maxDate)},t.prototype.handleCalendarKeydown=function(t){var e;switch(t.keyCode){case 37:e=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-1),this.pickerMomentChange.emit(e);break;case 39:e=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,1),this.pickerMomentChange.emit(e);break;case 38:e=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-3),this.pickerMomentChange.emit(e);break;case 40:e=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,3),this.pickerMomentChange.emit(e);break;case 36:e=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,-this.dateTimeAdapter.getYear(this._pickerMoment)%21),this.pickerMomentChange.emit(e);break;case 35:e=this.dateTimeAdapter.addCalendarYears(this._pickerMoment,21-this.dateTimeAdapter.getYear(this._pickerMoment)%21-1),this.pickerMomentChange.emit(e);break;case 33:e=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,t.altKey?-210:-21),this.pickerMomentChange.emit(e);break;case 34:e=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,t.altKey?210:21),this.pickerMomentChange.emit(e);break;case 13:this.selectYear(this.dateTimeAdapter.getYear(this._pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),t.preventDefault()},t.prototype.createYearCell=function(t){var e=this.dateTimeAdapter.createDate(t,0,1),n=this.dateTimeAdapter.getYearName(e),i="owl-dt-year-"+t;return new lQ(t,t.toString(),n,this.isYearEnabled(t),!1,i)},t.prototype.setSelectedYears=function(){var t=this;this._selectedYears=[],this.isInSingleMode&&this.selected&&(this._selectedYears[0]=this.dateTimeAdapter.getYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this._selectedYears=this.selecteds.map(function(e){return t.dateTimeAdapter.isValid(e)?t.dateTimeAdapter.getYear(e):null}))},t.prototype.isYearEnabled=function(t){if(null==t||this.maxDate&&t>this.dateTimeAdapter.getYear(this.maxDate)||this.minDate&&t<this.dateTimeAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var e=this.dateTimeAdapter.createDate(t,0,1);this.dateTimeAdapter.getYear(e)==t;e=this.dateTimeAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1},t.prototype.isSameYearList=function(t,e){return Math.floor(this.dateTimeAdapter.getYear(t)/21)===Math.floor(this.dateTimeAdapter.getYear(e)/21)},t.prototype.getValidDate=function(t){return this.dateTimeAdapter.isDateInstance(t)&&this.dateTimeAdapter.isValid(t)?t:null},t.prototype.focusActiveCell=function(){this.calendarBodyElm.focusActiveCell()},vQ([Object(s.Input)(),yQ("design:type",String),yQ("design:paramtypes",[String])],t.prototype,"selectMode",null),vQ([Object(s.Input)(),yQ("design:type",Object),yQ("design:paramtypes",[Object])],t.prototype,"selected",null),vQ([Object(s.Input)(),yQ("design:type",Array),yQ("design:paramtypes",[Array])],t.prototype,"selecteds",null),vQ([Object(s.Input)(),yQ("design:type",Object),yQ("design:paramtypes",[Object])],t.prototype,"pickerMoment",null),vQ([Object(s.Input)(),yQ("design:type",Function),yQ("design:paramtypes",[Function])],t.prototype,"dateFilter",null),vQ([Object(s.Input)(),yQ("design:type",Object),yQ("design:paramtypes",[Object])],t.prototype,"minDate",null),vQ([Object(s.Input)(),yQ("design:type",Object),yQ("design:paramtypes",[Object])],t.prototype,"maxDate",null),vQ([Object(s.Output)(),yQ("design:type",Object)],t.prototype,"change",void 0),vQ([Object(s.Output)(),yQ("design:type",Object)],t.prototype,"yearSelected",void 0),vQ([Object(s.Output)(),yQ("design:type",s.EventEmitter)],t.prototype,"pickerMomentChange",void 0),vQ([Object(s.Output)(),yQ("design:type",s.EventEmitter)],t.prototype,"keyboardEnter",void 0),vQ([Object(s.ViewChild)(cQ),yQ("design:type",cQ)],t.prototype,"calendarBodyElm",void 0),vQ([Object(s.HostBinding)("class.owl-dt-calendar-view"),yQ("design:type",Boolean),yQ("design:paramtypes",[])],t.prototype,"owlDTCalendarView",null),vQ([Object(s.HostBinding)("class.owl-dt-calendar-multi-year-view"),yQ("design:type",Boolean),yQ("design:paramtypes",[])],t.prototype,"owlDTCalendarMultiYearView",null),t=vQ([Object(s.Component)({selector:"owl-date-time-multi-year-view",template:'<button class="owl-dt-control-button owl-dt-control-arrow-button" [disabled]="!previousEnabled()" [attr.aria-label]="prevButtonLabel" type="button" tabindex="0" (click)="prevYearList($event)"><span class="owl-dt-control-button-content" tabindex="-1">\x3c!-- <editor-fold desc="SVG Arrow Left"> --\x3e <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 250.738 250.738" style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve" width="100%" height="100%"><path style="fill-rule: evenodd; clip-rule: evenodd;" d="M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546   c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681   l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z"/></svg>\x3c!-- </editor-fold> --\x3e</span></button><table class="owl-dt-calendar-table owl-dt-calendar-multi-year-table"><thead class="owl-dt-calendar-header"><tr><th colspan="3">{{tableHeader}}</th></tr></thead><tbody owl-date-time-calendar-body role="grid" [rows]="years" [numCols]="3" [cellRatio]="3 / 7" [activeCell]="activeCell" [todayValue]="todayYear" [selectedValues]="selectedYears" [selectMode]="selectMode" (keydown)="handleCalendarKeydown($event)" (select)="selectCalendarCell($event)"></tbody></table><button class="owl-dt-control-button owl-dt-control-arrow-button" [disabled]="!nextEnabled()" [attr.aria-label]="nextButtonLabel" type="button" tabindex="0" (click)="nextYearList($event)"><span class="owl-dt-control-button-content" tabindex="-1">\x3c!-- <editor-fold desc="SVG Arrow Right"> --\x3e <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 250.738 250.738" style="enable-background:new 0 0 250.738 250.738;" xml:space="preserve"><path style="fill-rule:evenodd;clip-rule:evenodd;" d="M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0\n                c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545\n                c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681\n                C197.237,120.447,195.534,115.448,191.75,111.689z"/></svg>\x3c!-- </editor-fold> --\x3e</span></button>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),_Q(2,Object(s.Optional)()),yQ("design:paramtypes",[s.ChangeDetectorRef,nX,sX])],t)}(),xQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},CQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},SQ=function(){function t(){this.showDivider=!1,this.step=1,this.valueChange=new s.EventEmitter,this.inputChange=new s.EventEmitter,this.inputStream=new Gf.a,this.inputStreamSub=Aw.a.EMPTY}return Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.boxValue||this.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"owlDTTimerBoxClass",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this.inputStreamSub=this.inputStream.pipe(Object(z_.a)(500),Object(_g.a)()).subscribe(function(e){if(e){var n=Pw(e,0);t.updateValueViaInput(n)}})},t.prototype.ngOnDestroy=function(){this.inputStreamSub.unsubscribe()},t.prototype.upBtnClicked=function(){this.updateValue(this.value+this.step)},t.prototype.downBtnClicked=function(){this.updateValue(this.value-this.step)},t.prototype.handleInputChange=function(t){this.inputStream.next(t)},t.prototype.updateValue=function(t){this.valueChange.emit(t)},t.prototype.updateValueViaInput=function(t){t>this.max||t<this.min||this.inputChange.emit(t)},xQ([Object(s.Input)(),CQ("design:type",Object)],t.prototype,"showDivider",void 0),xQ([Object(s.Input)(),CQ("design:type",String)],t.prototype,"upBtnAriaLabel",void 0),xQ([Object(s.Input)(),CQ("design:type",Boolean)],t.prototype,"upBtnDisabled",void 0),xQ([Object(s.Input)(),CQ("design:type",String)],t.prototype,"downBtnAriaLabel",void 0),xQ([Object(s.Input)(),CQ("design:type",Boolean)],t.prototype,"downBtnDisabled",void 0),xQ([Object(s.Input)(),CQ("design:type",Number)],t.prototype,"boxValue",void 0),xQ([Object(s.Input)(),CQ("design:type",Number)],t.prototype,"value",void 0),xQ([Object(s.Input)(),CQ("design:type",Number)],t.prototype,"min",void 0),xQ([Object(s.Input)(),CQ("design:type",Number)],t.prototype,"max",void 0),xQ([Object(s.Input)(),CQ("design:type",Object)],t.prototype,"step",void 0),xQ([Object(s.Input)(),CQ("design:type",String)],t.prototype,"inputLabel",void 0),xQ([Object(s.Output)(),CQ("design:type",Object)],t.prototype,"valueChange",void 0),xQ([Object(s.Output)(),CQ("design:type",Object)],t.prototype,"inputChange",void 0),xQ([Object(s.HostBinding)("class.owl-dt-timer-box"),CQ("design:type",Boolean),CQ("design:paramtypes",[])],t.prototype,"owlDTTimerBoxClass",null),t=xQ([Object(s.Component)({exportAs:"owlDateTimeTimerBox",selector:"owl-date-time-timer-box",template:'<div *ngIf="showDivider" class="owl-dt-timer-divider" aria-hidden="true"></div><button class="owl-dt-control-button owl-dt-control-arrow-button" type="button" tabindex="-1" [disabled]="upBtnDisabled" [attr.aria-label]="upBtnAriaLabel" (click)="upBtnClicked()"><span class="owl-dt-control-button-content" tabindex="-1">\x3c!-- <editor-fold desc="SVG Arrow Up"> --\x3e <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 451.847 451.846" style="enable-background:new 0 0 451.847 451.846;" xml:space="preserve" width="100%" height="100%"><path d="M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0\n                        L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4\n                        c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z"/></svg>\x3c!-- </editor-fold> --\x3e</span></button><label class="owl-dt-timer-content"><input class="owl-dt-timer-input" maxlength="2" [value]="displayValue | numberFixedLen : 2" (input)="handleInputChange(valueInput.value)" #valueInput> <span class="owl-hidden-accessible">{{inputLabel}}</span></label><button class="owl-dt-control-button owl-dt-control-arrow-button" type="button" tabindex="-1" [disabled]="downBtnDisabled" [attr.aria-label]="downBtnAriaLabel" (click)="downBtnClicked()"><span class="owl-dt-control-button-content" tabindex="-1">\x3c!-- <editor-fold desc="SVG Arrow Down"> --\x3e <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 451.847 451.846" style="enable-background:new 0 0 451.847 451.846;" xml:space="preserve" width="100%" height="100%"><path d="M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751\n                        c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0\n                        c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z"/></svg>\x3c!-- </editor-fold> --\x3e</span></button>',styles:[""],preserveWhitespaces:!1,changeDetection:s.ChangeDetectionStrategy.OnPush}),CQ("design:paramtypes",[])],t)}(),kQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},EQ=function(){function t(){}return t.prototype.transform=function(t,e){var n=Math.floor(t),i=Math.floor(e);if(null===t||isNaN(n)||isNaN(i))return t;for(var s=n.toString();s.length<i;)s="0"+s;return s},t=kQ([Object(s.Pipe)({name:"numberFixedLen"})],t)}(),IQ=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),AQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},DQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},TQ=function(t,e){return function(n,i){e(n,i,t)}},OQ={provide:Wh,useExisting:Object(s.forwardRef)(function(){return PQ}),multi:!0},PQ=function(t){function e(e,n,i){var r=t.call(this,n,i)||this;return r.changeDetector=e,r.dateTimeAdapter=n,r.dateTimeFormats=i,r._pickerType="both",r._disabled=!1,r._selectMode="single",r._values=[],r.yearSelected=new s.EventEmitter,r.monthSelected=new s.EventEmitter,r._selecteds=[],r.onModelChange=function(){},r.onModelTouched=function(){},r}return IQ(e,t),Object.defineProperty(e.prototype,"pickerType",{get:function(){return this._pickerType},set:function(t){t!==this._pickerType&&(this._pickerType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){this._disabled=Ow(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectMode",{get:function(){return this._selectMode},set:function(t){if("single"!==t&&"range"!==t&&"rangeFrom"!==t&&"rangeTo"!==t)throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt?this._startAt:"single"===this.selectMode?this.value||null:"range"===this.selectMode||"rangeFrom"===this.selectMode?this.values[0]||null:"rangeTo"===this.selectMode&&this.values[1]||null},set:function(t){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dateTimeFilter",{get:function(){return this._dateTimeFilter},set:function(t){this._dateTimeFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minDateTime",{get:function(){return this._min||null},set:function(t){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(t)),this.changeDetector.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxDateTime",{get:function(){return this._max||null},set:function(t){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(t)),this.changeDetector.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t=this.dateTimeAdapter.deserialize(t),t=this.getValidDate(t),this._value=t,this.selected=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._values},set:function(t){var e=this;t&&t.length>0?(t=t.map(function(t){return t=e.dateTimeAdapter.deserialize(t),(t=e.getValidDate(t))?e.dateTimeAdapter.clone(t):null}),this._values=t.slice(),this.selecteds=t.slice()):(this._values=[],this.selecteds=[])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.changeDetector.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selecteds",{get:function(){return this._selecteds},set:function(t){this._selecteds=t,this.changeDetector.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opened",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pickerMode",{get:function(){return"inline"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInSingleMode",{get:function(){return"single"===this._selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInRangeMode",{get:function(){return"range"===this._selectMode||"rangeFrom"===this._selectMode||"rangeTo"===this._selectMode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"owlDTInlineClass",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.container.picker=this},e.prototype.writeValue=function(t){this.isInSingleMode?(this.value=t,this.container.pickerMoment=t):(this.values=t,this.container.pickerMoment=this._values[this.container.activeSelectedIndex])},e.prototype.registerOnChange=function(t){this.onModelChange=t},e.prototype.registerOnTouched=function(t){this.onModelTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t},e.prototype.select=function(t){this.disabled||(Array.isArray(t)?this.values=t.slice():this.value=t,this.onModelChange(t),this.onModelTouched())},e.prototype.selectYear=function(t){this.yearSelected.emit(t)},e.prototype.selectMonth=function(t){this.monthSelected.emit(t)},AQ([Object(s.ViewChild)(vX),DQ("design:type",vX)],e.prototype,"container",void 0),AQ([Object(s.Input)(),DQ("design:type",String),DQ("design:paramtypes",[String])],e.prototype,"pickerType",null),AQ([Object(s.Input)(),DQ("design:type",Boolean),DQ("design:paramtypes",[Boolean])],e.prototype,"disabled",null),AQ([Object(s.Input)(),DQ("design:type",String),DQ("design:paramtypes",[String])],e.prototype,"selectMode",null),AQ([Object(s.Input)(),DQ("design:type",Object),DQ("design:paramtypes",[Object])],e.prototype,"startAt",null),AQ([Object(s.Input)("owlDateTimeFilter"),DQ("design:type",Function),DQ("design:paramtypes",[Function])],e.prototype,"dateTimeFilter",null),AQ([Object(s.Input)("min"),DQ("design:type",Object),DQ("design:paramtypes",[Object])],e.prototype,"minDateTime",null),AQ([Object(s.Input)("max"),DQ("design:type",Object),DQ("design:paramtypes",[Object])],e.prototype,"maxDateTime",null),AQ([Object(s.Input)(),DQ("design:type",Object),DQ("design:paramtypes",[Object])],e.prototype,"value",null),AQ([Object(s.Input)(),DQ("design:type",Array),DQ("design:paramtypes",[Array])],e.prototype,"values",null),AQ([Object(s.Output)(),DQ("design:type",Object)],e.prototype,"yearSelected",void 0),AQ([Object(s.Output)(),DQ("design:type",Object)],e.prototype,"monthSelected",void 0),AQ([Object(s.HostBinding)("class.owl-dt-inline"),DQ("design:type",Boolean),DQ("design:paramtypes",[])],e.prototype,"owlDTInlineClass",null),e=AQ([Object(s.Component)({selector:"owl-date-time-inline",template:"<owl-date-time-container></owl-date-time-container>",styles:[""],changeDetection:s.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,providers:[OQ]}),TQ(1,Object(s.Optional)()),TQ(2,Object(s.Optional)()),TQ(2,Object(s.Inject)(rX)),DQ("design:paramtypes",[s.ChangeDetectorRef,sX,Object])],e)}(CX),NQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},MQ=function(){function t(){}return t=NQ([Object(s.NgModule)({imports:[Cu.CommonModule,NI,UX,jx],exports:[cX,hX,JX,rQ,ZX,PQ,wQ,bQ,hQ],declarations:[JX,rQ,ZX,vX,wQ,bQ,hQ,hX,SQ,cX,cQ,EQ,PQ],providers:[nX,KX],entryComponents:[vX]})],t)}(),RQ=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),LQ=function(){return(LQ=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},FQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},jQ=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},VQ=function(t,e){return function(n,i){e(n,i,t)}},BQ={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},HQ={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},zQ=$Q(31,function(t){return String(t+1)}),UQ="undefined"!=typeof Intl,qQ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function $Q(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e(i);return n}var WQ=function(t){function e(e,n){var i=t.call(this)||this;return i.owlDateTimeLocale=e,t.prototype.setLocale.call(i,e),i.useUtcForDisplay=!n.TRIDENT,i._clampDate=n.TRIDENT||n.EDGE,i}return RQ(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDay=function(t){return t.getDay()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getHours=function(t){return t.getHours()},e.prototype.getMinutes=function(t){return t.getMinutes()},e.prototype.getSeconds=function(t){return t.getSeconds()},e.prototype.getTime=function(t){return t.getTime()},e.prototype.getNumDaysInMonth=function(t){var e=this.createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0);return this.getDate(e)},e.prototype.differenceInCalendarDays=function(t,e){if(this.isValid(t)&&this.isValid(e)){var n=this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t)),i=this.createDate(this.getYear(e),this.getMonth(e),this.getDate(e)),s=this.getTime(n)-n.getTimezoneOffset()*this.milliseondsInMinute,r=this.getTime(i)-i.getTimezoneOffset()*this.milliseondsInMinute;return Math.round((s-r)/this.millisecondsInDay)}return null},e.prototype.getYearName=function(t){if(UQ){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this.stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))},e.prototype.getMonthNames=function(t){var e=this;if(UQ){var n=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return $Q(12,function(t){return e.stripDirectionalityCharacters(e._format(n,new Date(2017,t,1)))})}return BQ[t]},e.prototype.getDayOfWeekNames=function(t){var e=this;if(UQ){var n=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return $Q(7,function(t){return e.stripDirectionalityCharacters(e._format(n,new Date(2017,0,t+1)))})}return HQ[t]},e.prototype.getDateNames=function(){var t=this;if(UQ){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return $Q(31,function(n){return t.stripDirectionalityCharacters(t._format(e,new Date(2017,0,n+1)))})}return zQ},e.prototype.toIso8601=function(t){return t.toISOString()},e.prototype.isEqual=function(t,e){return!(!this.isValid(t)||!this.isValid(e))&&t.getTime()===e.getTime()},e.prototype.isSameDay=function(t,e){if(this.isValid(t)&&this.isValid(e)){var n=this.clone(t),i=this.clone(e);return n.setHours(0,0,0,0),i.setHours(0,0,0,0),n.getTime()===i.getTime()}return!1},e.prototype.isValid=function(t){return t&&!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this.clone(t);e=Number(e);var i=n.getMonth()+e,s=new Date(0);s.setFullYear(n.getFullYear(),i,1),s.setHours(0,0,0,0);var r=this.getNumDaysInMonth(s);return n.setMonth(i,Math.min(r,n.getDate())),n},e.prototype.addCalendarDays=function(t,e){var n=this.clone(t);return e=Number(e),n.setDate(n.getDate()+e),n},e.prototype.setHours=function(t,e){var n=this.clone(t);return n.setHours(e),n},e.prototype.setMinutes=function(t,e){var n=this.clone(t);return n.setMinutes(e),n},e.prototype.setSeconds=function(t,e){var n=this.clone(t);return n.setSeconds(e),n},e.prototype.createDate=function(t,e,n,i,s,r){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0),e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');if(i<0||i>23)throw Error('Invalid hours "'+i+'". Hours has to be between 0 and 23.');if(s<0||s>59)throw Error('Invalid minutes "'+s+'". Minutes has to between 0 and 59.');if(r<0||r>59)throw Error('Invalid seconds "'+r+'". Seconds has to be between 0 and 59.');var a=this.createDateWithOverflow(t,e,n,i,s,r);if(a.getMonth()!==e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return a},e.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t),this.getHours(t),this.getMinutes(t),this.getSeconds(t))},e.prototype.now=function(){return new Date},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("JSNativeDate: Cannot format invalid date.");if(UQ){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=LQ({},e,{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this.stripDirectionalityCharacters(this._format(n,t))}return this.stripDirectionalityCharacters(t.toDateString())},e.prototype.parse=function(t,e){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(qQ.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.createDateWithOverflow=function(t,e,n,i,s,r){void 0===i&&(i=0),void 0===s&&(s=0),void 0===r&&(r=0);var a=new Date(t,e,n,i,s,r);return t>=0&&t<100&&a.setFullYear(this.getYear(a)-1900),a},e.prototype.stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)},e=FQ([Object(s.Injectable)(),VQ(0,Object(s.Optional)()),VQ(0,Object(s.Inject)(iX)),jQ("design:paramtypes",[String,Vw])],e)}(sX),YQ=function(t,e,n,i){var s,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,n,a):s(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a},GQ=function(){function t(){}return t=YQ([Object(s.NgModule)({imports:[Bw],providers:[{provide:sX,useClass:WQ}]})],t)}(),KQ={parseInput:null,fullPickerInput:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},datePickerInput:{year:"numeric",month:"numeric",day:"numeric"},timePickerInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}},ZQ=function(){function t(){}return t=YQ([Object(s.NgModule)({imports:[GQ],providers:[{provide:rX,useValue:KQ}]})],t)}();let XQ=class{constructor(t){this.sanitized=t}transform(t){return this.sanitized.bypassSecurityTrustHtml(t)}};XQ.ctorParameters=()=>[{type:ch}],XQ=Hh([Object(s.Pipe)({name:"sanitizedHtml"})],XQ);let QQ=class{constructor(){}ngOnInit(){}mobileMenu(){"none"==document.getElementById("navbarNav").style.display||""==document.getElementById("navbarNav").style.display?document.getElementById("navbarNav").style.display="block":document.getElementById("navbarNav").style.display="none"}};QQ.ctorParameters=()=>[],QQ=Hh([Object(s.Component)({selector:"app-pg-header",template:'<header id="pgHeader" class="header" role="banner" itemscope="" itemtype="http://schema.org/WPHeader">\n    <div id="inner-header" class="cf">\n      <p id="logo" style="margin: 0px; width: 30%;margin-top: .5em" class="h1" itemscope=""\n        itemtype="http://schema.org/Organization"> <a href="https://gamblinghelplinema.org" rel="nofollow"> <img\n            src="./assets/images/pg-logov2.png" id="pglogo" alt="PG logo"> </a> </p>\n      <span id="headerIcons" style="padding-top: 10px; color: #212529; margin-bottom: 1em;">\n        <span class="kaleko-bold" style="color: #313D59;">Call us:<a id="displyPhone" class="msgContent" href="tel:8003275050"> 800\u2022327\u20225050</a></span> | <span class="kaleko-bold" style="color: #313D59;">Text:<a id="displyPhone" href="sms:800327;?&body=GAMB" class="msgContent"> "GAMB" to 800327</a></span>\n      </span>\n    </div>\n    <nav role="navigation" id="main-nav" itemscope="" itemtype="http://schema.org/SiteNavigationElement">\n      <ul id="menu-main-menu-1" class="nav top-nav top-navpg cf pg-nav">\n        <li class="dropdown-toggle dropdown-toggle-split" id="menu-item-656"> <a href="" id="menu-item-656"\n            class="eina-semibold txt-transform main-txt" data-toggle="dropdown" aria-haspopup="true"\n            aria-expanded="false">Find Help</a>\n  \n          \x3c!-- <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-656" class="dropdown-toggle dropdown-toggle-split"><a title="Find Help" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" class="dropdown-toggle nav-link" id="menu-item-dropdown-656">Find Help</a>   --\x3e\n  \n          <div class="dropdown-menu" aria-labelledby="menu-item-656" role="menu">\n            <a title="Find Help (For Me)" href="https://gamblinghelplinema.org/i-need-help/" class="dropdown-item">I need\n              help</a>\n            <a title="Find help (for my loved one)" href="https://gamblinghelplinema.org/my-loved-one-needs-help/"\n              class="dropdown-item">My loved one needs help</a>\n            <a title="Find help (for my client)" href="https://gamblinghelplinema.org/my-client-needs-help/"\n              class="dropdown-item">My client needs help</a>\n          </div>\n  \n        </li>\n        <li class="menu-item menu-item-type-post_type menu-item-object-page"> <a\n            href="https://gamblinghelplinema.org/about-problem-gambling/"\n            class="eina-semibold txt-transform main-txt">About Problem Gambling</a> </li>\n        <li class="menu-item menu-item-type-post_type menu-item-object-page"> <a\n            href="https://gamblinghelplinema.org/about-treatment/" class="eina-semibold txt-transform main-txt">About\n            Treatment</a> </li>\n        <li class="menu-item menu-item-type-post_type menu-item-object-page"> <a\n            href="https://gamblinghelplinema.org/about-us/" class="eina-semibold txt-transform main-txt">About Us</a>\n        </li>\n        <li class="dropdown-toggle dropdown-toggle-split" id="dropdownMenuReferencefp"> <a href=""\n            id="dropdownMenuReferencefp" class="eina-semibold txt-transform main-txt" data-toggle="dropdown"\n            aria-haspopup="true" aria-expanded="false">For Providers</a>\n          <ul class="dropdown-menu" id="promenu" aria-labelledby="menu-item-dropdown-651" role="menu">\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-724"\n              class="ta-center menu-item menu-item-type-post_type menu-item-object-page menu-item-724 nav-item"><a\n                title="TA Center" id="tacenter" href="https://gamblinghelplinema.org/ta-center/" class="dropdown-item">TA\n                Center</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-721"\n              class="menu-item menu-item-type-custom menu-item-object-custom menu-item-721 nav-item"><a\n                title="Upcoming Trainings" href="https://gamblinghelplinema.org/trainings/" class="dropdown-item">Upcoming\n                Trainings</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-718"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-718 nav-item"><a title="Resources"\n                href="https://gamblinghelplinema.org/resources/" class="dropdown-item">Resources</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-725"\n              class="menu-item menu-item-type-post_type menu-item-object-page menu-item-725 nav-item"><a\n                title="MAPGS certification" href="https://gamblinghelplinema.org/mapgs-certification/"\n                class="dropdown-item">MA PGS certification</a></li>\n            <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-663"\n              class="portal menu-item menu-item-type-custom menu-item-object-custom menu-item-663 nav-item"><a\n                title="Provider Portal" id="pportal" href="https://hub.helplinema.org/" class="dropdown-item">Provider\n                Portal</a></li>\n          </ul>\n        </li>\n      </ul>\n    </nav>\n  </header>\n  <header style="background-color: #f7f7f6;" class="mobileHeader">\n    <nav class="navbar navbar-expand-lg navbar-light bg-light eina-bold">\n      <a class="navbar-brand" href="#" style="margin-top: .5em; height: 100%;"><img src="./assets/images/pg-logo.png"\n          alt="PG logo"></a>\n      <div id="baner-txt">\n        <span class="kaleko-bold" style="color: #313D59;">Call us:<a href="tel:8003275050" style="color: #313D59;" class="msgContent"> 800\u2022327\u20225050</a></span> <span class="kaleko-bold" id="gambmob" style="color: #313D59;">Text:<a href="sms:800327;?&body=GAMB" style="color: #313D59;" class="msgContent"> "GAMB" 800327</a></span>\n      </div>\n      <div id="navbar">\n        <button class="navbar-toggler" (click)="mobileMenu()" type="button" data-toggle="collapse"\n          data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">\n          <span class="navbar-toggler-icon"></span>\n        </button>\n      </div>\n      <div class="collapse navbar-collapse" id="navbarNav">\n        <ul id="main-menu" class="navbar-nav ml-auto">\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-656"\n            class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-656 nav-item">\n            <a title="Find Help" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"\n              class="dropdown-toggle nav-link" id="menu-item-dropdown-656">Find Help</a>\n            <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-656" role="menu">\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-652"\n                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-652 nav-item"><a\n                  title="I need help" href="https://gamblinghelplinema.org/i-need-help/" class="dropdown-item">I need\n                  help</a></li>\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-649"\n                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-649 nav-item"><a\n                  title="My loved one needs help" href="https://gamblinghelplinema.org/my-loved-one-needs-help/"\n                  class="dropdown-item">My loved one needs help</a></li>\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-648"\n                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-648 nav-item"><a\n                  title="My client needs help" href="https://gamblinghelplinema.org/my-client-needs-help/"\n                  class="dropdown-item">My client needs help</a></li>\n            </ul>\n          </li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-537"\n            class="menu-item menu-item-type-post_type menu-item-object-page menu-item-537 nav-item"><a\n              title="About Problem Gambling" href="https://gamblinghelplinema.org/about-problem-gambling/"\n              class="nav-link">About Problem Gambling</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-538"\n            class="menu-item menu-item-type-post_type menu-item-object-page menu-item-538 nav-item"><a\n              title="About Treatment" href="https://gamblinghelplinema.org/about-treatment/" class="nav-link">About\n              Treatment</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-647"\n            class="menu-item menu-item-type-post_type menu-item-object-page menu-item-647 nav-item"><a title="About Us"\n              href="https://gamblinghelplinema.org/about-us/" class="nav-link">About Us</a></li>\n          <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-651"\n            class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-651 nav-item">\n            <a title="For Providers" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"\n              class="dropdown-toggle nav-link" id="menu-item-dropdown-651">For Providers</a>\n            <ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-651" role="menu">\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-724"\n                class="ta-center menu-item menu-item-type-post_type menu-item-object-page menu-item-724 nav-item"><a\n                  title="TA Center" id="tacenter" href="https://gamblinghelplinema.org/ta-center/"\n                  class="dropdown-item">TA Center</a></li>\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-721"\n                class="menu-item menu-item-type-custom menu-item-object-custom menu-item-721 nav-item"><a\n                  title="Upcoming Trainings" href="/trainings/" class="dropdown-item">Upcoming Trainings</a></li>\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-718"\n                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-718 nav-item"><a\n                  title="Resources" href="https://gamblinghelplinema.org/resources/" class="dropdown-item">Resources</a>\n              </li>\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-725"\n                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-725 nav-item"><a\n                  title="MA PGS certification" href="https://gamblinghelplinema.org/mapgs-certification/"\n                  class="dropdown-item">MA PGS Certification</a></li>\n              <li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" id="menu-item-663"\n                class="portal menu-item menu-item-type-custom menu-item-object-custom menu-item-663 nav-item"><a\n                  title="Provider Portal" id="pportal" href="https://hub.helplinema.org/" class="dropdown-item">Provider\n                  Portal</a></li>\n            </ul>\n          </li>\n        </ul>\n      </div>\n    </nav>\n  </header>',styles:['.mobileHeader {\n  display: none;\n}\n\n#pgHeader {\n  background-color: #fff;\n  height: 108px;\n}\n\n@font-face {\n  font-family: "Eina-Bold";\n  src: url("/assets/pg-fonts/Eina04Bold/font.woff") format("woff");\n}\n\n.eina-bold {\n  font-family: "Eina-Bold";\n}\n\n@font-face {\n  font-family: "Kaleko-Bold";\n  src: url("/assets/pg-fonts/Kaleko105Bold/font.woff") format("woff");\n}\n\n.kaleko-bold {\n  font-family: "Kaleko-Bold";\n  font-size: 18px;\n}\n\n@font-face {\n  font-family: "Eina-SemiBold";\n  src: url("/assets/pg-fonts/Eina04SemiBold/font.woff") format("woff");\n}\n\n.eina-semibold {\n  font-family: "Eina-SemiBold";\n  font-size: 14px !important;\n}\n\n#main-nav a {\n  margin: auto;\n  font-family: "Eina-SemiBold";\n  color: #313d59;\n  text-transform: initial;\n  font-size: 16px;\n}\n\n.txt-transform {\n  text-transform: none;\n}\n\n.nav-header-left {\n  margin-left: 38%;\n}\n\n::ng-deep .nav li ul.sub-menu li a, ::ng-deep .nav li ul.children li a {\n  font-size: 0.8em !important;\n}\n\n::ng-deep #simple-banner {\n  background: #4d5e80;\n  text-align: center;\n  color: white;\n}\n\n.pg-nav {\n  float: right !important;\n}\n\n.mobileHeader {\n  display: none !important;\n}\n\n.navbar-toggler {\n  float: right;\n}\n\n#navbar {\n  width: 100%;\n}\n\nli.nav-item {\n  border: solid 1px gray;\n}\n\na.nav-link {\n  color: #000 !important;\n  padding-left: 15px !important;\n  padding-top: 5px !important;\n}\n\nul.navbar-nav {\n  margin-top: 0px;\n}\n\n.navbar-brand {\n  margin: auto;\n  padding: 0px 13px !important;\n  /*margin-top: -28px !important;*/\n}\n\na.dropdown-item {\n  margin: 5px !important;\n}\n\n@media only screen and (max-width: 767px) {\n  .mobileHeader {\n    display: block !important;\n  }\n\n  .header {\n    display: none;\n  }\n}\n\n@media only screen and (min-width: 768px) {\n  .mobileHeader {\n    display: none !important;\n  }\n\n  .header {\n    display: block;\n  }\n}\n\n.top-nav .dropdown-toggle::after {\n  position: absolute;\n  right: 10px;\n  top: 50%;\n}\n\n.top-navpg a {\n  background: url(\'ellipse.6d406768a6194105af9e.svg\') 8px 65px no-repeat;\n}\n\n#main-nav a:hover {\n  color: #007b8e !important;\n}\n\n.top-navpg a:hover {\n  background-position: 8px bottom;\n}\n\n.dropdown-toggle a {\n  padding-left: 5px;\n}\n\na#tacenter {\n  background-image: url(\'ta-center.9a53a919c22865051b48.png\');\n  background-position: 0.5em center;\n  background-repeat: no-repeat;\n  border-bottom: 2px solid #dfe2ea;\n}\n\na#pportal {\n  background-image: url(\'portal.b3436ad0f30fdc5a1778.png\');\n  background-position: 0.5em center;\n  background-repeat: no-repeat;\n}\n\n.pg-nav li:last-child ul {\n  margin-left: -250px !important;\n}\n\n.pg-nav li:last-child ul li {\n  grid-column: 1;\n}\n\n.pg-nav li:last-child ul li:last-child {\n  grid-column: 2;\n  grid-row: 1;\n}\n\n.pg-nav li:last-child ul li:last-child a,\n.pg-nav li:last-child ul li:first-child a {\n  padding-left: 50px;\n}\n\n.pg-nav li:last-child ul li:last-child a:hover,\n.pg-nav li:last-child ul li:first-child a:hover {\n  background-position: 0.5em bottom !important;\n}\n\nli.nav-item {\n  border: none !important;\n}\n\nul.show {\n  display: grid !important;\n}\n\na.main-txt {\n  font-size: 16px !important;\n}\n\n#pportal, #tacenter {\n  padding-left: 50px;\n}\n\n#baner-txt {\n  width: 100%;\n  text-align: center;\n}\n\nul.pg-nav {\n  margin-top: -18px;\n}\n\n#pgHeader {\n  background-color: #fff;\n  height: 108px;\n}\n\nimg#pglogo {\n  height: 66px;\n  width: 250px;\n}\n\n@media screen and (min-width: 768px) and (max-width: 1160px) {\n  .pg-nav {\n    margin-top: 0;\n  }\n\n  #pgHeader {\n    height: 136px;\n  }\n\n  ul.pg-nav {\n    margin-top: 0px;\n  }\n}\n\n@media only screen and (min-width: 1506px) {\n  header {\n    position: relative;\n  }\n\n  nav {\n    position: absolute;\n    right: 0;\n    top: 60px;\n  }\n}\n\n@media only screen and (max-width: 768px) {\n  #gambmob {\n    display: block;\n    margin-left: -9px;\n  }\n\n  .navbar {\n    text-transform: none !important;\n  }\n\n  li.menu-item a.nav-link {\n    font-size: 16px !important;\n    color: #313d59 !important;\n  }\n}\n\n.msgContent:hover {\n  color: #007B8E !important;\n}\n\na, a:hover {\n  text-decoration: none !important;\n}\n\nspan#headerIcons a {\n  color: #313d59;\n}']})],QQ);let JQ=class{constructor(){this.currentYear=(new Date).getFullYear()}ngOnInit(){}};JQ.ctorParameters=()=>[],JQ=Hh([Object(s.Component)({selector:"app-pg-footer",template:'<div class="container-fluid p-0">\n    <footer class="footer relative-parent" role="contentinfo" itemscope=""\n        itemtype="http://schema.org/WPFooter">\n        \x3c!-- <button aria-label="start chat" type="button" id="chat-button" onclick="if (!window.__cfRLUnblockHandlers) return false; customPlugin.command(\'WebChat.open\', getAdvancedConfig());">Start Chat</button> --\x3e\n        <img src="./assets/images/circle-bg-bottom.png" class="ani-top-bottom" id="background-img" />\n        <div class="top-footer" style="background-color: #313d59;">\n            <div id="top" class="wrap pgwrap" style="border-bottom: none;">\n                <a href="https://gamblinghelplinema.org"><img src="./assets/images/footer_logo.PNG" height="50"\n                        style="margin-top: 30px;" /></a>\n                <nav role="navigation" id="foterNav">\n                    <div class="footer-links cf">\n                        <ul id="menu-footer" class="nav footer-nav cf" style="margin-right: 0px;">\n                            <li id="menu-item-81"\n                                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-81 nav-li"> <a\n                                    class="navLinks" href="https://gamblinghelplinema.org/accessibility-policy/"\n                                    class="eina-semibold">Accessibility Policy</a> </li>\n                            <li id="menu-item-79"\n                                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-79 nav-li"> <a\n                                    class="navLinks" href="https://gamblinghelplinema.org/terms-conditions/"\n                                    class="eina-semibold">Terms and Conditions</a></li>\n                            <li id="menu-item-80"\n                                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-80 nav-li"> <a\n                                    class="navLinks" href="https://gamblinghelplinema.org/privacy-policy/"\n                                    class="eina-semibold">Privacy Policy</a> </li>\n                            <li id="menu-item-3332"\n                                class="menu-item menu-item-type-post_type menu-item-object-page menu-item-3332 nav-li">\n                                <a class="navLinks" href="https://gamblinghelplinema.org/contact-us/"\n                                    class="eina-semibold">Contact us</a> </li>\n                        </ul>\n                    </div>\n                </nav>\n            </div>\n            <div id="bottom" class="wrap row pgwrap">\n                <div class="col-md-6">\n                    <img src="./assets/images/round_logo.PNG" height="80" style="margin-top: 20px;" /><br />\n                    <p class="cpyright eina-regular">&copy; {{currentYear}} Department of Public Health - Office of Problem Gambling Services</p>\n                </div>\n                \x3c!-- <div class="col-md-6 social-column">\n                <div class="ml-auto text-white">Follows us. </div>\n                <div class="social-icons">\n                <a><i class="fa fa-facebook-official " aria-hidden="true"></i>\n                </a>\n                <a><i class="fa fa-twitter social-icons" aria-hidden="true"></i>\n                </a>\n                <a><i class="fa fa-linkedin-square social-icons" aria-hidden="true"></i>\n                </a>\n                <a><i class="fa fa-youtube-play social-icons" aria-hidden="true"></i>\n                </a>\n                <a><i class="fa fa-instagram social-icons" aria-hidden="true"></i>\n                </a>\n                </div>\n              </div> --\x3e\n            </div>\n        </div>\n    </footer>',styles:['.footer {\n  clear: both;\n  background-color: #606060;\n  color: #e5e4e0;\n  margin-top: 1.5em;\n}\n\n.top-footer #top nav {\n  float: left;\n  margin-top: 0.5em;\n  width: 650px;\n  text-align: left;\n}\n\n.top-footer {\n  background-color: #e5e4e0;\n  color: #606060;\n}\n\nfooter {\n  display: block;\n}\n\n.relative-parent {\n  position: relative;\n  background-color: #313d59;\n  padding-bottom: 20px;\n}\n\nimg#background-img {\n  position: absolute;\n  top: -46px;\n  right: 0;\n  z-index: 1;\n}\n\n::ng-deep a.navLinks {\n  color: #fff !important;\n}\n\n#foterNav {\n  float: right !important;\n  padding-top: 20px;\n  font-size: 12px;\n}\n\np.cpyright {\n  color: #fff;\n  font-size: 12px;\n}\n\n@font-face {\n  font-family: "Eina-SemiBold";\n  src: url("/assets/pg-fonts/Eina04SemiBold/font.woff") format("woff");\n}\n\n.eina-semibold {\n  font-family: "Eina-SemiBold";\n  font-size: 14px !important;\n}\n\n@font-face {\n  font-family: "Eina-Regular";\n  src: url("/assets/pg-fonts/Eina04Regular/font.woff") format("woff");\n}\n\n.eina-regular {\n  font-family: "Eina-Regular";\n  font-size: 12px;\n}\n\n#top nav li a.eina-semibold {\n  color: #fff;\n  background-color: #313d59 !important;\n  text-transform: none !important;\n}\n\n.social-icons {\n  color: #f7911e;\n  font-size: 20px;\n}\n\n.social-icons a {\n  margin-left: 20px;\n}\n\n.social-icons a:hover {\n  opacity: 0.6;\n  cursor: pointer;\n}\n\n.social-column {\n  display: flex;\n  margin-top: auto;\n}\n\n.ml-auto {\n  margin-left: auto;\n  line-height: 28px;\n}\n\n.pgwrap {\n  padding: 30px 20px !important;\n  width: 100% !important;\n}\n\n#foterNav a:hover {\n  color: #60c1d3 !important;\n  text-decoration: none;\n  transition: all 0.5s;\n}\n\n@media only screen and (max-width: 600px) {\n  #foterNav {\n    width: auto !important;\n  }\n}\n\n#socialIcon {\n  margin: 60px 0px 0px 137px;\n}\n\n@media only screen and (max-width: 600px) {\n  #socialIcon {\n    margin: auto;\n  }\n}\n\n@media only screen and (min-width: 992px) {\n  #socialIcon {\n    margin: 60px 0px 0px 137px;\n  }\n}\n\n@media only screen and (max-width: 768px) {\n  ul#menu-footer li {\n    display: block !important;\n    width: 100%;\n  }\n\n  #foterNav {\n    width: 100% !important;\n  }\n}']})],JQ);let tJ=class{};tJ=Hh([Object(s.NgModule)({declarations:[qz,$z,Wz,rV,Ew,nV,lV,Gj,Iw,Uj,ag,og,cg,dg,B_,kw,Rj,Lj,Fj,jj,Vj,Bj,gG,Xj,bG,vG,xG,CG,Qj,Jj,tV,Qj,cV,dV,fZ,gZ,vZ,pV,uV,Iz,yZ,_Z,wZ,xZ,Tz,Oz,Mz,Rz,Az,Lz,Fz,jz,Vz,Dz,XQ,Bz,bZ,eV,Hz,Mj,QQ,JQ],imports:[qf,gh,Uz,$f,Sw,Yf.HttpClientModule,gk,aG.forRoot(),Cu.CommonModule,T_,Cu.CommonModule,tK,FA,YA,XD,tA,hK,SZ,MQ,ZQ,Bk,tX,jZ.forRoot(),Kf.MsalModule.forRoot({clientID:tg,cacheLocation:"localStorage",authority:eg,validateAuthority:!1}),uZ],entryComponents:[eV,gG,Qj,tV,Xj,Jj,bZ],providers:[{provide:Yf.HTTP_INTERCEPTORS,useClass:kZ,multi:!0},{provide:Yf.HTTP_INTERCEPTORS,useClass:EZ,multi:!0},{provide:Yf.HTTP_INTERCEPTORS,useClass:EZ,multi:!0},Cu.DatePipe,ey],bootstrap:[qz]})],tJ),Zf&&Object(s.enableProdMode)(),Bh().bootstrapModule(tJ).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zp1y:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("l7GE"),s=n("ZUHj");function r(...t){return e=>{let n;"function"==typeof t[t.length-1]&&(n=t.pop());const i=t;return e.lift(new a(i,n))}}class a{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new o(t,this.observables,this.project))}}class o extends i.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let s=0;s<i;s++)this.toRespond.push(s);for(let r=0;r<i;r++){let t=e[r];this.add(Object(s.a)(this,t,void 0,r))}}notifyNext(t,e,n){this.values[n]=e;const i=this.toRespond;if(i.length>0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return l});var i=n("7o/Q"),s=n("HDdC"),r=n("SeVD");class a extends i.a{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()}}i.a;class o extends i.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}i.a;function l(t,e){if(e.closed)return;if(t instanceof s.a)return t.subscribe(e);let n;try{n=Object(r.a)(t)(e)}catch(i){e.error(i)}return n}}},[[0,0]]]);