(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},zUnb:function(e,t,n){"use strict";function l(e){return"function"==typeof e}n.r(t);let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}};function i(e){setTimeout(()=>{throw e})}const o={closed:!0,next(e){},error(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;i(e)},complete(){}},a=Array.isArray||(e=>e&&"number"==typeof e.length);function u(e){return null!==e&&"object"==typeof e}function c(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}c.prototype=Object.create(Error.prototype);const h=c;let d=(()=>{class e{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:r,_unsubscribe:s,_subscriptions:i}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let o=-1,c=r?r.length:0;for(;n;)n.remove(this),n=++oe.concat(t instanceof h?t.errors:t),[])}const g="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class m extends d{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o;break;case 1:if(!e){this.destination=o;break}if("object"==typeof e){e instanceof m?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,e,t,n)}}[g](){return this}static create(e,t,n){const l=new m(e,t,n);return l.syncErrorThrowable=!1,l}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class f extends m{constructor(e,t,n,r){let s;super(),this._parentSubscriber=e;let i=this;l(t)?s=t:t&&(s=t.next,n=t.error,r=t.complete,t!==o&&(l((i=Object.create(t)).unsubscribe)&&this.add(i.unsubscribe.bind(i)),i.unsubscribe=this.unsubscribe.bind(this))),this._context=i,this._next=s,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=s;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):i(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;i(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;i(n)}}__tryOrSetError(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(l){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=l,e.syncErrorThrown=!0,!0):(i(l),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const y="function"==typeof Symbol&&Symbol.observable||"@@observable";function v(){}function b(...e){return _(e)}function _(e){return e?1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}:v}let w=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:l}=this,r=function(e,t,n){if(e){if(e instanceof m)return e;if(e[g])return e[g]()}return e||t||n?new m(e,t,n):new m(o)}(e,t,n);if(r.add(l?l.call(r,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),s.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r}_trySubscribe(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:l}=e;if(t||l)return!1;e=n&&n instanceof m?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=C(t))((t,n)=>{let l;l=this.subscribe(t=>{try{e(t)}catch(r){n(r),l&&l.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[y](){return this}pipe(...e){return 0===e.length?this:_(e)(this)}toPromise(e){return new(e=C(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function C(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}S.prototype=Object.create(Error.prototype);const E=S;class x extends d{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class k extends m{constructor(e){super(e),this.destination=e}}let T=(()=>{class e extends w{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[g](){return new k(this)}lift(e){const t=new I(this,this);return t.operator=e,t}next(e){if(this.closed)throw new E;if(!this.isStopped){const{observers:t}=this,n=t.length,l=t.slice();for(let r=0;rnew I(e,t),e})();class I extends T{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):d.EMPTY}}function D(e){return e&&"function"==typeof e.schedule}class P extends m{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const N=e=>t=>{for(let n=0,l=e.length;nt=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i),t);function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const M=O(),R=e=>t=>{const n=e[M]();for(;;){const e=n.next();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},V=e=>t=>{const n=e[y]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},F=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function L(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const $=e=>{if(e instanceof w)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[y])return V(e);if(F(e))return N(e);if(L(e))return A(e);if(e&&"function"==typeof e[M])return R(e);{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};function U(e,t,n,l,r=new P(e,n,l)){if(!r.closed)return $(t)(r)}class j extends m{notifyNext(e,t,n,l,r){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}function B(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new H(e,t))}}class H{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new z(e,this.project,this.thisArg))}}class z extends m{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function q(e,t){return new w(t?n=>{const l=new d;let r=0;return l.add(t.schedule((function(){r!==e.length?(n.next(e[r++]),n.closed||l.add(this.schedule())):n.complete()}))),l}:N(e))}function W(e,t){if(!t)return e instanceof w?e:new w($(e));if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new w(t?n=>{const l=new d;return l.add(t.schedule(()=>{const r=e[y]();l.add(r.subscribe({next(e){l.add(t.schedule(()=>n.next(e)))},error(e){l.add(t.schedule(()=>n.error(e)))},complete(){l.add(t.schedule(()=>n.complete()))}}))})),l}:V(e))}(e,t);if(L(e))return function(e,t){return new w(t?n=>{const l=new d;return l.add(t.schedule(()=>e.then(e=>{l.add(t.schedule(()=>{n.next(e),l.add(t.schedule(()=>n.complete()))}))},e=>{l.add(t.schedule(()=>n.error(e)))}))),l}:A(e))}(e,t);if(F(e))return q(e,t);if(function(e){return e&&"function"==typeof e[M]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new w(t?n=>{const l=new d;let r;return l.add(()=>{r&&"function"==typeof r.return&&r.return()}),l.add(t.schedule(()=>{r=e[M](),l.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=r.next();e=n.value,t=n.done}catch(l){return void n.error(l)}t?n.complete():(n.next(e),this.schedule())})))})),l}:R(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function G(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?l=>l.pipe(G((n,l)=>W(e(n,l)).pipe(B((e,r)=>t(n,e,l,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new K(e,n)))}class K{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))}}class Q extends j{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Z(e){return e}function Y(e=Number.POSITIVE_INFINITY){return G(Z,e)}function J(...e){let t=Number.POSITIVE_INFINITY,n=null,l=e[e.length-1];return D(l)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof l&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof w?e[0]:Y(t)(q(e,n))}function X(){return function(e){return e.lift(new ee(e))}}class ee{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const l=new te(e,n),r=t.subscribe(l);return l.closed||(l.connection=n.connect()),r}}class te extends m{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,l=e._connection;this.connection=null,!l||n&&l!==n||l.unsubscribe()}}const ne=class extends w{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new d).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed?(this._connection=null,e=d.EMPTY):this._connection=e),e}refCount(){return X()(this)}}.prototype,le={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:ne._subscribe},_isComplete:{value:ne._isComplete,writable:!0},getSubject:{value:ne.getSubject},connect:{value:ne.connect},refCount:{value:ne.refCount}};class re extends k{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function se(){return new T}const ie="__parameters__";function oe(e,t,n){const l=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function r(...e){if(this instanceof r)return l.apply(this,e),this;const t=new r(...e);return n.annotation=t,n;function n(e,n,l){const r=e.hasOwnProperty(ie)?e[ie]:Object.defineProperty(e,ie,{value:[]})[ie];for(;r.length<=l;)r.push(null);return(r[l]=r[l]||[]).push(t),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r}const ae=oe("Inject",e=>({token:e})),ue=oe("Optional"),ce=oe("Self"),he=oe("SkipSelf");var de=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function pe(e){for(let t in e)if(e[t]===pe)return t;throw Error("Could not find renamed property on target object.")}function ge(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function me(e){const t=e[fe];return t&&t.token===e?t:null}const fe=pe({ngInjectableDef:pe});function ye(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(ye).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const ve=pe({__forward_ref__:pe});function be(e){return e.__forward_ref__=be,e.toString=function(){return ye(this())},e}function _e(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(ve)&&t.__forward_ref__===be?t():e}const we="undefined"!=typeof globalThis&&globalThis,Ce="undefined"!=typeof window&&window,Se="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ee="undefined"!=typeof global&&global,xe=we||Ee||Ce||Se;class ke{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=ge({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Te=new ke("INJECTOR",-1),Ie=new Object,De="ngTempTokenPath",Pe="ngTokenPath",Ne=/\n/gm,Ae="\u0275",Oe="__source",Me=pe({provide:String,useValue:pe});let Re,Ve=void 0;function Fe(e){const t=Ve;return Ve=e,t}function Le(e,t=de.Default){if(void 0===Ve)throw new Error("inject() must be called from an injection context");return null===Ve?function(e,t,n){const l=me(e);if(l&&"root"==l.providedIn)return void 0===l.value?l.value=l.factory():l.value;if(n&de.Optional)return null;throw new Error(`Injector: NOT_FOUND [${ye(e)}]`)}(e,0,t):Ve.get(e,t&de.Optional?null:void 0,t)}function $e(e,t=de.Default){return(Re||Le)(e,t)}class Ue{get(e,t=Ie){if(t===Ie){const t=new Error(`NullInjectorError: No provider for ${ye(e)}!`);throw t.name="NullInjectorError",t}return t}}function je(e,t,n,l=null){e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Ae?e.substr(2):e;let r=ye(t);if(t instanceof Array)r=t.map(ye).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let l=t[n];e.push(n+":"+("string"==typeof l?JSON.stringify(l):ye(l)))}r=`{${e.join(", ")}}`}return`${n}${l?"("+l+")":""}[${r}]: ${e.replace(Ne,"\n ")}`}class Be{}class He{}function ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}const We=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Ge=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xe))(),Ke="ngDebugContext",Qe="ngOriginalError",Ze="ngErrorLogger";function Ye(e){return e[Ke]}function Je(e){return e[Qe]}function Xe(e,...t){e.error(...t)}class et{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),l=function(e){return e[Ze]||Xe}(e);l(this._console,"ERROR",e),t&&l(this._console,"ORIGINAL ERROR",t),n&&l(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Ye(e)?Ye(e):this._findContext(Je(e)):null}_findOriginalError(e){let t=Je(e);for(;t&&Je(t);)t=Je(t);return t}}let tt=!0,nt=!1;function lt(){return nt=!0,tt}class rt{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e=""+e+"";try{e=encodeURI(e)}catch(l){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e=""+e+"";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let l=t.length-1;0ot(e.trim())).join(", ")),this.buf.push(" ",t,'="',Ct(i),'"')}var l;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();gt.hasOwnProperty(t)&&!ct.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(Ct(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const _t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wt=/([^\#-~ |!])/g;function Ct(e){return e.replace(/&/g,"&").replace(_t,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(wt,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(//g,">")}let St;function Et(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const xt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class kt{}const Tt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),It=/^url\(([^)]+)\)$/,Dt=/([A-Z])/g;function Pt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}let Nt=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>At(),e})();const At=(...e)=>{},Ot=new ke("The presence of this token marks an injector as being the root injector."),Mt=function(e,t,n){return new jt(e,t,n)};let Rt=(()=>{class e{static create(e,t){return Array.isArray(e)?Mt(e,t,""):Mt(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=Ie,e.NULL=new Ue,e.ngInjectableDef=ge({token:e,providedIn:"any",factory:()=>$e(Te)}),e.__NG_ELEMENT_ID__=-1,e})();const Vt=function(e){return e},Ft=[],Lt=Vt,$t=function(){return Array.prototype.slice.call(arguments)},Ut="\u0275";class jt{constructor(e,t=Rt.NULL,n=null){this.parent=t,this.source=n;const l=this._records=new Map;l.set(Rt,{token:Rt,fn:Vt,deps:Ft,value:this,useNew:!1}),l.set(Te,{token:Te,fn:Vt,deps:Ft,value:this,useNew:!1}),function e(t,n){if(n)if((n=_e(n))instanceof Array)for(let l=0;le.push(ye(n))),`StaticInjector[${e.join(", ")}]`}}function Bt(e){return Ht("Cannot mix multi providers and regular providers",e)}function Ht(e,t){return new Error(je(e,t,"StaticInjectorError"))}const zt=new ke("AnalyzeForEntryComponents");let qt=null;function Wt(){if(!qt){const e=xe.Symbol;if(e&&e.iterator)qt=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t{class e{}return e.NULL=new sn,e})();class an{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let l=0;l{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>dn(e),e})();const dn=cn;class pn{}class gn{}const mn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>yn(),e})();const yn=cn;class vn{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const bn=new vn("8.2.14");class _n{constructor(){}supports(e){return Zt(e)}create(e){return new Cn(e)}}const wn=(e,t)=>t;class Cn{constructor(e){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=e||wn}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,l=0,r=null;for(;t||n;){const s=!n||t&&t.currentIndex{l=this._trackByFn(t,e),null!==r&&Gt(r.trackById,l)?(s&&(r=this._verifyReinsertion(r,e,l,t)),Gt(r.item,e)||this._addIdentityChange(r,e)):(r=this._mismatch(r,e,l,t),s=!0),r=r._next,t++}),this.length=t;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,l){let r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,l))?(Gt(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,l)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Gt(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,l)):e=this._addAfter(new Sn(t,n),r,l),e}_verifyReinsertion(e,t,n,l){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,l):e.currentIndex!=l&&(e.currentIndex=l,this._addToMoves(e,l)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const l=e._prevRemoved,r=e._nextRemoved;return null===l?this._removalsHead=r:l._nextRemoved=r,null===r?this._removalsTail=l:r._prevRemoved=l,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const l=null===t?this._itHead:t._next;return e._next=l,e._prev=t,null===l?this._itTail=e:l._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new xn),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new xn),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class Sn{constructor(e,t){this.item=e,this.trackById=t,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 En{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Gt(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class xn{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new En,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function kn(e,t,n){const l=e.previousIndex;if(null===l)return l;let r=0;return n&&l{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const l=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,l)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const l=n._prev,r=n._next;return l&&(l._next=r),r&&(r._prev=l),n._next=null,n._prev=null,n}const n=new Dn(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Gt(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Dn{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Pn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new he,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=ge({token:e,providedIn:"root",factory:()=>new e([new _n])}),e})(),Nn=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new he,new ue]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=ge({token:e,providedIn:"root",factory:()=>new e([new Tn])}),e})();const An=[new Tn],On=new Pn([new _n]),Mn=new Nn(An);let Rn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Vn(e,hn),e})();const Vn=cn;let Fn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ln(e,hn),e})();const Ln=cn;function $n(e,t,n,l){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return l&&(r+=" 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(e,t){const n=new Error(e);return Un(n,t),n}(r,e)}function Un(e,t){e[Ke]=t,e[Ze]=t.logError.bind(t)}function jn(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Bn(e,t,n){const l=e.state,r=1792&l;return r===t?(e.state=-1793&l|n,e.initIndex=-1,!0):r===n}function Hn(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function zn(e,t){return e.nodes[t]}function qn(e,t){return e.nodes[t]}function Wn(e,t){return e.nodes[t]}function Gn(e,t){return e.nodes[t]}function Kn(e,t){return e.nodes[t]}const Qn={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},Zn=()=>{},Yn=new Map;function Jn(e){let t=Yn.get(e);return t||(t=ye(e)+"_"+Yn.size,Yn.set(e,t)),t}const Xn="$$undefined",el="$$empty";function tl(e){return{id:Xn,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let nl=0;function ll(e,t,n,l){return!(!(2&e.state)&&Gt(e.oldValues[t.bindingIndex+n],l))}function rl(e,t,n,l){return!!ll(e,t,n,l)&&(e.oldValues[t.bindingIndex+n]=l,!0)}function sl(e,t,n,l){const r=e.oldValues[t.bindingIndex+n];if(1&e.state||!Kt(r,l)){const s=t.bindings[n].name;throw $n(Qn.createDebugContext(e,t.nodeIndex),`${s}: ${r}`,`${s}: ${l}`,0!=(1&e.state))}}function il(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function ol(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function al(e,t,n,l){try{return il(33554432&e.def.nodes[t].flags?qn(e,t).componentView:e),Qn.handleEvent(e,t,n,l)}catch(r){e.root.errorHandler.handleError(r)}}function ul(e){return e.parent?qn(e.parent,e.parentNodeDef.nodeIndex):null}function cl(e){return e.parent?e.parentNodeDef.parent:null}function hl(e,t){switch(201347067&t.flags){case 1:return qn(e,t.nodeIndex).renderElement;case 2:return zn(e,t.nodeIndex).renderText}}function dl(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function pl(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function gl(e){return 1<{"number"==typeof e?(t[e]=r,n|=gl(e)):l[e]=r}),{matchedQueries:t,references:l,matchedQueryIds:n}}function fl(e,t){return e.map(e=>{let n,l;return Array.isArray(e)?[l,n]=e:(l=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,Oe,{value:t,configurable:!0}),{flags:l,token:n,tokenKey:Jn(n)}})}function yl(e,t,n){let l=n.renderParent;return l?0==(1&l.flags)||0==(33554432&l.flags)||l.element.componentRendererType&&l.element.componentRendererType.encapsulation===We.Native?qn(e,n.renderParent.nodeIndex).renderElement:void 0:t}const vl=new WeakMap;function bl(e){let t=vl.get(e);return t||((t=e(()=>Zn)).factory=e,vl.set(e,t)),t}function _l(e,t,n,l,r){3===t&&(n=e.renderer.parentNode(hl(e,e.def.lastRenderRootNode))),wl(e,t,0,e.def.nodes.length-1,n,l,r)}function wl(e,t,n,l,r,s,i){for(let o=n;o<=l;o++){const n=e.def.nodes[o];11&n.flags&&Sl(e,n,t,r,s,i),o+=n.childCount}}function Cl(e,t,n,l,r,s){let i=e;for(;i&&!dl(i);)i=i.parent;const o=i.parent,a=cl(i),u=a.nodeIndex+a.childCount;for(let c=a.nodeIndex+1;c<=u;c++){const e=o.def.nodes[c];e.ngContentIndex===t&&Sl(o,e,n,l,r,s),c+=e.childCount}if(!o.parent){const i=e.root.projectableNodes[t];if(i)for(let t=0;t-1}(r,s.providedIn)||"root"===s.providedIn&&r._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:a.factory,deps:[],index:n,token:t.token},e._providers[n]=Pl,e._providers[n]=Vl(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Fe(l)}var r,s}function Vl(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const l=n.length;switch(l){case 0:return new t;case 1:return new t(Rl(e,n[0]));case 2:return new t(Rl(e,n[0]),Rl(e,n[1]));case 3:return new t(Rl(e,n[0]),Rl(e,n[1]),Rl(e,n[2]));default:const r=new Array(l);for(let t=0;t=n.length)&&(t=n.length-1),t<0)return null;const l=n[t];return l.viewContainerParent=null,qe(n,t),Qn.dirtyParentQueries(l),$l(l),l}function Ll(e,t,n){const l=t?hl(t,t.def.lastRenderRootNode):e.renderElement,r=n.renderer.parentNode(l),s=n.renderer.nextSibling(l);_l(n,2,r,s,void 0)}function $l(e){_l(e,3,null,null,void 0)}const Ul=new Object;function jl(e,t,n,l,r,s){return new Bl(e,t,n,l,r,s)}class Bl extends nn{constructor(e,t,n,l,r,s){super(),this.selector=e,this.componentType=t,this._inputs=l,this._outputs=r,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,l){if(!l)throw new Error("ngModule should be provided");const r=bl(this.viewDefFactory),s=r.nodes[0].element.componentProvider.nodeIndex,i=Qn.createRootView(e,t||[],n,r,l,Ul),o=Wn(i,s).instance;return n&&i.renderer.setAttribute(qn(i,0).renderElement,"ng-version",bn.full),new Hl(i,new Gl(i),o)}}class Hl extends tn{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new hn(qn(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Yl(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function zl(e,t,n){return new ql(e,t,n)}class ql{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new hn(this._data.renderElement)}get injector(){return new Yl(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=cl(e),e=e.parent;return e?new Yl(e,t):new Yl(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Fl(this._data,e);Qn.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Gl(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const l=e.createEmbeddedView(t||{});return this.insert(l,n),l}createComponent(e,t,n,l,r){const s=n||this.parentInjector;r||e instanceof un||(r=s.get(Be));const i=e.create(s,l,void 0,r);return this.insert(i.hostView,t),i}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,l){let r=t.viewContainer._embeddedViews;null==n&&(n=r.length),l.viewContainerParent=e,ze(r,n,l),function(e,t){const n=ul(t);if(!n||n===e||16&t.state)return;t.state|=16;let l=n.template._projectedViews;l||(l=n.template._projectedViews=[]),l.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,l),Qn.dirtyParentQueries(l),Ll(t,n>0?r[n-1]:null,l)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const l=e.viewContainer._embeddedViews,r=l[t];qe(l,t),null==n&&(n=l.length),ze(l,n,r),Qn.dirtyParentQueries(r),$l(r),Ll(e,n>0?l[n-1]:null,r)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Fl(this._data,e);t&&Qn.destroyView(t)}detach(e){const t=Fl(this._data,e);return t?new Gl(t):null}}function Wl(e){return new Gl(e)}class Gl{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return _l(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){il(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qn.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Qn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,$l(this._view),Qn.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Kl(e,t){return new Ql(e,t)}class Ql extends Rn{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Gl(Qn.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new hn(qn(this._parentView,this._def.nodeIndex).renderElement)}}function Zl(e,t){return new Yl(e,t)}class Yl{constructor(e,t){this.view=e,this.elDef=t}get(e,t=Rt.THROW_IF_NOT_FOUND){return Qn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Jn(e)},t)}}function Jl(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=qn(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return zn(e,n.nodeIndex).renderText;if(20240&n.flags)return Wn(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Xl(e){return new er(e.renderer)}class er{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,l]=kl(t),r=this.delegate.createElement(l,n);return e&&this.delegate.appendChild(e,r),r}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;ne())}onDestroy(e){this._destroyListeners.push(e)}}const lr=Jn(pn),rr=Jn(fn),sr=Jn(hn),ir=Jn(Fn),or=Jn(Rn),ar=Jn(Nt),ur=Jn(Rt),cr=Jn(Te);function hr(e,t,n,l,r,s,i,o){const a=[];if(i)for(let c in i){const[e,t]=i[c];a[e]={flags:8,name:c,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const u=[];if(o)for(let c in o)u.push({type:1,propName:c,target:null,eventName:o[c]});return pr(e,t|=16384,n,l,r,r,s,a,u)}function dr(e,t,n,l,r){return pr(-1,e,t,0,n,l,r)}function pr(e,t,n,l,r,s,i,o,a){const{matchedQueries:u,references:c,matchedQueryIds:h}=ml(n);a||(a=[]),o||(o=[]),s=_e(s);const d=fl(i,ye(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:l,bindings:o,bindingFlags:Tl(o),outputs:a,element:null,provider:{token:r,value:s,deps:d},text:null,query:null,ngContent:null}}function gr(e,t){return vr(e,t)}function mr(e,t){let n=e;for(;n.parent&&!dl(n);)n=n.parent;return br(n.parent,cl(n),!0,t.provider.value,t.provider.deps)}function fr(e,t){const n=br(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let l=0;lal(e,t,n,l)}function vr(e,t){const n=(8192&t.flags)>0,l=t.provider;switch(201347067&t.flags){case 512:return br(e,t.parent,n,l.value,l.deps);case 1024:return function(e,t,n,l,r){const s=r.length;switch(s){case 0:return l();case 1:return l(wr(e,t,n,r[0]));case 2:return l(wr(e,t,n,r[0]),wr(e,t,n,r[1]));case 3:return l(wr(e,t,n,r[0]),wr(e,t,n,r[1]),wr(e,t,n,r[2]));default:const i=Array(s);for(let l=0;lGe}),Ir={},Dr=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Pr=void 0;var Nr=["en",[["a","p"],["AM","PM"],Pr],[["AM","PM"],Pr,Pr],[["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"]],Pr,[["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"]],Pr,[["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}",Pr,"{1} 'at' {0}",Pr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function Ar(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Ir[t];if(n)return n;const l=t.split("-")[0];if(n=Ir[l])return n;if("en"===l)return Nr;throw new Error(`Missing locale data for the locale "${e}".`)}const Or="en-US";let Mr=Or;function Rr(e){var t;t="Expected localeId to be defined",null==e&&function(e){throw new Error(`ASSERTION ERROR: ${e}`)}(t),"string"==typeof e&&(Mr=e.toLowerCase().replace(/_/g,"-"))}class Vr extends T{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let l,r=e=>null,s=()=>null;e&&"object"==typeof e?(l=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(r=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(l=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const i=super.subscribe(l,r,s);return e instanceof d&&e.add(i),i}}function Fr(){return this._results[Wt()]()}class Lr{constructor(){this.dirty=!0,this._results=[],this.changes=new Vr,this.length=0;const e=Wt(),t=Lr.prototype;t[e]||(t[e]=Fr)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let l=0;l{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const jr=new ke("AppId");function Br(){return`${Hr()}${Hr()}${Hr()}`}function Hr(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const zr=new ke("Platform Initializer"),qr=new ke("Platform ID"),Wr=new ke("appBootstrapListener");class Gr{log(e){console.log(e)}warn(e){console.warn(e)}}const Kr=new ke("LocaleId"),Qr=!1;function Zr(){throw new Error("Runtime compiler is not loaded")}const Yr=Zr,Jr=Zr,Xr=Zr,es=Zr;class ts{constructor(){this.compileModuleSync=Yr,this.compileModuleAsync=Jr,this.compileModuleAndAllComponentsSync=Xr,this.compileModuleAndAllComponentsAsync=es}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class ns{}let ls,rs;function ss(){const e=xe.wtf;return!(!e||!(ls=e.trace)||(rs=ls.events,0))}const is=ss();function os(e,t){return null}const as=is?function(e,t=null){return rs.createScope(e,t)}:(e,t)=>os,us=is?function(e,t){return ls.leaveScope(e,t),t}:(e,t)=>t,cs=(()=>Promise.resolve(0))();function hs(e){"undefined"==typeof Zone?cs.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class ds{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vr(!1),this.onMicrotaskEmpty=new Vr(!1),this.onStable=new Vr(!1),this.onError=new Vr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,l,r,s,i)=>{try{return fs(t),e.invokeTask(l,r,s,i)}finally{ys(t)}},onInvoke:(e,n,l,r,s,i,o)=>{try{return fs(t),e.invoke(l,r,s,i,o)}finally{ys(t)}},onHasTask:(e,n,l,r)=>{e.hasTask(l,r),n===l&&("microTask"==r.change?(t.hasPendingMicrotasks=r.microTask,ms(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,l,r)=>(e.handleError(l,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ds.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ds.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,l){const r=this._inner,s=r.scheduleEventTask("NgZoneEvent: "+l,e,gs,ps,ps);try{return r.runTask(s,t,n)}finally{r.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function ps(){}const gs={};function ms(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fs(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ys(e){e._nesting--,ms(e)}class vs{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Vr,this.onMicrotaskEmpty=new Vr,this.onStable=new Vr,this.onError=new Vr}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class bs{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ds.assertNotInAngularZone(),hs(()=>{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())hs(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let l=-1;t&&t>0&&(l=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==l),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:l,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class _s{constructor(){this._applications=new Map,Ss.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Ss.findTestabilityInTree(this,e,t)}}class ws{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let Cs,Ss=new ws,Es=function(e,t,n){return e.get(ns).createCompiler([t]).compileModuleAsync(n)},xs=function(e){return e instanceof un};const ks=new ke("AllowMultipleToken");class Ts{constructor(e,t){this.name=e,this.token=t}}function Is(e,t,n=[]){const l=`Platform: ${t}`,r=new ke(l);return(t=[])=>{let s=Ds();if(!s||s.injector.get(ks,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{const e=n.concat(t).concat({provide:r,useValue:!0});!function(e){if(Cs&&!Cs.destroyed&&!Cs.injector.get(ks,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Cs=e.get(Ps);const t=e.get(zr,null);t&&t.forEach(e=>e())}(Rt.create({providers:e,name:l}))}return function(e){const t=Ds();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function Ds(){return Cs&&!Cs.destroyed?Cs:null}class Ps{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n="noop"===(r=t?t.ngZone:void 0)?new vs:("zone.js"===r?void 0:r)||new ds({enableLongStackTrace:lt()}),l=[{provide:ds,useValue:n}];var r;return n.run(()=>{const t=Rt.create({providers:l,parent:this.injector,name:e.moduleType.name}),r=e.create(t),s=r.injector.get(et,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return Qr&&Rr(r.injector.get(Kr,Or)||Or),r.onDestroy(()=>Os(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const l=n();return Jt(l)?l.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):l}catch(l){throw t.runOutsideAngular(()=>e.handleError(l)),l}}(s,n,()=>{const e=r.injector.get(Ur);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(r),r))})})}bootstrapModule(e,t=[]){const n=Ns({},t);return Es(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(As);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${ye(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. `+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Ns(e,t){return Array.isArray(t)?t.reduce(Ns,e):Object.assign({},e,t)}let As=(()=>{class e{constructor(e,t,n,l,r,s){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=l,this._componentFactoryResolver=r,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=lt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const i=new w(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),o=new w(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{ds.assertNotInAngularZone(),hs(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ds.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=J(i,o.pipe(e=>X()(function(e,t){return function(t){let n;n="function"==typeof e?e:function(){return e};const l=Object.create(t,le);return l.source=t,l.subjectFactory=n,l}}(se)(e))))}bootstrap(e,t){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=e instanceof nn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const l=xs(n)?null:this._injector.get(Be),r=n.create(Rt.NULL,[],t||n.selector,l);r.onDestroy(()=>{this._unloadComponent(r)});const s=r.injector.get(bs,null);return s&&r.injector.get(_s).registerApplication(r.location.nativeElement,s),this._loadComponent(r),lt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,us(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Os(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Wr,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Os(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=as("ApplicationRef#tick()"),e})();function Os(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ms{}const Rs="#",Vs="NgFactory";class Fs{}const Ls={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class $s{constructor(e,t){this._compiler=e,this._config=t||Ls}load(e){return!Qr&&this._compiler instanceof ts?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,l]=e.split(Rs);return void 0===l&&(l="default"),n("zn8P")(t).then(e=>e[l]).then(e=>Us(e,t,l)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,l]=e.split(Rs),r=Vs;return void 0===l&&(l="default",r=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[l+r]).then(e=>Us(e,t,l))}}function Us(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class js{constructor(e,t){this.name=e,this.callback=t}}class Bs{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof Hs&&t.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 Hs extends Bs{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,l){t.childNodes.forEach(t=>{t instanceof Hs&&(n(t)&&l.push(t),e(t,n,l))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,l){t instanceof Hs&&t.childNodes.forEach(t=>{n(t)&&l.push(t),t instanceof Hs&&e(t,n,l)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof Hs)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const zs=new Map,qs=function(e){return zs.get(e)||null};function Ws(e){zs.set(e.nativeNode,e)}const Gs=Is(null,"core",[{provide:qr,useValue:"unknown"},{provide:Ps,deps:[Rt]},{provide:_s,deps:[]},{provide:Gr,deps:[]}]);function Ks(){return On}function Qs(){return Mn}function Zs(e){return e?(Qr&&Rr(e),e):Or}function Ys(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Js{constructor(e){}}function Xs(e,t,n,l,r,s){e|=1;const{matchedQueries:i,references:o,matchedQueryIds:a}=ml(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:i,matchedQueryIds:a,references:o,ngContentIndex:n,childCount:l,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?bl(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Zn},provider:null,text:null,query:null,ngContent:null}}function ei(e,t,n,l,r,s,i=[],o,a,u,c,h){u||(u=Zn);const{matchedQueries:d,references:p,matchedQueryIds:g}=ml(n);let m=null,f=null;s&&([m,f]=kl(s)),o=o||[];const y=new Array(o.length);for(let _=0;_{const[n,l]=kl(e);return[n,l,t]});return h=function(e){if(e&&e.id===Xn){const t=null!=e.encapsulation&&e.encapsulation!==We.None||e.styles.length||Object.keys(e.data).length;e.id=t?`c${nl++}`:el}return e&&e.id===el&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:g,references:p,ngContentIndex:l,childCount:r,bindings:y,bindingFlags:Tl(y),outputs:v,element:{ns:m,name:f,attrs:b,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||Zn},provider:null,text:null,query:null,ngContent:null}}function ti(e,t,n){const l=n.element,r=e.root.selectorOrNode,s=e.renderer;let i;if(e.parent||!r){i=l.name?s.createElement(l.name,l.ns):s.createComment("");const r=yl(e,t,n);r&&s.appendChild(r,i)}else i=s.selectRootElement(r,!!l.componentRendererType&&l.componentRendererType.encapsulation===We.ShadowDom);if(l.attrs)for(let o=0;oal(e,t,n,l)}function ri(e,t,n,l){if(!rl(e,t,n,l))return!1;const r=t.bindings[n],s=qn(e,t.nodeIndex),i=s.renderElement,o=r.name;switch(15&r.flags){case 1:!function(e,t,n,l,r,s){const i=t.securityContext;let o=i?e.root.sanitizer.sanitize(i,s):s;o=null!=o?o.toString():null;const a=e.renderer;null!=s?a.setAttribute(n,r,o,l):a.removeAttribute(n,r,l)}(e,r,i,r.ns,o,l);break;case 2:!function(e,t,n,l){const r=e.renderer;l?r.addClass(t,n):r.removeClass(t,n)}(e,i,o,l);break;case 4:!function(e,t,n,l,r){let s=e.root.sanitizer.sanitize(xt.STYLE,r);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const i=e.renderer;null!=s?i.setStyle(n,l,s):i.removeStyle(n,l)}(e,r,i,o,l);break;case 8:!function(e,t,n,l,r){const s=t.securityContext;let i=s?e.root.sanitizer.sanitize(s,r):r;e.renderer.setProperty(n,l,i)}(33554432&t.flags&&32&r.flags?s.componentView:e,r,i,o,l)}return!0}function si(e,t,n){let l=[];for(let r in n)l.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,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:t,filterId:gl(t),bindings:l},ngContent:null}}function ii(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&pl(e);){let n=e.parentNodeDef;e=e.parent;const l=n.nodeIndex+n.childCount;for(let r=0;r<=l;r++){const l=e.def.nodes[r];67108864&l.flags&&536870912&l.flags&&(l.query.filterId&t)===l.query.filterId&&Kn(e,r).setDirty(),!(1&l.flags&&r+l.childCount0)u=e,yi(e)||(c=e);else for(;u&&g===u.nodeIndex+u.childCount;){const e=u.parent;e&&(e.childFlags|=u.childFlags,e.childMatchedQueries|=u.childMatchedQueries),c=(u=e)&&yi(u)?u.renderParent:u}}return{factory:null,nodeFlags:i,rootNodeFlags:o,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Zn,updateRenderer:l||Zn,handleEvent:(e,n,l,r)=>t[n].element.handleEvent(e,l,r),bindingCount:r,outputCount:s,lastRenderRootNode:p}}function yi(e){return 0!=(1&e.flags)&&null===e.element.name}function vi(e,t,n){const l=t.element&&t.element.template;if(l){if(!l.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(l.lastRenderRootNode&&16777216&l.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const l=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=l&&t.nodeIndex+t.childCount>l)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function bi(e,t,n,l){const r=Ci(e.root,e.renderer,e,t,n);return Si(r,e.component,l),Ei(r),r}function _i(e,t,n){const l=Ci(e,e.renderer,null,null,t);return Si(l,n,n),Ei(l),l}function wi(e,t,n,l){const r=t.element.componentRendererType;let s;return s=r?e.root.rendererFactory.createRenderer(l,r):e.root.renderer,Ci(e.root,s,e,t.element.componentProvider,n)}function Ci(e,t,n,l,r){const s=new Array(r.nodes.length),i=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:l,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(r.bindingCount),disposables:i,initIndex:-1}}function Si(e,t,n){e.component=t,e.context=n}function Ei(e){let t;dl(e)&&(t=qn(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,l=e.nodes;for(let r=0;r0&&ri(e,t,0,n)&&(p=!0),d>1&&ri(e,t,1,l)&&(p=!0),d>2&&ri(e,t,2,r)&&(p=!0),d>3&&ri(e,t,3,s)&&(p=!0),d>4&&ri(e,t,4,i)&&(p=!0),d>5&&ri(e,t,5,o)&&(p=!0),d>6&&ri(e,t,6,a)&&(p=!0),d>7&&ri(e,t,7,u)&&(p=!0),d>8&&ri(e,t,8,c)&&(p=!0),d>9&&ri(e,t,9,h)&&(p=!0),p}(e,t,n,l,r,s,i,o,a,u,c,h);case 2:return function(e,t,n,l,r,s,i,o,a,u,c,h){let d=!1;const p=t.bindings,g=p.length;if(g>0&&rl(e,t,0,n)&&(d=!0),g>1&&rl(e,t,1,l)&&(d=!0),g>2&&rl(e,t,2,r)&&(d=!0),g>3&&rl(e,t,3,s)&&(d=!0),g>4&&rl(e,t,4,i)&&(d=!0),g>5&&rl(e,t,5,o)&&(d=!0),g>6&&rl(e,t,6,a)&&(d=!0),g>7&&rl(e,t,7,u)&&(d=!0),g>8&&rl(e,t,8,c)&&(d=!0),g>9&&rl(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;g>0&&(d+=mi(n,p[0])),g>1&&(d+=mi(l,p[1])),g>2&&(d+=mi(r,p[2])),g>3&&(d+=mi(s,p[3])),g>4&&(d+=mi(i,p[4])),g>5&&(d+=mi(o,p[5])),g>6&&(d+=mi(a,p[6])),g>7&&(d+=mi(u,p[7])),g>8&&(d+=mi(c,p[8])),g>9&&(d+=mi(h,p[9]));const m=zn(e,t.nodeIndex).renderText;e.renderer.setValue(m,d)}return d}(e,t,n,l,r,s,i,o,a,u,c,h);case 16384:return function(e,t,n,l,r,s,i,o,a,u,c,h){const d=Wn(e,t.nodeIndex),p=d.instance;let g=!1,m=void 0;const f=t.bindings.length;return f>0&&ll(e,t,0,n)&&(g=!0,m=Sr(e,d,t,0,n,m)),f>1&&ll(e,t,1,l)&&(g=!0,m=Sr(e,d,t,1,l,m)),f>2&&ll(e,t,2,r)&&(g=!0,m=Sr(e,d,t,2,r,m)),f>3&&ll(e,t,3,s)&&(g=!0,m=Sr(e,d,t,3,s,m)),f>4&&ll(e,t,4,i)&&(g=!0,m=Sr(e,d,t,4,i,m)),f>5&&ll(e,t,5,o)&&(g=!0,m=Sr(e,d,t,5,o,m)),f>6&&ll(e,t,6,a)&&(g=!0,m=Sr(e,d,t,6,a,m)),f>7&&ll(e,t,7,u)&&(g=!0,m=Sr(e,d,t,7,u,m)),f>8&&ll(e,t,8,c)&&(g=!0,m=Sr(e,d,t,8,c,m)),f>9&&ll(e,t,9,h)&&(g=!0,m=Sr(e,d,t,9,h,m)),m&&p.ngOnChanges(m),65536&t.flags&&Hn(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),g}(e,t,n,l,r,s,i,o,a,u,c,h);case 32:case 64:case 128:return function(e,t,n,l,r,s,i,o,a,u,c,h){const d=t.bindings;let p=!1;const g=d.length;if(g>0&&rl(e,t,0,n)&&(p=!0),g>1&&rl(e,t,1,l)&&(p=!0),g>2&&rl(e,t,2,r)&&(p=!0),g>3&&rl(e,t,3,s)&&(p=!0),g>4&&rl(e,t,4,i)&&(p=!0),g>5&&rl(e,t,5,o)&&(p=!0),g>6&&rl(e,t,6,a)&&(p=!0),g>7&&rl(e,t,7,u)&&(p=!0),g>8&&rl(e,t,8,c)&&(p=!0),g>9&&rl(e,t,9,h)&&(p=!0),p){const p=Gn(e,t.nodeIndex);let m;switch(201347067&t.flags){case 32:m=new Array(d.length),g>0&&(m[0]=n),g>1&&(m[1]=l),g>2&&(m[2]=r),g>3&&(m[3]=s),g>4&&(m[4]=i),g>5&&(m[5]=o),g>6&&(m[6]=a),g>7&&(m[7]=u),g>8&&(m[8]=c),g>9&&(m[9]=h);break;case 64:m={},g>0&&(m[d[0].name]=n),g>1&&(m[d[1].name]=l),g>2&&(m[d[2].name]=r),g>3&&(m[d[3].name]=s),g>4&&(m[d[4].name]=i),g>5&&(m[d[5].name]=o),g>6&&(m[d[6].name]=a),g>7&&(m[d[7].name]=u),g>8&&(m[d[8].name]=c),g>9&&(m[d[9].name]=h);break;case 128:const e=n;switch(g){case 1:m=e.transform(n);break;case 2:m=e.transform(l);break;case 3:m=e.transform(l,r);break;case 4:m=e.transform(l,r,s);break;case 5:m=e.transform(l,r,s,i);break;case 6:m=e.transform(l,r,s,i,o);break;case 7:m=e.transform(l,r,s,i,o,a);break;case 8:m=e.transform(l,r,s,i,o,a,u);break;case 9:m=e.transform(l,r,s,i,o,a,u,c);break;case 10:m=e.transform(l,r,s,i,o,a,u,c,h)}}p.value=m}return p}(e,t,n,l,r,s,i,o,a,u,c,h);default:throw"unreachable"}}(e,t,l,r,s,i,o,a,u,c,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let l=!1;for(let r=0;r0&&sl(e,t,0,n),d>1&&sl(e,t,1,l),d>2&&sl(e,t,2,r),d>3&&sl(e,t,3,s),d>4&&sl(e,t,4,i),d>5&&sl(e,t,5,o),d>6&&sl(e,t,6,a),d>7&&sl(e,t,7,u),d>8&&sl(e,t,8,c),d>9&&sl(e,t,9,h)}(e,t,l,r,s,i,o,a,u,c,h,d):function(e,t,n){for(let l=0;l{const l=qi.get(e.token);3840&e.flags&&l&&(t=!0,n=n||l.deprecatedBehavior)}),e.modules.forEach(e=>{Wi.forEach((l,r)=>{me(r).providedIn===e&&(t=!0,n=n||l.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e);return t?(function(e){for(let t=0;t0){let t=new Set(e.modules);Wi.forEach((l,r)=>{if(t.has(me(r).providedIn)){let t={token:r,flags:l.flags|(n?4096:0),deps:fl(l.deps),value:l.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Jn(r)]=t}})}}(e=e.factory(()=>Zn)),e):e}(l))}const qi=new Map,Wi=new Map,Gi=new Map;function Ki(e){let t;qi.set(e.token,e),"function"==typeof e.token&&(t=me(e.token))&&"function"==typeof t.providedIn&&Wi.set(e.token,e)}function Qi(e,t){const n=bl(t.viewDefFactory),l=bl(n.nodes[0].element.componentView);Gi.set(e,l)}function Zi(){qi.clear(),Wi.clear(),Gi.clear()}function Yi(e){if(0===qi.size)return e;const t=function(e){const t=[];let n=null;for(let l=0;lZn);for(let l=0;l"-"+e[1].toLowerCase())}`)]=Pt(o))}const l=t.parent,o=qn(e,l.nodeIndex).renderElement;if(l.element.name)for(let t in n){const l=n[t];null!=l?e.renderer.setAttribute(o,t,l):e.renderer.removeAttribute(o,t)}else e.renderer.setValue(o,`bindings=${JSON.stringify(n,null,2)}`)}}var r,s}function po(e,t,n,l){Di(e,t,n,...l)}function go(e,t){for(let n=t;n++s===r?e.error.bind(e,...t):Zn),snew fo(e,t),handleEvent:ao,updateDirectives:uo,updateRenderer:co}:{setCurrentNode:()=>{},createRootView:$i,createEmbeddedView:bi,createComponentView:wi,createNgModuleRef:tr,overrideProvider:Zn,overrideComponentView:Zn,clearOverrides:Zn,checkAndUpdateView:ki,checkNoChangesView:xi,destroyView:Ni,createDebugContext:(e,t)=>new fo(e,t),handleEvent:(e,t,n,l)=>e.def.handleEvent(e,t,n,l),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Ji:Xi,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Ji:Xi,e)};Qn.setCurrentNode=e.setCurrentNode,Qn.createRootView=e.createRootView,Qn.createEmbeddedView=e.createEmbeddedView,Qn.createComponentView=e.createComponentView,Qn.createNgModuleRef=e.createNgModuleRef,Qn.overrideProvider=e.overrideProvider,Qn.overrideComponentView=e.overrideComponentView,Qn.clearOverrides=e.clearOverrides,Qn.checkAndUpdateView=e.checkAndUpdateView,Qn.checkNoChangesView=e.checkNoChangesView,Qn.destroyView=e.destroyView,Qn.resolveDep=wr,Qn.createDebugContext=e.createDebugContext,Qn.handleEvent=e.handleEvent,Qn.updateDirectives=e.updateDirectives,Qn.updateRenderer=e.updateRenderer,Qn.dirtyParentQueries=ii}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),l={};for(const r in e.providersByKey)l[r]=e.providersByKey[r];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:l}}(bl(this._ngModuleDefFactory));return Qn.createNgModuleRef(this.moduleType,e||Rt.NULL,this._bootstrapComponents,t)}}const Eo={production:!0,baseUrl:"http://34.199.129.2:8090"};class xo{}class ko{constructor(){this.title="DOGGYWOOD VETERINARY CLINIC"}}class To{}const Io=new ke("Location Initialized");class Do{}const Po=new ke("appBaseHref");class No{constructor(e,t){this._subject=new Vr,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=No.stripTrailingSlash(Ao(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+No.normalizeQueryParams(t))}normalize(e){return No.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,Ao(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+No.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+No.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function Ao(e){return e.replace(/\/index.html$/,"")}class Oo extends Do{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=No.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,l){let r=this.prepareExternalUrl(n+No.normalizeQueryParams(l));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,l){let r=this.prepareExternalUrl(n+No.normalizeQueryParams(l));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class Mo extends Do{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return No.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+No.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,l){const r=this.prepareExternalUrl(n+No.normalizeQueryParams(l));this._platformLocation.pushState(e,t,r)}replaceState(e,t,n,l){const r=this.prepareExternalUrl(n+No.normalizeQueryParams(l));this._platformLocation.replaceState(e,t,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const Ro=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),Vo=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Fo=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),Lo=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),$o=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Uo(e,t,n){const l=Ar(e),r=Ko([l[Dr.DaysFormat],l[Dr.DaysStandalone]],t);return Ko(r,n)}function jo(e,t,n){const l=Ar(e),r=Ko([l[Dr.MonthsFormat],l[Dr.MonthsStandalone]],t);return Ko(r,n)}function Bo(e,t){return Ko(Ar(e)[Dr.DateFormat],t)}function Ho(e,t){return Ko(Ar(e)[Dr.TimeFormat],t)}function zo(e,t){return Ko(Ar(e)[Dr.DateTimeFormat],t)}function qo(e,t){const n=Ar(e),l=n[Dr.NumberSymbols][t];if(void 0===l){if(t===$o.CurrencyDecimal)return n[Dr.NumberSymbols][$o.Decimal];if(t===$o.CurrencyGroup)return n[Dr.NumberSymbols][$o.Group]}return l}const Wo=function(e){return Ar(e)[Dr.PluralCase]};function Go(e){if(!e[Dr.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Dr.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ko(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function Qo(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const Zo=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yo={},Jo=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|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]*)/,Xo=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),ea=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),ta=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function na(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function la(e,t,n="-",l,r){let s="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,s=n));let i=String(e);for(;i.length0||o>-n)&&(o+=n),e===ea.Hours)0===o&&-12===n&&(o=12);else if(e===ea.FractionalSeconds)return a=t,la(o,3).substr(0,a);var a;const u=qo(i,$o.MinusSign);return la(o,t,u,l,r)}}function sa(e,t,n=Vo.Format,l=!1){return function(r,s){return function(e,t,n,l,r,s){switch(n){case ta.Months:return jo(t,r,l)[e.getMonth()];case ta.Days:return Uo(t,r,l)[e.getDay()];case ta.DayPeriods:const i=e.getHours(),o=e.getMinutes();if(s){const e=function(e){const t=Ar(e);return Go(t),(t[Dr.ExtraData][2]||[]).map(e=>"string"==typeof e?Qo(e):[Qo(e[0]),Qo(e[1])])}(t),n=function(e,t,n){const l=Ar(e);Go(l);const r=Ko([l[Dr.ExtraData][0],l[Dr.ExtraData][1]],t)||[];return Ko(r,n)||[]}(t,r,l);let s;if(e.forEach((e,t)=>{if(Array.isArray(e)){const{hours:l,minutes:r}=e[0],{hours:a,minutes:u}=e[1];i>=l&&o>=r&&(i0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Xo.Short:return(r>=0?"+":"")+la(i,2,s)+la(Math.abs(r%60),2,s);case Xo.ShortGMT:return"GMT"+(r>=0?"+":"")+la(i,1,s);case Xo.Long:return"GMT"+(r>=0?"+":"")+la(i,2,s)+":"+la(Math.abs(r%60),2,s);case Xo.Extended:return 0===l?"Z":(r>=0?"+":"")+la(i,2,s)+":"+la(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}const oa=0,aa=4;function ua(e,t=!1){return function(n,l){let r;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();r=1+Math.floor((t+e)/7)}else{const e=function(e){const t=new Date(e,oa,1).getDay();return new Date(e,0,1+(t<=aa?aa:aa+7)-t)}(n.getFullYear()),t=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(aa-s.getDay()))).getTime()-e.getTime();r=1+Math.round(t/6048e5)}var s;return la(r,e,qo(l,$o.MinusSign))}}const ca={};function ha(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function da(e){return e instanceof Date&&!isNaN(e.valueOf())}const pa=new ke("UseV4Plurals");class ga{}class ma extends ga{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):Wo(t||this.locale)(e)){case Ro.Zero:return"zero";case Ro.One:return"one";case Ro.Two:return"two";case Ro.Few:return"few";case Ro.Many:return"many";default:return"other"}}}function fa(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[l,r]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(l.trim()===t)return decodeURIComponent(r)}return null}class ya{}class va{constructor(e,t,n,l){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=l,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Zt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ye(e.item)}`);this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let ba=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class _a extends ba{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class wa{constructor(e,t,n,l){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=l}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 Ca{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){lt()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,l)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new wa(null,this._ngForOf,-1,-1),null===l?void 0:l),r=new Sa(e,n);t.push(r)}else if(null==l)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,l);const s=new Sa(e,r);t.push(s)}});for(let n=0;n{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class Sa{constructor(e,t){this.record=e,this.view=t}}class Ea{constructor(e,t){this._viewContainer=e,this._context=new xa,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ka("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ka("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}class xa{constructor(){this.$implicit=null,this.ngIf=null}}function ka(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ye(t)}'.`)}class Ta{}class Ia{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}getValue(){return null}setNgStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}applyChanges(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}_setStyle(e,t){const[n,l]=e.split(".");null!=(t=null!=t&&l?`${t}${l}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}}let Da=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class Pa extends Da{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}class Na{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(e){const t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)}_hasContextShapeChanged(e){const t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(let e of n)if(-1===t.indexOf(e))return!0;return!1}return!0}_updateExistingContext(e){for(let t of Object.keys(e))this._viewRef.context[t]=this.ngTemplateOutletContext[t]}}class Aa{}const Oa=new ke("DocumentToken"),Ma="server";let Ra=(()=>{class e{}return e.ngInjectableDef=ge({token:e,providedIn:"root",factory:()=>new Va($e(Oa),window,$e(et))}),e})();class Va{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector(`#${e}`);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,l=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],l-r[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}const Fa=new w(e=>e.complete());function La(e){return e?function(e){return new w(t=>e.schedule(()=>t.complete()))}(e):Fa}function $a(e){const t=new w(t=>{t.next(e),t.complete()});return t._isScalar=!0,t.value=e,t}function Ua(...e){let t=e[e.length-1];switch(D(t)?e.pop():t=void 0,e.length){case 0:return La(t);case 1:return t?q(e,t):$a(e[0]);default:return q(e,t)}}class ja extends T{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new E;return this._value}next(e){super.next(this._value=e)}}function Ba(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Ba.prototype=Object.create(Error.prototype);const Ha=Ba,za={};class qa{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new Wa(e,this.resultSelector))}}class Wa extends j{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(za),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n{let n;try{n=e()}catch(l){return void t.error(l)}return(n?W(n):La()).subscribe(t)})}function Ka(){return Y(1)}function Qa(e,t){return function(n){return n.lift(new Za(e,t))}}class Za{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new Ya(e,this.predicate,this.thisArg))}}class Ya extends m{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}function Ja(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Ja.prototype=Object.create(Error.prototype);const Xa=Ja;function eu(e){return function(t){return 0===e?La():t.lift(new tu(e))}}class tu{constructor(e){if(this.total=e,this.total<0)throw new Xa}call(e,t){return t.subscribe(new nu(e,this.total))}}class nu extends m{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,l=this.count++;t.length0){const n=this.count>=this.total?this.total:this.count,l=this.ring;for(let r=0;rlu({hasValue:!1,next(){this.hasValue=!0},complete(){if(!this.hasValue)throw e()}});function ou(){return new Ha}function au(e=null){return t=>t.lift(new uu(e))}class uu{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new cu(e,this.defaultValue))}}class cu extends m{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function hu(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Qa((t,n)=>e(t,n,l)):Z,eu(1),n?au(t):iu(()=>new Ha))}function du(e){return function(t){const n=new pu(e),l=t.lift(n);return n.caught=l}}class pu{constructor(e){this.selector=e}call(e,t){return t.subscribe(new gu(e,this.selector,this.caught))}}class gu extends j{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const l=new P(this,void 0,void 0);this.add(l),U(this,n,void 0,void 0,l)}}}function mu(e){return t=>0===e?La():t.lift(new fu(e))}class fu{constructor(e){if(this.total=e,this.total<0)throw new Xa}call(e,t){return t.subscribe(new yu(e,this.total))}}class yu extends m{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}function vu(e,t){const n=arguments.length>=2;return l=>l.pipe(e?Qa((t,n)=>e(t,n,l)):Z,mu(1),n?au(t):iu(()=>new Ha))}class bu{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new _u(e,this.predicate,this.thisArg,this.source))}}class _u extends m{constructor(e,t,n,l){super(e),this.predicate=t,this.thisArg=n,this.source=l,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function wu(e,t){return"function"==typeof t?n=>n.pipe(wu((n,l)=>W(e(n,l)).pipe(B((e,r)=>t(n,e,l,r))))):t=>t.lift(new Cu(e))}class Cu{constructor(e){this.project=e}call(e,t){return t.subscribe(new Su(e,this.project))}}class Su extends j{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(l){return void this.destination.error(l)}this._innerSub(t,e,n)}_innerSub(e,t,n){const l=this.innerSubscription;l&&l.unsubscribe();const r=new P(this,void 0,void 0);this.destination.add(r),this.innerSubscription=U(this,e,t,n,r)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,l,r){this.destination.next(t)}}function Eu(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(l){return l.lift(new xu(e,t,n))}}class xu{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new ku(e,this.accumulator,this.seed,this.hasSeed))}}class ku extends m{constructor(e,t,n,l){super(e),this.accumulator=t,this._seed=n,this.hasSeed=l,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(l){this.destination.error(l)}this.seed=n,this.destination.next(n)}}function Tu(e,t){return G(e,t,1)}class Iu{constructor(e){this.callback=e}call(e,t){return t.subscribe(new Du(e,this.callback))}}class Du extends m{constructor(e,t){super(e),this.add(new d(t))}}let Pu=null;function Nu(){return Pu}class Au{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}class Ou extends Au{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}const Mu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ru=3,Vu={"\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"},Fu={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"},Lu=(()=>{if(xe.Node)return xe.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class $u extends Ou{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new $u,Pu||(Pu=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return Mu}contains(e,t){return Lu.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let l=0;le.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const l=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return l.setAttribute(e,t),l}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const l=this.getStyle(e,t)||"";return n?l==n:l.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let l=0;l{n.get(Ur).donePromise.then(()=>{const n=Nu();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Hu,Oa,Rt],multi:!0}];class qu{static init(){var e;e=new qu,Ss=e}addToWindow(e){xe.getAngularTestability=(t,n=!0)=>{const l=e.findTestabilityInTree(t,n);if(null==l)throw new Error("Could not find testability for element.");return l},xe.getAllAngularTestabilities=()=>e.getAllTestabilities(),xe.getAllAngularRootElements=()=>e.getAllRootElements(),xe.frameworkStabilizers||(xe.frameworkStabilizers=[]),xe.frameworkStabilizers.push(e=>{const t=xe.getAllAngularTestabilities();let n=t.length,l=!1;const r=function(t){l=l||t,0==--n&&e(l)};t.forEach((function(e){e.whenStable(r)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const l=e.getTestability(t);return null!=l?l:n?Nu().isShadowRoot(t)?this.findTestabilityInTree(e,Nu().getHost(t),!0):this.findTestabilityInTree(e,Nu().parentElement(t),!0):null}}function Wu(e,t){"undefined"!=typeof COMPILED&&COMPILED||((xe.ng=xe.ng||{})[e]=t)}const Gu=(()=>({ApplicationRef:As,NgZone:ds}))();function Ku(e){return qs(e)}const Qu=new ke("EventManagerPlugins");class Zu{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let l=0;l{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class Xu extends Ju{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>Nu().remove(e))}}const ec={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/"},tc=/%COMP%/g,nc="_nghost-%COMP%",lc="_ngcontent-%COMP%";function rc(e,t,n){for(let l=0;l{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class ic{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new oc(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case We.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new cc(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case We.Native:case We.ShadowDom:return new hc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=rc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class oc{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(ec[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,l){if(l){t=l+":"+t;const r=ec[l];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const l=ec[n];l?e.removeAttributeNS(l,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,l){l&mn.DashCase?e.style.setProperty(t,n,l&mn.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&mn.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){uc(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return uc(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,sc(n)):this.eventManager.addEventListener(e,t,sc(n))}}const ac=(()=>"@".charCodeAt(0))();function uc(e,t){if(e.charCodeAt(0)===ac)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class cc extends oc{constructor(e,t,n,l){super(e),this.component=n;const r=rc(l+"-"+n.id,n.styles,[]);t.addStyles(r),this.contentAttr=lc.replace(tc,l+"-"+n.id),this.hostAttr=nc.replace(tc,l+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class hc extends oc{constructor(e,t,n,l){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=l,this.shadowRoot=l.encapsulation===We.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=rc(l.id,l.styles,[]);for(let s=0;s"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),pc=dc("addEventListener"),gc=dc("removeEventListener"),mc={},fc="FALSE",yc="ANGULAR",vc="addEventListener",bc="removeEventListener",_c="__zone_symbol__propagationStopped",wc="__zone_symbol__stopImmediatePropagation",Cc=(()=>{const e="undefined"!=typeof Zone&&Zone[dc("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),Sc=function(e){return!!Cc&&Cc.hasOwnProperty(e)},Ec=function(e){const t=mc[e.type];if(!t)return;const n=this[t];if(!n)return;const l=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,l):e.handler.apply(this,l)}{const t=n.slice();for(let n=0;n0;r||(r=e[n]=[]);const i=Sc(t)?Zone.root:Zone.current;if(0===r.length)r.push({zone:i,handler:l});else{let e=!1;for(let t=0;tthis.removeEventListener(e,t,l)}removeEventListener(e,t,n){let l=e[gc];if(!l)return e[bc].apply(e,[t,n,!1]);let r=mc[t],s=r&&e[r];if(!s)return e[bc].apply(e,[t,n,!1]);let i=!1;for(let o=0;o{l=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=()=>{});l||(r=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom `+"Hammer.JS loader failed."),r=()=>{}}),()=>{r()}}return l.runOutsideAngular(()=>{const r=this._config.buildHammer(e),s=function(e){l.runGuarded((function(){n(e)}))};return r.on(t,s),()=>{r.off(t,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Nc=["alt","control","meta","shift"],Ac={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class Oc extends Yu{constructor(e){super(e)}supports(e){return null!=Oc.parseEventName(e)}addEventListener(e,t,n){const l=Oc.parseEventName(t),r=Oc.eventCallback(l.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nu().onAndCancel(e,l.domEventName,r))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const l=Oc._normalizeKey(t.pop());let r="";if(Nc.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),r+=e+".")}),r+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=n,s.fullKey=r,s}static getEventFullKey(e){let t="",n=Nu().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Nc.forEach(l=>{l!=n&&(0,Ac[l])(e)&&(t+=l+".")}),t+=n}static eventCallback(e,t,n){return l=>{Oc.getEventFullKey(l)===e&&n.runGuarded(()=>t(l))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class Mc{}class Rc extends Mc{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case xt.NONE:return t;case xt.HTML:return t instanceof Fc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){let n=null;try{St=St||new rt(e);let l=t?String(t):"";n=St.getInertBodyElement(l);let r=5,s=l;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,l=s,s=n.innerHTML,n=St.getInertBodyElement(l)}while(l!==s);const i=new bt,o=i.sanitizeChildren(Et(n)||n);return lt()&&i.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),o}finally{if(n){const e=Et(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}(this._doc,String(t)));case xt.STYLE:return t instanceof Lc?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";const t=e.match(It);return t&&ot(t[1])===t[1]||e.match(Tt)&&function(e){let t=!0,n=!0;for(let l=0;le.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||l.length0?e[e.length-1]:null}function Sh(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Eh(e){return Xt(e)?e:Jt(e)?W(Promise.resolve(e)):Ua(e)}function xh(e,t,n){return n?function(e,t){return _h(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Dh(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const l in n.children){if(!t.children[l])return!1;if(!e(t.children[l],n.children[l]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,l,r){if(n.segments.length>r.length)return!!Dh(n.segments.slice(0,r.length),r)&&!l.hasChildren();if(n.segments.length===r.length){if(!Dh(n.segments,r))return!1;for(const t in l.children){if(!n.children[t])return!1;if(!e(n.children[t],l.children[t]))return!1}return!0}{const e=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Dh(n.segments,e)&&!!n.children[uh]&&t(n.children[uh],l,s)}}(t,n,n.segments)}(e.root,t.root)}class kh{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=hh(this.queryParams)),this._queryParamMap}toString(){return Oh.serialize(this)}}class Th{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Sh(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Mh(this)}}class Ih{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=hh(this.parameters)),this._parameterMap}toString(){return Uh(this)}}function Dh(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function Ph(e,t){let n=[];return Sh(e.children,(e,l)=>{l===uh&&(n=n.concat(t(e,l)))}),Sh(e.children,(e,l)=>{l!==uh&&(n=n.concat(t(e,l)))}),n}class Nh{}class Ah{parse(e){const t=new qh(e);return new kh(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){var t;return`${`/${function e(t,n){if(!t.hasChildren())return Mh(t);if(n){const n=t.children[uh]?e(t.children[uh],!1):"",l=[];return Sh(t.children,(t,n)=>{n!==uh&&l.push(`${n}:${e(t,!1)}`)}),l.length>0?`${n}(${l.join("//")})`:n}{const n=Ph(t,(n,l)=>l===uh?[e(t.children[uh],!1)]:[`${l}:${e(n,!1)}`]);return`${Mh(t)}/(${n.join("//")})`}}(e.root,!0)}`}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Vh(t)}=${Vh(e)}`).join("&"):`${Vh(t)}=${Vh(n)}`});return t.length?`?${t.join("&")}`:""}(e.queryParams)}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Oh=new Ah;function Mh(e){return e.segments.map(e=>Uh(e)).join("/")}function Rh(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vh(e){return Rh(e).replace(/%3B/gi,";")}function Fh(e){return Rh(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Lh(e){return decodeURIComponent(e)}function $h(e){return Lh(e.replace(/\+/g,"%20"))}function Uh(e){return`${Fh(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${Fh(e)}=${Fh(t[e])}`).join("")}`;var t}const jh=/^[^\/()?;=#]+/;function Bh(e){const t=e.match(jh);return t?t[0]:""}const Hh=/^[^=?&#]+/,zh=/^[^?&#]+/;class qh{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Th([],{}):new Th([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[uh]=new Th(e,t)),n}parseSegment(){const e=Bh(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Ih(Lh(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Bh(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Bh(this.remaining);e&&this.capture(n=e)}e[Lh(t)]=Lh(n)}parseQueryParam(e){const t=function(e){const t=e.match(Hh);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(zh);return t?t[0]:""}(this.remaining);e&&this.capture(n=e)}const l=$h(t),r=$h(n);if(e.hasOwnProperty(l)){let t=e[l];Array.isArray(t)||(e[l]=t=[t]),t.push(r)}else e[l]=r}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Bh(this.remaining),l=this.remaining[n.length];if("/"!==l&&")"!==l&&";"!==l)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r=uh);const s=this.parseChildren();t[r]=1===Object.keys(s).length?s[uh]:new Th([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Wh{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Gh(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Gh(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Kh(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Kh(e,this._root).map(e=>e.value)}}function Gh(e,t){if(e===t.value)return t;for(const n of t.children){const t=Gh(e,n);if(t)return t}return null}function Kh(e,t){if(e===t.value)return[t];for(const n of t.children){const l=Kh(e,n);if(l.length)return l.unshift(t),l}return[]}class Qh{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Zh(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Yh extends Wh{constructor(e,t){super(e),this.snapshot=t,ld(this,e)}toString(){return this.snapshot.toString()}}function Jh(e,t){const n=function(e,t){const n=new td([],{},{},"",{},uh,t,null,e.root,-1,{});return new nd("",new Qh(n,[]))}(e,t),l=new ja([new Ih("",{})]),r=new ja({}),s=new ja({}),i=new ja({}),o=new ja(""),a=new Xh(l,r,i,o,s,uh,t,n.root);return a.snapshot=n.root,new Yh(new Qh(a,[]),n)}class Xh{constructor(e,t,n,l,r,s,i,o){this.url=e,this.params=t,this.queryParams=n,this.fragment=l,this.data=r,this.outlet=s,this.component=i,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(B(e=>hh(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(e=>hh(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ed(e,t="emptyOnly"){const n=e.pathFromRoot;let l=0;if("always"!==t)for(l=n.length-1;l>=1;){const e=n[l],t=n[l-1];if(e.routeConfig&&""===e.routeConfig.path)l--;else{if(t.component)break;l--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(l))}class td{constructor(e,t,n,l,r,s,i,o,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=l,this.data=r,this.outlet=s,this.component=i,this.routeConfig=o,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}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=hh(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=hh(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class nd extends Wh{constructor(e,t){super(t),this.url=e,ld(this,t)}toString(){return rd(this._root)}}function ld(e,t){t.value._routerState=e,t.children.forEach(t=>ld(e,t))}function rd(e){const t=e.children.length>0?` { ${e.children.map(rd).join(", ")} } `:"";return`${e.value}${t}`}function sd(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,_h(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),_h(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n_h(e.parameters,l[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||id(e.parent,t.parent))}function od(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ad(e,t,n,l,r){let s={};return l&&Sh(l,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>`${e}`):`${e}`}),new kh(n.root===e?t:function e(t,n,l){const r={};return Sh(t.children,(t,s)=>{r[s]=t===n?l:e(t,n,l)}),new Th(t.segments,r)}(n.root,e,t),s,r)}class ud{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&od(n[0]))throw new Error("Root segment cannot have matrix parameters");const l=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(l&&l!==Ch(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class cd{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function hd(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[uh]:`${e}`}function dd(e,t,n){if(e||(e=new Th([],{})),0===e.segments.length&&e.hasChildren())return pd(e,t,n);const l=function(e,t,n){let l=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return s;const t=e.segments[r],i=hd(n[l]),o=l0&&void 0===i)break;if(i&&o&&"object"==typeof o&&void 0===o.outlets){if(!yd(i,o,t))return s;l+=2}else{if(!yd(i,{},t))return s;l++}r++}return{match:!0,pathIndex:r,commandIndex:l}}(e,t,n),r=n.slice(l.commandIndex);if(l.match&&l.pathIndex{null!==n&&(r[l]=dd(e.children[l],t,n))}),Sh(e.children,(e,t)=>{void 0===l[t]&&(r[t]=e)}),new Th(e.segments,r)}}function gd(e,t,n){const l=e.segments.slice(0,t);let r=0;for(;r{null!==e&&(t[n]=gd(new Th([],{}),0,e))}),t}function fd(e){const t={};return Sh(e,(e,n)=>t[n]=`${e}`),t}function yd(e,t,n){return e==n.path&&_h(t,n.parameters)}const vd=(e,t,n)=>B(l=>(new bd(t,l.targetRouterState,l.currentRouterState,n).activate(e),l));class bd{constructor(e,t,n,l){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=l}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),sd(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const l=Zh(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,l[t],n),delete l[t]}),Sh(l,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const l=e.value,r=t?t.value:null;if(l===r)if(l.component){const r=n.getContext(l.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),l=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:l})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const l=Zh(e),r=e.value.component?n.children:t;Sh(l,(e,t)=>this.deactivateRouteAndItsChildren(e,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const l=Zh(t);e.children.forEach(e=>{this.activateRoutes(e,l[e.value.outlet],n),this.forwardEvent(new ih(e.value.snapshot))}),e.children.length&&this.forwardEvent(new rh(e.value.snapshot))}activateRoutes(e,t,n){const l=e.value,r=t?t.value:null;if(sd(l),l===r)if(l.component){const r=n.getOrCreateContext(l.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(l.component){const t=n.getOrCreateContext(l.outlet);if(this.routeReuseStrategy.shouldAttach(l.snapshot)){const e=this.routeReuseStrategy.retrieve(l.snapshot);this.routeReuseStrategy.store(l.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),_d(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(l.snapshot),r=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=l,t.resolver=r,t.outlet&&t.outlet.activateWith(l,r),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function _d(e){sd(e.value),e.children.forEach(_d)}function wd(e){return"function"==typeof e}function Cd(e){return e instanceof kh}class Sd{constructor(e){this.segmentGroup=e||null}}class Ed{constructor(e){this.urlTree=e}}function xd(e){return new w(t=>t.error(new Sd(e)))}function kd(e){return new w(t=>t.error(new Ed(e)))}function Td(e){return new w(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Id{constructor(e,t,n,l,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=l,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(Be)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,uh).pipe(B(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(du(e=>{if(e instanceof Ed)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Sd)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,uh).pipe(B(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(du(e=>{if(e instanceof Sd)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const l=e.segments.length>0?new Th([],{[uh]:e}):e;return new kh(l,t,n)}expandSegmentGroup(e,t,n,l){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(B(e=>new Th([],e))):this.expandSegment(e,n,t,n.segments,l,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Ua({});const n=[],l=[],r={};return Sh(e,(e,s)=>{const i=t(s,e).pipe(B(e=>r[s]=e));s===uh?n.push(i):l.push(i)}),Ua.apply(null,n.concat(l)).pipe(Ka(),hu(),B(()=>r))}(n.children,(n,l)=>this.expandSegmentGroup(e,t,l,n))}expandSegment(e,t,n,l,r,s){return Ua(...n).pipe(B(i=>this.expandSegmentAgainstRoute(e,t,n,i,l,r,s).pipe(du(e=>{if(e instanceof Sd)return Ua(null);throw e}))),Ka(),vu(e=>!!e),du((e,n)=>{if(e instanceof Ha||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,l,r))return Ua(new Th([],{}));throw new Sd(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,l,r,s,i){return Ad(l)!==s?xd(t):void 0===l.redirectTo?this.matchSegmentAgainstRoute(e,t,l,r):i&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,l,r,s):xd(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,l,r,s){return"**"===l.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,l,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,l,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,l){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?kd(r):this.lineralizeSegments(n,r).pipe(G(n=>{const r=new Th(n,{});return this.expandSegment(e,r,t,n,l,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,l,r,s){const{matched:i,consumedSegments:o,lastChild:a,positionalParamSegments:u}=Dd(t,l,r);if(!i)return xd(t);const c=this.applyRedirectCommands(o,l.redirectTo,u);return l.redirectTo.startsWith("/")?kd(c):this.lineralizeSegments(l,c).pipe(G(l=>this.expandSegment(e,t,n,l.concat(r.slice(a)),s,!1)))}matchSegmentAgainstRoute(e,t,n,l){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(B(e=>(n._loadedConfig=e,new Th(l,{})))):Ua(new Th(l,{}));const{matched:r,consumedSegments:s,lastChild:i}=Dd(t,n,l);if(!r)return xd(t);const o=l.slice(i);return this.getChildConfig(e,n,l).pipe(G(e=>{const n=e.module,l=e.routes,{segmentGroup:r,slicedSegments:i}=function(e,t,n,l){return n.length>0&&function(e,t,n){return n.some(n=>Nd(e,t,n)&&Ad(n)!==uh)}(e,n,l)?{segmentGroup:Pd(new Th(t,function(e,t){const n={};n[uh]=t;for(const l of e)""===l.path&&Ad(l)!==uh&&(n[Ad(l)]=new Th([],{}));return n}(l,new Th(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Nd(e,t,n))}(e,n,l)?{segmentGroup:Pd(new Th(e.segments,function(e,t,n,l){const r={};for(const s of n)Nd(e,t,s)&&!l[Ad(s)]&&(r[Ad(s)]=new Th([],{}));return Object.assign({},l,r)}(e,n,l,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,o,l);return 0===i.length&&r.hasChildren()?this.expandChildren(n,l,r).pipe(B(e=>new Th(s,e))):0===l.length&&0===i.length?Ua(new Th(s,{})):this.expandSegment(n,r,l,i,uh,!0).pipe(B(e=>new Th(s.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Ua(new mh(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Ua(t._loadedConfig):function(e,t,n){const l=t.canLoad;return l&&0!==l.length?W(l).pipe(B(l=>{const r=e.get(l);let s;if(function(e){return e&&wd(e.canLoad)}(r))s=r.canLoad(t,n);else{if(!wd(r))throw new Error("Invalid CanLoad guard");s=r(t,n)}return Eh(s)})).pipe(Ka(),(r=e=>!0===e,e=>e.lift(new bu(r,void 0,e)))):Ua(!0);var r}(e.injector,t,n).pipe(G(n=>n?this.configLoader.load(e.injector,t).pipe(B(e=>(t._loadedConfig=e,e))):function(e){return new w(t=>t.error(ph(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Ua(new mh([],e))}lineralizeSegments(e,t){let n=[],l=t.root;for(;;){if(n=n.concat(l.segments),0===l.numberOfChildren)return Ua(n);if(l.numberOfChildren>1||!l.children[uh])return Td(e.redirectTo);l=l.children[uh]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,l){const r=this.createSegmentGroup(e,t.root,n,l);return new kh(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Sh(e,(e,l)=>{if("string"==typeof e&&e.startsWith(":")){const r=e.substring(1);n[l]=t[r]}else n[l]=e}),n}createSegmentGroup(e,t,n,l){const r=this.createSegments(e,t.segments,n,l);let s={};return Sh(t.children,(t,r)=>{s[r]=this.createSegmentGroup(e,t,n,l)}),new Th(r,s)}createSegments(e,t,n,l){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,l):this.findOrReturn(t,n))}findPosParam(e,t,n){const l=n[t.path.substring(1)];if(!l)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return l}findOrReturn(e,t){let n=0;for(const l of t){if(l.path===e.path)return t.splice(n),l;n++}return e}}function Dd(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const l=(t.matcher||gh)(n,e,t);return l?{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,positionalParamSegments:l.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Pd(e){if(1===e.numberOfChildren&&e.children[uh]){const t=e.children[uh];return new Th(e.segments.concat(t.segments),t.children)}return e}function Nd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ad(e){return e.outlet||uh}class Od{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Md{constructor(e,t){this.component=e,this.route=t}}function Rd(e,t,n){const l=e._root;return function e(t,n,l,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Zh(n);return t.children.forEach(t=>{!function(t,n,l,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=n?n.value:null,a=l?l.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Dh(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Dh(e.url,t.url)||!_h(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!id(e,t)||!_h(e.queryParams,t.queryParams);case"paramsChange":default:return!id(e,t)}}(o,i,i.routeConfig.runGuardsAndResolvers);u?s.canActivateChecks.push(new Od(r)):(i.data=o.data,i._resolvedData=o._resolvedData),e(t,n,i.component?a?a.children:null:l,r,s),u&&s.canDeactivateChecks.push(new Md(a&&a.outlet&&a.outlet.component||null,o))}else o&&Fd(n,a,s),s.canActivateChecks.push(new Od(r)),e(t,null,i.component?a?a.children:null:l,r,s)}(t,i[t.value.outlet],l,r.concat([t.value]),s),delete i[t.value.outlet]}),Sh(i,(e,t)=>Fd(e,l.getContext(t),s)),s}(l,t?t._root:null,n,[l.value])}function Vd(e,t,n){const l=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(l?l.module.injector:n).get(e)}function Fd(e,t,n){const l=Zh(e),r=e.value;Sh(l,(e,l)=>{Fd(e,r.component?t?t.children.getContext(l):null:t,n)}),n.canDeactivateChecks.push(new Md(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}const Ld=Symbol("INITIAL_VALUE");function $d(){return wu(e=>(function(...e){let t=null,n=null;return D(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&a(e[0])&&(e=e[0]),q(e,n).lift(new qa(t))})(...e.map(e=>e.pipe(mu(1),function(...e){return t=>{let n=e[e.length-1];D(n)?e.pop():n=null;const l=e.length;return function(...e){return Ka()(Ua(...e))}(1!==l||n?l>0?q(e,n):La(n):$a(e[0]),t)}}(Ld)))).pipe(Eu((e,t)=>{let n=!1;return t.reduce((e,l,r)=>{if(e!==Ld)return e;if(l===Ld&&(n=!0),!n){if(!1===l)return l;if(r===t.length-1||Cd(l))return l}return e},e)},Ld),Qa(e=>e!==Ld),B(e=>Cd(e)?e:!0===e),mu(1)))}function Ud(e,t){return null!==e&&t&&t(new sh(e)),Ua(!0)}function jd(e,t){return null!==e&&t&&t(new lh(e)),Ua(!0)}function Bd(e,t,n){const l=t.routeConfig?t.routeConfig.canActivate:null;return l&&0!==l.length?Ua(l.map(l=>Ga(()=>{const r=Vd(l,t,n);let s;if(function(e){return e&&wd(e.canActivate)}(r))s=Eh(r.canActivate(t,e));else{if(!wd(r))throw new Error("Invalid CanActivate guard");s=Eh(r(t,e))}return s.pipe(vu())}))).pipe($d()):Ua(!0)}function Hd(e,t,n){const l=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(e=>(function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null})(e)).filter(e=>null!==e).map(t=>Ga(()=>Ua(t.guards.map(r=>{const s=Vd(r,t.node,n);let i;if(function(e){return e&&wd(e.canActivateChild)}(s))i=Eh(s.canActivateChild(l,e));else{if(!wd(s))throw new Error("Invalid CanActivateChild guard");i=Eh(s(l,e))}return i.pipe(vu())})).pipe($d())));return Ua(r).pipe($d())}class zd{}class qd{constructor(e,t,n,l,r,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const e=Kd(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,uh),n=new td([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},uh,this.rootComponentType,null,this.urlTree.root,-1,{}),l=new Qh(n,t),r=new nd(this.url,l);return this.inheritParamsAndData(r._root),Ua(r)}catch(e){return new w(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=ed(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=Ph(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),l=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${l}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===uh?-1:t.value.outlet===uh?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,l){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,l)}catch(r){if(!(r instanceof zd))throw r}if(this.noLeftoversInUrl(t,n,l))return[];throw new zd}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,l){if(e.redirectTo)throw new zd;if((e.outlet||uh)!==l)throw new zd;let r,s=[],i=[];if("**"===e.path){const s=n.length>0?Ch(n).parameters:{};r=new td(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yd(e),l,e.component,e,Wd(t),Gd(t)+n.length,Jd(e))}else{const o=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new zd;return{consumedSegments:[],lastChild:0,parameters:{}}}const l=(t.matcher||gh)(n,e,t);if(!l)throw new zd;const r={};Sh(l.posParams,(e,t)=>{r[t]=e.path});const s=l.consumed.length>0?Object.assign({},r,l.consumed[l.consumed.length-1].parameters):r;return{consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:s}}(t,e,n);s=o.consumedSegments,i=n.slice(o.lastChild),r=new td(s,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yd(e),l,e.component,e,Wd(t),Gd(t)+s.length,Jd(e))}const o=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:a,slicedSegments:u}=Kd(t,s,i,o,this.relativeLinkResolution);if(0===u.length&&a.hasChildren()){const e=this.processChildren(o,a);return[new Qh(r,e)]}if(0===o.length&&0===u.length)return[new Qh(r,[])];const c=this.processSegment(o,a,u,uh);return[new Qh(r,c)]}}function Wd(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Gd(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Kd(e,t,n,l,r){if(n.length>0&&function(e,t,n){return n.some(n=>Qd(e,t,n)&&Zd(n)!==uh)}(e,n,l)){const r=new Th(t,function(e,t,n,l){const r={};r[uh]=l,l._sourceSegment=e,l._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&Zd(s)!==uh){const n=new Th([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,r[Zd(s)]=n}return r}(e,t,l,new Th(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Qd(e,t,n))}(e,n,l)){const s=new Th(e.segments,function(e,t,n,l,r,s){const i={};for(const o of l)if(Qd(e,n,o)&&!r[Zd(o)]){const n=new Th([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,i[Zd(o)]=n}return Object.assign({},r,i)}(e,t,n,l,e.children,r));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new Th(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Qd(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zd(e){return e.outlet||uh}function Yd(e){return e.data||{}}function Jd(e){return e.resolve||{}}function Xd(e,t,n,l){const r=Vd(e,t,l);return Eh(r.resolve?r.resolve(t,n):r(t,n))}function ep(e){return function(t){return t.pipe(wu(t=>{const n=e(t);return n?W(n).pipe(B(()=>t)):W([t])}))}}class tp{}class np{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const lp=new ke("ROUTES");class rp{constructor(e,t,n,l){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=l}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(B(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const l=n.create(e);return new mh(wh(l.injector.get(lp)).map(bh),l)}))}loadModuleFactory(e){return"string"==typeof e?W(this.loader.load(e)):Eh(e()).pipe(G(e=>e instanceof He?Ua(e):W(this.compiler.compileModuleAsync(e))))}}class sp{}class ip{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function op(e){throw e}function ap(e,t,n){return t.parse("/")}function up(e,t){return Ua(null)}class cp{constructor(e,t,n,l,r,s,i,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new T,this.errorHandler=op,this.malformedUriErrorHandler=ap,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:up,afterPreactivation:up},this.urlHandlingStrategy=new ip,this.routeReuseStrategy=new np,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(Be),this.console=r.get(Gr);const a=r.get(ds);this.isNgZoneEnabled=a instanceof ds,this.resetConfig(o),this.currentUrlTree=new kh(new Th([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rp(s,i,e=>this.triggerEvent(new th(e)),e=>this.triggerEvent(new nh(e))),this.routerState=Jh(this.currentUrlTree,this.rootComponentType),this.transitions=new ja({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(e){const t=this.events;return e.pipe(Qa(e=>0!==e.id),B(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),wu(e=>{let n=!1,l=!1;return Ua(e).pipe(lu(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),wu(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Ua(e).pipe(wu(e=>{const n=this.transitions.getValue();return t.next(new Wc(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?Fa:[e]}),wu(e=>Promise.resolve(e)),function(e,t,n,l){return function(r){return r.pipe(wu(r=>(function(e,t,n,l,r){return new Id(e,t,n,l,r).apply()})(e,t,n,r.extractedUrl,l).pipe(B(e=>Object.assign({},r,{urlAfterRedirects:e})))))}}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),lu(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,l,r){return function(s){return s.pipe(G(s=>(function(e,t,n,l,r="emptyOnly",s="legacy"){return new qd(e,t,n,l,r,s).recognize()})(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),l,r).pipe(B(e=>Object.assign({},s,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),lu(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),lu(e=>{const n=new Zc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:l,source:r,restoredState:s,extras:i}=e,o=new Wc(n,this.serializeUrl(l),r,s);t.next(o);const a=Jh(l,this.rootComponentType).snapshot;return Ua(Object.assign({},e,{targetSnapshot:a,urlAfterRedirects:l,extras:Object.assign({},i,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Fa}),ep(e=>{const{targetSnapshot:t,id:n,extractedUrl:l,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:i}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:l,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!i})}),lu(e=>{const t=new Yc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),B(e=>Object.assign({},e,{guards:Rd(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(G(n=>{const{targetSnapshot:l,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:i}}=n;return 0===i.length&&0===s.length?Ua(Object.assign({},n,{guardsResult:!0})):function(e,t,n,l){return W(e).pipe(G(e=>(function(e,t,n,l,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?Ua(s.map(s=>{const i=Vd(s,t,r);let o;if(function(e){return e&&wd(e.canDeactivate)}(i))o=Eh(i.canDeactivate(e,t,n,l));else{if(!wd(i))throw new Error("Invalid CanDeactivate guard");o=Eh(i(e,t,n,l))}return o.pipe(vu())})).pipe($d()):Ua(!0)})(e.component,e.route,n,t,l)),vu(e=>!0!==e,!0))}(i,l,r,e).pipe(G(n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,l){return W(t).pipe(Tu(t=>W([jd(t.route.parent,l),Ud(t.route,l),Hd(e,t.path,n),Bd(e,t.route,n)]).pipe(Ka(),vu(e=>!0!==e,!0))),vu(e=>!0!==e,!0))}(l,s,e,t):Ua(n)),B(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),lu(e=>{if(Cd(e.guardsResult)){const t=ph(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),lu(e=>{const t=new Jc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Qa(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Kc(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),ep(e=>{if(e.guards.canActivateChecks.length)return Ua(e).pipe(lu(e=>{const t=new Xc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),function(e,t){return function(n){return n.pipe(G(n=>{const{targetSnapshot:l,guards:{canActivateChecks:r}}=n;return r.length?W(r).pipe(Tu(n=>(function(e,t,n,l){return function(e,t,n,l){const r=Object.keys(e);if(0===r.length)return Ua({});if(1===r.length){const s=r[0];return Xd(e[s],t,n,l).pipe(B(e=>({[s]:e})))}const s={};return W(r).pipe(G(r=>Xd(e[r],t,n,l).pipe(B(e=>(s[r]=e,e))))).pipe(hu(),B(()=>s))}(e._resolve,e,t,l).pipe(B(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,ed(e,n).resolve),null)))})(n.route,l,e,t)),function(e,t){return arguments.length>=2?function(n){return b(Eu(e,t),eu(1),au(t))(n)}:function(t){return b(Eu((t,n,l)=>e(t,n,l+1)),eu(1))(t)}}((e,t)=>e),B(e=>n)):Ua(n)}))}}(this.paramsInheritanceStrategy,this.ngModule.injector),lu(e=>{const t=new eh(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}))}),ep(e=>{const{targetSnapshot:t,id:n,extractedUrl:l,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:i}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:l,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!i})}),B(e=>{const t=function(e,t,n){const l=function e(t,n,l){if(l&&t.shouldReuseRoute(n.value,l.value.snapshot)){const r=l.value;r._futureSnapshot=n.value;const s=function(t,n,l){return n.children.map(n=>{for(const r of l.children)if(t.shouldReuseRoute(r.value.snapshot,n.value))return e(t,n,r);return e(t,n)})}(t,n,l);return new Qh(r,s)}{const l=t.retrieve(n.value);if(l){const e=l.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let l=0;le(t,n));return new Qh(l,s)}}var r}(e,t._root,n?n._root:void 0);return new Yh(l,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),lu(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),vd(this.rootContexts,this.routeReuseStrategy,e=>this.triggerEvent(e)),lu({next(){n=!0},complete(){n=!0}}),function(e){return t=>t.lift(new Iu(e))}(()=>{if(!n&&!l){this.resetUrlToCurrentUrlTree();const n=new Kc(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),du(n=>{if(l=!0,function(e){return e&&e[dh]}(n)){const l=Cd(n.url);l||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const r=new Kc(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(r),e.resolve(!1),l&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const l=new Qc(e.id,this.serializeUrl(e.extractedUrl),n);t.next(l);try{e.resolve(this.errorHandler(n))}catch(r){e.reject(r)}}return Fa}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",l=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,l,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){fh(e),this.config=e.map(bh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:l,fragment:r,preserveQueryParams:s,queryParamsHandling:i,preserveFragment:o}=t;lt()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const a=n||this.routerState.root,u=o?this.currentUrlTree.fragment:r;let c=null;if(i)switch(i){case"merge":c=Object.assign({},this.currentUrlTree.queryParams,l);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=l||null}else c=s?this.currentUrlTree.queryParams:l||null;return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,l,r){if(0===n.length)return ad(t.root,t.root,t,l,r);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ud(!0,0,e);let t=0,n=!1;const l=e.reduce((e,l,r)=>{if("object"==typeof l&&null!=l){if(l.outlets){const t={};return Sh(l.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(l.segmentPath)return[...e,l.segmentPath]}return"string"!=typeof l?[...e,l]:0===r?(l.split("/").forEach((l,r)=>{0==r&&"."===l||(0==r&&""===l?n=!0:".."===l?t++:""!=l&&e.push(l))}),e):[...e,l]},[]);return new ud(n,t,l)}(n);if(s.toRoot())return ad(t.root,new Th([],{}),t,l,r);const i=function(e,t,n){if(e.isAbsolute)return new cd(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new cd(n.snapshot._urlSegment,!0,0);const l=od(e.commands[0])?0:1;return function(e,t,n){let l=e,r=t,s=n;for(;s>r;){if(s-=r,!(l=l.parent))throw new Error("Invalid number of '../'");r=l.segments.length}return new cd(l,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+l,e.numberOfDoubleDots)}(s,t,e),o=i.processChildren?pd(i.segmentGroup,i.index,s.commands):dd(i.segmentGroup,i.index,s.commands);return ad(i.segmentGroup,o,t,l,r)}(a,this.currentUrlTree,e,c,u)}navigateByUrl(e,t={skipLocationChange:!1}){lt()&&this.isNgZoneEnabled&&!ds.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Cd(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t{const l=e[n];return null!=l&&(t[n]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Gc(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,l){const r=this.getTransition();if(r&&"imperative"!==t&&"imperative"===r.source&&r.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(r&&"hashchange"==t&&"popstate"===r.source&&r.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(r&&"popstate"==t&&"hashchange"===r.source&&r.rawUrl.toString()===e.toString())return Promise.resolve(!0);let s=null,i=null;const o=new Promise((e,t)=>{s=e,i=t}),a=++this.navigationId;return this.setTransition({id:a,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:s,reject:i,promise:o,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),o.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,l){const r=this.urlSerializer.serialize(e);l=l||{},this.location.isCurrentPathEqualTo(r)||t?this.location.replaceState(r,"",Object.assign({},l,{navigationId:n})):this.location.go(r,"",Object.assign({},l,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class hp{constructor(e,t,n,l,r){this.router=e,this.route=t,this.commands=[],null==n&&l.setAttribute(r.nativeElement,"tabindex","0")}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){lt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}onClick(){const e={skipLocationChange:pp(this.skipLocationChange),replaceUrl:pp(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:pp(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:pp(this.preserveFragment)})}}class dp{constructor(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(e=>{e instanceof Gc&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}set preserveQueryParams(e){lt()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}ngOnChanges(e){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,n,l){if(0!==e||t||n||l)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:pp(this.skipLocationChange),replaceUrl:pp(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,preserveQueryParams:pp(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:pp(this.preserveFragment)})}}function pp(e){return""===e||!!e}class gp{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new mp,this.attachRef=null}}class mp{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new gp,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class fp{constructor(e,t,n,l,r){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new Vr,this.deactivateEvents=new Vr,this.name=l||uh,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),l=this.parentContexts.getOrCreateContext(this.name).children,r=new yp(e,l,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class yp{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===Xh?this.route:e===mp?this.childContexts:this.parent.get(e,t)}}class vp{}class bp{preload(e,t){return t().pipe(du(()=>Ua(null)))}}class _p{preload(e,t){return Ua(null)}}class wp{constructor(e,t,n,l,r){this.router=e,this.injector=l,this.preloadingStrategy=r,this.loader=new rp(t,n,t=>e.triggerEvent(new th(t)),t=>e.triggerEvent(new nh(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qa(e=>e instanceof Gc),Tu(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(Be);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const e=l._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else l.loadChildren&&!l.canLoad?n.push(this.preloadConfig(e,l)):l.children&&n.push(this.processRoutes(e,l.children));return W(n).pipe(Y(),B(e=>void 0))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(G(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class Cp{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,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(e=>{e instanceof Wc?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Gc&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof oh&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new oh(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Sp=new ke("ROUTER_CONFIGURATION"),Ep=new ke("ROUTER_FORROOT_GUARD"),xp=[No,{provide:Nh,useClass:Ah},{provide:cp,useFactory:Ap,deps:[As,Nh,mp,No,Rt,Ms,ts,lp,Sp,[sp,new ue],[tp,new ue]]},mp,{provide:Xh,useFactory:Op,deps:[cp]},{provide:Ms,useClass:$s},wp,_p,bp,{provide:Sp,useValue:{enableTracing:!1}}];function kp(){return new Ts("Router",cp)}class Tp{constructor(e,t){}static forRoot(e,t){return{ngModule:Tp,providers:[xp,Np(e),{provide:Ep,useFactory:Pp,deps:[[cp,new ue,new he]]},{provide:Sp,useValue:t||{}},{provide:Do,useFactory:Dp,deps:[To,[new ae(Po),new ue],Sp]},{provide:Cp,useFactory:Ip,deps:[cp,Ra,Sp]},{provide:vp,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:_p},{provide:Ts,multi:!0,useFactory:kp},[Mp,{provide:$r,multi:!0,useFactory:Rp,deps:[Mp]},{provide:Fp,useFactory:Vp,deps:[Mp]},{provide:Wr,multi:!0,useExisting:Fp}]]}}static forChild(e){return{ngModule:Tp,providers:[Np(e)]}}}function Ip(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Cp(e,t,n)}function Dp(e,t,n={}){return n.useHash?new Oo(e,t):new Mo(e,t)}function Pp(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Np(e){return[{provide:zt,multi:!0,useValue:e},{provide:lp,multi:!0,useValue:e}]}function Ap(e,t,n,l,r,s,i,o,a={},u,c){const h=new cp(null,t,n,l,r,s,i,wh(o));if(u&&(h.urlHandlingStrategy=u),c&&(h.routeReuseStrategy=c),a.errorHandler&&(h.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(h.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const e=Nu();h.events.subscribe(t=>{e.logGroup(`Router Event: ${t.constructor.name}`),e.log(t.toString()),e.log(t),e.logGroupEnd()})}return a.onSameUrlNavigation&&(h.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(h.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(h.relativeLinkResolution=a.relativeLinkResolution),h}function Op(e){return e.routerState.root}class Mp{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new T}appInitializer(){return this.injector.get(Io,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(cp),l=this.injector.get(Sp);if(this.isLegacyDisabled(l)||this.isLegacyEnabled(l))e(!0);else if("disabled"===l.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==l.initialNavigation)throw new Error(`Invalid initialNavigation options: '${l.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Ua(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Sp),n=this.injector.get(wp),l=this.injector.get(Cp),r=this.injector.get(cp),s=this.injector.get(As);e===s.components[0]&&(this.isLegacyEnabled(t)?r.initialNavigation():this.isLegacyDisabled(t)&&r.setUpLocationChangeListener(),n.setUpPreloading(),l.init(),r.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Rp(e){return e.appInitializer.bind(e)}function Vp(e){return e.bootstrapListener.bind(e)}const Fp=new ke("Router Initializer");var Lp=tl({encapsulation:2,styles:[],data:{}});function $p(e){return fi(0,[(e()(),ei(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),hr(1,212992,null,0,fp,[mp,Fn,on,[8,null],Nt],null,null)],(function(e,t){e(t,1,0)}),null)}function Up(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ng-component",[],null,null,null,$p,Lp)),hr(1,49152,null,0,ah,[],null,null)],null,null)}var jp=jl("ng-component",ah,Up,{},{},[]);class Bp{constructor(){}ngOnInit(){}}var Hp=tl({encapsulation:0,styles:[[".centerMe[_ngcontent-%COMP%]{position:relative;text-align:center;color:#000}i[_ngcontent-%COMP%]{padding-top:5px}button#login[_ngcontent-%COMP%], button#register[_ngcontent-%COMP%]{z-index:100}div#login-register[_ngcontent-%COMP%]{z-index:99}.bottom-left[_ngcontent-%COMP%]{position:absolute;bottom:8px;left:16px}.top-left[_ngcontent-%COMP%]{position:absolute;top:8px;left:16px}.top-right[_ngcontent-%COMP%]{position:absolute;top:8px;right:16px}.bottom-right[_ngcontent-%COMP%]{position:absolute;bottom:8px;right:16px}.centered[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-family:Overpass,sans-serif}.blackFade[_ngcontent-%COMP%]{background-color:#233157;border:1px outset #000;max-width:100%;max-height:85vh}#loginbutton[_ngcontent-%COMP%]{margin-top:10px;background-color:rgba(56,154,240,.156);color:#fff;width:300px;font-family:Overpass;font-weight:700;font-size:22px;border-radius:27px;letter-spacing:1px;height:45px;display:inline-block}#loginbutton[_ngcontent-%COMP%]:hover{background-color:#fff;color:rgba(56,154,240,.156);border:2px solid rgba(56,154,240,.156);border-radius:22px;font-family:Overpass;font-size:23px}.center1[_ngcontent-%COMP%]{margin:0 auto}.cBorder[_ngcontent-%COMP%]{margin-top:15px}.mBot[_ngcontent-%COMP%]{margin-top:100px}.card[_ngcontent-%COMP%]{padding:20px 0;min-height:230px;box-shadow:5px 2px 5px #000}.card-body[_ngcontent-%COMP%]{font-family:Overpass,sans-serif}.card-title[_ngcontent-%COMP%]{font-weight:700;text-align:center}.card-text[_ngcontent-%COMP%]{text-align:center}@media(max-width:767px){.card[_ngcontent-%COMP%]{padding:20px 10px;min-height:230px;max-height:230px}.card-title[_ngcontent-%COMP%]{font-size:20px}.card-text[_ngcontent-%COMP%]{font-size:15px}}@media(max-width:574px){.mobile[_ngcontent-%COMP%]{padding-top:120px}.mBot[_ngcontent-%COMP%]{margin-bottom:15px}.card[_ngcontent-%COMP%]{padding:10px 0;margin:20px auto 0}.card-title[_ngcontent-%COMP%]{font-size:20px}.card-text[_ngcontent-%COMP%]{font-size:17px}}@media(max-width:232px){.card[_ngcontent-%COMP%]{height:210px}}@media(max-width:370px){.btn-outline-light[_ngcontent-%COMP%]{font-size:17px}p.orangeText[_ngcontent-%COMP%]{font-size:14px}h1.orangeText[_ngcontent-%COMP%]{font-size:36px}}"]],data:{}});function zp(e){return fi(0,[(e()(),ei(0,0,null,null,15,"div",[["class","container centerMe "]],null,null,null,null,null)),(e()(),ei(1,0,null,null,14,"div",[["class","centered mobile"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,6,"div",[["aria-label","Button group"],["class","btn-group"],["id","login-register"],["role","group"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,2,"button",[["class","btn btn-lg btn-outline-dark"],["id","login"],["routerLink","/login"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,4).onClick()&&l),l}),null,null)),hr(4,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["Login"])),(e()(),ei(6,0,null,null,2,"button",[["class","btn btn-lg btn-outline-dark"],["id","register"],["routerLink","/register"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,7).onClick()&&l),l}),null,null)),hr(7,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,[" Register "])),(e()(),ei(9,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(10,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(12,0,null,null,2,"h5",[["class","orangeText"]],null,null,null,null,null)),(e()(),ei(13,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),pi(-1,null,["Safeguarding The Bond We Share with Our Pets"])),(e()(),ei(15,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(16,0,null,null,25,"div",[["class","container mBot "]],null,null,null,null,null)),(e()(),ei(17,0,null,null,24,"div",[["class","row cBorder"]],null,null,null,null,null)),(e()(),ei(18,0,null,null,7,"div",[["class","col-sm-4 mBot mobile"]],null,null,null,null,null)),(e()(),ei(19,0,null,null,6,"div",[["class","card"]],null,null,null,null,null)),(e()(),ei(20,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-car fa-3x center1"]],null,null,null,null,null)),(e()(),ei(21,0,null,null,4,"div",[["class","card-body"]],null,null,null,null,null)),(e()(),ei(22,0,null,null,1,"h5",[["class","card-title"]],null,null,null,null,null)),(e()(),pi(-1,null,["Vaccinations"])),(e()(),ei(24,0,null,null,1,"p",[["class","card-text"]],null,null,null,null,null)),(e()(),pi(-1,null,["Protect your Pets"])),(e()(),ei(26,0,null,null,7,"div",[["class","col-sm-4 mBot"]],null,null,null,null,null)),(e()(),ei(27,0,null,null,6,"div",[["class","card"]],null,null,null,null,null)),(e()(),ei(28,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-group fa-3x center1"]],null,null,null,null,null)),(e()(),ei(29,0,null,null,4,"div",[["class","card-body"]],null,null,null,null,null)),(e()(),ei(30,0,null,null,1,"h5",[["class","card-title"]],null,null,null,null,null)),(e()(),pi(-1,null,["Pet Needs"])),(e()(),ei(32,0,null,null,1,"p",[["class","card-text"]],null,null,null,null,null)),(e()(),pi(-1,null,["Meet their Needs!"])),(e()(),ei(34,0,null,null,7,"div",[["class","col-sm-4 mBot"]],null,null,null,null,null)),(e()(),ei(35,0,null,null,6,"div",[["class","card"]],null,null,null,null,null)),(e()(),ei(36,0,null,null,0,"i",[["aria-hidden","true"],["class","fa fa-google-wallet fa-3x center1"]],null,null,null,null,null)),(e()(),ei(37,0,null,null,4,"div",[["class","card-body"]],null,null,null,null,null)),(e()(),ei(38,0,null,null,1,"h5",[["class","card-title"]],null,null,null,null,null)),(e()(),pi(-1,null,["Save Money"])),(e()(),ei(40,0,null,null,1,"p",[["class","card-text"]],null,null,null,null,null)),(e()(),pi(-1,null,["Best Value and Care"]))],(function(e,t){e(t,4,0,"/login"),e(t,7,0,"/register")}),null)}function qp(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-home-page",[],null,null,null,zp,Hp)),hr(1,114688,null,0,Bp,[],null,null)],(function(e,t){e(t,1,0)}),null)}var Wp=jl("app-home-page",Bp,qp,{},{},[]);class Gp{constructor(e,t,n,l,r,s){this.route=e,this.clientService=t,this.clientsService=n,this.cliLandingService=l,this.petService=r,this.noteService=s,this.customerList=[],this.petList=[],this.noteList=[]}ngOnInit(){this.clientsService.getClientByEmail(this.email).subscribe(e=>this.customer=e),this.petId=this.route.snapshot.params.animalId,this.petService.getPet(this.petId).subscribe(e=>this.pet=e),this.noteService.getNoteByPetId(this.petId).subscribe(e=>this.noteList=e),console.log("Look here"+this.pet)}getClientSessionData(){this.custId=parseInt(sessionStorage.getItem("custId")),this.firstName=sessionStorage.getItem("firstName"),this.lastName=sessionStorage.getItem("lastName"),this.email=sessionStorage.getItem("email"),this.phone=sessionStorage.getItem("phone"),this.cusUrl=sessionStorage.getItem("cusUrl")}}class Kp{}class Qp{}class Zp{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),l=n.toLowerCase(),r=e.slice(t+1).trim();this.maybeSetNormalizedName(n,l),this.headers.has(l)?this.headers.get(l).push(r):this.headers.set(l,[r])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const l=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(l,n),this.maybeSetNormalizedName(t,l))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Zp?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Zp;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Zp?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const l=("a"===e.op?this.headers.get(t):void 0)||[];l.push(...n),this.headers.set(t,l);break;case"d":const r=e.value;if(r){let e=this.headers.get(t);if(!e)return;0===(e=e.filter(e=>-1===r.indexOf(e))).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class Yp{encodeKey(e){return Jp(e)}encodeValue(e){return Jp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function Jp(e){return encodeURIComponent(e).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 Xp{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Yp,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const l=e.indexOf("="),[r,s]=-1==l?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,l)),t.decodeValue(e.slice(l+1))],i=n.get(r)||[];i.push(s),n.set(r,i)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new Xp({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function eg(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function tg(e){return"undefined"!=typeof Blob&&e instanceof Blob}function ng(e){return"undefined"!=typeof FormData&&e instanceof FormData}class lg{constructor(e,t,n,l){let r;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,r=l):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Zp),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":nt.set(n,e.setHeaders[n]),o)),e.setParams&&(a=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),a)),new lg(t,n,r,{params:a,headers:o,reportProgress:i,responseType:l,withCredentials:s})}}const rg=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class sg{constructor(e,t=200,n="OK"){this.headers=e.headers||new Zp,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class ig extends sg{constructor(e={}){super(e),this.type=rg.ResponseHeader}clone(e={}){return new ig({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class og extends sg{constructor(e={}){super(e),this.type=rg.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new og({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ag extends sg{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function ug(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class cg{constructor(e){this.handler=e}request(e,t,n={}){let l;if(e instanceof lg)l=e;else{let r=void 0;r=n.headers instanceof Zp?n.headers:new Zp(n.headers);let s=void 0;n.params&&(s=n.params instanceof Xp?n.params:new Xp({fromObject:n.params})),l=new lg(e,t,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Ua(l).pipe(Tu(e=>this.handler.handle(e)));if(e instanceof lg||"events"===n.observe)return r;const s=r.pipe(Qa(e=>e instanceof og));switch(n.observe||"body"){case"body":switch(l.responseType){case"arraybuffer":return s.pipe(B(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return s.pipe(B(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return s.pipe(B(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return s.pipe(B(e=>e.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new Xp).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,ug(n,t))}post(e,t,n={}){return this.request("POST",e,ug(n,t))}put(e,t,n={}){return this.request("PUT",e,ug(n,t))}}class hg{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const dg=new ke("HTTP_INTERCEPTORS");class pg{intercept(e,t){return t.handle(e)}}const gg=/^\)\]\}',?\n/;class mg{}class fg{constructor(){}build(){return new XMLHttpRequest}}class yg{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new w(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const l=e.serializeBody();let r=null;const s=()=>{if(null!==r)return r;const t=1223===n.status?204:n.status,l=n.statusText||"OK",s=new Zp(n.getAllResponseHeaders()),i=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return r=new ig({headers:s,status:t,statusText:l,url:i})},i=()=>{let{headers:l,status:r,statusText:i,url:o}=s(),a=null;204!==r&&(a=void 0===n.response?n.responseText:n.response),0===r&&(r=a?200:0);let u=r>=200&&r<300;if("json"===e.responseType&&"string"==typeof a){const e=a;a=a.replace(gg,"");try{a=""!==a?JSON.parse(a):null}catch(c){a=e,u&&(u=!1,a={error:c,text:a})}}u?(t.next(new og({body:a,headers:l,status:r,statusText:i,url:o||void 0})),t.complete()):t.error(new ag({error:a,headers:l,status:r,statusText:i,url:o||void 0}))},o=e=>{const{url:l}=s(),r=new ag({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:l||void 0});t.error(r)};let a=!1;const u=l=>{a||(t.next(s()),a=!0);let r={type:rg.DownloadProgress,loaded:l.loaded};l.lengthComputable&&(r.total=l.total),"text"===e.responseType&&n.responseText&&(r.partialText=n.responseText),t.next(r)},c=e=>{let n={type:rg.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",i),n.addEventListener("error",o),e.reportProgress&&(n.addEventListener("progress",u),null!==l&&n.upload&&n.upload.addEventListener("progress",c)),n.send(l),t.next({type:rg.Sent}),()=>{n.removeEventListener("error",o),n.removeEventListener("load",i),e.reportProgress&&(n.removeEventListener("progress",u),null!==l&&n.upload&&n.upload.removeEventListener("progress",c)),n.abort()}})}}const vg=new ke("XSRF_COOKIE_NAME"),bg=new ke("XSRF_HEADER_NAME");class _g{}class wg{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=fa(e,this.cookieName),this.lastCookieString=e),this.lastToken}}class Cg{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const l=this.tokenService.getToken();return null===l||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,l)})),t.handle(e)}}class Sg{constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(dg,[]);this.chain=e.reduceRight((e,t)=>new hg(e,t),this.backend)}return this.chain.handle(e)}}class Eg{static disable(){return{ngModule:Eg,providers:[{provide:Cg,useClass:pg}]}}static withOptions(e={}){return{ngModule:Eg,providers:[e.cookieName?{provide:vg,useValue:e.cookieName}:[],e.headerName?{provide:bg,useValue:e.headerName}:[]]}}}class xg{}function kg(e,t){return new w(t?n=>t.schedule(Tg,0,{error:e,subscriber:n}):t=>t.error(e))}function Tg({error:e,subscriber:t}){t.error(e)}let Ig=(()=>{class e{constructor(e){this.http=e,this.custs_url=`${Eo.baseUrl}/customers`,this.base_url=`${Eo.baseUrl}`,this.headers=new Zp({"Content-Type":"application/json"})}handleError(e){return e.error instanceof ErrorEvent?console.error("Client-side Error getting customers: ",e.error.message):console.error("Server Side Error: ",e),kg("Oops, there is a problem ..")}getCustomers(){return this.http.get(this.custs_url).pipe(du(this.handleError))}getCustomer(e){return this.http.get(`${this.custs_url}/${e}`).pipe(du(this.handleError))}getClientByEmail(e){return this.http.get(`${this.base_url}/customer-welcome/profile/${e}`)}addCustomer(e){return this.http.post(this.custs_url,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}updateCustomer(e){return this.http.put(`${this.custs_url}`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}deleteCustomer(e){return this.http.delete(`${this.custs_url}/${e}`).pipe(du(this.handleError))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})(),Dg=(()=>{class e{constructor(e){this.http=e,this.base_url=`${Eo.baseUrl}/`}getSessionEmail(){return this.emailUser=sessionStorage.getItem("authUser"),this.emailEmployee=sessionStorage.getItem("authEmployee"),this.email=this.emailEmployee?this.emailEmployee:this.emailUser,console.log(this.email),this.email}getClientByEmail(e){return this.http.get(`${this.base_url}/customer-welcome/profile/${e}`)}collectClientBean(){return this.http.get(`${this.base_url}/customer-welcome-bean`)}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})(),Pg=(()=>{class e{constructor(e){this.http=e,this.url=`${Eo.baseUrl}`,this.pets_url=`${Eo.baseUrl}/pets`}handleError(e){return e.error instanceof ErrorEvent?console.error("Client-side Error getting pets: ",e.error.message):console.error("Server Side Error: ",e),kg("Oops, there is a problem ..")}addPet(e){return this.http.post(this.pets_url,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}getPets(){return this.http.get(this.pets_url).pipe(du(this.handleError))}getPetByCust(e){return this.http.get(`${Eo.baseUrl}/customers/${e}/pets`).pipe(du(this.handleError))}getPet(e){return this.http.get(`${this.pets_url}/${e}`).pipe(du(this.handleError))}updatePet(e){return this.http.put(`${this.pets_url}/${e.id}`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}deletePet(e){return this.http.delete(`${this.pets_url}/${e}`).pipe(du(this.handleError))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})(),Ng=(()=>{class e{constructor(e){this.http=e}handleError(e){return e.error instanceof ErrorEvent?console.error("Client-side Error getting notes: ",e.error.message):console.error("Server Side Error: ",e),kg("Oops, there is a problem ..")}createNote(e){return this.http.post(`${Eo.baseUrl}/notes`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}getNoteById(e){return this.http.get(`${Eo.baseUrl}/notes/${e}`).pipe(du(this.handleError))}getNoteByPetId(e){return this.http.get(`${Eo.baseUrl}/note/pet/${e}`).pipe(du(this.handleError))}getNotesByApptId(e){return this.http.get(`${Eo.baseUrl}/appointments/${e}/notes`).pipe(du(this.handleError))}updateNote(e){return this.http.put(`${Eo.baseUrl}/notes`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}deleteNote(e){return this.http.delete(`${Eo.baseUrl}/notes/{id}`).pipe(du(this.handleError))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})();var Ag=tl({encapsulation:0,styles:[[".profile-userpic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:none;margin:0 auto;width:50%;height:50%;border-radius:50%!important}.pet-table[_ngcontent-%COMP%]{margin:20px}.table-btn[_ngcontent-%COMP%]{margin:5px}p.dev[_ngcontent-%COMP%]{color:#00f}"]],data:{}});function Og(e){return fi(0,[(e()(),ei(0,0,null,null,5,"tr",[["class","clickable-row"],["routerLink","register/"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,1).onClick()&&l),l}),null,null)),hr(1,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),ei(2,0,null,null,1,"th",[["scope","row"]],null,null,null,null,null)),(e()(),pi(3,null,["",""])),(e()(),ei(4,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(5,null,["",""]))],(function(e,t){e(t,1,0,"register/")}),(function(e,t){e(t,3,0,t.context.$implicit.n_id),e(t,5,0,t.context.$implicit.n_message)}))}function Mg(e){return fi(0,[(e()(),ei(0,0,null,null,10,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,9,"table",[["class","table table-striped pet-table"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,5,"thead",[["class","thead-dark"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),ei(4,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Note ID"])),(e()(),ei(6,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Note"])),(e()(),ei(8,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Og)),hr(10,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,10,0,t.component.noteList)}),null)}function Rg(e){return fi(0,[(e()(),ei(0,0,null,null,20,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,19,"div",[["class","row profile"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,18,"div",[["class","col-md-3"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,17,"div",[["class","profile-sidebar"]],null,null,null,null,null)),(e()(),ei(4,0,null,null,1,"div",[["class","profile-userpic"]],null,null,null,null,null)),(e()(),ei(5,0,null,null,0,"img",[["alt",""],["class","img-responsive"]],[[8,"src",4]],null,null,null,null)),(e()(),ei(6,0,null,null,14,"div",[["class","profile-usertitle"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,2,"div",[["class","profile-usertitle-name"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),pi(9,null,["Name: ",""])),(e()(),ei(10,0,null,null,10,"div",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(12,null,["ID: ",""])),(e()(),ei(13,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(14,null,[" Type:\t"," "])),(e()(),ei(15,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(16,null,[" Breed: "," "])),(e()(),ei(17,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(18,null,[" Weight: "," "])),(e()(),ei(19,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(20,null,[" Birthdate: "," "])),(e()(),ei(21,0,null,null,3,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(22,0,null,null,2,"button",[["class","btn btn-info"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,23).onClick()&&l),l}),null,null)),hr(23,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,[" View Records"])),(e()(),Xs(16777216,null,null,1,null,Mg)),hr(26,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,23,0,Il(1,"../../cliPetRecord/",n.petId,"")),e(t,26,0,n.noteList.length>0)}),(function(e,t){var n=t.component;e(t,5,0,Il(1,"",n.pet.petUrl,"")),e(t,9,0,n.pet.petName),e(t,12,0,n.pet.id),e(t,14,0,n.pet.type),e(t,16,0,n.pet.breed),e(t,18,0,n.pet.weight),e(t,20,0,n.pet.birthDate)}))}function Vg(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-cli-pet-profile",[],null,null,null,Rg,Ag)),hr(1,114688,null,0,Gp,[Xh,Ig,Ig,Dg,Pg,Ng],null,null)],(function(e,t){e(t,1,0)}),null)}var Fg=jl("app-cli-pet-profile",Gp,Vg,{},{},[]);class Lg extends j{constructor(e,t){super(e),this.sources=t,this.completed=0,this.haveValues=0;const n=t.length;this.values=new Array(n);for(let l=0;l{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Nu()?Nu().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}class Bg{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}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Hg extends Bg{get formDirective(){return null}get path(){return null}}function zg(){throw new Error("unimplemented")}class qg extends Bg{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return zg()}get asyncValidator(){return zg()}}class Wg{constructor(e){this._cd=e}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}class Gg extends Wg{constructor(e){super(e)}}class Kg extends Wg{constructor(e){super(e)}}function Qg(e){return null==e||0===e.length}const Zg=new ke("NgValidators"),Yg=/^(?=.{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 Jg{static min(e){return t=>{if(Qg(t.value)||Qg(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(Qg(t.value)||Qg(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return Qg(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return Qg(e.value)?null:Yg.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(Qg(t.value))return null;const n=t.value?t.value.length:0;return n{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return Jg.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(Qg(e.value))return null;const l=e.value;return t.test(l)?null:{pattern:{requiredPattern:n,actualValue:l}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(Xg);return 0==t.length?null:function(e){return tm(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(Xg);return 0==t.length?null:function(e){return function e(...t){let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),0===t.length?Fa:n?e(t).pipe(B(e=>n(...e))):new w(e=>new Lg(e,t))}(function(e,t){return t.map(t=>t(e))}(e,t).map(em)).pipe(B(tm))}}}function Xg(e){return null!=e}function em(e){const t=Jt(e)?W(e):e;if(!Xt(t))throw new Error("Expected validator to return Promise or Observable.");return t}function tm(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function nm(e){return e.validate?t=>e.validate(t):e}function lm(e){return e.validate?t=>e.validate(t):e}class rm{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}class sm{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}const im={formControlName:'\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '};class om{static controlParentException(){throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${im.formControlName}`)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${im.formGroupName}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${im.ngModelGroup}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${im.formControlName}`)}static groupParentException(){throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${im.formGroupName}`)}static arrayParentException(){throw new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n ${im.formArrayName}`)}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(e){console.warn(`\n It looks like you're using ngModel on the same form field as ${e}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===e?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}function am(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class um{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Gt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=am(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}class cm{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(am(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function hm(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}class dm{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(hm(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(hm(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}function pm(e,t){return[...t.path,e]}function gm(e,t){e||vm(t,"Cannot find control with"),t.valueAccessor||vm(t,"No value accessor for form control with"),e.validator=Jg.compose([e.validator,t.validator]),e.asyncValidator=Jg.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&mm(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&mm(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function mm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function fm(e,t){null==e&&vm(t,"Cannot find control with"),e.validator=Jg.compose([e.validator,t.validator]),e.asyncValidator=Jg.composeAsync([e.asyncValidator,t.asyncValidator])}function ym(e){return vm(e,"There is no FormControl instance attached to form control element with")}function vm(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function bm(e){return null!=e?Jg.compose(e.map(nm)):null}function _m(e){return null!=e?Jg.composeAsync(e.map(lm)):null}function wm(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Gt(t,n.currentValue)}const Cm=[class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},rm,um,class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Gt}set compareWith(e){if("function"!=typeof e)throw new Error(`compareWith must be a function, but received ${JSON.stringify(e)}`);this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(qg),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}];function Sm(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Em(e,t){if(!t)return null;Array.isArray(t)||vm(e,"Value accessor was not provided as an array for form control with");let n=void 0,l=void 0,r=void 0;return t.forEach(t=>{t.constructor===jg?n=t:function(e){return Cm.some(t=>e.constructor===t)}(t)?(l&&vm(e,"More than one built-in value accessor matches form control with"),l=t):(r&&vm(e,"More than one custom value accessor matches form control with"),r=t)}),r||l||n||(vm(e,"No valid value accessor for form control with"),null)}function xm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const km="VALID",Tm="INVALID",Im="PENDING",Dm="DISABLED";function Pm(e){const t=Am(e)?e.validators:e;return Array.isArray(t)?bm(t):t||null}function Nm(e,t){const n=Am(t)?t.asyncValidators:e;return Array.isArray(n)?_m(n):n||null}function Am(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Om{constructor(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return this.status===km}get invalid(){return this.status===Tm}get pending(){return this.status==Im}get disabled(){return this.status===Dm}get enabled(){return this.status!==Dm}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this.validator=Pm(e)}setAsyncValidators(e){this.asyncValidator=Nm(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Im,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Dm,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=km,this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==km&&this.status!==Im||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Dm:km}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Im;const t=em(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof Rm?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof Vm&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new Vr,this.statusChanges=new Vr}_calculateStatus(){return this._allControlsDisabled()?Dm:this.errors?Tm:this._anyControlsHaveStatus(Im)?Im:this._anyControlsHaveStatus(Tm)?Tm:km}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Am(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Mm extends Om{constructor(e=null,t,n){super(Pm(t),Nm(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class Rm extends Om{constructor(e,t,n){super(Pm(t),Nm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,l)=>{n.reset(e[l],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof Mm?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,l)=>{t=t||this.contains(l)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,l)=>{n=t(n,e,l)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Vm extends Om{constructor(e,t,n){super(Pm(t),Nm(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,l)=>{n.reset(e[l],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof Mm?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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(e))throw new Error(`Cannot find form control at index ${e}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Fm=(()=>Promise.resolve(null))();class Lm extends Hg{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Vr,this.form=new Rm({},bm(e),_m(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Fm.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),gm(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Fm.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),xm(this._directives,e)})}addFormGroup(e){Fm.then(()=>{const t=this._findContainer(e.path),n=new Rm({});fm(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Fm.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Fm.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Sm(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}class $m{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${im.formControlName}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n ${im.ngModelWithFormGroup}`)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${im.formGroupName}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${im.ngModelGroup}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${im.formGroupName}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${im.ngModelGroup}`)}static ngFormWarning(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n \n\n After:\n \n ")}}const Um=new ke("NgFormSelectorWarning");class jm extends Hg{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return pm(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return bm(this._validators)}get asyncValidator(){return _m(this._asyncValidators)}_checkParentType(){}}class Bm extends jm{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof Bm||this._parent instanceof Lm||$m.modelGroupParentException()}}const Hm=(()=>Promise.resolve(null))();class zm extends qg{constructor(e,t,n,l){super(),this.control=new Mm,this._registered=!1,this.update=new Vr,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=Em(this,l)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),wm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?pm(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return bm(this._rawValidators)}get asyncValidator(){return _m(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){gm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Bm)&&this._parent instanceof jm?$m.formGroupNameException():this._parent instanceof Bm||this._parent instanceof Lm||$m.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$m.missingNameException()}_updateValue(e){Hm.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;Hm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class qm{}const Wm=new ke("NgModelWithFormControlWarning");class Gm extends Hg{constructor(e,t){super(),this._validators=e,this._asyncValidators=t,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Vr}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return gm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){xm(this.directives,e)}addFormGroup(e){const t=this.form.get(e.path);fm(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormGroup(e){}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){const t=this.form.get(e.path);fm(t,e),t.updateValueAndValidity({emitEvent:!1})}removeFormArray(e){}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Sm(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=this.form.get(e.path);e.control!==t&&(function(e,t){t.valueAccessor.registerOnChange(()=>ym(t)),t.valueAccessor.registerOnTouched(()=>ym(t)),t._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(e.control,e),t&&gm(t,e),e.control=t)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const e=bm(this._validators);this.form.validator=Jg.compose([this.form.validator,e]);const t=_m(this._asyncValidators);this.form.asyncValidator=Jg.composeAsync([this.form.asyncValidator,t])}_checkFormPresent(){this.form||om.missingFormException()}}class Km extends jm{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){Zm(this._parent)&&om.groupParentException()}}class Qm extends Hg{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=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 pm(this.name,this._parent)}get validator(){return bm(this._validators)}get asyncValidator(){return _m(this._asyncValidators)}_checkParentType(){Zm(this._parent)&&om.arrayParentException()}}function Zm(e){return!(e instanceof Km||e instanceof Gm||e instanceof Qm)}let Ym=(()=>{class e extends qg{constructor(e,t,n,l,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new Vr,this._ngModelWarningSent=!1,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=Em(this,l)}set isDisabled(e){om.disabledAttrWarning()}ngOnChanges(t){var n,l;this._added||this._setUpControl(),wm(t,this.viewModel)&&("formControlName",n=e,this,l=this._ngModelWarningConfig,lt()&&"never"!==l&&((null!==l&&"once"!==l||n._ngModelWarningSentOnce)&&("always"!==l||this._ngModelWarningSent)||(om.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return pm(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return bm(this._rawValidators)}get asyncValidator(){return _m(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Km)&&this._parent instanceof jm?om.ngModelGroupException():this._parent instanceof Km||this._parent instanceof Gm||this._parent instanceof Qm||om.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e._ngModelWarningSentOnce=!1,e})();class Jm{get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!==`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?Jg.required(e):null}registerOnValidatorChange(e){this._onChange=e}}class Xm{ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=Jg.pattern(this.pattern)}}class ef{}class tf{group(e,t=null){const n=this._reduceControls(e);let l=null,r=null,s=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(l=null!=t.validators?t.validators:null,r=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,r=null!=t.asyncValidator?t.asyncValidator:null)),new Rm(n,{asyncValidators:r,updateOn:s,validators:l})}control(e,t,n){return new Mm(e,t,n)}array(e,t,n){const l=e.map(e=>this._createControl(e));return new Vm(l,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof Mm||e instanceof Rm||e instanceof Vm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}class nf{static withConfig(e){return{ngModule:nf,providers:[{provide:Um,useValue:e.warnOnDeprecatedNgFormSelector}]}}}class lf{static withConfig(e){return{ngModule:lf,providers:[{provide:Wm,useValue:e.warnOnNgModelWithFormControl}]}}}class rf{constructor(e,t,n,l,r){this.int=e,this.petId=t,this.vacName=n,this.vacTime=l,this.vacDate=r}}class sf{constructor(e,t,n){this.route=e,this.recordService=t,this.petService=n}ngOnInit(){console.log("ngOnInit: "+this.importPetId)}addRecord(){console.log("addRecord() "+this.importPetId),console.log(0,this.importPetId,this.vName,this.vTime,this.vDate),this.recordService.createVaccRecord(new rf(0,this.importPetId,this.vName,this.vTime,this.vDate)).subscribe(e=>{console.log(e),location.reload(!0)},e=>{console.log(e),alert("Oops, failed to add vaccine!!")})}getPet(){this.petService.getPet(this.petId).subscribe(e=>{this.pet=e,console.log(this.pet)},e=>{console.log("Failed to get pets")})}}let of=(()=>{class e{constructor(e){this.http=e}handleError(e){return e.error instanceof ErrorEvent?console.error("Client-side Error getting vaccination records: ",e.error.message):console.error("Server Side Error: ",e),kg("Oops, there is a problem ..")}createVaccRecord(e){return this.http.post(`${Eo.baseUrl}/records`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}getAllVaccRecords(){return this.http.get(`${Eo.baseUrl}/records`).pipe(du(this.handleError))}getVaccRecordById(e){return this.http.get(`${Eo.baseUrl}/records/${e}`).pipe(du(this.handleError))}getVaccRecordByCustId(e){return this.http.get(`${Eo.baseUrl}/records/customer/${e}`).pipe(du(this.handleError))}getVaccRecordByPetId(e){return this.http.get(`${Eo.baseUrl}/records/pet/${e}`).pipe(du(this.handleError))}getVaccRecordByApptId(e){return this.http.get(`${Eo.baseUrl}/records/appt/${e}`).pipe(du(this.handleError))}updateVaccRecord(e){return this.http.put(`${Eo.baseUrl}/records`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}deleteVaccRecord(e){return this.http.delete(`${Eo.baseUrl}/records`).pipe(du(this.handleError))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})();var af=tl({encapsulation:0,styles:[[""]],data:{}});function uf(e){return fi(0,[(e()(),ei(0,0,null,null,57,"div",[["class","row appt"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,2,"div",[["class"," col col-xs-8"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,1,"button",[["class","btn btn-info btn-appt"],["data-target","#exampleModalCenter"],["data-toggle","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xa0 \xa0 \xa0 CREATE \xa0 \xa0 \xa0 \xa0 "])),(e()(),ei(4,0,null,null,53,"div",[["aria-hidden","true"],["aria-labelledby","exampleModalCenterTitle"],["class","modal fade"],["id","exampleModalCenter"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ei(5,0,null,null,52,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,51,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,1,"h5",[["class","modal-title"],["id","exampleModalCenterTitle"]],null,null,null,null,null)),(e()(),pi(-1,null,["Create A Vaccination"])),(e()(),ei(10,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),ei(11,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"])),(e()(),ei(13,0,null,null,39,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),ei(14,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(15,0,null,null,1,"label",[["for","vName"]],null,null,null,null,null)),(e()(),pi(-1,null,["Vaccine Name:"])),(e()(),ei(17,0,null,null,5,"textarea",[["class","form-control"],["id","vName"],["rows","1"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,18)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,18).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,18)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,18)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.vName=n)&&l),l}),null,null)),hr(18,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(20,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(22,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(23,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(24,0,null,null,1,"label",[["for","vDate"]],null,null,null,null,null)),(e()(),pi(-1,null,["Date Recieved"])),(e()(),ei(26,0,null,null,5,"input",[["class","form-control"],["id","vDate"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,27)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,27).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,27)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,27)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.vDate=n)&&l),l}),null,null)),hr(27,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(29,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(31,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(32,0,null,null,20,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(33,0,null,null,1,"label",[["for","vTime"]],null,null,null,null,null)),(e()(),pi(-1,null,["Days Valid"])),(e()(),ei(35,0,null,null,17,"select",[["class","form-control"],["id","vTime"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,36).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,36).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.vTime=n)&&l),l}),null,null)),hr(36,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(38,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(40,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(41,0,null,null,3,"option",[["value","90"]],null,null,null,null,null)),hr(42,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(43,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["90"])),(e()(),ei(45,0,null,null,3,"option",[["value","180"]],null,null,null,null,null)),hr(46,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(47,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["180"])),(e()(),ei(49,0,null,null,3,"option",[["value","360"]],null,null,null,null,null)),hr(50,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(51,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["360"])),(e()(),ei(53,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),ei(54,0,null,null,1,"button",[["class","btn btn-secondary"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["Close"])),(e()(),ei(56,0,null,null,1,"button",[["class","btn btn-info"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.addRecord()&&l),l}),null,null)),(e()(),pi(-1,null,["Submit"]))],(function(e,t){var n=t.component;e(t,20,0,n.vName),e(t,29,0,n.vDate),e(t,38,0,n.vTime),e(t,42,0,"90"),e(t,43,0,"90"),e(t,46,0,"180"),e(t,47,0,"180"),e(t,50,0,"360"),e(t,51,0,"360")}),(function(e,t){e(t,17,0,Jl(t,22).ngClassUntouched,Jl(t,22).ngClassTouched,Jl(t,22).ngClassPristine,Jl(t,22).ngClassDirty,Jl(t,22).ngClassValid,Jl(t,22).ngClassInvalid,Jl(t,22).ngClassPending),e(t,26,0,Jl(t,31).ngClassUntouched,Jl(t,31).ngClassTouched,Jl(t,31).ngClassPristine,Jl(t,31).ngClassDirty,Jl(t,31).ngClassValid,Jl(t,31).ngClassInvalid,Jl(t,31).ngClassPending),e(t,35,0,Jl(t,40).ngClassUntouched,Jl(t,40).ngClassTouched,Jl(t,40).ngClassPristine,Jl(t,40).ngClassDirty,Jl(t,40).ngClassValid,Jl(t,40).ngClassInvalid,Jl(t,40).ngClassPending)}))}function cf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-vac-create",[],null,null,null,uf,af)),hr(1,114688,null,0,sf,[Xh,of,Pg],null,null)],(function(e,t){e(t,1,0)}),null)}var hf=jl("app-vac-create",sf,cf,{importPetId:"importPetId"},{},[]);class df{constructor(e,t,n,l,r){this.vaccService=e,this.router=t,this.route=n,this.petService=l,this.noteService=r,this.vaccList=[],this.expireList=[]}ngOnInit(){this.custId=sessionStorage.getItem("custId"),console.log("custId "+this.custId),this.petId=this.route.snapshot.params.animalId,console.log("petId "+this.petId),this.parentPetId=this.petId,this.petService.getPet(this.petId).subscribe(e=>this.pet=e),console.log("petData "+this.pet),this.vaccService.getVaccRecordByPetId(this.petId).subscribe(e=>{this.recList=e},e=>{console.log("w e l o s t b o y s")})}backToConsole(){this.router.navigate(["clients",this.custId])}}var pf=tl({encapsulation:0,styles:[[".profile-userpic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:none;padding-left:5px;margin:0 auto;max-width:100%;width:400px;border-radius:50%!important}"]],data:{}});function gf(e){return fi(0,[(e()(),ei(0,0,null,null,0,"img",[["alt",""]],[[8,"src",4]],null,null,null,null))],null,(function(e,t){e(t,0,0,Il(1,"",t.component.pet.petUrl,""))}))}function mf(e){return fi(0,[(e()(),ei(0,0,null,null,6,"tr",[["style","text-align: center;"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(2,null,["",""])),(e()(),ei(3,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(4,null,["",""])),(e()(),ei(5,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(6,null,["",""]))],null,(function(e,t){e(t,2,0,t.context.$implicit.vacName),e(t,4,0,t.context.$implicit.vacDate),e(t,6,0,t.context.$implicit.vacTime)}))}function ff(e){return fi(0,[(e()(),ei(0,0,null,null,16,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(2,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),pi(3,null,[""," Vaccination Records"])),(e()(),ei(4,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(5,0,null,null,11,"table",[["class","table table-striped"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,7,"thead",[["class","thead-dark"],["style","text-align: center;"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,6,"tr",[],null,null,null,null,null)),(e()(),ei(8,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Name"])),(e()(),ei(10,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Date Received"])),(e()(),ei(12,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Expiration"])),(e()(),ei(14,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,mf)),hr(16,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,16,0,t.component.recList)}),(function(e,t){e(t,3,0,t.component.pet.petName)}))}function yf(e){return fi(0,[(e()(),ei(0,0,null,null,20,"div",[["class","row"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,2,"div",[["class","profile-userpic col col-sm-8"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,gf)),hr(3,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(4,0,null,null,16,"div",[["class"," col col-sm-4"]],null,null,null,null,null)),(e()(),ei(5,0,null,null,4,"button",[["class","btn btn-outline-info"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.backToConsole()&&l),l}),null,null)),(e()(),ei(6,0,null,null,3,"small",[],null,null,null,null,null)),(e()(),ei(7,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),pi(-1,null,[" BACK TO CONSOLE"])),(e()(),pi(-1,null,["\xa0 "])),(e()(),ei(10,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(12,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),pi(-1,null,["Enter Record"])),(e()(),ei(14,0,null,null,1,"app-vac-create",[],null,null,null,uf,af)),hr(15,114688,null,0,sf,[Xh,of,Pg],{importPetId:[0,"importPetId"]},null),(e()(),ei(16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(17,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),pi(-1,null,["Upload Record"])),(e()(),ei(19,0,null,null,1,"button",[["class","disabled btn btn-outline-info"],["disabled",""]],null,null,null,null,null)),(e()(),pi(-1,null,["\xa0 \xa0 \xa0 UPLOAD \xa0 \xa0 \xa0 "])),(e()(),Xs(16777216,null,null,1,null,ff)),hr(22,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.pet),e(t,15,0,n.parentPetId),e(t,22,0,n.pet)}),null)}function vf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-cli-pet-record",[],null,null,null,yf,pf)),hr(1,114688,null,0,df,[of,cp,Xh,Pg,Ng],null,null)],(function(e,t){e(t,1,0)}),null)}var bf=jl("app-cli-pet-record",df,vf,{},{},[]);class _f{constructor(e,t,n,l,r){this.clientService=e,this.authService=t,this.formBuilder=n,this.router=l,this.activatedRoute=r,this.loading=!1,this.submitted=!1,this.customersList=[]}ngOnInit(){this.form=this.formBuilder.group({id:null,firstName:["",Jg.required],lastName:["",Jg.required],email:["",Jg.required],password:["",[Jg.required,Jg.minLength(6)]],phone:"",cusUrl:""}),this.panelTitle="CLIENT REGISTRATION",this.successMessage="",this.clientService.getCustomers().subscribe(e=>this.customersList=e),this.clientService.getCustomers().subscribe(e=>this.customersList=e),this.activatedRoute.paramMap.subscribe(e=>{const t=+e.get("id");this.clientService.getCustomer(t),this.getCustomer(t)})}get f(){return this.form.controls}saveCustomer(){this.submitted=!0,this.form.invalid||(this.loading=!0,this.clientService.addCustomer(this.form.value).pipe(vu()).subscribe(e=>{console.log(e),this.customer=e},e=>{console.log("error"+e),this.loading=!1}),this.onRegisterSubmit(),this.authService.isEmpLoggedIn()?this.router.navigate(["vetLanding"]):this.router.navigate([""]))}getCustomer(e){0===e?(this.customer={id:null,firstName:"",lastName:"",phone:"",email:"",password:"",cusUrl:""},this.panelTitle="Client Registration"):(this.clientService.getCustomer(e).subscribe(e=>this.customer=e,e=>console.log("create-client.comp:"+e)),this.panelTitle="Edit Details")}onRegisterSubmit(){this.successMessage="Great!, your name: *"+this.customer.firstName+"*; username/email: *"+this.customer.email+"* have registered successfully"}isPageRegister(){return this.isPageRegister}}let wf=(()=>{class e{constructor(e,t,n,l){this.clientService=e,this.cliLandingService=t,this.http=n,this.router=l,this.url=`${Eo.baseUrl}/customer-welcome/profile`,this.emp_url=`${Eo.baseUrl}/employee-welcome/profile`,this.custSubject=new ja(JSON.parse(localStorage.getItem("cust"))),this.custObservable=this.custSubject.asObservable(),this.empSubject=new ja(JSON.parse(localStorage.getItem("emp"))),this.empObservable=this.empSubject.asObservable()}get custValue(){return this.custSubject.value}get empValue(){return this.empSubject.value}updateLocalStorage(){this.clientService.getCustomer(this.getCustId()).subscribe(e=>{this.customer=e,localStorage.removeItem("cust"),localStorage.setItem("cust",JSON.stringify(this.customer)),this.custSubject.next(this.customer)},e=>{console.log("Failed to update local storage")})}loginCust(e,t){return this.http.post(`${this.url}/login`,{email:e,password:t}).pipe(B(e=>(localStorage.setItem("cust",JSON.stringify(e)),this.custSubject.next(e),e)))}loginEmp(e,t){return this.http.post(`${this.emp_url}/login`,{email:e,password:t}).pipe(B(e=>(localStorage.setItem("emp",JSON.stringify(e)),this.empSubject.next(e),e)))}getCustId(){return this.custObject=JSON.parse(localStorage.getItem("cust")),console.log("get custId:"+this.custObject.id),this.custObject.id}getEmpId(){return this.empObject=JSON.parse(localStorage.getItem("emp")),console.log("get empId:"+this.empObject.id),this.empObject.id}getClientDataByEmail(e){this.cliLandingService.getClientByEmail(e).subscribe(e=>this.custObject=e)}isCustLoggedIn(){return this.custObject=JSON.parse(localStorage.getItem("cust")),!(null===this.custObject)}isEmpLoggedIn(){return this.empObject=JSON.parse(localStorage.getItem("emp")),!(null===this.empObject)}logout(){localStorage.removeItem("cust"),localStorage.removeItem("emp"),this.custSubject.next(null),this.empSubject.next(null)}}return e.ngInjectableDef=ge({factory:function(){return new e($e(Ig),$e(Dg),$e(cg),$e(cp))},token:e,providedIn:"root"}),e})();var Cf=tl({encapsulation:0,styles:[[""]],data:{}});function Sf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Customer First Name is required"]))],null,null)}function Ef(e){return fi(0,[(e()(),ei(0,0,null,null,2,"div",[["class","invalid-feedback"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Sf)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,t.component.f.firstName.errors.required)}),null)}function xf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Customer Last Name is required"]))],null,null)}function kf(e){return fi(0,[(e()(),ei(0,0,null,null,2,"div",[["class","invalid-feedback"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,xf)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,t.component.f.lastName.errors.required)}),null)}function Tf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Username is required"]))],null,null)}function If(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Email is invalid form"]))],null,null)}function Df(e){return fi(0,[(e()(),ei(0,0,null,null,4,"div",[["class","invalid-feedback"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Tf)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,If)),hr(4,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.f.email.errors.required),e(t,4,0,null==n.f.email.errors?null:n.f.email.errors.pattern)}),null)}function Pf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Password is required"]))],null,null)}function Nf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Password must be at least 6 characters"]))],null,null)}function Af(e){return fi(0,[(e()(),ei(0,0,null,null,4,"div",[["class","invalid-feedback"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Pf)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,Nf)),hr(4,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.f.password.errors.required),e(t,4,0,n.f.password.errors.minlength)}),null)}function Of(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","alert alert-warning"]],null,null,null,null,null)),(e()(),pi(1,null,["",""]))],null,(function(e,t){e(t,1,0,t.component.successMessage)}))}function Mf(e){return fi(0,[(e()(),ei(0,0,null,null,102,"div",[["class","panel panel-primary"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,3,"div",[["class","panel-heading"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,1,"h3",[["class","panel-title"]],null,null,null,null,null)),(e()(),pi(3,null,["",""])),(e()(),ei(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(5,0,null,null,93,"div",[["class","panel-body"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,17,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,3,"label",[["class","control-label"],["for","firstName"]],null,null,null,null,null)),(e()(),pi(-1,null,["First Name"])),(e()(),ei(9,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(11,0,null,null,10,"input",[["class","form-control"],["formControlName","firstName"],["id","firstName"],["name","firstName"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,15)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,15).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,15)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,15)._compositionEnd(n.target.value)&&l),l}),null,null)),dr(512,null,ya,va,[Pn,Nn,hn,fn]),hr(13,278528,null,0,_a,[ya],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),di(14,{"is-invalid":0}),hr(15,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(16,16384,null,0,Jm,[],{required:[0,"required"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Jm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(19,671744,null,0,Ym,[[3,Hg],[6,Zg],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(21,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Ef)),hr(23,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(24,0,null,null,17,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(25,0,null,null,3,"label",[["class","control-label"],["for","lastName"]],null,null,null,null,null)),(e()(),pi(-1,null,["Last Name"])),(e()(),ei(27,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(29,0,null,null,10,"input",[["class","form-control"],["formControlName","lastName"],["id","lastName"],["name","lastName"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,33)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,33).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,33)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,33)._compositionEnd(n.target.value)&&l),l}),null,null)),dr(512,null,ya,va,[Pn,Nn,hn,fn]),hr(31,278528,null,0,_a,[ya],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),di(32,{"is-invalid":0}),hr(33,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(34,16384,null,0,Jm,[],{required:[0,"required"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Jm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(37,671744,null,0,Ym,[[3,Hg],[6,Zg],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(39,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,kf)),hr(41,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(42,0,null,null,17,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(43,0,null,null,3,"label",[["class","control-label"],["for","email"]],null,null,null,null,null)),(e()(),pi(-1,null,["Email"])),(e()(),ei(45,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(47,0,null,null,10,"input",[["class","form-control"],["formControlName","email"],["id","email"],["name","email"],["pattern","^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"],["type","text"]],[[1,"pattern",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,51)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,51).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,51)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,51)._compositionEnd(n.target.value)&&l),l}),null,null)),dr(512,null,ya,va,[Pn,Nn,hn,fn]),hr(49,278528,null,0,_a,[ya],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),di(50,{"is-invalid":0}),hr(51,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(52,540672,null,0,Xm,[],{pattern:[0,"pattern"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Xm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(55,671744,null,0,Ym,[[3,Hg],[6,Zg],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(57,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Df)),hr(59,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(60,0,null,null,15,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(61,0,null,null,3,"label",[["class","control-label"],["for","password"]],null,null,null,null,null)),(e()(),pi(-1,null,["password"])),(e()(),ei(63,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(65,0,null,null,8,"input",[["class","form-control"],["formControlName","password"],["id","password"],["min","0"],["name","password"],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,69)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,69).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,69)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,69)._compositionEnd(n.target.value)&&l),l}),null,null)),dr(512,null,ya,va,[Pn,Nn,hn,fn]),hr(67,278528,null,0,_a,[ya],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),di(68,{"is-invalid":0}),hr(69,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(71,671744,null,0,Ym,[[3,Hg],[8,null],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(73,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Af)),hr(75,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(76,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(77,0,null,null,1,"label",[["class","control-label"],["for","phone"]],null,null,null,null,null)),(e()(),pi(-1,null,["Customer Phone"])),(e()(),ei(79,0,null,null,5,"input",[["class","form-control"],["formControlName","phone"],["id","phone"],["name","phone"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,80)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,80).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,80)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,80)._compositionEnd(n.target.value)&&l),l}),null,null)),hr(80,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(82,671744,null,0,Ym,[[3,Hg],[8,null],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(84,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(85,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(86,0,null,null,1,"label",[["class","control-label"],["for","cusUrl"]],null,null,null,null,null)),(e()(),pi(-1,null,["Photo URL"])),(e()(),ei(88,0,null,null,5,"input",[["class","form-control"],["formControlName","cusUrl"],["id","cusUrl"],["name","cusUrl"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,89)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,89).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,89)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,89)._compositionEnd(n.target.value)&&l),l}),null,null)),hr(89,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(91,671744,null,0,Ym,[[3,Hg],[8,null],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(93,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(94,0,null,null,4,"code",[],null,null,null,null,null)),(e()(),pi(-1,null,["Example:"])),(e()(),ei(96,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(97,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),pi(-1,null,["https://doggywood-veterinary.s3.amazonaws.com/assets/People/random_p7.png"])),(e()(),Xs(16777216,null,null,1,null,Of)),hr(100,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(101,0,null,null,1,"button",[["class","btn btn-primary register"],["id","register-button"],["type","submit"]],null,null,null,null,null)),(e()(),pi(-1,null,[" SUBMIT "]))],(function(e,t){var n=t.component,l=e(t,14,0,n.submitted&&n.f.firstName.errors);e(t,13,0,"form-control",l),e(t,16,0,""),e(t,19,0,"firstName"),e(t,23,0,n.submitted&&n.f.firstName.errors);var r=e(t,32,0,n.submitted&&n.f.lastName.errors);e(t,31,0,"form-control",r),e(t,34,0,""),e(t,37,0,"lastName"),e(t,41,0,n.submitted&&n.f.lastName.errors);var s=e(t,50,0,n.submitted&&n.f.email.errors);e(t,49,0,"form-control",s),e(t,52,0,"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"),e(t,55,0,"email"),e(t,59,0,n.submitted&&n.f.email.errors);var i=e(t,68,0,n.submitted&&n.f.password.errors);e(t,67,0,"form-control",i),e(t,71,0,"password"),e(t,75,0,n.submitted&&n.f.password.errors),e(t,82,0,"phone"),e(t,91,0,"cusUrl"),e(t,100,0,""!=n.successMessage)}),(function(e,t){e(t,3,0,t.component.panelTitle),e(t,11,0,Jl(t,16).required?"":null,Jl(t,21).ngClassUntouched,Jl(t,21).ngClassTouched,Jl(t,21).ngClassPristine,Jl(t,21).ngClassDirty,Jl(t,21).ngClassValid,Jl(t,21).ngClassInvalid,Jl(t,21).ngClassPending),e(t,29,0,Jl(t,34).required?"":null,Jl(t,39).ngClassUntouched,Jl(t,39).ngClassTouched,Jl(t,39).ngClassPristine,Jl(t,39).ngClassDirty,Jl(t,39).ngClassValid,Jl(t,39).ngClassInvalid,Jl(t,39).ngClassPending),e(t,47,0,Jl(t,52).pattern?Jl(t,52).pattern:null,Jl(t,57).ngClassUntouched,Jl(t,57).ngClassTouched,Jl(t,57).ngClassPristine,Jl(t,57).ngClassDirty,Jl(t,57).ngClassValid,Jl(t,57).ngClassInvalid,Jl(t,57).ngClassPending),e(t,65,0,Jl(t,73).ngClassUntouched,Jl(t,73).ngClassTouched,Jl(t,73).ngClassPristine,Jl(t,73).ngClassDirty,Jl(t,73).ngClassValid,Jl(t,73).ngClassInvalid,Jl(t,73).ngClassPending),e(t,79,0,Jl(t,84).ngClassUntouched,Jl(t,84).ngClassTouched,Jl(t,84).ngClassPristine,Jl(t,84).ngClassDirty,Jl(t,84).ngClassValid,Jl(t,84).ngClassInvalid,Jl(t,84).ngClassPending),e(t,88,0,Jl(t,93).ngClassUntouched,Jl(t,93).ngClassTouched,Jl(t,93).ngClassPristine,Jl(t,93).ngClassDirty,Jl(t,93).ngClassValid,Jl(t,93).ngClassInvalid,Jl(t,93).ngClassPending)}))}function Rf(e){return fi(0,[(e()(),ei(0,0,null,null,6,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(e,t,n){var l=!0,r=e.component;return"submit"===t&&(l=!1!==Jl(e,2).onSubmit(n)&&l),"reset"===t&&(l=!1!==Jl(e,2).onReset()&&l),"ngSubmit"===t&&(l=!1!==r.saveCustomer()&&l),l}),null,null)),hr(1,16384,null,0,qm,[],null,null),hr(2,540672,null,0,Gm,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),dr(2048,null,Hg,null,[Gm]),hr(4,16384,null,0,Kg,[[4,Hg]],null,null),(e()(),Xs(16777216,null,null,1,null,Mf)),hr(6,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.form),e(t,6,0,n.customer)}),(function(e,t){e(t,0,0,Jl(t,4).ngClassUntouched,Jl(t,4).ngClassTouched,Jl(t,4).ngClassPristine,Jl(t,4).ngClassDirty,Jl(t,4).ngClassValid,Jl(t,4).ngClassInvalid,Jl(t,4).ngClassPending)}))}function Vf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-register",[],null,null,null,Rf,Cf)),hr(1,114688,null,0,_f,[Ig,wf,tf,cp,Xh],null,null)],(function(e,t){e(t,1,0)}),null)}var Ff=jl("app-register",_f,Vf,{},{},[]);class Lf{constructor(e,t,n,l,r){this.auth=e,this.clientService=t,this.formBuilder=n,this.router=l,this.activatedRoute=r,this.loading=!1,this.submitted=!1,this.panelTitle="Edit Client Profile",this.customersList=[],this.customers=[]}ngOnInit(){this.editUserForm.reset(),this.auth.isCustLoggedIn()?this.getMyProfile():this.getAllCustomers(),this.auth.isCustLoggedIn()&&(this.clientView=!0),!this.auth.isCustLoggedIn()||(this.panelTitle="Edit Profile")}getAllCustomers(){this.clientService.getCustomers().subscribe(e=>{console.log(e),this.customers=e},e=>{console.log("Failed to get all customers")})}getMyProfile(){this.customer=this.auth.custValue}getCustomer(){this.clientService.getCustomer(this.custId).subscribe(e=>{this.customer=e},e=>{console.log("Failed to find customer")})}editCustomer(){console.log("Will add updates for ",this.customer.firstName),this.clientService.updateCustomer(this.customer).subscribe(e=>{this.editUserForm.reset(),console.log("Added updates for ",this.customer.firstName)},e=>{console.log("Failed to get all customers")}),this.auth.updateLocalStorage()}}var $f=tl({encapsulation:0,styles:[["h5[_ngcontent-%COMP%]{color:#00008b}"]],data:{}});function Uf(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[],null,null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,[" "," "," "]))],(function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)}),(function(e,t){e(t,3,0,t.context.$implicit.firstName,t.context.$implicit.lastName)}))}function jf(e){return fi(0,[(e()(),ei(0,0,null,null,11,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"label",[["for","selectClient"]],null,null,null,null,null)),(e()(),pi(-1,null,["Select a Client"])),(e()(),ei(3,0,null,null,8,"select",[["class","form-control"],["id","selectClient"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"ngModelChange"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,4).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,4).onTouched()&&l),"change"===t&&(l=!1!==r.getCustomer()&&l),"ngModelChange"===t&&(l=!1!==(r.custId=n)&&l),l}),null,null)),hr(4,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(6,671744,null,0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{model:[0,"model"],options:[1,"options"]},{update:"ngModelChange"}),di(7,{standalone:0}),dr(2048,null,qg,null,[zm]),hr(9,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Uf)),hr(11,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component,l=n.custId,r=e(t,7,0,!0);e(t,6,0,l,r),e(t,11,0,n.customers)}),(function(e,t){e(t,3,0,Jl(t,9).ngClassUntouched,Jl(t,9).ngClassTouched,Jl(t,9).ngClassPristine,Jl(t,9).ngClassDirty,Jl(t,9).ngClassValid,Jl(t,9).ngClassInvalid,Jl(t,9).ngClassPending)}))}function Bf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","alert alert-warning"]],null,null,null,null,null)),(e()(),pi(1,null,[" "," "]))],null,(function(e,t){e(t,1,0,t.component.successMessage)}))}function Hf(e){return fi(0,[(e()(),ei(0,0,null,null,77,"div",[["class","panel panel-primary"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,3,"div",[["class","panel-heading"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,1,"h3",[["class","panel-title"]],null,null,null,null,null)),(e()(),pi(3,null,["",""])),(e()(),ei(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(5,0,null,null,68,"div",[["class","panel-body"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,3,"label",[["class","control-label"],["for","customerName"]],null,null,null,null,null)),(e()(),pi(-1,null,["First Name"])),(e()(),ei(9,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(11,0,null,null,8,"input",[["class","form-control"],["id","firstName"],["name","firstName"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,12)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,12).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,12)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,12)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.customer.firstName=n)&&l),l}),null,null)),hr(12,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(13,16384,null,0,Jm,[],{required:[0,"required"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Jm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(16,671744,[["name",4]],0,zm,[[2,Hg],[6,Zg],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"],options:[2,"options"]},{update:"ngModelChange"}),di(17,{standalone:0}),dr(2048,null,qg,null,[zm]),hr(19,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(21,0,null,null,1,"label",[["class","control-label"],["for","customerName"]],null,null,null,null,null)),(e()(),pi(-1,null,["Last Name "])),(e()(),ei(23,0,null,null,7,"input",[["class","form-control"],["id","lastName"],["name","lastName"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,24)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,24).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,24)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,24)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.customer.lastName=n)&&l),l}),null,null)),hr(24,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(25,16384,null,0,Jm,[],{required:[0,"required"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Jm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(28,671744,[["name",4]],0,zm,[[2,Hg],[6,Zg],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(30,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(31,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(32,0,null,null,1,"label",[["class","control-label"],["for","email"]],null,null,null,null,null)),(e()(),pi(-1,null,["Email "])),(e()(),ei(34,0,null,null,5,"input",[["class","form-control"],["id","email"],["name","email"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,35)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,35).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,35)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,35)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.customer.email=n)&&l),l}),null,null)),hr(35,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(37,671744,[["name",4]],0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(39,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(40,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(41,0,null,null,3,"label",[["class","control-label"],["for","password"]],null,null,null,null,null)),(e()(),pi(-1,null,["password"])),(e()(),ei(43,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(45,0,null,null,5,"input",[["class","form-control"],["id","password"],["min","0"],["name","password"],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,46)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,46).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,46)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,46)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.customer.password=n)&&l),l}),null,null)),hr(46,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(48,671744,[["name",4]],0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(50,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(51,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(52,0,null,null,1,"label",[["class","control-label"],["for","phone"]],null,null,null,null,null)),(e()(),pi(-1,null,["Customer Phone "])),(e()(),ei(54,0,null,null,5,"input",[["class","form-control"],["id","phone"],["name","phone"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,55)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,55).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,55)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,55)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.customer.phone=n)&&l),l}),null,null)),hr(55,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(57,671744,[["name",4]],0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(59,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(60,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(61,0,null,null,1,"label",[["class","control-label"],["for","cusUrl"]],null,null,null,null,null)),(e()(),pi(-1,null,["Photo URL "])),(e()(),ei(63,0,null,null,5,"input",[["class","form-control"],["id","cusUrl"],["name","cusUrl"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,64)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,64).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,64)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,64)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.customer.cusUrl=n)&&l),l}),null,null)),hr(64,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(66,671744,[["name",4]],0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(68,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(69,0,null,null,4,"code",[],null,null,null,null,null)),(e()(),pi(-1,null,["Example:"])),(e()(),ei(71,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(72,0,null,null,1,"small",[],null,null,null,null,null)),(e()(),pi(-1,null,["https://doggywood-veterinary.s3.amazonaws.com/assets/People/random_p7.png"])),(e()(),Xs(16777216,null,null,1,null,Bf)),hr(75,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(76,0,null,null,1,"button",[["class","btn btn-primary register"],["data-dismiss","modal"],["id","register-button"],["type","text"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.editCustomer()&&l),l}),null,null)),(e()(),pi(-1,null,[" SUBMIT "]))],(function(e,t){var n=t.component;e(t,13,0,"");var l=n.customer.firstName,r=e(t,17,0,!0);e(t,16,0,"firstName",l,r),e(t,25,0,""),e(t,28,0,"lastName",n.customer.lastName),e(t,37,0,"email",n.customer.email),e(t,48,0,"password",n.customer.password),e(t,57,0,"phone",n.customer.phone),e(t,66,0,"cusUrl",n.customer.cusUrl),e(t,75,0,""!=n.successMessage)}),(function(e,t){e(t,3,0,t.component.panelTitle),e(t,11,0,Jl(t,13).required?"":null,Jl(t,19).ngClassUntouched,Jl(t,19).ngClassTouched,Jl(t,19).ngClassPristine,Jl(t,19).ngClassDirty,Jl(t,19).ngClassValid,Jl(t,19).ngClassInvalid,Jl(t,19).ngClassPending),e(t,23,0,Jl(t,25).required?"":null,Jl(t,30).ngClassUntouched,Jl(t,30).ngClassTouched,Jl(t,30).ngClassPristine,Jl(t,30).ngClassDirty,Jl(t,30).ngClassValid,Jl(t,30).ngClassInvalid,Jl(t,30).ngClassPending),e(t,34,0,Jl(t,39).ngClassUntouched,Jl(t,39).ngClassTouched,Jl(t,39).ngClassPristine,Jl(t,39).ngClassDirty,Jl(t,39).ngClassValid,Jl(t,39).ngClassInvalid,Jl(t,39).ngClassPending),e(t,45,0,Jl(t,50).ngClassUntouched,Jl(t,50).ngClassTouched,Jl(t,50).ngClassPristine,Jl(t,50).ngClassDirty,Jl(t,50).ngClassValid,Jl(t,50).ngClassInvalid,Jl(t,50).ngClassPending),e(t,54,0,Jl(t,59).ngClassUntouched,Jl(t,59).ngClassTouched,Jl(t,59).ngClassPristine,Jl(t,59).ngClassDirty,Jl(t,59).ngClassValid,Jl(t,59).ngClassInvalid,Jl(t,59).ngClassPending),e(t,63,0,Jl(t,68).ngClassUntouched,Jl(t,68).ngClassTouched,Jl(t,68).ngClassPristine,Jl(t,68).ngClassDirty,Jl(t,68).ngClassValid,Jl(t,68).ngClassInvalid,Jl(t,68).ngClassPending)}))}function zf(e){return fi(0,[si(402653184,1,{editUserForm:0}),(e()(),ei(1,0,null,null,25,"div",[["class","row appt"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,2,"div",[["class","col col-xs-8"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,1,"button",[["class","btn btn-info"],["d",""],["data-target","#editClientModal"],["data-toggle","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(4,null,[" "," "])),(e()(),ei(5,0,null,null,21,"div",[["aria-hidden","true"],["aria-labelledby","editClientModalTitle"],["class","modal fade"],["id","editClientModal"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,20,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,19,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),ei(9,0,null,null,1,"h5",[["class","modal-title"],["id","editClientModalTitle"]],null,null,null,null,null)),(e()(),pi(10,null,[" \xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0"," "])),(e()(),ei(11,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),ei(12,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"])),(e()(),ei(14,0,null,null,9,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),ei(15,0,null,null,8,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(e,t,n){var l=!0;return"submit"===t&&(l=!1!==Jl(e,17).onSubmit(n)&&l),"reset"===t&&(l=!1!==Jl(e,17).onReset()&&l),l}),null,null)),hr(16,16384,null,0,qm,[],null,null),hr(17,4210688,[[1,4],["registerForm",4]],0,Lm,[[8,null],[8,null]],null,null),dr(2048,null,Hg,null,[Lm]),hr(19,16384,null,0,Kg,[[4,Hg]],null,null),(e()(),Xs(16777216,null,null,1,null,jf)),hr(21,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,Hf)),hr(23,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(24,0,null,null,2,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),ei(25,0,null,null,1,"button",[["class","btn btn-secondary"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Cancel "]))],(function(e,t){var n=t.component;e(t,21,0,!n.clientView),e(t,23,0,n.customer)}),(function(e,t){var n=t.component;e(t,4,0,n.panelTitle),e(t,10,0,n.panelTitle),e(t,15,0,Jl(t,19).ngClassUntouched,Jl(t,19).ngClassTouched,Jl(t,19).ngClassPristine,Jl(t,19).ngClassDirty,Jl(t,19).ngClassValid,Jl(t,19).ngClassInvalid,Jl(t,19).ngClassPending)}))}function qf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-profile",[],null,null,null,zf,$f)),hr(1,114688,null,0,Lf,[wf,Ig,tf,cp,Xh],null,null)],(function(e,t){e(t,1,0)}),null)}var Wf=jl("app-profile",Lf,qf,{},{},[]);class Gf{constructor(e,t,n){this.authenticationService=e,this.formBuilder=t,this.router=n,this.loading=!1,this.submitted=!1,this.adminLogin="ADMIN LOGIN",this.admin=!1,this.errorMessage=""}ngOnInit(){this.form=this.formBuilder.group({email:["",Jg.required],password:["",Jg.required]}),this.panelTitle="CLIENT LOGIN",this.logout()}get f(){return this.form.controls}handleLogin(){this.submitted=!0,this.form.invalid||(this.loading=!0,this.admin?(this.authenticationService.loginEmp(this.f.email.value,this.f.password.value).pipe(vu()).subscribe(e=>{console.log(e),null!==e?(this.id=this.authenticationService.getEmpId(),console.log("emp liftoff: "+this.id),this.router.navigate(["vetLanding"])):(this.errorMessage="Oops, wrong email or password!",this.router.navigate(["/login"]),this.errorReset())},e=>{console.log("errorLoginWaiting",e)}),this.loading=!1):this.admin||(this.authenticationService.loginCust(this.f.email.value,this.f.password.value).pipe(vu()).subscribe(e=>{console.log(e),null!==e?(this.id=this.authenticationService.getCustId(),console.log("cust liftoff: "+this.id),this.router.navigate([`clients/${this.id}`])):(this.errorMessage="Oops, wrong email or password!",this.router.navigate(["/login"]),this.errorReset())},e=>{console.log("errorLoginWaiting",e)}),this.loading=!1))}errorReset(){setTimeout(()=>{this.logout()},2e3)}getId(){return this.authenticationService.getCustId()}adminButton(){this.admin=!0!==this.admin,this.adminLogin=!0===this.admin?"CLIENT LOGIN":"ADMIN LOGIN",this.panelTitle=!0===this.admin?"ADMINISTRATION":"CLIENT LOGIN"}logout(){this.authenticationService.logout(),this.errorMessage=""}}var Kf=tl({encapsulation:0,styles:[["a.links[_ngcontent-%COMP%]{color:#0056b3;margin-right:auto;margin-left:auto}a.links[_ngcontent-%COMP%]:hover{cursor:pointer;text-decoration:none}h5.panel-title[_ngcontent-%COMP%]{text-align:center;color:rgba(0,0,139,.719)}div.panel[_ngcontent-%COMP%]{margin:0 20%}.admin-login[_ngcontent-%COMP%]{padding:5px;text-align:center}.register[_ngcontent-%COMP%], .register-logout[_ngcontent-%COMP%]{float:right}"]],data:{}});function Qf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Email is invalid form"]))],null,null)}function Zf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,[" Username Email is required "]))],null,null)}function Yf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,[" Username Email is required "]))],null,null)}function Jf(e){return fi(0,[(e()(),ei(0,0,null,null,6,"div",[["class","invalid-feedback"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Qf)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,Zf)),hr(4,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,Yf)),hr(6,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,null==n.f.email.errors?null:n.f.email.errors.pattern),e(t,4,0,n.f.email.errors.required),e(t,6,0,n.f.email.errors.required)}),null)}function Xf(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),pi(-1,null,["Password is required"]))],null,null)}function ey(e){return fi(0,[(e()(),ei(0,0,null,null,2,"div",[["class","invalid-feedback"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Xf)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,t.component.f.password.errors.required)}),null)}function ty(e){return fi(0,[(e()(),ei(0,0,null,null,0,"span",[["class","spinner-border spinner-border-sm mr-1"]],null,null,null,null,null))],null,null)}function ny(e){return fi(0,[(e()(),ei(0,0,null,null,1,"a",[["class","links"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.adminButton()&&l),l}),null,null)),(e()(),pi(1,null,[" "," "]))],null,(function(e,t){e(t,1,0,t.component.adminLogin)}))}function ly(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","alert alert-warning"],["id","errorMessage"]],null,null,null,null,null)),(e()(),pi(1,null,[" "," "]))],null,(function(e,t){e(t,1,0,t.component.errorMessage)}))}function ry(e){return fi(0,[(e()(),ei(0,0,null,null,63,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,62,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(e,t,n){var l=!0,r=e.component;return"submit"===t&&(l=!1!==Jl(e,6).onSubmit(n)&&l),"reset"===t&&(l=!1!==Jl(e,6).onReset()&&l),"ngSubmit"===t&&(l=!1!==r.handleLogin()&&l),l}),null,null)),dr(512,null,Ta,Ia,[hn,Nn,fn]),hr(3,278528,null,0,Pa,[Ta],{ngStyle:[0,"ngStyle"]},null),di(4,{background:0}),hr(5,16384,null,0,qm,[],null,null),hr(6,540672,null,0,Gm,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),dr(2048,null,Hg,null,[Gm]),hr(8,16384,null,0,Kg,[[4,Hg]],null,null),(e()(),ei(9,0,null,null,54,"div",[["class","panel panel-primary form-group"]],null,null,null,null,null)),(e()(),ei(10,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,2,"div",[["class","panel-heading"]],null,null,null,null,null)),(e()(),ei(12,0,null,null,1,"h5",[["class","panel-title"]],null,null,null,null,null)),(e()(),pi(13,null,["",""])),(e()(),ei(14,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(15,0,null,null,30,"div",[["class","panel-body"]],null,null,null,null,null)),(e()(),ei(16,0,null,null,15,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(17,0,null,null,1,"label",[["class","control-label"],["for","email"]],null,null,null,null,null)),(e()(),pi(-1,null,["Email "])),(e()(),ei(19,0,null,null,10,"input",[["class","form-control"],["formControlName","email"],["id","email"],["name","email"],["pattern","^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"],["type","text"]],[[1,"pattern",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,23)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,23).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,23)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,23)._compositionEnd(n.target.value)&&l),l}),null,null)),dr(512,null,ya,va,[Pn,Nn,hn,fn]),hr(21,278528,null,0,_a,[ya],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),di(22,{"is-invalid":0}),hr(23,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(24,540672,null,0,Xm,[],{pattern:[0,"pattern"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Xm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(27,671744,null,0,Ym,[[3,Hg],[6,Zg],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(29,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Jf)),hr(31,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(32,0,null,null,13,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(33,0,null,null,1,"label",[["class","control-label"],["for","password"]],null,null,null,null,null)),(e()(),pi(-1,null,["Password "])),(e()(),ei(35,0,null,null,8,"input",[["class","form-control"],["formControlName","password"],["id","password"],["name","password"],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0;return"input"===t&&(l=!1!==Jl(e,39)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,39).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,39)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,39)._compositionEnd(n.target.value)&&l),l}),null,null)),dr(512,null,ya,va,[Pn,Nn,hn,fn]),hr(37,278528,null,0,_a,[ya],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),di(38,{"is-invalid":0}),hr(39,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(41,671744,null,0,Ym,[[3,Hg],[8,null],[8,null],[6,$g],[2,Wm]],{name:[0,"name"]},null),dr(2048,null,qg,null,[Ym]),hr(43,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,ey)),hr(45,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(46,0,null,null,1,"button",[["class","btn btn-primary login"],["id","submit-button"],["type","submit"]],[[8,"disabled",0]],null,null,null,null)),(e()(),pi(-1,null,[" SUBMIT "])),(e()(),Xs(16777216,null,null,1,null,ty)),hr(49,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(50,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(51,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(52,0,null,null,4,"div",[],null,null,null,null,null)),(e()(),ei(53,0,null,null,3,"pre",[],null,null,null,null,null)),(e()(),pi(-1,null,["Register or use Demo Login:"])),(e()(),ei(55,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),pi(-1,null,["\ncustomer3@gmail.com\npassword"])),(e()(),ei(57,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(58,0,null,null,2,"div",[["class","admin-login"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,ny)),hr(60,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(61,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,ly)),hr(63,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component,l=e(t,4,0,!1===n.admin?"":"rgba(144, 184, 219, 0.156)");e(t,3,0,l),e(t,6,0,n.form);var r=e(t,22,0,n.submitted&&n.f.email.errors);e(t,21,0,"form-control",r),e(t,24,0,"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"),e(t,27,0,"email"),e(t,31,0,n.submitted&&n.f.email.errors);var s=e(t,38,0,n.submitted&&n.f.password.errors);e(t,37,0,"form-control",s),e(t,41,0,"password"),e(t,45,0,n.submitted&&n.f.password.errors),e(t,49,0,n.loading),e(t,60,0,!n.authenticationService.isCustLoggedIn()&&!n.authenticationService.isEmpLoggedIn()),e(t,63,0,""!=n.errorMessage)}),(function(e,t){var n=t.component;e(t,1,0,Jl(t,8).ngClassUntouched,Jl(t,8).ngClassTouched,Jl(t,8).ngClassPristine,Jl(t,8).ngClassDirty,Jl(t,8).ngClassValid,Jl(t,8).ngClassInvalid,Jl(t,8).ngClassPending),e(t,13,0,n.panelTitle),e(t,19,0,Jl(t,24).pattern?Jl(t,24).pattern:null,Jl(t,29).ngClassUntouched,Jl(t,29).ngClassTouched,Jl(t,29).ngClassPristine,Jl(t,29).ngClassDirty,Jl(t,29).ngClassValid,Jl(t,29).ngClassInvalid,Jl(t,29).ngClassPending),e(t,35,0,Jl(t,43).ngClassUntouched,Jl(t,43).ngClassTouched,Jl(t,43).ngClassPristine,Jl(t,43).ngClassDirty,Jl(t,43).ngClassValid,Jl(t,43).ngClassInvalid,Jl(t,43).ngClassPending),e(t,46,0,n.loading)}))}function sy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-login",[],null,null,null,ry,Kf)),hr(1,114688,null,0,Gf,[wf,tf,cp],null,null)],(function(e,t){e(t,1,0)}),null)}var iy=jl("app-login",Gf,sy,{},{},[]);class oy{constructor(e,t,n,l,r,s,i,o,a){this.id=e,this.custId=t,this.petName=n,this.birthDate=l,this.weight=r,this.neuter=s,this.type=i,this.breed=o,this.description=a}}class ay{constructor(e,t,n,l){this.petService=e,this.clientService=t,this.router=n,this.activatedRoute=l,this.loading=!1,this.success=!1,this.pet=new oy(0,0,"","",0,0,0,"",""),this.unformattedDate=new Date("30-JAN-2020"),this.petTypes=[{id:Number(1),name:"Dog"},{id:Number(2),name:"Cat"},{id:Number(3),name:"Parrot"},{id:Number(4),name:"Ferret"},{id:Number(5),name:"Other"}],this.petNeuters=[{id:1,name:"Not Neutered"},{id:2,name:"Neutered"},{id:3,name:"Not Spayed"},{id:4,name:"Spayed"}],this.petsList=[]}ngOnInit(){this.panelTitle="Register Pet",this.petService.getPets().subscribe(e=>this.petsList=e),this.petService.getPets().subscribe(e=>this.petsList=e),console.log(this.unformattedDate)}getPet(e){0===e?(this.pet={id:null,custId:null,petName:"",birthDate:"",weight:null,color:"",type:null,breed:"",neuter:null,description:"",petUrl:""},this.panelTitle="Add Pet"):(this.petService.getPet(e).subscribe(e=>this.pet=e,e=>console.log("create-pet.comp:"+e)),this.panelTitle="Edit Pet Details")}navigate(){this.router.navigate(["clients",this.pet.custId]),console.log("clients reset")}savePet(){this.storage=sessionStorage,this.pet.custId=this.storage.getItem("custId"),this.petService.addPet(this.pet).subscribe(e=>{console.log(e)},e=>{console.log(e),console.log("Failed to add pet.")})}}var uy=tl({encapsulation:0,styles:[[""]],data:{}});function cy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Pet Name is required "]))],null,null)}function hy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Breed is required "]))],null,null)}function dy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Color is required "]))],null,null)}function py(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Weight is required "]))],null,null)}function gy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" DOB is required "]))],null,null)}function my(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[],null,null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,[" "," "]))],(function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)}),(function(e,t){e(t,3,0,t.context.$implicit.name)}))}function fy(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[["type","number"]],null,null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,[" "," "]))],(function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)}),(function(e,t){e(t,3,0,t.context.$implicit.name)}))}function yy(e){return fi(0,[(e()(),ei(0,0,null,null,0,"span",[["class","help-block"]],null,null,null,null,null))],null,null)}function vy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"button",[["class","btn btn-block btn-info table-btn"],["data-target","#exampleModalCenter"],["data-toggle","modal"]],null,null,null,null,null)),(e()(),pi(-1,null,["Add Client Pet"])),(e()(),ei(2,0,null,null,136,"div",[["aria-hidden","true"],["aria-labelledby","exampleModalCenterTitle"],["class","modal fade"],["id","exampleModalCenter"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,135,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),ei(4,0,null,null,134,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ei(5,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,1,"h5",[["class","modal-title"],["id","exampleModalCenterTitle"]],null,null,null,null,null)),(e()(),pi(-1,null,["Add Client Pet"])),(e()(),ei(8,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),ei(9,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"])),(e()(),ei(11,0,null,null,122,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),ei(12,0,null,null,14,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(13,0,null,null,3,"label",[["class","control-label"],["for","petName"]],null,null,null,null,null)),(e()(),pi(-1,null,["Pet Name"])),(e()(),ei(15,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(17,0,null,null,7,"input",[["class","form-control"],["id","petName"],["name","petName"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,18)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,18).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,18)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,18)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.pet.petName=n)&&l),l}),null,null)),hr(18,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(19,16384,null,0,Jm,[],{required:[0,"required"]},null),dr(1024,null,Zg,(function(e){return[e]}),[Jm]),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(22,671744,[["name",4]],0,zm,[[8,null],[6,Zg],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(24,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,cy)),hr(26,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(27,0,null,null,12,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(28,0,null,null,3,"label",[["class","control-label"],["for","breed"]],null,null,null,null,null)),(e()(),pi(-1,null,["Breed"])),(e()(),ei(30,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(32,0,null,null,5,"input",[["class","form-control"],["id","breed"],["name","breed"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,33)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,33).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,33)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,33)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.pet.breed=n)&&l),l}),null,null)),hr(33,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(35,671744,[["name",4]],0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(37,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,hy)),hr(39,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(40,0,null,null,12,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(41,0,null,null,3,"label",[["class","control-label"],["for","color"]],null,null,null,null,null)),(e()(),pi(-1,null,["Color"])),(e()(),ei(43,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(45,0,null,null,5,"input",[["class","form-control"],["id","color"],["name","color"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,46)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,46).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,46)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,46)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.pet.color=n)&&l),l}),null,null)),hr(46,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(48,671744,[["name",4]],0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(50,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,dy)),hr(52,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(53,0,null,null,13,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(54,0,null,null,3,"label",[["class","control-label"],["for","weight"]],null,null,null,null,null)),(e()(),pi(-1,null,["Weight"])),(e()(),ei(56,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(58,0,null,null,6,"input",[["class","form-control"],["id","weight"],["min","0"],["name","weight"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,59)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,59).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,59)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,59)._compositionEnd(n.target.value)&&l),"change"===t&&(l=!1!==Jl(e,60).onChange(n.target.value)&&l),"input"===t&&(l=!1!==Jl(e,60).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,60).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.pet.weight=n)&&l),l}),null,null)),hr(59,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(60,16384,null,0,rm,[fn,hn],null,null),dr(1024,null,$g,(function(e,t){return[e,t]}),[jg,rm]),hr(62,671744,[["name",4]],0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(64,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,py)),hr(66,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(67,0,null,null,10,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(68,0,null,null,1,"label",[["for","birthDate"]],null,null,null,null,null)),(e()(),pi(-1,null,["Pet Date of Birth"])),(e()(),ei(70,0,null,null,5,"input",[["class","form-control"],["id","birthDate"],["name","birthDate"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,71)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,71).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,71)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,71)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.pet.birthDate=n)&&l),l}),null,null)),hr(71,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(73,671744,[["name",4]],0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(75,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,gy)),hr(77,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(78,0,null,null,16,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(79,0,null,null,2,"label",[["class","control-label"],["for","neuter"]],null,null,null,null,null)),(e()(),pi(-1,null,["Pet Neuter"])),(e()(),ei(81,0,null,null,0,"span",[["class","required"]],null,null,null,null,null)),(e()(),ei(82,0,null,null,12,"select",[["class","form-control"],["id","neuter"],["name","neuter"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,83).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,83).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.pet.neuter=n)&&l),l}),null,null)),hr(83,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(85,671744,[["neuter",4]],0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(87,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(88,0,null,null,4,"option",[["disabled",""],["value","select"]],null,null,null,null,null)),hr(89,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(90,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),ei(91,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),pi(-1,null,["Select Type of Neuter Status: "])),(e()(),Xs(16777216,null,null,1,null,my)),hr(94,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),ei(95,0,null,null,16,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(96,0,null,null,2,"label",[["class","control-label"],["for","type"]],null,null,null,null,null)),(e()(),pi(-1,null,["Pet Type"])),(e()(),ei(98,0,null,null,0,"span",[["class","required"]],null,null,null,null,null)),(e()(),ei(99,0,null,null,12,"select",[["appSelectValidator","select"],["class","form-control"],["id","type"],["name","type"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,100).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,100).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.pet.type=n)&&l),l}),null,null)),hr(100,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(102,671744,[["type",4]],0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(104,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(105,0,null,null,4,"option",[["disabled",""],["type","number"],["value","select"]],null,null,null,null,null)),hr(106,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(107,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),ei(108,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),pi(-1,null,["Select Type of Pet: "])),(e()(),Xs(16777216,null,null,1,null,fy)),hr(111,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),ei(112,0,null,null,10,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(113,0,null,null,1,"label",[["class","control-label"],["for","description"]],null,null,null,null,null)),(e()(),pi(-1,null,["Description"])),(e()(),ei(115,0,null,null,5,"textarea",[["class","form-control"],["id","description"],["name","description"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,116)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,116).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,116)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,116)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.pet.description=n)&&l),l}),null,null)),hr(116,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(118,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(120,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,yy)),hr(122,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(123,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(124,0,null,null,1,"label",[["for","petUrl"]],null,null,null,null,null)),(e()(),pi(-1,null,["Enter Image URL For Pet"])),(e()(),ei(126,0,null,null,5,"input",[["class","form-control"],["id","petUrl"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,127)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,127).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,127)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,127)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.pet.petUrl=n)&&l),l}),null,null)),hr(127,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(129,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(131,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(132,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(-1,null,["https://doggywood.s3.amazonaws.com/assets/Animals/random_a8.jpg"])),(e()(),ei(134,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),ei(135,0,null,null,1,"button",[["class","btn btn-secondary"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["Close"])),(e()(),ei(137,0,null,null,1,"button",[["class","btn btn-info"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.savePet()&&l),l}),null,null)),(e()(),pi(-1,null,["Add Pet"]))],(function(e,t){var n=t.component;e(t,19,0,""),e(t,22,0,"petName",n.pet.petName),e(t,26,0,Jl(t,73).invalid&&Jl(t,73).touched),e(t,35,0,"breed",n.pet.breed),e(t,39,0,Jl(t,73).invalid&&Jl(t,73).touched),e(t,48,0,"color",n.pet.color),e(t,52,0,Jl(t,73).invalid&&Jl(t,73).touched),e(t,62,0,"weight",n.pet.weight),e(t,66,0,Jl(t,73).invalid&&Jl(t,73).touched),e(t,73,0,"birthDate",n.pet.birthDate),e(t,77,0,Jl(t,73).invalid&&Jl(t,73).touched),e(t,85,0,"neuter",n.pet.neuter),e(t,89,0,"select"),e(t,90,0,"select"),e(t,94,0,n.petNeuters),e(t,102,0,"type",n.pet.type),e(t,106,0,"select"),e(t,107,0,"select"),e(t,111,0,n.petTypes),e(t,118,0,"description",n.pet.description),e(t,122,0,Jl(t,73).invalid&&Jl(t,73).touched),e(t,129,0,n.pet.petUrl)}),(function(e,t){e(t,12,0,Jl(t,73).invalid&&Jl(t,73).touched,Jl(t,73).valid),e(t,17,0,Jl(t,19).required?"":null,Jl(t,24).ngClassUntouched,Jl(t,24).ngClassTouched,Jl(t,24).ngClassPristine,Jl(t,24).ngClassDirty,Jl(t,24).ngClassValid,Jl(t,24).ngClassInvalid,Jl(t,24).ngClassPending),e(t,27,0,Jl(t,73).invalid&&Jl(t,73).touched,Jl(t,73).valid),e(t,32,0,Jl(t,37).ngClassUntouched,Jl(t,37).ngClassTouched,Jl(t,37).ngClassPristine,Jl(t,37).ngClassDirty,Jl(t,37).ngClassValid,Jl(t,37).ngClassInvalid,Jl(t,37).ngClassPending),e(t,40,0,Jl(t,73).invalid&&Jl(t,73).touched,Jl(t,73).valid),e(t,45,0,Jl(t,50).ngClassUntouched,Jl(t,50).ngClassTouched,Jl(t,50).ngClassPristine,Jl(t,50).ngClassDirty,Jl(t,50).ngClassValid,Jl(t,50).ngClassInvalid,Jl(t,50).ngClassPending),e(t,53,0,Jl(t,73).invalid&&Jl(t,73).touched,Jl(t,73).valid),e(t,58,0,Jl(t,64).ngClassUntouched,Jl(t,64).ngClassTouched,Jl(t,64).ngClassPristine,Jl(t,64).ngClassDirty,Jl(t,64).ngClassValid,Jl(t,64).ngClassInvalid,Jl(t,64).ngClassPending),e(t,67,0,Jl(t,73).invalid&&Jl(t,73).touched,Jl(t,73).valid),e(t,70,0,Jl(t,75).ngClassUntouched,Jl(t,75).ngClassTouched,Jl(t,75).ngClassPristine,Jl(t,75).ngClassDirty,Jl(t,75).ngClassValid,Jl(t,75).ngClassInvalid,Jl(t,75).ngClassPending),e(t,82,0,Jl(t,87).ngClassUntouched,Jl(t,87).ngClassTouched,Jl(t,87).ngClassPristine,Jl(t,87).ngClassDirty,Jl(t,87).ngClassValid,Jl(t,87).ngClassInvalid,Jl(t,87).ngClassPending),e(t,99,0,Jl(t,104).ngClassUntouched,Jl(t,104).ngClassTouched,Jl(t,104).ngClassPristine,Jl(t,104).ngClassDirty,Jl(t,104).ngClassValid,Jl(t,104).ngClassInvalid,Jl(t,104).ngClassPending),e(t,112,0,Jl(t,73).invalid&&Jl(t,73).touched,Jl(t,73).valid),e(t,115,0,Jl(t,120).ngClassUntouched,Jl(t,120).ngClassTouched,Jl(t,120).ngClassPristine,Jl(t,120).ngClassDirty,Jl(t,120).ngClassValid,Jl(t,120).ngClassInvalid,Jl(t,120).ngClassPending),e(t,126,0,Jl(t,131).ngClassUntouched,Jl(t,131).ngClassTouched,Jl(t,131).ngClassPristine,Jl(t,131).ngClassDirty,Jl(t,131).ngClassValid,Jl(t,131).ngClassInvalid,Jl(t,131).ngClassPending)}))}function by(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-pet-create",[],null,null,null,vy,uy)),hr(1,114688,null,0,ay,[Pg,Ig,cp,Xh],null,null)],(function(e,t){e(t,1,0)}),null)}var _y=jl("app-pet-create",ay,by,{},{},[]);class wy{constructor(e,t,n,l,r,s){this.route=e,this.router=t,this.clientService=n,this.clientsService=l,this.cliLandingService=r,this.petService=s,this.panelTitle="Welcome",this.customerList=[],this.petList=[],this.id=e.snapshot.paramMap.get("id"),this.clientsService.getCustomer(this.id).subscribe(e=>this.customer=e),this.petService.getPetByCust(this.id).subscribe(e=>this.petList=e)}ngOnInit(){this.displayDate(),this.custObj=JSON.parse(localStorage.getItem("cust")),this.custId=this.custObj.id,console.log(this.custId)}displayDate(){this.today=new Date;var e=this.today.getDate(),t=this.today.getMonth()+1,n=this.today.getFullYear();e<10&&(e="0"+e),t<10&&(t="0"+t),this.today=e+"-"+t+"-"+n,console.log(this.today)}getCustomerList(){this.clientsService.getCustomers().subscribe(e=>this.customerList=e)}getPetDetails(e){this.petService.getPet(e).subscribe(e=>{this.pet=e,console.log(this.pet)})}seePetDetails(e){this.petService.getPet(e).subscribe(t=>{this.pet=t,this.router.navigate([`cliPetProfile/${e}`])})}handleSuccessfulResponse(e){console.log(e),console.log(e.message),this.object=e,this.welcome=e.message}getClientData(){console.log(this.cliLandingService.collectClientBean()),this.cliLandingService.collectClientBean().subscribe(e=>this.handleSuccessfulResponse(e)),console.log("last line of message from GetCLientData Function")}petTypes(e){switch(e){case 1:return"Dog";case 2:return"Cat";case 3:return"Parrot";case 4:return"Ferret";case 5:return"Other";default:return"??????"}}}var Cy=tl({encapsulation:0,styles:[[".profile-userpic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:none;margin:0 auto;width:70%;height:70%;border-radius:50%!important}.pet-table[_ngcontent-%COMP%]{margin:20px}.table-btn[_ngcontent-%COMP%]{margin:5px}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{max-width:30rem}p.dev[_ngcontent-%COMP%]{color:#00f}.table-1[_ngcontent-%COMP%]{padding-right:40px}.button[_ngcontent-%COMP%]{min-width:200px;height:50px}.right[_ngcontent-%COMP%]{text-align:right}"]],data:{}});function Sy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),pi(1,null,["",""]))],null,(function(e,t){e(t,1,0,t.component.customer.firstName)}))}function Ey(e){return fi(0,[(e()(),ei(0,0,null,null,0,"img",[["alt",""],["class","img-responsive"]],[[8,"src",4]],null,null,null,null))],null,(function(e,t){e(t,0,0,Il(1,"",t.component.customer.cusUrl,""))}))}function xy(e){return fi(0,[(e()(),ei(0,0,null,null,3,"div",[["class","profile-sidebar"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,2,"div",[["class","profile-userpic"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Ey)),hr(3,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,3,0,t.component.customer)}),null)}function ky(e){return fi(0,[(e()(),ei(0,0,null,null,17,"div",[["class","profile-sidebar"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,16,"div",[["class","profile-usertitle"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,2,"div",[["class","profile-usertitle-name"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),pi(4,null,[""," ",""])),(e()(),ei(5,0,null,null,12,"div",[["class","profile-details"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(7,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["ID:"])),(e()(),pi(9,null,[" ",""])),(e()(),ei(10,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Phone:"])),(e()(),pi(13,null,[" ",""])),(e()(),ei(14,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(15,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Email:"])),(e()(),pi(17,null,[" ",""]))],null,(function(e,t){var n=t.component;e(t,4,0,n.customer.firstName,n.customer.lastName),e(t,9,0,n.customer.id),e(t,13,0,n.customer.phone),e(t,17,0,n.customer.email)}))}function Ty(e){return fi(0,[(e()(),ei(0,0,null,null,2,"div",[["class","container pet-create"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"app-pet-create",[],null,null,null,vy,uy)),hr(2,114688,null,0,ay,[Pg,Ig,cp,Xh],null,null)],(function(e,t){e(t,2,0)}),null)}function Iy(e){return fi(0,[(e()(),ei(0,0,null,null,17,"tr",[["class","clickable-row"],["routerLink","register/"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,1).onClick()&&l),l}),null,null)),hr(1,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),ei(2,0,null,null,1,"th",[["scope","row"]],null,null,null,null,null)),(e()(),pi(3,null,["",""])),(e()(),ei(4,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(5,null,["",""])),(e()(),ei(6,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(7,null,[""," lbs"])),(e()(),ei(8,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(9,null,["",""])),(e()(),ei(10,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,2,"a",[["class","btn btn-outline-info table-btn"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,12).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(12,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["View"])),(e()(),ei(14,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),ei(15,0,null,null,2,"a",[["class","btn btn-outline-info table-btn"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,16).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(16,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["View Pet"]))],(function(e,t){e(t,1,0,"register/"),e(t,12,0,Il(1,"../../cliPetRecord/",t.context.$implicit.id,"")),e(t,16,0,Il(1,"../../cliPetProfile/",t.context.$implicit.id,""))}),(function(e,t){var n=t.component;e(t,3,0,t.context.$implicit.petName),e(t,5,0,n.petTypes(t.context.$implicit.type)),e(t,7,0,t.context.$implicit.weight),e(t,9,0,t.context.$implicit.birthDate),e(t,11,0,Jl(t,12).target,Jl(t,12).href),e(t,15,0,Jl(t,16).target,Jl(t,16).href)}))}function Dy(e){return fi(0,[(e()(),ei(0,0,null,null,18,"div",[["class","table-1"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,17,"table",[["class","table table-striped pet-table"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,13,"thead",[["class","thead-dark"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,12,"tr",[],null,null,null,null,null)),(e()(),ei(4,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Name"])),(e()(),ei(6,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Breed"])),(e()(),ei(8,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Weight"])),(e()(),ei(10,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Age"])),(e()(),ei(12,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Records"])),(e()(),ei(14,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Info"])),(e()(),ei(16,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Iy)),hr(18,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,18,0,t.component.petList)}),null)}function Py(e){return fi(0,[(e()(),ei(0,0,null,null,17,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(2,0,null,null,1,"pre",[["class","pull-right right"]],null,null,null,null,null)),(e()(),pi(3,null,["",""])),(e()(),ei(4,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(5,0,null,null,4,"div",[["class","panel-heading"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,3,"h5",[["class","panel-title"]],null,null,null,null,null)),(e()(),pi(7,null,[" ",", "])),(e()(),Xs(16777216,null,null,1,null,Sy)),hr(9,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(10,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(11,0,null,null,6,"div",[["class","row profile"]],null,null,null,null,null)),(e()(),ei(12,0,null,null,2,"div",[["class","col-md-4"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,xy)),hr(14,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(15,0,null,null,2,"div",[["class","col-md-8"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,ky)),hr(17,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(18,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(19,0,null,null,6,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(20,0,null,null,1,"app-profile",[["class","btn btn-info button"]],null,null,null,zf,$f)),hr(21,114688,null,0,Lf,[wf,Ig,tf,cp,Xh],null,null),(e()(),ei(22,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(23,0,null,null,2,"button",[["class","disabled btn btn-info button"],["disabled",""],["routerLink","apptCreate"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,24).onClick()&&l),l}),null,null)),hr(24,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,[" Schedule Appointment "])),(e()(),ei(26,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Ty)),hr(28,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,Dy)),hr(30,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,9,0,n.customer),e(t,14,0,n.customer),e(t,17,0,n.customer),e(t,21,0),e(t,24,0,"apptCreate"),e(t,28,0,n.test),e(t,30,0,n.petList.length>0)}),(function(e,t){var n=t.component;e(t,3,0,n.today),e(t,7,0,n.panelTitle)}))}function Ny(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-clients",[],null,null,null,Py,Cy)),hr(1,114688,null,0,wy,[Xh,cp,Ig,Ig,Dg,Pg],null,null)],(function(e,t){e(t,1,0)}),null)}var Ay=jl("app-clients",wy,Ny,{},{},[]);class Oy{constructor(e,t,n,l){this.n_message=e,this.n_id=t,this.a_id=n,this.p_id=l}}class My{constructor(e,t,n,l,r){this.route=e,this.apptService=t,this.petService=n,this.clientService=l,this.noteService=r}ngOnInit(){this.apptId=this.route.snapshot.params.apptId,this.getAppointment(this.apptId)}getAppointment(e){this.apptService.getAppointment(e).subscribe(e=>{this.appointment=e,this.getPet(this.appointment.petId),this.getNotes(this.appointment.id)},e=>{console.log("failed to get appointment")})}getPet(e){this.petService.getPet(e).subscribe(e=>{this.pet=e,this.getOwner(this.pet.custId)},e=>{console.log(e),console.log("failed to get pet")})}getOwner(e){this.clientService.getCustomer(e).subscribe(e=>{this.customer=e},e=>{console.log("failed to get pet owner")})}getNotes(e){this.noteService.getNotesByApptId(e).subscribe(e=>{this.notes=e},e=>{console.log("failed to get notes")})}addNote(){this.noteService.createNote(new Oy(this.noteMessage,0,this.apptId,this.appointment.petId)).subscribe(e=>{console.log(e);let t=this.notes.slice();t.push(e),this.notes=t},e=>{console.log("failed to add note")})}updateWeight(){this.pet.weight=this.newWeight,this.petService.addPet(this.pet).subscribe(e=>{console.log(e)},e=>{console.log("failed to update pet weight")}),this.appointment.weight=this.newWeight,this.apptService.updateAppointment(this.appointment).subscribe(e=>{console.log(e)},e=>{console.log("failed to update appt weight")})}logAppt(){console.log("To do: change how the dates are displayed, AM/PM, display weight, edit weight and then display it"),console.log(this.newWeight)}}let Ry=(()=>{class e{constructor(e){this.http=e,this.headers=new Zp({"Content-Type":"application/json"}),this.url=Eo.baseUrl}handleError(e){return e.error instanceof ErrorEvent?console.error("Client-side Error getting employees: ",e.error.message):console.error("Server Side Error: ",e),kg("Oops, there is a problem ..")}addAppointment(e){return this.http.post(`${this.url}/appointments/`,e,{headers:this.headers}).pipe(du(this.handleError))}getAppointment(e){return this.http.get(`${this.url}/appointments/${e}`).pipe(du(this.handleError))}getAllAppointments(){return this.http.get(`${this.url}/appointments/`).pipe(du(this.handleError))}getAppointmentsByCustomer(e){return this.http.get(`${this.url}/customers/${e}/appointments`).pipe(du(this.handleError))}getAppointmentsByPet(e){return this.http.get(`${this.url}/pets/${e}/appointments`).pipe(du(this.handleError))}getAppointmentsByEmployee(e){return this.http.get(`${this.url}/employees/${e}/appointments`).pipe(du(this.handleError))}updateAppointment(e){return this.http.put(`${this.url}/appointments/`,e,{headers:this.headers}).pipe(du(this.handleError))}deleteAppointment(e){return this.http.delete(`${this.url}/appointments/${e}`).pipe(du(this.handleError))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})();var Vy=tl({encapsulation:0,styles:[[".appt-button[_ngcontent-%COMP%]{width:200px;max-width:90%;margin-bottom:10px}.appt-table[_ngcontent-%COMP%]{width:90%}"]],data:{}});function Fy(e){return fi(0,[(e()(),ei(0,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(2,null,["",""]))],null,(function(e,t){e(t,2,0,t.context.$implicit.n_message)}))}function Ly(e){return fi(0,[(e()(),ei(0,0,null,null,45,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,33,"div",[["class","row justify-content-center"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,26,"div",[["class","col-5"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,1,"h3",[["style","margin-bottom: 20px;"]],null,null,null,null,null)),(e()(),pi(4,null,["","'s Appointment"])),(e()(),ei(5,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(6,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Date and Time: "])),(e()(),pi(8,null,[""," | ",":00"])),(e()(),ei(9,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(10,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Owner: "])),(e()(),pi(12,null,[""," ",""])),(e()(),ei(13,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(14,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Type: "])),(e()(),pi(16,null,["",""])),(e()(),ei(17,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(18,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Breed: "])),(e()(),pi(20,null,["",""])),(e()(),ei(21,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(22,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Date of Birth: "])),(e()(),pi(24,null,["",""])),(e()(),ei(25,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),ei(26,0,null,null,1,"strong",[],null,null,null,null,null)),(e()(),pi(-1,null,["Weight: "])),(e()(),pi(28,null,["",""])),(e()(),ei(29,0,null,null,5,"div",[["class","col-5 d-flex flex-column justify-content-center align-items-center"]],null,null,null,null,null)),(e()(),ei(30,0,null,null,2,"a",[["class","btn btn-outline-info appt-button"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,31).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(31,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(32,null,["View ","'s Profile"])),(e()(),ei(33,0,null,null,1,"button",[["class","btn btn-info appt-button"],["data-target","#editWeightModal"],["data-toggle","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(34,null,["Enter ","'s Weight at Appointment"])),(e()(),ei(35,0,null,null,10,"div",[["class","row justify-content-center"],["style","margin-bottom: 10px;"]],null,null,null,null,null)),(e()(),ei(36,0,null,null,7,"table",[["class","table table-striped appt-table"]],null,null,null,null,null)),(e()(),ei(37,0,null,null,3,"thead",[["class","thead-dark"]],null,null,null,null,null)),(e()(),ei(38,0,null,null,2,"tr",[],null,null,null,null,null)),(e()(),ei(39,0,null,null,1,"th",[["style","text-align: center;"]],null,null,null,null,null)),(e()(),pi(-1,null,["Appointment Notes"])),(e()(),ei(41,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Fy)),hr(43,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),ei(44,0,null,null,1,"button",[["class","btn btn-info"],["data-target","#addNoteModal"],["data-toggle","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["Add Note to Appointment"])),(e()(),ei(46,0,null,null,20,"div",[["aria-hidden","true"],["aria-labelledby","addNoteModalTitle"],["class","modal fade"],["id","addNoteModal"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ei(47,0,null,null,19,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),ei(48,0,null,null,18,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ei(49,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),ei(50,0,null,null,1,"h5",[["class","modal-title"],["id","addNoteModalTitle"]],null,null,null,null,null)),(e()(),pi(-1,null,["Add Note"])),(e()(),ei(52,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),ei(53,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"])),(e()(),ei(55,0,null,null,6,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),ei(56,0,null,null,5,"textarea",[["class","form-control"],["id","noteInput"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,57)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,57).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,57)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,57)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.noteMessage=n)&&l),l}),null,null)),hr(57,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(59,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(61,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(62,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),ei(63,0,null,null,1,"button",[["class","btn btn-outline-info"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["Close"])),(e()(),ei(65,0,null,null,1,"button",[["class","btn btn-info"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.addNote()&&l),l}),null,null)),(e()(),pi(-1,null,["Submit"])),(e()(),ei(67,0,null,null,21,"div",[["aria-hidden","true"],["aria-labelledby","editWeightModalTitle"],["class","modal fade"],["id","editWeightModal"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ei(68,0,null,null,20,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),ei(69,0,null,null,19,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ei(70,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),ei(71,0,null,null,1,"h5",[["class","modal-title"],["id","editWeightModalTitle"]],null,null,null,null,null)),(e()(),pi(72,null,["Enter ","'s Weight"])),(e()(),ei(73,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),ei(74,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"])),(e()(),ei(76,0,null,null,7,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),ei(77,0,null,null,6,"input",[["class","form-control"],["id","weightInput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,78)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,78).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,78)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,78)._compositionEnd(n.target.value)&&l),"change"===t&&(l=!1!==Jl(e,79).onChange(n.target.value)&&l),"input"===t&&(l=!1!==Jl(e,79).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,79).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.newWeight=n)&&l),l}),null,null)),hr(78,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),hr(79,16384,null,0,rm,[fn,hn],null,null),dr(1024,null,$g,(function(e,t){return[e,t]}),[jg,rm]),hr(81,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(83,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(84,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),ei(85,0,null,null,1,"button",[["class","btn btn-outline-info"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["Close"])),(e()(),ei(87,0,null,null,1,"button",[["class","btn btn-info"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.updateWeight()&&l),l}),null,null)),(e()(),pi(-1,null,["Submit"]))],(function(e,t){var n=t.component;e(t,31,0,Il(1,"../../vetPetProfile/",n.appointment.petId,"")),e(t,43,0,n.notes),e(t,59,0,n.noteMessage),e(t,81,0,n.newWeight)}),(function(e,t){var n=t.component;e(t,4,0,n.pet.petName),e(t,8,0,n.appointment.date,n.appointment.timeSlot),e(t,12,0,n.customer.firstName,n.customer.lastName),e(t,16,0,n.pet.type),e(t,20,0,n.pet.breed),e(t,24,0,n.pet.birthDate),e(t,28,0,n.appointment.weight),e(t,30,0,Jl(t,31).target,Jl(t,31).href),e(t,32,0,n.pet.petName),e(t,34,0,n.pet.petName),e(t,56,0,Jl(t,61).ngClassUntouched,Jl(t,61).ngClassTouched,Jl(t,61).ngClassPristine,Jl(t,61).ngClassDirty,Jl(t,61).ngClassValid,Jl(t,61).ngClassInvalid,Jl(t,61).ngClassPending),e(t,72,0,n.pet.petName),e(t,77,0,Jl(t,83).ngClassUntouched,Jl(t,83).ngClassTouched,Jl(t,83).ngClassPristine,Jl(t,83).ngClassDirty,Jl(t,83).ngClassValid,Jl(t,83).ngClassInvalid,Jl(t,83).ngClassPending)}))}function $y(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-appt",[],null,null,null,Ly,Vy)),hr(1,114688,null,0,My,[Xh,Ry,Pg,Ig,Ng],null,null)],(function(e,t){e(t,1,0)}),null)}var Uy=jl("app-appt",My,$y,{},{},[]);class jy{constructor(e,t,n,l,r,s,i,o){this.id=e,this.custId=t,this.petId=n,this.empId=l,this.date=r,this.weight=s,this.timeSlot=i,this.description=o}}class By{constructor(e,t,n,l){this.router=e,this.apptService=t,this.clientService=n,this.petService=l,this.customersList=[],this.customers=[],this.pets=[]}ngOnInit(){setTimeout(()=>{this.storage=sessionStorage,this.empId=parseInt(this.storage.getItem("empId"))},250),this.getAllCustomers()}addAppointment(){this.petService.getPet(this.petId).subscribe(e=>{console.log(e.weight),this.weight=e.weight},e=>{console.log("failed to get pet by id")}),console.log(this.weight),this.apptService.addAppointment(new jy(0,this.custId,this.petId,this.empId,this.date,this.weight,this.timeSlot,this.description)).subscribe(e=>{console.log(e),this.router.navigate(["vetLanding"])},e=>{console.log(e),console.log("Failed to add appointment.")})}getAllCustomers(){this.clientService.getCustomers().subscribe(e=>{console.log(e),this.customers=e},e=>{console.log("Failed to get all customers")})}getPets(){this.petService.getPetByCust(this.custId).subscribe(e=>{this.pets=e},e=>{console.log("Failed to get pets")})}}var Hy=tl({encapsulation:0,styles:[[""]],data:{}});function zy(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[],null,null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,[""," ",""]))],(function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)}),(function(e,t){e(t,3,0,t.context.$implicit.firstName,t.context.$implicit.lastName)}))}function qy(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[],null,null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,["",""]))],(function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)}),(function(e,t){e(t,3,0,t.context.$implicit.petName)}))}function Wy(e){return fi(0,[(e()(),ei(0,0,null,null,95,"div",[["class","row appt"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,2,"div",[["class"," col col-xs-8"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,1,"button",[["class","btn btn-info"],["data-target","#exampleModalCenter"],["data-toggle","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Schedule a New Appointment\n"])),(e()(),ei(4,0,null,null,91,"div",[["aria-hidden","true"],["aria-labelledby","exampleModalCenterTitle"],["class","modal fade"],["id","exampleModalCenter"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(e()(),ei(5,0,null,null,90,"div",[["class","modal-dialog modal-dialog-centered"],["role","document"]],null,null,null,null,null)),(e()(),ei(6,0,null,null,89,"div",[["class","modal-content"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,5,"div",[["class","modal-header"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,1,"h5",[["class","modal-title"],["id","exampleModalCenterTitle"]],null,null,null,null,null)),(e()(),pi(-1,null,["Schedule Appointment"])),(e()(),ei(10,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),ei(11,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"])),(e()(),ei(13,0,null,null,77,"div",[["class","modal-body"]],null,null,null,null,null)),(e()(),ei(14,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(15,0,null,null,1,"label",[["for","selectClient"]],null,null,null,null,null)),(e()(),pi(-1,null,["Select a Client"])),(e()(),ei(17,0,null,null,7,"select",[["class","form-control"],["id","selectClient"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"ngModelChange"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,18).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,18).onTouched()&&l),"change"===t&&(l=!1!==r.getPets()&&l),"ngModelChange"===t&&(l=!1!==(r.custId=n)&&l),l}),null,null)),hr(18,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(20,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(22,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,zy)),hr(24,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),ei(25,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(26,0,null,null,1,"label",[["for","selectPet"]],null,null,null,null,null)),(e()(),pi(-1,null,["Select a Pet"])),(e()(),ei(28,0,null,null,7,"select",[["class","form-control"],["id","selectPet"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,29).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,29).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.petId=n)&&l),l}),null,null)),hr(29,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(31,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(33,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,qy)),hr(35,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),ei(36,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(37,0,null,null,1,"label",[["for","dateSelect"]],null,null,null,null,null)),(e()(),pi(-1,null,["Appointment Date"])),(e()(),ei(39,0,null,null,5,"input",[["class","form-control"],["id","dateSelect"],["type","date"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,40)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,40).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,40)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,40)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.date=n)&&l),l}),null,null)),hr(40,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(42,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(44,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(45,0,null,null,36,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(46,0,null,null,1,"label",[["for","selectPet"]],null,null,null,null,null)),(e()(),pi(-1,null,["Select a Time"])),(e()(),ei(48,0,null,null,33,"select",[["class","form-control"],["id","selectPet"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],(function(e,t,n){var l=!0,r=e.component;return"change"===t&&(l=!1!==Jl(e,49).onChange(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,49).onTouched()&&l),"ngModelChange"===t&&(l=!1!==(r.timeSlot=n)&&l),l}),null,null)),hr(49,16384,null,0,um,[fn,hn],null,null),dr(1024,null,$g,(function(e){return[e]}),[um]),hr(51,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(53,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(54,0,null,null,3,"option",[["value","9"]],null,null,null,null,null)),hr(55,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(56,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["9:00 AM"])),(e()(),ei(58,0,null,null,3,"option",[["value","10"]],null,null,null,null,null)),hr(59,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(60,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["10:00 AM"])),(e()(),ei(62,0,null,null,3,"option",[["value","11"]],null,null,null,null,null)),hr(63,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(64,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["11:00 AM"])),(e()(),ei(66,0,null,null,3,"option",[["value","1"]],null,null,null,null,null)),hr(67,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(68,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["1:00 PM"])),(e()(),ei(70,0,null,null,3,"option",[["value","2"]],null,null,null,null,null)),hr(71,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(72,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["2:00 PM"])),(e()(),ei(74,0,null,null,3,"option",[["value","3"]],null,null,null,null,null)),hr(75,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(76,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["3:00 PM"])),(e()(),ei(78,0,null,null,3,"option",[["value","4"]],null,null,null,null,null)),hr(79,147456,null,0,cm,[hn,fn,[2,um]],{value:[0,"value"]},null),hr(80,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(-1,null,["4:00 PM"])),(e()(),ei(82,0,null,null,8,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),ei(83,0,null,null,1,"label",[["for","description"]],null,null,null,null,null)),(e()(),pi(-1,null,["Reason for Visit"])),(e()(),ei(85,0,null,null,5,"textarea",[["class","form-control"],["id","description"],["rows","3"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,86)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,86).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,86)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,86)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.description=n)&&l),l}),null,null)),hr(86,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(88,671744,null,0,zm,[[8,null],[8,null],[8,null],[6,$g]],{model:[0,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(90,16384,null,0,Gg,[[4,qg]],null,null),(e()(),ei(91,0,null,null,4,"div",[["class","modal-footer"]],null,null,null,null,null)),(e()(),ei(92,0,null,null,1,"button",[["class","btn btn-secondary"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(e()(),pi(-1,null,["Close"])),(e()(),ei(94,0,null,null,1,"button",[["class","btn btn-info"],["data-dismiss","modal"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.addAppointment()&&l),l}),null,null)),(e()(),pi(-1,null,["Submit"]))],(function(e,t){var n=t.component;e(t,20,0,n.custId),e(t,24,0,n.customers),e(t,31,0,n.petId),e(t,35,0,n.pets),e(t,42,0,n.date),e(t,51,0,n.timeSlot),e(t,55,0,"9"),e(t,56,0,"9"),e(t,59,0,"10"),e(t,60,0,"10"),e(t,63,0,"11"),e(t,64,0,"11"),e(t,67,0,"1"),e(t,68,0,"1"),e(t,71,0,"2"),e(t,72,0,"2"),e(t,75,0,"3"),e(t,76,0,"3"),e(t,79,0,"4"),e(t,80,0,"4"),e(t,88,0,n.description)}),(function(e,t){e(t,17,0,Jl(t,22).ngClassUntouched,Jl(t,22).ngClassTouched,Jl(t,22).ngClassPristine,Jl(t,22).ngClassDirty,Jl(t,22).ngClassValid,Jl(t,22).ngClassInvalid,Jl(t,22).ngClassPending),e(t,28,0,Jl(t,33).ngClassUntouched,Jl(t,33).ngClassTouched,Jl(t,33).ngClassPristine,Jl(t,33).ngClassDirty,Jl(t,33).ngClassValid,Jl(t,33).ngClassInvalid,Jl(t,33).ngClassPending),e(t,39,0,Jl(t,44).ngClassUntouched,Jl(t,44).ngClassTouched,Jl(t,44).ngClassPristine,Jl(t,44).ngClassDirty,Jl(t,44).ngClassValid,Jl(t,44).ngClassInvalid,Jl(t,44).ngClassPending),e(t,48,0,Jl(t,53).ngClassUntouched,Jl(t,53).ngClassTouched,Jl(t,53).ngClassPristine,Jl(t,53).ngClassDirty,Jl(t,53).ngClassValid,Jl(t,53).ngClassInvalid,Jl(t,53).ngClassPending),e(t,85,0,Jl(t,90).ngClassUntouched,Jl(t,90).ngClassTouched,Jl(t,90).ngClassPristine,Jl(t,90).ngClassDirty,Jl(t,90).ngClassValid,Jl(t,90).ngClassInvalid,Jl(t,90).ngClassPending)}))}function Gy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-appt-create",[],null,null,null,Wy,Hy)),hr(1,114688,null,0,By,[cp,Ry,Ig,Pg],null,null)],(function(e,t){e(t,1,0)}),null)}var Ky=jl("app-appt-create",By,Gy,{},{},[]);class Qy{constructor(e,t){this.employeeService=e,this.activatedRoute=t,this.hide=!0,this.employeesList=[]}ngOnInit(){this.panelTitle="VETERINARIAN LOGIN",this.employeeService.getEmployees().subscribe(e=>this.employeesList=e),this.employeeService.getEmployees().subscribe(e=>this.employeesList=e),this.activatedRoute.paramMap.subscribe(e=>{const t=+e.get("id");this.employeeService.getEmployee(t),this.getEmployee(t)})}loginEmployee(){}getEmployee(e){0===e?this.employee={id:null,firstName:"",lastName:"",phone:"",email:"",password:"",eType:null}:(this.employeeService.getEmployee(e).subscribe(e=>this.employee=e,e=>console.log("login-employee.comp:"+e)),this.panelTitle="Login Details")}onLoginSubmit(){alert(this.employee.firstName+" "+this.employee.email+" "+this.employee.password)}}let Zy=(()=>{class e{constructor(e){this.http=e,this.emps_url=`${Eo.baseUrl}/customers`,this.empsByEmail_url=`${Eo.baseUrl}/employee-welcome/profile`}handleError(e){return e.error instanceof ErrorEvent?console.error("Client-side Error getting employees: ",e.error.message):console.error("Server Side Error: ",e),kg("Oops, there is a problem ..")}getEmployees(){return this.http.get(this.emps_url).pipe(du(this.handleError))}getEmployeeByEmail(e){return this.http.get(`${this.empsByEmail_url}/${e}`).pipe(du(this.handleError))}getEmployee(e){return this.http.get(`${this.emps_url}/${e}`).pipe(du(this.handleError))}addEmployee(e){return this.http.post(this.emps_url,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}updateEmployee(e){return this.http.put(`${this.emps_url}/${e.id}`,e,{headers:new Zp({"Content-Type":"application/json"})}).pipe(du(this.handleError))}deleteEmployee(e){return this.http.delete(`${this.emps_url}/${e}`).pipe(du(this.handleError))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(cg))},token:e,providedIn:"root"}),e})();var Yy=tl({encapsulation:0,styles:[[""]],data:{}});function Jy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Email is required "]))],null,null)}function Xy(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[["class","help-block"]],null,null,null,null,null)),(e()(),pi(-1,null,[" password is required "]))],null,null)}function ev(e){return fi(0,[(e()(),ei(0,0,null,null,34,"div",[["class","panel panel-primary"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(2,0,null,null,2,"div",[["class","panel-heading"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,1,"h4",[["class","panel-title"]],null,null,null,null,null)),(e()(),pi(4,null,["",""])),(e()(),ei(5,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(6,0,null,null,26,"div",[["class","panel-body"]],null,null,null,null,null)),(e()(),ei(7,0,null,null,12,"div",[["class","form-group "]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(8,0,null,null,3,"label",[["class","control-label"],["for","email"]],null,null,null,null,null)),(e()(),pi(-1,null,["Email"])),(e()(),ei(10,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(12,0,null,null,5,"input",[["class","form-control"],["id","email"],["name","email"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,13)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,13).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,13)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,13)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.employee.email=n)&&l),l}),null,null)),hr(13,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(15,671744,[["name",4]],0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(17,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Jy)),hr(19,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(20,0,null,null,12,"div",[["class","form-group"]],[[2,"has-error",null],[2,"has-success",null]],null,null,null,null)),(e()(),ei(21,0,null,null,3,"label",[["class","control-label"],["for","password"]],null,null,null,null,null)),(e()(),pi(-1,null,["password"])),(e()(),ei(23,0,null,null,1,"span",[["class","required"]],null,null,null,null,null)),(e()(),pi(-1,null,[" *"])),(e()(),ei(25,0,null,null,5,"input",[["class","form-control"],["id","password"],["min","0"],["name","password"],["type","password"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var l=!0,r=e.component;return"input"===t&&(l=!1!==Jl(e,26)._handleInput(n.target.value)&&l),"blur"===t&&(l=!1!==Jl(e,26).onTouched()&&l),"compositionstart"===t&&(l=!1!==Jl(e,26)._compositionStart()&&l),"compositionend"===t&&(l=!1!==Jl(e,26)._compositionEnd(n.target.value)&&l),"ngModelChange"===t&&(l=!1!==(r.employee.password=n)&&l),l}),null,null)),hr(26,16384,null,0,jg,[fn,hn,[2,Ug]],null,null),dr(1024,null,$g,(function(e){return[e]}),[jg]),hr(28,671744,[["name",4]],0,zm,[[2,Hg],[8,null],[8,null],[6,$g]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),dr(2048,null,qg,null,[zm]),hr(30,16384,null,0,Gg,[[4,qg]],null,null),(e()(),Xs(16777216,null,null,1,null,Xy)),hr(32,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(33,0,null,null,1,"button",[["class","btn btn-primary"],["type","submit"]],null,null,null,null,null)),(e()(),pi(-1,null,[" SUBMIT "]))],(function(e,t){var n=t.component;e(t,15,0,"email",n.employee.email),e(t,19,0,Jl(t,28).invalid&&Jl(t,28).touched),e(t,28,0,"password",n.employee.password),e(t,32,0,Jl(t,28).invalid&&Jl(t,28).touched)}),(function(e,t){e(t,4,0,t.component.panelTitle),e(t,7,0,Jl(t,28).invalid&&Jl(t,28).touched,Jl(t,28).valid),e(t,12,0,Jl(t,17).ngClassUntouched,Jl(t,17).ngClassTouched,Jl(t,17).ngClassPristine,Jl(t,17).ngClassDirty,Jl(t,17).ngClassValid,Jl(t,17).ngClassInvalid,Jl(t,17).ngClassPending),e(t,20,0,Jl(t,28).invalid&&Jl(t,28).touched,Jl(t,28).valid),e(t,25,0,Jl(t,30).ngClassUntouched,Jl(t,30).ngClassTouched,Jl(t,30).ngClassPristine,Jl(t,30).ngClassDirty,Jl(t,30).ngClassValid,Jl(t,30).ngClassInvalid,Jl(t,30).ngClassPending)}))}function tv(e){return fi(0,[(e()(),ei(0,0,null,null,7,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,6,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],(function(e,t,n){var l=!0,r=e.component;return"submit"===t&&(l=!1!==Jl(e,3).onSubmit(n)&&l),"reset"===t&&(l=!1!==Jl(e,3).onReset()&&l),"ngSubmit"===t&&(l=!1!==r.loginEmployee()&&l),l}),null,null)),hr(2,16384,null,0,qm,[],null,null),hr(3,4210688,[["registerForm",4]],0,Lm,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),dr(2048,null,Hg,null,[Lm]),hr(5,16384,null,0,Kg,[[4,Hg]],null,null),(e()(),Xs(16777216,null,null,1,null,ev)),hr(7,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,7,0,t.component.employee)}),(function(e,t){e(t,1,0,Jl(t,5).ngClassUntouched,Jl(t,5).ngClassTouched,Jl(t,5).ngClassPristine,Jl(t,5).ngClassDirty,Jl(t,5).ngClassValid,Jl(t,5).ngClassInvalid,Jl(t,5).ngClassPending)}))}function nv(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-emp-vet-login",[],null,null,null,tv,Yy)),hr(1,114688,null,0,Qy,[Zy,Xh],null,null)],(function(e,t){e(t,1,0)}),null)}var lv=jl("app-emp-vet-login",Qy,nv,{},{},[]);class rv{constructor(e,t,n,l,r,s){this.employeesService=e,this.apptService=t,this.router=n,this.activatedRoute=l,this.clientService=r,this.authenticationService=s,this.panelTitle="Welcome, ",this.apptList=[]}ngOnInit(){this.displayDate(),setTimeout(()=>{this.employee=JSON.parse(localStorage.getItem("emp")),this.email=this.employee.email,this.empId=this.employee.id,console.log("vet landing email: "+this.email),this.apptService.getAppointmentsByEmployee(this.empId).subscribe(e=>{this.apptList=e},e=>{console.log("w e l o s t b o y s")})},500)}displayDate(){this.today=new Date;var e=this.today.getDate(),t=this.today.getMonth()+1,n=this.today.getFullYear();e<10&&(e="0"+e),t<10&&(t="0"+t),this.today=e+"-"+t+"-"+n,console.log(this.today)}}var sv=tl({encapsulation:0,styles:[[".table-head[_ngcontent-%COMP%]{text-align:center;font-size:smaller}.table-striped[_ngcontent-%COMP%]{margin:20px 0}.table-btn[_ngcontent-%COMP%]{margin:5px 0}.button-fix[_ngcontent-%COMP%]{height:52px}.right[_ngcontent-%COMP%]{text-align:right}"]],data:{}});function iv(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),pi(1,null,[""," ",""]))],null,(function(e,t){var n=t.component;e(t,1,0,n.employee.firstName,n.employee.lastName)}))}function ov(e){return fi(0,[(e()(),ei(0,0,null,null,16,"tr",[["style","text-align: center"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(2,null,["",""])),(e()(),ei(3,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(4,null,["",""])),(e()(),ei(5,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(6,null,["",""])),(e()(),ei(7,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(8,null,["",""])),(e()(),ei(9,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),ei(10,0,null,null,2,"a",[["class","btn btn-outline-info table-btn"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,11).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(11,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["See Profile"])),(e()(),ei(13,0,null,null,3,"td",[],null,null,null,null,null)),(e()(),ei(14,0,null,null,2,"a",[["class","btn btn-outline-info table-btn"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,15).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(15,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["View Appt"]))],(function(e,t){e(t,11,0,Il(1,"../vetPetProfile/",t.context.$implicit.petId,"")),e(t,15,0,Il(1,"../appt/",t.context.$implicit.id,""))}),(function(e,t){e(t,2,0,t.context.$implicit.custId),e(t,4,0,t.context.$implicit.petId),e(t,6,0,t.context.$implicit.date),e(t,8,0,t.context.$implicit.timeSlot),e(t,10,0,Jl(t,11).target,Jl(t,11).href),e(t,14,0,Jl(t,15).target,Jl(t,15).href)}))}function av(e){return fi(0,[(e()(),ei(0,0,null,null,8,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"pre",[["class","pull-right right"]],null,null,null,null,null)),(e()(),pi(2,null,["",""])),(e()(),ei(3,0,null,null,3,"h5",[["class","panel-title"]],null,null,null,null,null)),(e()(),pi(4,null,[" "," "])),(e()(),Xs(16777216,null,null,1,null,iv)),hr(6,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(7,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(9,0,null,null,12,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(10,0,null,null,2,"button",[["class","btn btn-block btn-info button-fix"],["routerLink","register/"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,11).onClick()&&l),l}),null,null)),hr(11,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,[" Register Client "])),(e()(),ei(13,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(14,0,null,null,1,"app-appt-create",[["class","btn btn-block btn-info"]],null,null,null,Wy,Hy)),hr(15,114688,null,0,By,[cp,Ry,Ig,Pg],null,null),(e()(),ei(16,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(17,0,null,null,1,"app-profile",[["class","btn btn-block btn-info"]],null,null,null,zf,$f)),hr(18,114688,null,0,Lf,[wf,Ig,tf,cp,Xh],null,null),(e()(),ei(19,0,null,null,0,"hr",[],null,null,null,null,null)),(e()(),ei(20,0,null,null,1,"app-pet-create",[["class","btn btn-block btn-info"]],null,null,null,vy,uy)),hr(21,114688,null,0,ay,[Pg,Ig,cp,Xh],null,null),(e()(),ei(22,0,null,null,18,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(23,0,null,null,17,"table",[["class","table table-striped"]],null,null,null,null,null)),(e()(),ei(24,0,null,null,13,"thead",[["class","thead-dark"]],null,null,null,null,null)),(e()(),ei(25,0,null,null,12,"tr",[["class","table-head"]],null,null,null,null,null)),(e()(),ei(26,0,null,null,1,"th",[["scope","coL"]],null,null,null,null,null)),(e()(),pi(-1,null,["Cli ID"])),(e()(),ei(28,0,null,null,1,"th",[["scope","coL"]],null,null,null,null,null)),(e()(),pi(-1,null,["Pet ID"])),(e()(),ei(30,0,null,null,1,"th",[["scope","coL"]],null,null,null,null,null)),(e()(),pi(-1,null,["Date"])),(e()(),ei(32,0,null,null,1,"th",[["scope","coL"]],null,null,null,null,null)),(e()(),pi(-1,null,["Time slot"])),(e()(),ei(34,0,null,null,1,"th",[["scope","coL"]],null,null,null,null,null)),(e()(),pi(-1,null,["Dog Info"])),(e()(),ei(36,0,null,null,1,"th",[["scope","coL"]],null,null,null,null,null)),(e()(),pi(-1,null,["Appt Info"])),(e()(),ei(38,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,ov)),hr(40,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,6,0,n.employee),e(t,11,0,"register/"),e(t,15,0),e(t,18,0),e(t,21,0),e(t,40,0,n.apptList)}),(function(e,t){var n=t.component;e(t,2,0,n.today),e(t,4,0,n.panelTitle)}))}function uv(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-vet-landing",[],null,null,null,av,sv)),hr(1,114688,null,0,rv,[Zy,Ry,cp,Xh,Ig,wf],null,null)],(function(e,t){e(t,1,0)}),null)}var cv=jl("app-vet-landing",rv,uv,{},{},[]);class hv{constructor(e,t,n,l,r,s){this.route=e,this.clientService=t,this.clientsService=n,this.cliLandingService=l,this.petService=r,this.noteService=s,this.customerList=[],this.petList=[],this.noteList=[]}ngOnInit(){this.clientsService.getClientByEmail(this.email).subscribe(e=>this.customer=e),this.petId=this.route.snapshot.params.animalId,this.petService.getPet(this.petId).subscribe(e=>this.pet=e),this.noteService.getNoteByPetId(this.petId).subscribe(e=>this.noteList=e)}}var dv=tl({encapsulation:0,styles:[[".profile-userpic[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{float:none;margin:20px auto;width:300px;border-radius:50%!important}.pet-table[_ngcontent-%COMP%]{margin:20px}.table-btn[_ngcontent-%COMP%]{margin:5px}p.dev[_ngcontent-%COMP%]{color:#00f}a[_ngcontent-%COMP%]:visited{color:#fff;text-decoration:none}"]],data:{}});function pv(e){return fi(0,[(e()(),ei(0,0,null,null,0,"img",[["alt",""],["class","img-responsive"],["width","400"]],[[8,"src",4]],null,null,null,null))],null,(function(e,t){e(t,0,0,Il(1,"",t.component.pet.petUrl,""))}))}function gv(e){return fi(0,[(e()(),ei(0,0,null,null,12,"div",[["class","profile-usertitle-name"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"h5",[],null,null,null,null,null)),(e()(),pi(2,null,["Name: ",""])),(e()(),ei(3,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(4,null,["ID: ",""])),(e()(),ei(5,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(6,null,[" Type:\t"," "])),(e()(),ei(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(8,null,[" Breed: "," "])),(e()(),ei(9,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(10,null,[" Weight: "," "])),(e()(),ei(11,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),pi(12,null,[" Birthdate: "," "]))],null,(function(e,t){var n=t.component;e(t,2,0,n.pet.petName),e(t,4,0,n.pet.id),e(t,6,0,n.pet.type),e(t,8,0,n.pet.breed),e(t,10,0,n.pet.weight),e(t,12,0,n.pet.birthDate)}))}function mv(e){return fi(0,[(e()(),ei(0,0,null,null,6,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,2,"a",[["class","btn btn-info"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(2,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["View Records"])),(e()(),ei(4,0,null,null,2,"a",[["class","btn btn-info"],["role","button"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,5).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(5,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["View Owner"]))],(function(e,t){var n=t.component;e(t,2,0,Il(1,"../../cliPetRecord/",n.pet.id,"")),e(t,5,0,Il(1,"../../clients/",n.pet.custId,""))}),(function(e,t){e(t,1,0,Jl(t,2).target,Jl(t,2).href),e(t,4,0,Jl(t,5).target,Jl(t,5).href)}))}function fv(e){return fi(0,[(e()(),ei(0,0,null,null,5,"tr",[["class","clickable-row"],["routerLink","register/"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,1).onClick()&&l),l}),null,null)),hr(1,16384,null,0,hp,[cp,Xh,[8,null],fn,hn],{routerLink:[0,"routerLink"]},null),(e()(),ei(2,0,null,null,1,"th",[["scope","row"]],null,null,null,null,null)),(e()(),pi(3,null,["",""])),(e()(),ei(4,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),pi(5,null,["",""]))],(function(e,t){e(t,1,0,"register/")}),(function(e,t){e(t,3,0,t.context.$implicit.n_id),e(t,5,0,t.context.$implicit.n_message)}))}function yv(e){return fi(0,[(e()(),ei(0,0,null,null,10,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,9,"table",[["class","table table-striped pet-table"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,5,"thead",[["class","thead-dark"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,4,"tr",[],null,null,null,null,null)),(e()(),ei(4,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Note ID"])),(e()(),ei(6,0,null,null,1,"th",[["scope","col"]],null,null,null,null,null)),(e()(),pi(-1,null,["Note"])),(e()(),ei(8,0,null,null,2,"tbody",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,fv)),hr(10,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,10,0,t.component.noteList)}),null)}function vv(e){return fi(0,[(e()(),ei(0,0,null,null,10,"div",[["class","container"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,9,"div",[["class","row profile"]],null,null,null,null,null)),(e()(),ei(2,0,null,null,4,"div",[["class","col-md-6"]],null,null,null,null,null)),(e()(),ei(3,0,null,null,3,"div",[["class","profile-sidebar"]],null,null,null,null,null)),(e()(),ei(4,0,null,null,2,"div",[["class","profile-userpic"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,pv)),hr(6,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(7,0,null,null,3,"div",[["class","col-md-6"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,2,"div",[["class","profile-usertitle"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,gv)),hr(10,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,mv)),hr(12,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,yv)),hr(14,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,6,0,n.pet),e(t,10,0,n.pet),e(t,12,0,n.pet),e(t,14,0,n.noteList.length>0)}),null)}function bv(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-vet-pet-profile",[],null,null,null,vv,dv)),hr(1,114688,null,0,hv,[Xh,Ig,Ig,Dg,Pg,Ng],null,null)],(function(e,t){e(t,1,0)}),null)}var _v=jl("app-vet-pet-profile",hv,bv,{},{},[]);function wv(e,t,n,r){return l(n)&&(r=n,n=void 0),r?wv(e,t,n).pipe(B(e=>a(e)?r(...e):r(e))):new w(l=>{!function e(t,n,l,r,s){let i;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,l,s),i=()=>e.removeEventListener(n,l,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,l),i=()=>e.off(n,l)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,l),i=()=>e.removeListener(n,l)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let i=0,o=t.length;i1?Array.prototype.slice.call(arguments):e)}),l,n)})}function Cv(e){return t=>t.lift(new Sv(e))}class Sv{constructor(e){this.notifier=e}call(e,t){const n=new Ev(e),l=U(n,this.notifier);return l&&!n.seenValue?(n.add(l),t.subscribe(n)):n}}class Ev extends j{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,l,r){this.seenValue=!0,this.complete()}notifyComplete(){}}function xv(...e){return t=>{let n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new kv(e,n))}}class kv{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new Tv(e,this.observables,this.project))}}class Tv extends j{constructor(e,t,n){super(e),this.observables=t,this.project=n,this.toRespond=[];const l=t.length;this.values=new Array(l);for(let r=0;r0){const e=s.indexOf(n);-1!==e&&s.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}function Iv(e){return parseInt(`${e}`,10)}function Dv(e){return null!=e?`${e}`:""}function Pv(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Nv(e){return null!=e}function Av(e,t){return e&&e.className&&e.className.split&&e.className.split(/\s+/).indexOf(t)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});class Ov{}let Mv=(()=>{class e{constructor(){this.dismissible=!0,this.type="warning"}}return e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();class Rv{constructor(e,t,n){this._renderer=t,this._element=n,this.close=new Vr,this.dismissible=e.dismissible,this.type=e.type}closeHandler(){this.close.emit(null)}ngOnChanges(e){const t=e.type;t&&!t.firstChange&&(this._renderer.removeClass(this._element.nativeElement,`alert-${t.previousValue}`),this._renderer.addClass(this._element.nativeElement,`alert-${t.currentValue}`))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,`alert-${this.type}`)}}class Vv{}class Fv{}class Lv{}class $v{}class Uv{static from(e){return e instanceof Uv?e:e?new Uv(e.year,e.month,e.day):null}constructor(e,t,n){this.year=Pv(e)?e:null,this.month=Pv(t)?t:null,this.day=Pv(n)?n:null}equals(e){return e&&this.year===e.year&&this.month===e.month&&this.day===e.day}before(e){return!!e&&(this.year===e.year?this.month===e.month?this.day!==e.day&&this.daye.day:this.month>e.month:this.year>e.year)}}function jv(e){return new Uv(e.getFullYear(),e.getMonth()+1,e.getDate())}function Bv(e){const t=new Date(e.year,e.month-1,e.day,12);return isNaN(t.getTime())||t.setFullYear(e.year),t}function Hv(){return new qv}let zv=(()=>{class e{}return e.ngInjectableDef=ge({factory:Hv,token:e,providedIn:"root"}),e})();class qv extends zv{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,t="d",n=1){let l=Bv(e),r=!0,s=l.getMonth();switch(t){case"y":l.setFullYear(l.getFullYear()+n);break;case"m":l.setMonth(s+=n),(s%=12)<0&&(s+=12);break;case"d":l.setDate(l.getDate()+n),r=!1;break;default:return e}return r&&l.getMonth()!==s&&l.setDate(0),jv(l)}getPrev(e,t="d",n=1){return this.getNext(e,t,-n)}getWeekday(e){let t=Bv(e).getDay();return 0===t?7:t}getWeekNumber(e,t){7===t&&(t=0);const n=Bv(e[(11-t)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const l=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((l-n.getTime())/864e5)/7)+1}getToday(){return jv(new Date)}isValid(e){if(!(e&&Pv(e.year)&&Pv(e.month)&&Pv(e.day)))return!1;if(0===e.year)return!1;const t=Bv(e);return!isNaN(t.getTime())&&t.getFullYear()===e.year&&t.getMonth()+1===e.month&&t.getDate()===e.day}}function Wv(e,t){return!function(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}(e,t)}function Gv(e,t){return!(!e&&!t||e&&t&&e.year===t.year&&e.month===t.month)}function Kv(e,t,n){return e&&t&&e.before(t)?t:e&&n&&e.after(n)?n:e}function Qv(e,t){const{minDate:n,maxDate:l,disabled:r,markDisabled:s}=t;return!(!Nv(e)||r||s&&s(e,{year:e.year,month:e.month})||n&&e.before(n)||l&&e.after(l))}let Zv=(()=>{class e{getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}}return e.ngInjectableDef=ge({factory:function(){return e=$e(Kr),new Yv(e);var e},token:e,providedIn:"root"}),e})();class Yv extends Zv{constructor(e){super(),this._locale=e;const t=Uo(e,Vo.Standalone,Fo.Short);this._weekdaysShort=t.map((e,n)=>t[(n+1)%7]),this._monthsShort=jo(e,Vo.Standalone,Fo.Abbreviated),this._monthsFull=jo(e,Vo.Standalone,Fo.Wide)}getWeekdayShortName(e){return this._weekdaysShort[e-1]}getMonthShortName(e){return this._monthsShort[e-1]}getMonthFullName(e){return this._monthsFull[e-1]}getDayAriaLabel(e){return function(e,t,n,l){let r=function(e){if(da(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){const[t,n,l]=e.split("-").map(e=>+e);return new Date(t,n-1,l)}let n;if(n=e.match(Zo))return function(e){const t=new Date(0);let n=0,l=0;const r=e[8]?t.setUTCFullYear:t.setFullYear,s=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),l=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const i=Number(e[4]||0)-n,o=Number(e[5]||0)-l,a=Number(e[6]||0),u=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(t,i,o,a,u),t}(n)}const t=new Date(e);if(!da(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=function e(t,n){const l=function(e){return Ar(e)[Dr.LocaleId]}(t);if(Yo[l]=Yo[l]||{},Yo[l][n])return Yo[l][n];let r="";switch(n){case"shortDate":r=Bo(t,Lo.Short);break;case"mediumDate":r=Bo(t,Lo.Medium);break;case"longDate":r=Bo(t,Lo.Long);break;case"fullDate":r=Bo(t,Lo.Full);break;case"shortTime":r=Ho(t,Lo.Short);break;case"mediumTime":r=Ho(t,Lo.Medium);break;case"longTime":r=Ho(t,Lo.Long);break;case"fullTime":r=Ho(t,Lo.Full);break;case"short":const n=e(t,"shortTime"),l=e(t,"shortDate");r=na(zo(t,Lo.Short),[n,l]);break;case"medium":const s=e(t,"mediumTime"),i=e(t,"mediumDate");r=na(zo(t,Lo.Medium),[s,i]);break;case"long":const o=e(t,"longTime"),a=e(t,"longDate");r=na(zo(t,Lo.Long),[o,a]);break;case"full":const u=e(t,"fullTime"),c=e(t,"fullDate");r=na(zo(t,Lo.Full),[u,c])}return r&&(Yo[l][n]=r),r}(n,t)||t;let s,i=[];for(;t;){if(!(s=Jo.exec(t))){i.push(t);break}{const e=(i=i.concat(s.slice(1))).pop();if(!e)break;t=e}}let o=r.getTimezoneOffset();l&&(o=ha(l,o),r=function(e,t,n){const l=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(ha(t,l)-l))}(r,l));let a="";return i.forEach(e=>{const t=function(e){if(ca[e])return ca[e];let t;switch(e){case"G":case"GG":case"GGG":t=sa(ta.Eras,Fo.Abbreviated);break;case"GGGG":t=sa(ta.Eras,Fo.Wide);break;case"GGGGG":t=sa(ta.Eras,Fo.Narrow);break;case"y":t=ra(ea.FullYear,1,0,!1,!0);break;case"yy":t=ra(ea.FullYear,2,0,!0,!0);break;case"yyy":t=ra(ea.FullYear,3,0,!1,!0);break;case"yyyy":t=ra(ea.FullYear,4,0,!1,!0);break;case"M":case"L":t=ra(ea.Month,1,1);break;case"MM":case"LL":t=ra(ea.Month,2,1);break;case"MMM":t=sa(ta.Months,Fo.Abbreviated);break;case"MMMM":t=sa(ta.Months,Fo.Wide);break;case"MMMMM":t=sa(ta.Months,Fo.Narrow);break;case"LLL":t=sa(ta.Months,Fo.Abbreviated,Vo.Standalone);break;case"LLLL":t=sa(ta.Months,Fo.Wide,Vo.Standalone);break;case"LLLLL":t=sa(ta.Months,Fo.Narrow,Vo.Standalone);break;case"w":t=ua(1);break;case"ww":t=ua(2);break;case"W":t=ua(1,!0);break;case"d":t=ra(ea.Date,1);break;case"dd":t=ra(ea.Date,2);break;case"E":case"EE":case"EEE":t=sa(ta.Days,Fo.Abbreviated);break;case"EEEE":t=sa(ta.Days,Fo.Wide);break;case"EEEEE":t=sa(ta.Days,Fo.Narrow);break;case"EEEEEE":t=sa(ta.Days,Fo.Short);break;case"a":case"aa":case"aaa":t=sa(ta.DayPeriods,Fo.Abbreviated);break;case"aaaa":t=sa(ta.DayPeriods,Fo.Wide);break;case"aaaaa":t=sa(ta.DayPeriods,Fo.Narrow);break;case"b":case"bb":case"bbb":t=sa(ta.DayPeriods,Fo.Abbreviated,Vo.Standalone,!0);break;case"bbbb":t=sa(ta.DayPeriods,Fo.Wide,Vo.Standalone,!0);break;case"bbbbb":t=sa(ta.DayPeriods,Fo.Narrow,Vo.Standalone,!0);break;case"B":case"BB":case"BBB":t=sa(ta.DayPeriods,Fo.Abbreviated,Vo.Format,!0);break;case"BBBB":t=sa(ta.DayPeriods,Fo.Wide,Vo.Format,!0);break;case"BBBBB":t=sa(ta.DayPeriods,Fo.Narrow,Vo.Format,!0);break;case"h":t=ra(ea.Hours,1,-12);break;case"hh":t=ra(ea.Hours,2,-12);break;case"H":t=ra(ea.Hours,1);break;case"HH":t=ra(ea.Hours,2);break;case"m":t=ra(ea.Minutes,1);break;case"mm":t=ra(ea.Minutes,2);break;case"s":t=ra(ea.Seconds,1);break;case"ss":t=ra(ea.Seconds,2);break;case"S":t=ra(ea.FractionalSeconds,1);break;case"SS":t=ra(ea.FractionalSeconds,2);break;case"SSS":t=ra(ea.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ia(Xo.Short);break;case"ZZZZZ":t=ia(Xo.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ia(Xo.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ia(Xo.Long);break;default:return null}return ca[e]=t,t}(e);a+=t?t(r,n,o):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),a}(new Date(e.year,e.month-1,e.day),"fullDate",this._locale)}}class Jv{constructor(e,t){this._calendar=e,this._i18n=t,this._model$=new T,this._select$=new T,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(Qa(e=>e.months.length>0))}get select$(){return this._select$.pipe(Qa(e=>null!==e))}set dayTemplateData(e){this._state.dayTemplateData!==e&&this._nextState({dayTemplateData:e})}set disabled(e){this._state.disabled!==e&&this._nextState({disabled:e})}set displayMonths(e){Pv(e=Iv(e))&&e>0&&this._state.displayMonths!==e&&this._nextState({displayMonths:e})}set firstDayOfWeek(e){Pv(e=Iv(e))&&e>=0&&this._state.firstDayOfWeek!==e&&this._nextState({firstDayOfWeek:e})}set focusVisible(e){this._state.focusVisible===e||this._state.disabled||this._nextState({focusVisible:e})}set maxDate(e){const t=this.toValidDate(e,null);Wv(this._state.maxDate,t)&&this._nextState({maxDate:t})}set markDisabled(e){this._state.markDisabled!==e&&this._nextState({markDisabled:e})}set minDate(e){const t=this.toValidDate(e,null);Wv(this._state.minDate,t)&&this._nextState({minDate:t})}set navigation(e){this._state.navigation!==e&&this._nextState({navigation:e})}set outsideDays(e){this._state.outsideDays!==e&&this._nextState({outsideDays:e})}focus(e){!this._state.disabled&&this._calendar.isValid(e)&&Wv(this._state.focusDate,e)&&this._nextState({focusDate:e})}focusMove(e,t){this.focus(this._calendar.getNext(this._state.focusDate,e,t))}focusSelect(){Qv(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){const t=this.toValidDate(e,this._calendar.getToday());this._state.disabled||this._state.firstDate&&!Gv(this._state.firstDate,e)||this._nextState({firstDate:t})}select(e,t={}){const n=this.toValidDate(e,null);this._state.disabled||(Wv(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),t.emitEvent&&Qv(n,this._state)&&this._select$.next(n))}toValidDate(e,t){const n=Uv.from(e);return void 0===t&&(t=this._calendar.getToday()),this._calendar.isValid(n)?n:t}_nextState(e){const t=this._updateState(e);this._patchContexts(t),this._state=t,this._model$.next(this._state)}_patchContexts(e){const{months:t,displayMonths:n,selectedDate:l,focusDate:r,focusVisible:s,disabled:i,outsideDays:o}=e;e.months.forEach(e=>{e.weeks.forEach(a=>{a.days.forEach(a=>{r&&(a.context.focused=r.equals(a.date)&&s),a.tabindex=!i&&a.date.equals(r)&&r.month===e.number?0:-1,!0===i&&(a.context.disabled=!0),void 0!==l&&(a.context.selected=null!==l&&l.equals(a.date)),e.number!==a.date.month&&(a.hidden="hidden"===o||"collapsed"===o||n>1&&a.date.after(t[0].firstDate)&&a.date.before(t[n-1].lastDate))})})})}_updateState(e){const t=Object.assign({},this._state,e);let n=t.firstDate;if(("minDate"in e||"maxDate"in e)&&(function(e,t){if(t&&e&&t.before(e))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${e}`)}(t.minDate,t.maxDate),t.focusDate=Kv(t.focusDate,t.minDate,t.maxDate),t.firstDate=Kv(t.firstDate,t.minDate,t.maxDate),n=t.focusDate),"disabled"in e&&(t.focusVisible=!1),"selectedDate"in e&&0===this._state.months.length&&(n=t.selectedDate),"focusVisible"in e)return t;if("focusDate"in e&&(t.focusDate=Kv(t.focusDate,t.minDate,t.maxDate),n=t.focusDate,0!==t.months.length&&!t.focusDate.before(t.firstDate)&&!t.focusDate.after(t.lastDate)))return t;if("firstDate"in e&&(t.firstDate=Kv(t.firstDate,t.minDate,t.maxDate),n=t.firstDate),n){const l=function(e,t,n,l,r){const{displayMonths:s,months:i}=n,o=i.splice(0,i.length);return Array.from({length:s},(n,l)=>{const s=Object.assign(e.getNext(t,"m",l),{day:1});if(i[l]=null,!r){const e=o.findIndex(e=>e.firstDate.equals(s));-1!==e&&(i[l]=o.splice(e,1)[0])}return s}).forEach((t,r)=>{null===i[r]&&(i[r]=function(e,t,n,l,r={}){const{dayTemplateData:s,minDate:i,maxDate:o,firstDayOfWeek:a,markDisabled:u,outsideDays:c}=n,h=e.getToday();r.firstDate=null,r.lastDate=null,r.number=t.month,r.year=t.year,r.weeks=r.weeks||[],r.weekdays=r.weekdays||[],t=function(e,t,n){const l=e.getDaysPerWeek(),r=new Uv(t.year,t.month,1),s=e.getWeekday(r)%l;return e.getPrev(r,"d",(l+s-n)%l)}(e,t,a);for(let d=0;de.date),a),n.collapsed="collapsed"===c&&p[0].date.month!==r.number&&p[p.length-1].date.month!==r.number}return r}(e,t,n,l,o.shift()||{}))}),i}(this._calendar,n,t,this._i18n,"dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e);t.months=l,t.firstDate=l.length>0?l[0].firstDate:void 0,t.lastDate=l.length>0?l[l.length-1].lastDate:void 0,"selectedDate"in e&&!Qv(t.selectedDate,t)&&(t.selectedDate=null),"firstDate"in e&&(void 0===t.focusDate||t.focusDate.before(t.firstDate)||t.focusDate.after(t.lastDate))&&(t.focusDate=n);const r=!this._state.firstDate||this._state.firstDate.year!==t.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==t.firstDate.month;"select"===t.navigation?(("minDate"in e||"maxDate"in e||0===t.selectBoxes.years.length||r)&&(t.selectBoxes.years=function(e,t,n){if(!e)return[];const l=t?Math.max(t.year,e.year-500):e.year-10,r=(n?Math.min(n.year,e.year+500):e.year+10)-l+1,s=Array(r);for(let i=0;ie===n.month);r=r.slice(e)}if(l&&t.year===l.year){const e=r.findIndex(e=>e===l.month);r=r.slice(0,e+1)}return r}(this._calendar,t.firstDate,t.minDate,t.maxDate))):t.selectBoxes={years:[],months:[]},"arrows"!==t.navigation&&"select"!==t.navigation||!(s||r||"minDate"in e||"maxDate"in e||"disabled"in e)||(t.prevDisabled=t.disabled||function(e,t,n){const l=Object.assign(e.getPrev(t,"m"),{day:1});return n&&(l.year===n.year&&l.month{this._minDate=e.minDate,this._maxDate=e.maxDate,this._firstViewDate=e.firstDate,this._lastViewDate=e.lastDate})}processKey(e){switch(e.which){case Xv.PageUp:this._service.focusMove(e.shiftKey?"y":"m",-1);break;case Xv.PageDown:this._service.focusMove(e.shiftKey?"y":"m",1);break;case Xv.End:this._service.focus(e.shiftKey?this._maxDate:this._lastViewDate);break;case Xv.Home:this._service.focus(e.shiftKey?this._minDate:this._firstViewDate);break;case Xv.ArrowLeft:this._service.focusMove("d",-1);break;case Xv.ArrowUp:this._service.focusMove("d",-this._calendar.getDaysPerWeek());break;case Xv.ArrowRight:this._service.focusMove("d",1);break;case Xv.ArrowDown:this._service.focusMove("d",this._calendar.getDaysPerWeek());break;case Xv.Enter:case Xv.Space:this._service.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}}const tb=function(){var e={PREV:0,NEXT:1};return e[e.PREV]="PREV",e[e.NEXT]="NEXT",e}();let nb=(()=>{class e{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}}return e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();function lb(){return new sb}let rb=(()=>{class e{}return e.ngInjectableDef=ge({factory:lb,token:e,providedIn:"root"}),e})();class sb extends rb{fromModel(e){return e&&Pv(e.year)&&Pv(e.month)&&Pv(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&Pv(e.year)&&Pv(e.month)&&Pv(e.day)?{year:e.year,month:e.month,day:e.day}:null}}class ib{constructor(e,t,n,l,r,s,i,o,a){this._keyMapService=e,this._service=t,this._calendar=n,this.i18n=l,this._cd=s,this._elementRef=i,this._ngbDateAdapter=o,this._ngZone=a,this._destroyed$=new T,this.navigate=new Vr,this.select=new Vr,this.onChange=e=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(e=>this[e]=r[e]),t.select$.pipe(Cv(this._destroyed$)).subscribe(e=>{this.select.emit(e)}),t.model$.pipe(Cv(this._destroyed$)).subscribe(e=>{const t=e.firstDate,n=this.model?this.model.firstDate:null;let l=!1;if(!t.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:t.year,month:t.month},preventDefault:()=>l=!0}),l&&null!==n))return void this._service.open(n);const r=e.selectedDate,i=e.focusDate,o=this.model?this.model.focusDate:null;this.model=e,Wv(r,this._controlValue)&&(this._controlValue=r,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(r))),Wv(i,o)&&o&&e.focusVisible&&this.focus(),s.markForCheck()})}focus(){this._ngZone.onStable.asObservable().pipe(mu(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');e&&e.focus()})}navigateTo(e){this._service.open(Uv.from(e?e.day?e:Object.assign({},e,{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{J(wv(this._monthsEl.nativeElement,"focusin"),wv(this._monthsEl.nativeElement,"focusout")).pipe(Qa(({target:e,relatedTarget:t})=>!(Av(e,"ngb-dp-day")&&Av(t,"ngb-dp-day"))),Cv(this._destroyed$)).subscribe(({type:e})=>this._ngZone.run(()=>this._service.focusVisible="focusin"===e))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){void 0===this.model&&(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>this._service[e]=this[e]),this.navigateTo(this.startDate))}ngOnChanges(e){if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(t=>t in e).forEach(e=>this._service[e]=this[e]),"startDate"in e){const{currentValue:t,previousValue:n}=e.startDate;Gv(n,t)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onKeyDown(e){this._keyMapService.processKey(e)}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case tb.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case tb.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.disabled=e}writeValue(e){this._controlValue=Uv.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}}class ob{constructor(e){this.i18n=e,this.select=new Vr}doSelect(e){e.context.disabled||e.hidden||this.select.emit(e.date)}}class ab{constructor(e){this.i18n=e,this.navigation=tb,this.months=[],this.navigate=new Vr,this.select=new Vr}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}"undefined"!=typeof navigator&&navigator.userAgent&&navigator;const ub=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function cb(e){const t=Array.from(e.querySelectorAll(ub)).filter(e=>-1!==e.tabIndex);return[t[0],t[t.length-1]]}const hb=(e,t,n,l=!1)=>{e.runOutsideAngular(()=>{const e=wv(t,"focusin").pipe(Cv(n),B(e=>e.target));wv(t,"keydown").pipe(Cv(n),Qa(e=>e.which===Xv.Tab),xv(e)).subscribe(([e,n])=>{const[l,r]=cb(t);n!==l&&n!==t||!e.shiftKey||(r.focus(),e.preventDefault()),n!==r||e.shiftKey||(l.focus(),e.preventDefault())}),l&&wv(t,"click").pipe(Cv(n),xv(e),B(e=>e[1])).subscribe(e=>e.focus())})};class db{constructor(e){this.i18n=e}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}class pb{constructor(e,t){this.i18n=e,this._renderer=t,this.select=new Vr,this._month=-1,this._year=-1}changeMonth(e){this.select.emit(new Uv(this.date.year,Iv(e),1))}changeYear(e){this.select.emit(new Uv(Iv(e),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)))}}class gb{}class mb{}class fb{}let yb=(()=>{class e{constructor(){this.backdrop=!0,this.keyboard=!0}}return e.ngInjectableDef=ge({factory:function(){return new e},token:e,providedIn:"root"}),e})();class vb{constructor(e,t,n){this.nodes=e,this.viewRef=t,this.componentRef=n}}const bb=()=>{};let _b=(()=>{class e{constructor(e){this._document=e}compensate(){const e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):bb}_adjustBody(e){const t=this._document.body,n=t.style.paddingRight,l=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]=`${l+e}px`,()=>t.style["padding-right"]=n}_isPresent(e){const t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}_getWidth(){const e=this._document.createElement("div");e.className="modal-scrollbar-measure";const t=this._document.body;t.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}return e.ngInjectableDef=ge({factory:function(){return new e($e(Oa))},token:e,providedIn:"root"}),e})();class wb{}class Cb{close(e){}dismiss(e){}}class Sb{constructor(e,t,n,l){this._windowCmptRef=e,this._contentRef=t,this._backdropCmptRef=n,this._beforeDismiss=l,e.instance.dismissEvent.subscribe(e=>{this.dismiss(e)}),this.result=new Promise((e,t)=>{this._resolve=e,this._reject=t}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(e){this._windowCmptRef&&(this._resolve(e),this._removeModalElements())}_dismiss(e){this._reject(e),this._removeModalElements()}dismiss(e){if(this._windowCmptRef)if(this._beforeDismiss){const t=this._beforeDismiss();t&&t.then?t.then(t=>{!1!==t&&this._dismiss(e)},()=>{}):!1!==t&&this._dismiss(e)}else this._dismiss(e)}_removeModalElements(){const e=this._windowCmptRef.location.nativeElement;if(e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._backdropCmptRef){const e=this._backdropCmptRef.location.nativeElement;e.parentNode.removeChild(e),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}const Eb=function(){var e={BACKDROP_CLICK:0,ESC:1};return e[e.BACKDROP_CLICK]="BACKDROP_CLICK",e[e.ESC]="ESC",e}();class xb{constructor(e,t,n){this._document=e,this._elRef=t,this._zone=n,this._closed$=new T,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Vr}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:e}=this._elRef;if(this._zone.runOutsideAngular(()=>{wv(e,"keydown").pipe(Cv(this._closed$),Qa(e=>e.which===Xv.Escape&&this.keyboard)).subscribe(e=>requestAnimationFrame(()=>{e.defaultPrevented||this._zone.run(()=>this.dismiss(Eb.ESC))}));let t=!1;wv(this._dialogEl.nativeElement,"mousedown").pipe(Cv(this._closed$),lu(()=>t=!1),wu(()=>wv(e,"mouseup").pipe(Cv(this._closed$),mu(1))),Qa(({target:t})=>e===t)).subscribe(()=>{t=!0}),wv(e,"click").pipe(Cv(this._closed$)).subscribe(({target:n})=>{!0!==this.backdrop||e!==n||t||this._zone.run(()=>this.dismiss(Eb.BACKDROP_CLICK)),t=!1})}),!e.contains(document.activeElement)){const t=e.querySelector("[ngbAutofocus]"),n=cb(e)[0];(t||n||e).focus()}}ngOnDestroy(){const e=this._document.body,t=this._elWithFocus;let n;n=t&&t.focus&&e.contains(t)?t:e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null}),this._closed$.next()}}let kb=(()=>{class e{constructor(e,t,n,l,r,s){this._applicationRef=e,this._injector=t,this._document=n,this._scrollBar=l,this._rendererFactory=r,this._ngZone=s,this._activeWindowCmptHasChanged=new T,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 e=this._windowCmpts[this._windowCmpts.length-1];hb(this._ngZone,e.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(e.location.nativeElement)}})}open(e,t,n,l){const r=Nv(l.container)?this._document.querySelector(l.container):this._document.body,s=this._rendererFactory.createRenderer(null,null),i=this._scrollBar.compensate(),o=()=>{this._modalRefs.length||(s.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!r)throw new Error(`The specified modal container "${l.container||"body"}" was not found in the DOM.`);const a=new Cb,u=this._getContentRef(e,l.injector||t,n,a,l);let c=!1!==l.backdrop?this._attachBackdrop(e,r):null,h=this._attachWindowComponent(e,r,u),d=new Sb(h,u,c,l.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(i,i),d.result.then(o,o),a.close=e=>{d.close(e)},a.dismiss=e=>{d.dismiss(e)},this._applyWindowOptions(h.instance,l),1===this._modalRefs.length&&s.addClass(this._document.body,"modal-open"),c&&c.instance&&this._applyBackdropOptions(c.instance,l),d}dismissAll(e){this._modalRefs.forEach(t=>t.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e,t){let n=e.resolveComponentFactory(wb).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}_attachWindowComponent(e,t,n){let l=e.resolveComponentFactory(xb).create(this._injector,n.nodes);return this._applicationRef.attachView(l.hostView),t.appendChild(l.location.nativeElement),l}_applyWindowOptions(e,t){this._windowAttributes.forEach(n=>{Nv(t[n])&&(e[n]=t[n])})}_applyBackdropOptions(e,t){this._backdropAttributes.forEach(n=>{Nv(t[n])&&(e[n]=t[n])})}_getContentRef(e,t,n,l,r){return n?n instanceof Rn?this._createFromTemplateRef(n,l):"string"==typeof n?this._createFromString(n):this._createFromComponent(e,t,n,l,r):new vb([])}_createFromTemplateRef(e,t){const n=e.createEmbeddedView({$implicit:t,close(e){t.close(e)},dismiss(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new vb([n.rootNodes],n)}_createFromString(e){const t=this._document.createTextNode(`${e}`);return new vb([[t]])}_createFromComponent(e,t,n,l,r){const s=e.resolveComponentFactory(n),i=Rt.create({providers:[{provide:Cb,useValue:l}],parent:t}),o=s.create(i),a=o.location.nativeElement;return r.scrollable&&a.classList.add("component-host-scrollable"),this._applicationRef.attachView(o.hostView),new vb([[a]],o.hostView,o)}_setAriaHidden(e){const t=e.parentElement;t&&e!==this._document.body&&(Array.from(t.children).forEach(t=>{t!==e&&"SCRIPT"!==t.nodeName&&(this._ariaHiddenValues.set(t,t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),this._setAriaHidden(t))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){const t=()=>{const t=this._modalRefs.indexOf(e);t>-1&&this._modalRefs.splice(t,1)};this._modalRefs.push(e),e.result.then(t,t)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{const t=this._windowCmpts.indexOf(e);t>-1&&(this._windowCmpts.splice(t,1),this._activeWindowCmptHasChanged.next())})}}return e.ngInjectableDef=ge({factory:function(){return new e($e(As),$e(Te),$e(Oa),$e(_b),$e(gn),$e(ds))},token:e,providedIn:"root"}),e})(),Tb=(()=>{class e{constructor(e,t,n,l){this._moduleCFR=e,this._injector=t,this._modalStack=n,this._config=l}open(e,t={}){const n=Object.assign({},this._config,t);return this._modalStack.open(this._moduleCFR,this._injector,e,n)}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return e.ngInjectableDef=ge({factory:function(){return new e($e(on),$e(Te),$e(kb),$e(yb))},token:e,providedIn:"root"}),e})();class Ib{}class Db{}class Pb{isTitleTemplate(){return this.title instanceof Rn}}class Nb{}class Ab{}class Ob{}class Mb{}class Rb{}class Vb{}class Fb{}class Lb{}class $b{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(e){const t=Dv(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(e=>(function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")})(Dv(e))).filter(e=>e);this.parts=n.length?t.split(new RegExp(`(${n.join("|")})`,"gmi")):[t]}}class Ub{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Dv,this.selectEvent=new Vr,this.activeChangeEvent=new Vr}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}}class jb{}class Bb{}var Hb=tl({encapsulation:2,styles:["ngb-alert{display:block}"],data:{}});function zb(e){return fi(0,[(e()(),ei(0,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.closeHandler()&&l),l}),null,null)),(e()(),ei(1,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),pi(-1,null,["\xd7"]))],null,null)}function qb(e){return fi(2,[ci(null,0),(e()(),Xs(16777216,null,null,1,null,zb)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,t.component.dismissible)}),null)}function Wb(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-alert",[["class","alert"],["role","alert"]],[[2,"alert-dismissible",null]],null,null,qb,Hb)),hr(1,638976,null,0,Rv,[Mv,fn,hn],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,Jl(t,1).dismissible)}))}var Gb=jl("ngb-alert",Rv,Wb,{dismissible:"dismissible",type:"type"},{close:"close"},["*"]),Kb=tl({encapsulation:2,styles:['ngb-datepicker-month-view{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}'],data:{}});function Qb(e){return fi(0,[(e()(),ei(0,0,null,null,0,"div",[["class","ngb-dp-weekday ngb-dp-showweek"]],null,null,null,null,null))],null,null)}function Zb(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","ngb-dp-weekday small"],["role","columnheader"]],null,null,null,null,null)),(e()(),pi(1,null,[" "," "]))],null,(function(e,t){e(t,1,0,t.component.i18n.getWeekdayShortName(t.context.$implicit))}))}function Yb(e){return fi(0,[(e()(),ei(0,0,null,null,4,"div",[["class","ngb-dp-week ngb-dp-weekdays"],["role","row"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Qb)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,Zb)),hr(4,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.showWeekNumbers),e(t,4,0,n.month.weekdays)}),null)}function Jb(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","ngb-dp-week-number small text-muted"]],null,null,null,null,null)),(e()(),pi(1,null,["",""]))],null,(function(e,t){e(t,1,0,t.component.i18n.getWeekNumerals(t.parent.parent.context.$implicit.number))}))}function Xb(e){return fi(0,[(e()(),Xs(0,null,null,0))],null,null)}function e_(e){return fi(0,[(e()(),Xs(16777216,null,null,1,null,Xb)),hr(1,540672,null,0,Na,[Fn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),(e()(),Xs(0,null,null,0))],(function(e,t){e(t,1,0,t.parent.context.$implicit.context,t.component.dayTemplate)}),null)}function t_(e){return fi(0,[(e()(),ei(0,0,null,null,2,"div",[["class","ngb-dp-day"],["role","gridcell"]],[[2,"disabled",null],[8,"tabIndex",0],[2,"hidden",null],[2,"ngb-dp-today",null],[1,"aria-label",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.doSelect(e.context.$implicit)&&l),l}),null,null)),(e()(),Xs(16777216,null,null,1,null,e_)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,2,0,!t.context.$implicit.hidden)}),(function(e,t){e(t,0,0,t.context.$implicit.context.disabled,t.context.$implicit.tabindex,t.context.$implicit.hidden,t.context.$implicit.context.today,t.context.$implicit.ariaLabel)}))}function n_(e){return fi(0,[(e()(),ei(0,0,null,null,4,"div",[["class","ngb-dp-week"],["role","row"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,Jb)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,t_)),hr(4,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.showWeekNumbers),e(t,4,0,t.parent.context.$implicit.days)}),null)}function l_(e){return fi(0,[(e()(),Xs(16777216,null,null,1,null,n_)),hr(1,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(0,null,null,0))],(function(e,t){e(t,1,0,!t.context.$implicit.collapsed)}),null)}function r_(e){return fi(0,[(e()(),Xs(16777216,null,null,1,null,Yb)),hr(1,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,l_)),hr(3,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.showWeekdays),e(t,3,0,n.month.weeks)}),null)}var s_=tl({encapsulation:2,styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:0 0}[ngbDatepickerDayView].outside{opacity:.5}"],data:{}});function i_(e){return fi(2,[(e()(),pi(0,null,["",""]))],null,(function(e,t){var n=t.component;e(t,0,0,n.i18n.getDayNumerals(n.date))}))}var o_=tl({encapsulation:2,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}"],data:{}});function a_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-datepicker-navigation-select",[["class","ngb-dp-navigation-select"]],null,[[null,"select"]],(function(e,t,n){var l=!0;return"select"===t&&(l=!1!==e.component.select.emit(n)&&l),l}),y_,g_)),hr(1,8437760,null,0,pb,[Zv,fn],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],years:[3,"years"]},{select:"select"})],(function(e,t){var n=t.component;e(t,1,0,n.date,n.disabled,n.selectBoxes.months,n.selectBoxes.years)}),null)}function u_(e){return fi(0,[(e()(),ei(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function c_(e){return fi(0,[(e()(),ei(0,0,null,null,0,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null))],null,null)}function h_(e){return fi(0,[(e()(),Xs(16777216,null,null,1,null,u_)),hr(1,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(2,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(e()(),pi(3,null,[" "," "," "])),(e()(),Xs(16777216,null,null,1,null,c_)),hr(5,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(0,null,null,0))],(function(e,t){var n=t.component;e(t,1,0,t.context.index>0),e(t,5,0,t.context.index!==n.months.length-1)}),(function(e,t){var n=t.component;e(t,3,0,n.i18n.getMonthFullName(t.context.$implicit.number,t.context.$implicit.year),n.i18n.getYearNumerals(t.context.$implicit.year))}))}function d_(e){return fi(0,[(e()(),Xs(16777216,null,null,1,null,h_)),hr(1,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),Xs(0,null,null,0))],(function(e,t){e(t,1,0,t.component.months)}),null)}function p_(e){return fi(2,[(e()(),ei(0,0,null,null,2,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"button",[["aria-label","Previous month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Previous month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.onClickPrev(n)&&l),l}),null,null)),(e()(),ei(2,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,a_)),hr(4,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,d_)),hr(6,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(7,0,null,null,2,"div",[["class","ngb-dp-arrow right"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,1,"button",[["aria-label","Next month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Next month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==e.component.onClickNext(n)&&l),l}),null,null)),(e()(),ei(9,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null))],(function(e,t){var n=t.component;e(t,4,0,n.showSelect),e(t,6,0,!n.showSelect)}),(function(e,t){var n=t.component;e(t,1,0,n.prevDisabled),e(t,8,0,n.nextDisabled)}))}var g_=tl({encapsulation:2,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}"],data:{}});function m_(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[],[[1,"aria-label",0]],null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[8,null]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,["",""]))],(function(e,t){e(t,1,0,t.context.$implicit),e(t,2,0,t.context.$implicit)}),(function(e,t){var n=t.component;e(t,0,0,n.i18n.getMonthFullName(t.context.$implicit,null==n.date?null:n.date.year)),e(t,3,0,n.i18n.getMonthShortName(t.context.$implicit,null==n.date?null:n.date.year))}))}function f_(e){return fi(0,[(e()(),ei(0,0,null,null,3,"option",[],null,null,null,null,null)),hr(1,147456,null,0,cm,[hn,fn,[8,null]],{value:[0,"value"]},null),hr(2,147456,null,0,dm,[hn,fn,[8,null]],{value:[0,"value"]},null),(e()(),pi(3,null,["",""]))],(function(e,t){e(t,1,0,t.context.$implicit),e(t,2,0,t.context.$implicit)}),(function(e,t){e(t,3,0,t.component.i18n.getYearNumerals(t.context.$implicit))}))}function y_(e){return fi(2,[si(402653184,1,{monthSelect:0}),si(402653184,2,{yearSelect:0}),(e()(),ei(2,0,[[1,0],["month",1]],null,2,"select",[["aria-label","Select month"],["class","custom-select"],["title","Select month"]],[[8,"disabled",0]],[[null,"change"]],(function(e,t,n){var l=!0;return"change"===t&&(l=!1!==e.component.changeMonth(n.target.value)&&l),l}),null,null)),(e()(),Xs(16777216,null,null,1,null,m_)),hr(4,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),ei(5,0,[[2,0],["year",1]],null,2,"select",[["aria-label","Select year"],["class","custom-select"],["title","Select year"]],[[8,"disabled",0]],[[null,"change"]],(function(e,t,n){var l=!0;return"change"===t&&(l=!1!==e.component.changeYear(n.target.value)&&l),l}),null,null)),(e()(),Xs(16777216,null,null,1,null,f_)),hr(7,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,4,0,n.months),e(t,7,0,n.years)}),(function(e,t){var n=t.component;e(t,2,0,n.disabled),e(t,5,0,n.disabled)}))}var v_=tl({encapsulation:2,styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{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}"],data:{}});function b_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","btn-light"],["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"active",null]],null,null,i_,s_)),hr(1,49152,null,0,db,[Zv],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],focused:[3,"focused"],selected:[4,"selected"]},null)],(function(e,t){e(t,1,0,t.context.currentMonth,t.context.date,t.context.disabled,t.context.focused,t.context.selected)}),(function(e,t){e(t,0,0,Jl(t,1).selected,Jl(t,1).selected,Jl(t,1).isMuted(),Jl(t,1).isMuted(),Jl(t,1).focused)}))}function __(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-datepicker-navigation",[],null,[[null,"navigate"],[null,"select"]],(function(e,t,n){var l=!0,r=e.component;return"navigate"===t&&(l=!1!==r.onNavigateEvent(n)&&l),"select"===t&&(l=!1!==r.onNavigateDateSelect(n)&&l),l}),p_,o_)),hr(1,49152,null,0,ab,[Zv],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],showSelect:[3,"showSelect"],prevDisabled:[4,"prevDisabled"],nextDisabled:[5,"nextDisabled"],selectBoxes:[6,"selectBoxes"]},{navigate:"navigate",select:"select"})],(function(e,t){var n=t.component;e(t,1,0,n.model.firstDate,n.model.disabled,n.model.months,"select"===n.model.navigation,n.model.prevDisabled,n.model.nextDisabled,n.model.selectBoxes)}),null)}function w_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"div",[["class","ngb-dp-month-name"]],null,null,null,null,null)),(e()(),pi(1,null,[" "," "," "]))],null,(function(e,t){var n=t.component;e(t,1,0,n.i18n.getMonthFullName(t.parent.context.$implicit.number,t.parent.context.$implicit.year),n.i18n.getYearNumerals(t.parent.context.$implicit.year))}))}function C_(e){return fi(0,[(e()(),ei(0,0,null,null,4,"div",[["class","ngb-dp-month"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,w_)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(3,0,null,null,1,"ngb-datepicker-month-view",[["role","grid"]],null,[[null,"select"]],(function(e,t,n){var l=!0;return"select"===t&&(l=!1!==e.component.onDateSelect(n)&&l),l}),r_,Kb)),hr(4,49152,null,0,ob,[Zv],{dayTemplate:[0,"dayTemplate"],month:[1,"month"],showWeekdays:[2,"showWeekdays"],showWeekNumbers:[3,"showWeekNumbers"]},{select:"select"})],(function(e,t){var n=t.component;e(t,2,0,"none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),e(t,4,0,n.dayTemplate||Jl(t.parent,1),t.context.$implicit,n.showWeekdays,n.showWeekNumbers)}),null)}function S_(e){return fi(0,[(e()(),Xs(0,null,null,0))],null,null)}function E_(e){return fi(2,[si(402653184,1,{_monthsEl:0}),(e()(),Xs(0,[["dt",2]],null,0,null,b_)),(e()(),ei(2,0,null,null,2,"div",[["class","ngb-dp-header"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,__)),hr(4,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(5,0,[[1,0],["months",1]],null,2,"div",[["class","ngb-dp-months"]],null,[[null,"keydown"]],(function(e,t,n){var l=!0;return"keydown"===t&&(l=!1!==e.component.onKeyDown(n)&&l),l}),null,null)),(e()(),Xs(16777216,null,null,1,null,C_)),hr(7,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null),(e()(),Xs(16777216,null,null,1,null,S_)),hr(9,540672,null,0,Na,[Fn],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],(function(e,t){var n=t.component;e(t,4,0,"none"!==n.navigation),e(t,7,0,n.model.months),e(t,9,0,n.footerTemplate)}),null)}function x_(e){return fi(0,[(e()(),ei(0,0,null,null,4,"ngb-datepicker",[],null,null,null,E_,v_)),dr(5120,null,$g,(function(e){return[e]}),[ib]),dr(512,null,Jv,Jv,[zv,Zv]),dr(512,null,eb,eb,[Jv,zv]),hr(4,4964352,null,0,ib,[eb,Jv,zv,Zv,nb,Nt,hn,rb,ds],null,null)],(function(e,t){e(t,4,0)}),null)}var k_=jl("ngb-datepicker",ib,x_,{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate",select:"select"},[]),T_=tl({encapsulation:2,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}"],data:{}});function I_(e){return fi(0,[(e()(),pi(0,null,["",""]))],null,(function(e,t){e(t,0,0,t.component.title)}))}function D_(e){return fi(0,[(e()(),Xs(0,null,null,0))],null,null)}function P_(e){return fi(0,[(e()(),ei(0,0,null,null,3,"h3",[["class","popover-header"]],null,null,null,null,null)),(e()(),Xs(0,[["simpleTitle",2]],null,0,null,I_)),(e()(),Xs(16777216,null,null,1,null,D_)),hr(3,540672,null,0,Na,[Fn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.context,n.isTitleTemplate()?n.title:Jl(t,1))}),null)}function N_(e){return fi(2,[(e()(),ei(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,P_)),hr(2,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(3,0,null,null,1,"div",[["class","popover-body"]],null,null,null,null,null)),ci(null,0)],(function(e,t){e(t,2,0,null!=t.component.title)}),null)}function A_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,N_,T_)),hr(1,49152,null,0,Pb,[],null,null)],null,(function(e,t){e(t,0,0,"popover"+(Jl(t,1).popoverClass?" "+Jl(t,1).popoverClass:""),Jl(t,1).id)}))}var O_=jl("ngb-popover-window",Pb,A_,{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},{},["*"]),M_=tl({encapsulation:2,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}"],data:{}});function R_(e){return fi(2,[(e()(),ei(0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),ci(null,0)],null,null)}function V_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,R_,M_)),hr(1,49152,null,0,Fb,[],null,null)],null,(function(e,t){e(t,0,0,"tooltip show"+(Jl(t,1).tooltipClass?" "+Jl(t,1).tooltipClass:""),Jl(t,1).id)}))}var F_=jl("ngb-tooltip-window",Fb,V_,{id:"id",tooltipClass:"tooltipClass"},{},["*"]),L_=tl({encapsulation:2,styles:[],data:{}});function $_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-highlight",[],null,null,null,Q_,q_)),hr(1,573440,null,0,$b,[],{result:[0,"result"],term:[1,"term"]},null)],(function(e,t){var n=t.context.formatter(t.context.result);e(t,1,0,n,t.context.term)}),null)}function U_(e){return fi(0,[(e()(),Xs(0,null,null,0))],null,null)}function j_(e){return fi(0,[(e()(),ei(0,0,null,null,3,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],(function(e,t,n){var l=!0,r=e.component;return"mouseenter"===t&&(l=!1!==r.markActive(e.context.index)&&l),"click"===t&&(l=!1!==r.select(e.context.$implicit)&&l),l}),null,null)),(e()(),Xs(16777216,null,null,2,null,U_)),hr(2,540672,null,0,Na,[Fn],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),di(3,{result:0,term:1,formatter:2})],(function(e,t){var n=t.component,l=e(t,3,0,t.context.$implicit,n.term,n.formatter);e(t,2,0,l,n.resultTemplate||Jl(t.parent,0))}),(function(e,t){var n=t.component;e(t,0,0,n.id+"-"+t.context.index,t.context.index===n.activeIdx)}))}function B_(e){return fi(0,[(e()(),Xs(0,[["rt",2]],null,0,null,$_)),(e()(),Xs(16777216,null,null,1,null,j_)),hr(2,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.results)}),null)}function H_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu show"],["role","listbox"]],[[8,"id",0]],[[null,"mousedown"]],(function(e,t,n){var l=!0;return"mousedown"===t&&(l=!1!==n.preventDefault()&&l),l}),B_,L_)),hr(1,114688,null,0,Ub,[],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,Jl(t,1).id)}))}var z_=jl("ngb-typeahead-window",Ub,H_,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[]),q_=tl({encapsulation:2,styles:[".ngb-highlight{font-weight:700}"],data:{}});function W_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(e()(),pi(1,null,["",""]))],null,(function(e,t){e(t,0,0,t.component.highlightClass),e(t,1,0,t.parent.context.$implicit)}))}function G_(e){return fi(0,[(e()(),pi(0,null,["",""]))],null,(function(e,t){e(t,0,0,t.parent.context.$implicit)}))}function K_(e){return fi(0,[(e()(),Xs(16777216,null,null,1,null,W_)),hr(1,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),Xs(0,[["even",2]],null,0,null,G_))],(function(e,t){e(t,1,0,t.context.odd,Jl(t,2))}),null)}function Q_(e){return fi(2,[(e()(),Xs(16777216,null,null,1,null,K_)),hr(1,278528,null,0,Ca,[Fn,Rn,Pn],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,1,0,t.component.parts)}),null)}var Z_=tl({encapsulation:2,styles:[],data:{}});function Y_(e){return fi(0,[],null,null)}function J_(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-modal-backdrop",[["style","z-index: 1050"]],[[8,"className",0]],null,null,Y_,Z_)),hr(1,49152,null,0,wb,[],null,null)],null,(function(e,t){e(t,0,0,"modal-backdrop fade show"+(Jl(t,1).backdropClass?" "+Jl(t,1).backdropClass:""))}))}var X_=jl("ngb-modal-backdrop",wb,J_,{backdropClass:"backdropClass"},{},[]),ew=tl({encapsulation:2,styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],data:{}});function tw(e){return fi(0,[si(402653184,1,{_dialogEl:0}),(e()(),ei(1,0,[[1,0],["dialog",1]],null,2,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(e()(),ei(2,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),ci(null,0)],null,(function(e,t){var n=t.component;e(t,1,0,"modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":"")+(n.scrollable?" modal-dialog-scrollable":""))}))}function nw(e){return fi(0,[(e()(),ei(0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["tabindex","-1"]],[[8,"className",0],[1,"aria-modal",0],[1,"aria-labelledby",0]],null,null,tw,ew)),hr(1,4440064,null,0,xb,[Oa,hn,ds],null,null)],(function(e,t){e(t,1,0)}),(function(e,t){e(t,0,0,"modal fade show d-block"+(Jl(t,1).windowClass?" "+Jl(t,1).windowClass:""),!0,Jl(t,1).ariaLabelledBy)}))}var lw=jl("ngb-modal-window",xb,nw,{ariaLabelledBy:"ariaLabelledBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"]);class rw{constructor(e,t){this.route=e,this.authenticationService=t,this.id=0,this.isEmpLoggedIn=!1,this.isCustLoggedIn=!1}ngOnInit(){this.isEmpLoggedIn=this.authenticationService.isEmpLoggedIn(),this.isCustLoggedIn=this.authenticationService.isCustLoggedIn(),this.id=this.authenticationService.isCustLoggedIn()?parseInt(sessionStorage.getItem("custId")):parseInt(sessionStorage.getItem("empId"))}}var sw=tl({encapsulation:0,styles:[["nav.navbar[_ngcontent-%COMP%]{background-color:rgba(144,184,219,.256);color:rgba(0,0,139,.719)}a[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:10px 0 0 30px}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 40px 0 0}"]],data:{}});function iw(e){return fi(0,[(e()(),ei(0,0,null,null,2,"a",[["class","navbar-brand"],["routerLink","vetLanding/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(1,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),ei(2,0,null,null,0,"img",[["alt","Angular Logo"],["class","logo"],["src","./assets/use this one.png"],["width","110"]],null,null,null,null,null))],(function(e,t){e(t,1,0,"vetLanding/")}),(function(e,t){e(t,0,0,Jl(t,1).target,Jl(t,1).href)}))}function ow(e){return fi(0,[(e()(),ei(0,0,null,null,2,"a",[["class","navbar-brand"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(1,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),ei(2,0,null,null,0,"img",[["alt","Angular Logo"],["class","logo"],["src","./assets/use this one.png"],["width","110"]],null,null,null,null,null))],(function(e,t){e(t,1,0,Il(1,"clients/",t.component.id,""))}),(function(e,t){e(t,0,0,Jl(t,1).target,Jl(t,1).href)}))}function aw(e){return fi(0,[(e()(),ei(0,0,null,null,2,"a",[["class","navbar-brand"],["routerLink","/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(1,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),ei(2,0,null,null,0,"img",[["alt","Angular Logo"],["class","logo"],["src","./assets/use this one.png"],["width","110"]],null,null,null,null,null))],(function(e,t){e(t,1,0,"/")}),(function(e,t){e(t,0,0,Jl(t,1).target,Jl(t,1).href)}))}function uw(e){return fi(0,[(e()(),ei(0,0,null,null,1,"button",[["aria-controls","navbarSupportedContent"],["aria-expanded","false"],["aria-label","Toggle navigation"],["class","navbar-toggler"],["data-target","#navbarSupportedContent"],["data-toggle","collapse"],["type","button"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,0,"span",[["class","navbar-toggler-icon"]],null,null,null,null,null))],null,null)}function cw(e){return fi(0,[(e()(),ei(0,0,null,null,0,"li",[["class","nav-item dropdown"]],null,null,null,null,null))],null,null)}function hw(e){return fi(0,[(e()(),ei(0,0,null,null,21,"li",[["class","nav-item dropdown"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"a",[["aria-expanded","false"],["aria-haspopup","true"],["class","nav-link dropdown-toggle"],["data-toggle","dropdown"],["href","#"],["id","navbarDropdown"],["role","button"]],null,null,null,null,null)),(e()(),pi(-1,null,[" Administration "])),(e()(),ei(3,0,null,null,18,"div",[["aria-labelledby","navbarDropdown"],["class","dropdown-menu"]],null,null,null,null,null)),(e()(),ei(4,0,null,null,2,"a",[["class","dropdown-item"],["routerLink","vetLanding/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,5).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(5,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["Dashboard"])),(e()(),ei(7,0,null,null,0,"div",[["class","dropdown-divider"]],null,null,null,null,null)),(e()(),ei(8,0,null,null,2,"a",[["class","dropdown-item"],["routerLink","register/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(9,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["Add a Client"])),(e()(),ei(11,0,null,null,2,"a",[["class","dropdown-item"],["routerLink","profile/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,12).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(12,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["Edit Client Profile"])),(e()(),ei(14,0,null,null,2,"a",[["class","dropdown-item"],["routerLink","petCreate/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,15).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(15,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["Add a Pet"])),(e()(),ei(17,0,null,null,2,"a",[["class","dropdown-item"],["routerLink","apptCreate/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0;return"click"===t&&(l=!1!==Jl(e,18).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),l}),null,null)),hr(18,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,["Make Appt"])),(e()(),ei(20,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(21,0,null,null,0,"hr",[],null,null,null,null,null))],(function(e,t){e(t,5,0,"vetLanding/"),e(t,9,0,"register/"),e(t,12,0,"profile/"),e(t,15,0,"petCreate/"),e(t,18,0,"apptCreate/")}),(function(e,t){e(t,4,0,Jl(t,5).target,Jl(t,5).href),e(t,8,0,Jl(t,9).target,Jl(t,9).href),e(t,11,0,Jl(t,12).target,Jl(t,12).href),e(t,14,0,Jl(t,15).target,Jl(t,15).href),e(t,17,0,Jl(t,18).target,Jl(t,18).href)}))}function dw(e){return fi(0,[(e()(),ei(0,0,null,null,3,"button",[["class","btn btn-outline-success"],["id","logout"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,2,"a",[["routerLink","/"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],(function(e,t,n){var l=!0,r=e.component;return"click"===t&&(l=!1!==Jl(e,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&l),"click"===t&&(l=!1!==r.authenticationService.logout()&&l),l}),null,null)),hr(2,671744,null,0,dp,[cp,Xh,Do],{routerLink:[0,"routerLink"]},null),(e()(),pi(-1,null,[" LOGOUT"]))],(function(e,t){e(t,2,0,"/")}),(function(e,t){e(t,1,0,Jl(t,2).target,Jl(t,2).href)}))}function pw(e){return fi(0,[(e()(),ei(0,0,null,null,23,"nav",[["class","navbar navbar-expand-lg navbar-light "]],null,null,null,null,null)),hr(1,16384,null,0,mb,[],null,null),(e()(),Xs(16777216,null,null,1,null,iw)),hr(3,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,ow)),hr(5,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,aw)),hr(7,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,uw)),hr(9,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(10,0,null,null,6,"div",[["class","collapse navbar-collapse"],["id","navbarSupportedContent"]],null,null,null,null,null)),(e()(),ei(11,0,null,null,5,"ul",[["class","navbar-nav mr-auto"]],null,null,null,null,null)),(e()(),ei(12,0,null,null,0,"li",[],null,null,null,null,null)),(e()(),Xs(16777216,null,null,1,null,cw)),hr(14,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),Xs(16777216,null,null,1,null,hw)),hr(16,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null),(e()(),ei(17,0,null,null,6,"form",[["class","form-inline my-2 my-lg-0 register-logout"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],(function(e,t,n){var l=!0;return"submit"===t&&(l=!1!==Jl(e,19).onSubmit(n)&&l),"reset"===t&&(l=!1!==Jl(e,19).onReset()&&l),l}),null,null)),hr(18,16384,null,0,qm,[],null,null),hr(19,4210688,null,0,Lm,[[8,null],[8,null]],null,null),dr(2048,null,Hg,null,[Lm]),hr(21,16384,null,0,Kg,[[4,Hg]],null,null),(e()(),Xs(16777216,null,null,1,null,dw)),hr(23,16384,null,0,Ea,[Fn,Rn],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.authenticationService.isEmpLoggedIn()),e(t,5,0,n.authenticationService.isCustLoggedIn()),e(t,7,0,!(n.authenticationService.isCustLoggedIn()||n.authenticationService.isEmpLoggedIn())),e(t,9,0,n.authenticationService.isCustLoggedIn()||n.authenticationService.isEmpLoggedIn()),e(t,14,0,n.authenticationService.isCustLoggedIn()),e(t,16,0,n.authenticationService.isEmpLoggedIn()),e(t,23,0,n.authenticationService.isCustLoggedIn()||n.authenticationService.isEmpLoggedIn())}),(function(e,t){e(t,17,0,Jl(t,21).ngClassUntouched,Jl(t,21).ngClassTouched,Jl(t,21).ngClassPristine,Jl(t,21).ngClassDirty,Jl(t,21).ngClassValid,Jl(t,21).ngClassInvalid,Jl(t,21).ngClassPending)}))}class gw{constructor(e){this.authenticationService=e,this.title="An Angular-Java-Oracle Full-Stack App by: Thomas Maestas, Brendan Wilson, Davis Cowles, Ruben Colon",this.footerTitle="Doggywood Boulevard Veterinary",this.footerSubtext="Safeguarding The Bond We Share with Our Pets"}ngOnInit(){}}var mw=tl({encapsulation:0,styles:[[".title[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]{font-size:.9rem;font-style:italic;padding-top:5px;cursor:default}.center[_ngcontent-%COMP%]{margin:0 auto}.copyright[_ngcontent-%COMP%]{color:#3379b7b4}"]],data:{}});function fw(e){return fi(0,[(e()(),ei(0,0,null,null,5,"footer",[["class","footer"]],null,null,null,null,null)),(e()(),ei(1,0,null,null,4,"span",[["class","title footer-links center"]],[[8,"title",0]],null,null,null,null)),(e()(),pi(2,null,[" \xa0 \xa0 \xa0 \xa9"," "])),(e()(),ei(3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(4,0,null,null,1,"span",[["class","subtitle"]],null,null,null,null,null)),(e()(),pi(5,null,[""," \xa0 \xa0 "]))],null,(function(e,t){var n=t.component;e(t,1,0,n.title),e(t,2,0,n.footerTitle),e(t,5,0,n.footerSubtext)}))}var yw=tl({encapsulation:0,styles:[[".title[_ngcontent-%COMP%]{color:rgba(0,0,139,.719);margin:0;padding:0;text-align:center;font-style:italic}.main[_ngcontent-%COMP%]{background-color:rgba(144,184,219,.156);border-radius:10px;width:90%;margin:0 auto;padding:10px}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;padding:10px 0 20px;margin:0;height:100px;min-width:100%;background-color:rgba(144,184,219,.256);color:rgba(0,0,139,.719)}"]],data:{}});function vw(e){return fi(0,[(e()(),ei(0,0,null,null,16,"div",[],null,null,null,null,null)),(e()(),ei(1,0,null,null,1,"app-nav",[],null,null,null,pw,sw)),hr(2,114688,null,0,rw,[Xh,wf],null,null),(e()(),ei(3,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(4,0,null,null,1,"title",[],null,null,null,null,null)),(e()(),pi(5,null,["",""])),(e()(),ei(6,0,null,null,1,"h3",[["class","title"]],null,null,null,null,null)),(e()(),pi(7,null,["",""])),(e()(),ei(8,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(9,0,null,null,2,"div",[["class","main"]],null,null,null,null,null)),(e()(),ei(10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),hr(11,212992,null,0,fp,[mp,Fn,on,[8,null],Nt],null,null),(e()(),ei(12,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(13,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),ei(14,0,null,null,1,"app-footer",[],null,null,null,fw,mw)),hr(15,114688,null,0,gw,[wf],null,null),(e()(),ei(16,0,null,null,0,"br",[],null,null,null,null,null))],(function(e,t){e(t,2,0),e(t,11,0),e(t,15,0)}),(function(e,t){var n=t.component;e(t,5,0,n.title),e(t,7,0,n.title)}))}function bw(e){return fi(0,[(e()(),ei(0,0,null,null,1,"app-root",[],null,null,null,vw,yw)),hr(1,49152,null,0,ko,[],null,null)],null,null)}var _w=jl("app-root",ko,bw,{},{},[]);class ww{}class Cw{}const Sw="*";function Ew(e,t=null){return{type:2,steps:e,options:t}}function xw(e){return{type:6,styles:e,offset:null}}function kw(e){Promise.resolve(null).then(e)}class Tw{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kw(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class Iw{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,l=0;const r=this.players.length;0==r?kw(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==r&&this._onFinish()}),e.onDestroy(()=>{++n==r&&this._onDestroy()}),e.onStart(()=>{++l==r&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}const Dw="!";function Pw(){return"undefined"!=typeof process}function Nw(e){switch(e.length){case 0:return new Tw;case 1:return e[0];default:return new Iw(e)}}function Aw(e,t,n,l,r={},s={}){const i=[],o=[];let a=-1,u=null;if(l.forEach(e=>{const n=e.offset,l=n==a,c=l&&u||{};Object.keys(e).forEach(n=>{let l=n,o=e[n];if("offset"!==n)switch(l=t.normalizePropertyName(l,i),o){case Dw:o=r[n];break;case Sw:o=s[n];break;default:o=t.normalizeStyleValue(n,l,o,i)}c[l]=o}),l||o.push(c),u=c,a=n}),i.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${i.join(e)}`)}return o}function Ow(e,t,n,l){switch(t){case"start":e.onStart(()=>l(n&&Mw(n,"start",e)));break;case"done":e.onDone(()=>l(n&&Mw(n,"done",e)));break;case"destroy":e.onDestroy(()=>l(n&&Mw(n,"destroy",e)))}}function Mw(e,t,n){const l=n.totalTime,r=Rw(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==l?e.totalTime:l,!!n.disabled),s=e._data;return null!=s&&(r._data=s),r}function Rw(e,t,n,l,r="",s=0,i){return{element:e,triggerName:t,fromState:n,toState:l,phaseName:r,totalTime:s,disabled:!!i}}function Vw(e,t,n){let l;return e instanceof Map?(l=e.get(t))||e.set(t,l=n):(l=e[t])||(l=e[t]=n),l}function Fw(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let Lw=(e,t)=>!1,$w=(e,t)=>!1,Uw=(e,t,n)=>[];const jw=Pw();(jw||"undefined"!=typeof Element)&&(Lw=(e,t)=>e.contains(t),$w=(()=>{if(jw||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):$w}})(),Uw=(e,t,n)=>{let l=[];if(n)l.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&l.push(n)}return l});let Bw=null,Hw=!1;function zw(e){Bw||(Bw=("undefined"!=typeof document?document.body:null)||{},Hw=!!Bw.style&&"WebkitAppearance"in Bw.style);let t=!0;return Bw.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Bw.style)&&Hw&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Bw.style),t}const qw=$w,Ww=Lw,Gw=Uw;function Kw(e){const t={};return Object.keys(e).forEach(n=>{const l=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[l]=e[n]}),t}class Qw{validateStyleProperty(e){return zw(e)}matchesElement(e,t){return qw(e,t)}containsElement(e,t){return Ww(e,t)}query(e,t,n){return Gw(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,l,r,s=[],i){return new Tw(n,l)}}let Zw=(()=>{class e{}return e.NOOP=new Qw,e})();const Yw=1e3,Jw="{{",Xw="ng-enter",eC="ng-leave",tC="ng-trigger",nC=".ng-trigger",lC="ng-animating",rC=".ng-animating";function sC(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:iC(parseFloat(t[1]),t[2])}function iC(e,t){switch(t){case"s":return e*Yw;default:return e}}function oC(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let l,r=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};l=iC(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(r=iC(parseFloat(i),n[4]));const o=n[5];o&&(s=o)}else l=e;if(!n){let n=!1,s=t.length;l<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:l,delay:r,easing:s}}(e,t,n)}function aC(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function uC(e,t,n={}){if(t)for(let l in e)n[l]=e[l];else aC(e,n);return n}function cC(e,t,n){return n?t+":"+n+";":""}function hC(e){let t="";for(let n=0;n{const r=_C(l);n&&!n.hasOwnProperty(l)&&(n[l]=e.style[r]),e.style[r]=t[l]}),Pw()&&hC(e))}function pC(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=_C(t);e.style[n]=""}),Pw()&&hC(e))}function gC(e){return Array.isArray(e)?1==e.length?e[0]:Ew(e):e}const mC=new RegExp(`${Jw}\\s*(.+?)\\s*}}`,"g");function fC(e){let t=[];if("string"==typeof e){const n=e.toString();let l;for(;l=mC.exec(n);)t.push(l[1]);mC.lastIndex=0}return t}function yC(e,t,n){const l=e.toString(),r=l.replace(mC,(e,l)=>{let r=t[l];return t.hasOwnProperty(l)||(n.push(`Please provide a value for the animation param ${l}`),r=""),r.toString()});return r==l?e:r}function vC(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const bC=/-+([a-z0-9])/g;function _C(e){return e.replace(bC,(...e)=>e[1].toUpperCase())}function wC(e,t){return 0===e||0===t}function CC(e,t,n){const l=Object.keys(n);if(l.length&&t.length){let s=t[0],i=[];if(l.forEach(e=>{s.hasOwnProperty(e)||i.push(e),s[e]=n[e]}),i.length)for(var r=1;r(function(e,t,n){if(":"==e[0]){const l=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(e,n);if("function"==typeof l)return void t.push(l);e=l}const l=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const r=l[1],s=l[2],i=l[3];t.push(DC(r,i)),"<"!=s[0]||r==xC&&i==xC||t.push(DC(i,r))})(e,n,t)):n.push(e),n}const TC=new Set(["true","1"]),IC=new Set(["false","0"]);function DC(e,t){const n=TC.has(e)||IC.has(e),l=TC.has(t)||IC.has(t);return(r,s)=>{let i=e==xC||e==r,o=t==xC||t==s;return!i&&n&&"boolean"==typeof r&&(i=r?TC.has(e):IC.has(e)),!o&&l&&"boolean"==typeof s&&(o=s?TC.has(t):IC.has(t)),i&&o}}const PC=":self",NC=new RegExp(`s*${PC}s*,?`,"g");function AC(e,t,n){return new MC(e).build(t,n)}const OC="";class MC{constructor(e){this._driver=e}build(e,t){const n=new RC(t);return this._resetContextStyleTimingState(n),SC(this,gC(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=OC,e.collectedStyles={},e.collectedStyles[OC]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,l=t.depCount=0;const r=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,l=n.name;l.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,r.push(this.visitState(n,t))}),n.name=l}else if(1==e.type){const r=this.visitTransition(e,t);n+=r.queryCount,l+=r.depCount,s.push(r)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:s,queryCount:n,depCount:l,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),l=e.options&&e.options.params||null;if(n.containsDynamicStyles){const r=new Set,s=l||{};if(n.styles.forEach(e=>{if(VC(e)){const t=e;Object.keys(t).forEach(e=>{fC(t[e]).forEach(e=>{s.hasOwnProperty(e)||r.add(e)})})}}),r.size){const n=vC(r.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:l?{params:l}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=SC(this,gC(e.animation),t);return{type:1,matchers:kC(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:FC(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>SC(this,e,t)),options:FC(e.options)}}visitGroup(e,t){const n=t.currentTime;let l=0;const r=e.steps.map(e=>{t.currentTime=n;const r=SC(this,e,t);return l=Math.max(l,t.currentTime),r});return t.currentTime=l,{type:3,steps:r,options:FC(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return LC(oC(e,t).duration,0,"");const l=e;if(l.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=LC(0,0,"");return e.dynamic=!0,e.strValue=l,e}return LC((n=n||oC(l,t)).duration,n.delay,n.easing)}(e.timings,t.errors);let l;t.currentAnimateTimings=n;let r=e.styles?e.styles:xw({});if(5==r.type)l=this.visitKeyframes(r,t);else{let r=e.styles,s=!1;if(!r){s=!0;const e={};n.easing&&(e.easing=n.easing),r=xw(e)}t.currentTime+=n.duration+n.delay;const i=this.visitStyle(r,t);i.isEmptyStep=s,l=i}return t.currentAnimateTimings=null,{type:4,timings:n,style:l,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Sw?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let l=!1,r=null;return n.forEach(e=>{if(VC(e)){const t=e,n=t.easing;if(n&&(r=n,delete t.easing),!l)for(let e in t)if(t[e].toString().indexOf(Jw)>=0){l=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let l=t.currentTime,r=t.currentTime;n&&r>0&&(r-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],i=s[n];let o=!0;i&&(r!=l&&r>=i.startTime&&l<=i.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${i.startTime}ms" and "${i.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${l}ms"`),o=!1),r=i.startTime),o&&(s[n]={startTime:r,endTime:l}),t.options&&function(e,t,n){const l=t.params||{},r=fC(e);r.length&&r.forEach(e=>{l.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let l=0;const r=[];let s=!1,i=!1,o=0;const a=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let a=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(VC(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(VC(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=a&&(l++,u=n.offset=a),i=i||u<0||u>1,s=s||u0&&l{const s=c>0?l==h?1:c*l:r[l],i=s*g;t.currentTime=d+p.delay+i,p.duration=i,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:SC(this,gC(e.animation),t),options:FC(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:FC(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:FC(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,l=e.options||{};t.queryCount++,t.currentQuery=e;const[r,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>e==PC);return t&&(e=e.replace(NC,"")),[e=e.replace(/@\*/g,nC).replace(/@\w+/g,e=>nC+"-"+e.substr(1)).replace(/:animating/g,rC),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+r:r,Vw(t.collectedStyles,t.currentQuerySelector,{});const i=SC(this,gC(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:l.limit||0,optional:!!l.optional,includeSelf:s,animation:i,originalSelector:e.selector,options:FC(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:oC(e.timings,t.errors,!0);return{type:12,animation:SC(this,gC(e.animation),t),timings:n,options:null}}}class RC{constructor(e){this.errors=e,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 VC(e){return!Array.isArray(e)&&"object"==typeof e}function FC(e){var t;return e?(e=aC(e)).params&&(e.params=(t=e.params)?aC(t):null):e={},e}function LC(e,t,n){return{duration:e,delay:t,easing:n}}function $C(e,t,n,l,r,s,i=null,o=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:l,duration:r,delay:s,totalTime:r+s,easing:i,subTimeline:o}}class UC{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const jC=1,BC=new RegExp(":enter","g"),HC=new RegExp(":leave","g");function zC(e,t,n,l,r,s={},i={},o,a,u=[]){return(new qC).buildKeyframes(e,t,n,l,r,s,i,o,a,u)}class qC{buildKeyframes(e,t,n,l,r,s,i,o,a,u=[]){a=a||new UC;const c=new GC(e,t,a,l,r,u,[]);c.options=o,c.currentTimeline.setStyles([s],null,c.errors,o),SC(this,n,c);const h=c.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(i).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([i],null,c.errors,o)}return h.length?h.map(e=>e.buildKeyframes()):[$C(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const l=t.createSubContext(e.options),r=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,l,l.options);r!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let l=t.currentTimeline.currentTime;const r=null!=n.duration?sC(n.duration):null,s=null!=n.delay?sC(n.delay):null;return 0!==r&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,r,s);l=Math.max(l,n.duration+n.delay)}),l}visitReference(e,t){t.updateOptions(e.options,!0),SC(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let l=t;const r=e.options;if(r&&(r.params||r.delay)&&((l=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==l.previousNode.type&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=WC);const e=sC(r.delay);l.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>SC(this,e,l)),l.currentTimeline.applyStylesToKeyframe(),l.subContextCount>n&&l.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let l=t.currentTimeline.currentTime;const r=e.options&&e.options.delay?sC(e.options.delay):0;e.steps.forEach(s=>{const i=t.createSubContext(e.options);r&&i.delayNextStep(r),SC(this,s,i),l=Math.max(l,i.currentTimeline.currentTime),n.push(i.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(l),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return oC(t.params?yC(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),l=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),l.snapshotCurrentStyles());const r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),l.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,l=t.currentAnimateTimings;!l&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=l&&l.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,l=t.currentTimeline.duration,r=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*r),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(l+r),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,l=e.options||{},r=l.delay?sC(l.delay):0;r&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=WC);let s=n;const i=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!l.optional,t.errors);t.currentQueryTotal=i.length;let o=null;i.forEach((n,l)=>{t.currentQueryIndex=l;const i=t.createSubContext(e.options,n);r&&i.delayNextStep(r),n===t.element&&(o=i.currentTimeline),SC(this,e.animation,i),i.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,i.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),o&&(t.currentTimeline.mergeTimelineCollectedStyles(o),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,l=t.currentTimeline,r=e.timings,s=Math.abs(r.duration),i=s*(t.currentQueryTotal-1);let o=s*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":o=i-o;break;case"full":o=n.currentStaggerTime}const a=t.currentTimeline;o&&a.delayNextStep(o);const u=a.currentTime;SC(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=l.currentTime-u+(l.startTime-n.currentTimeline.startTime)}}const WC={};class GC{constructor(e,t,n,l,r,s,i,o){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=r,this.errors=s,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=WC,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new KC(this._driver,t,0),i.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let l=this.options;null!=n.duration&&(l.duration=sC(n.duration)),null!=n.delay&&(l.delay=sC(n.delay));const r=n.params;if(r){let e=l.params;e||(e=this.options.params={}),Object.keys(r).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=yC(r[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const l=t||this.element,r=new GC(this._driver,l,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(l,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=WC,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const l={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new QC(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,l,e.stretchStartingKeyframe);return this.timelines.push(r),l}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,l,r,s){let i=[];if(l&&i.push(this.element),e.length>0){e=(e=e.replace(BC,"."+this._enterClassName)).replace(HC,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),i.push(...t)}return r||0!=i.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),i}}class KC{constructor(e,t,n,l){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=l,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new KC(this._driver,e,t||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+=jC,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Sw,this._currentKeyframe[e]=Sw}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,l){t&&(this._previousKeyframe.easing=t);const r=l&&l.params||{},s=function(e,t){const n={};let l;return e.forEach(e=>{"*"===e?(l=l||Object.keys(t)).forEach(e=>{n[e]=Sw}):uC(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=yC(s[e],r,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Sw),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],l=e._styleSummary[t];(!n||l.time>n.time)&&this._updateStyle(t,l.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let l=[];this._keyframes.forEach((r,s)=>{const i=uC(r,!0);Object.keys(i).forEach(n=>{const l=i[n];l==Dw?e.add(n):l==Sw&&t.add(n)}),n||(i.offset=s/this.duration),l.push(i)});const r=e.size?vC(e.values()):[],s=t.size?vC(t.values()):[];if(n){const e=l[0],t=aC(e);e.offset=0,t.offset=1,l=[e,t]}return $C(this.element,l,r,s,this.duration,this.startTime,this.easing,!1)}}class QC extends KC{constructor(e,t,n,l,r,s,i=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=l,this.postStyleProps=r,this._stretchStartingKeyframe=i,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:l}=this.timings;if(this._stretchStartingKeyframe&&t){const r=[],s=n+t,i=t/s,o=uC(e[0],!1);o.offset=0,r.push(o);const a=uC(e[0],!1);a.offset=ZC(i),r.push(a);const u=e.length-1;for(let l=1;l<=u;l++){let i=uC(e[l],!1);i.offset=ZC((t+i.offset*n)/s),r.push(i)}n=s,t=0,l="",e=r}return $C(this.element,e,this.preStyleProps,this.postStyleProps,n,t,l,!0)}}function ZC(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class YC{}class JC extends YC{normalizePropertyName(e,t){return _C(e)}normalizeStyleValue(e,t,n,l){let r="";const s=n.toString().trim();if(XC[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&l.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+r}}const XC=(()=>(function(e){const t={};return e.forEach(e=>t[e]=!0),t})("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function eS(e,t,n,l,r,s,i,o,a,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:s,toState:l,toStyles:i,timelines:o,queriedElements:a,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const tS={};class nS{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,l){return function(e,t,n,l,r){return e.some(e=>e(t,n,l,r))}(this.ast.matchers,e,t,n,l)}buildStyles(e,t,n){const l=this._stateStyles["*"],r=this._stateStyles[e],s=l?l.buildStyles(t,n):{};return r?r.buildStyles(t,n):s}build(e,t,n,l,r,s,i,o,a,u){const c=[],h=this.ast.options&&this.ast.options.params||tS,d=this.buildStyles(n,i&&i.params||tS,c),p=o&&o.params||tS,g=this.buildStyles(l,p,c),m=new Set,f=new Map,y=new Map,v="void"===l,b={params:Object.assign({},h,p)},_=u?[]:zC(e,t,this.ast.animation,r,s,d,g,b,a,c);let w=0;if(_.forEach(e=>{w=Math.max(e.duration+e.delay,w)}),c.length)return eS(t,this._triggerName,n,l,v,d,g,[],[],f,y,w,c);_.forEach(e=>{const n=e.element,l=Vw(f,n,{});e.preStyleProps.forEach(e=>l[e]=!0);const r=Vw(y,n,{});e.postStyleProps.forEach(e=>r[e]=!0),n!==t&&m.add(n)});const C=vC(m.values());return eS(t,this._triggerName,n,l,v,d,g,_,C,f,y,w)}}class lS{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},l=aC(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(l[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const r=e;Object.keys(r).forEach(e=>{let s=r[e];s.length>1&&(s=yC(s,l,t)),n[e]=s})}}),n}}class rS{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new lS(e.style,e.options&&e.options.params||{})}),sS(this.states,"true","1"),sS(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new nS(e,t,this.states))}),this.fallbackTransition=new nS(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,l){return this.transitionFactories.find(r=>r.match(e,t,n,l))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function sS(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const iS=new UC;class oS{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],l=AC(this._driver,t,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[e]=l}_buildPlayer(e,t,n){const l=e.element,r=Aw(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(l,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const l=[],r=this._animations[e];let s;const i=new Map;if(r?(s=zC(this._driver,t,r,Xw,eC,{},{},n,iS,l)).forEach(e=>{const t=Vw(i,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)}):(l.push("The requested animation doesn't exist or has already been destroyed"),s=[]),l.length)throw new Error(`Unable to create the animation due to the following errors: ${l.join("\n")}`);i.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Sw)})});const o=Nw(s.map(e=>{const t=i.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=o,o.onDestroy(()=>this.destroy(e)),this.players.push(o),o}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,n,l){const r=Rw(t,"","","");return Ow(this._getPlayer(e),n,r,l),()=>{}}command(e,t,n,l){if("register"==n)return void this.register(e,l[0]);if("create"==n)return void this.create(e,t,l[0]||{});const r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(l[0]));break;case"destroy":this.destroy(e)}}}const aS="ng-animate-queued",uS=".ng-animate-queued",cS="ng-animate-disabled",hS=".ng-animate-disabled",dS="ng-star-inserted",pS=".ng-star-inserted",gS=[],mS={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},fS={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},yS="__ng_removed";class vS{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(l=n?e.value:e)?l:null,n){const t=aC(e);delete t.value,this.options=t}else this.options={};var l;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const bS="void",_S=new vS(bS);class wS{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,DS(t,this._hostClassName)}listen(e,t,n,l){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var r;const s=Vw(this._elementListeners,e,[]),i={name:t,phase:n,callback:l};s.push(i);const o=Vw(this._engine.statesByElement,e,{});return o.hasOwnProperty(t)||(DS(e,tC),DS(e,tC+"-"+t),o[t]=_S),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(i);e>=0&&s.splice(e,1),this._triggers[t]||delete o[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,l=!0){const r=this._getTrigger(t),s=new SS(this.id,t,e);let i=this._engine.statesByElement.get(e);i||(DS(e,tC),DS(e,tC+"-"+t),this._engine.statesByElement.set(e,i={}));let o=i[t];const a=new vS(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&o&&a.absorbOptions(o.options),i[t]=a,o||(o=_S),a.value!==bS&&o.value===a.value){if(!function(e,t){const n=Object.keys(e),l=Object.keys(t);if(n.length!=l.length)return!1;for(let r=0;r{pC(e,n),dC(e,l)})}return}const u=Vw(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let c=r.matchTransition(o.value,a.value,e,a.params),h=!1;if(!c){if(!l)return;c=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:o,toState:a,player:s,isFallbackTransition:h}),h||(DS(e,aS),s.onStart(()=>{PS(e,aS)})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),u.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t,n=!1){this._engine.driver.query(e,nC,!0).forEach(e=>{if(e[yS])return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)})}triggerLeaveAnimation(e,t,n,l){const r=this._engine.statesByElement.get(e);if(r){const s=[];if(Object.keys(r).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,bS,l);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Nw(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const l=t.name;if(n.has(l))return;n.add(l);const r=this._triggers[l].fallbackTransition,s=this._engine.statesByElement.get(e)[l]||_S,i=new vS(bS),o=new SS(this.id,l,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:l,transition:r,fromState:s,toState:i,player:o,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),this.triggerLeaveAnimation(e,t,!0))return;let l=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)l=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){l=!0;break}}}this.prepareLeaveAnimationListeners(e),l?n.markElementAsRemoved(this.id,e,!1,t):(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}insertNode(e,t){DS(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const l=n.player;if(l.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(t=>{if(t.name==n.triggerName){const l=Rw(r,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ow(n.player,t.phase,l,t.callback)}}),l.markedForDestroy?this._engine.afterFlush(()=>{l.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,l=t.transition.ast.depCount;return 0==n||0==l?n-l:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(t=>t.element===e)||t}}class CS{constructor(e,t,n){this.bodyNode=e,this.driver=t,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=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new wS(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let l=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),l=!0;break}l||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let l=this._namespaceLookup[e];l&&l.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let l=0;l=0&&this.collectedLeaveElements.splice(e,1)}if(e){const l=this._fetchNamespace(e);l&&l.insertNode(t,n)}l&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),DS(e,cS)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),PS(e,cS))}removeNode(e,t,n,l){if(ES(t)){const r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,l):this.markElementAsRemoved(e,t,!1,l),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,l)}}else this._onRemovalComplete(t,l)}markElementAsRemoved(e,t,n,l){this.collectedLeaveElements.push(t),t[yS]={namespaceId:e,setForRemoval:l,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,l,r){return ES(t)?this._fetchNamespace(e).listen(t,n,l,r):()=>{}}_buildInstruction(e,t,n,l,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,l,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,nC,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,rC,!0)).forEach(e=>this.finishActiveQueriedAnimationOnElement(e))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Nw(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[yS];if(t&&t.setForRemoval){if(e[yS]=mS,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,hS)&&this.markElementAsDisabled(e,!1),this.driver.query(e,hS,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;ne()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?Nw(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const n=new UC,l=[],r=new Map,s=[],i=new Map,o=new Map,a=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,uS,!0);for(let n=0;n{const n=Xw+g++;p.set(t,n),e.forEach(e=>DS(e,n))});const m=[],f=new Set,y=new Set;for(let P=0;Pf.add(e)):y.add(e))}const v=new Map,b=TS(h,Array.from(f));b.forEach((e,t)=>{const n=eC+g++;v.set(t,n),e.forEach(e=>DS(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=p.get(t);e.forEach(e=>PS(e,n))}),b.forEach((e,t)=>{const n=v.get(t);e.forEach(e=>PS(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const _=[],w=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(e=>{const t=e.player,r=e.element;if(_.push(t),this.collectedEnterElements.length){const e=r[yS];if(e&&e.setForMove)return void t.destroy()}const u=!c||!this.driver.containsElement(c,r),h=v.get(r),d=p.get(r),g=this._buildInstruction(e,n,d,h,u);if(!g.errors||!g.errors.length)return u?(t.onStart(()=>pC(r,g.fromStyles)),t.onDestroy(()=>dC(r,g.toStyles)),void l.push(t)):e.isFallbackTransition?(t.onStart(()=>pC(r,g.fromStyles)),t.onDestroy(()=>dC(r,g.toStyles)),void l.push(t)):(g.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(r,g.timelines),s.push({instruction:g,player:t,element:r}),g.queriedElements.forEach(e=>Vw(i,e,[]).push(t)),g.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=o.get(t);e||o.set(t,e=new Set),n.forEach(t=>e.add(t))}}),void g.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let l=a.get(t);l||a.set(t,l=new Set),n.forEach(e=>l.add(e))}));w.push(g)});if(w.length){const e=[];w.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),_.forEach(e=>e.destroy()),this.reportError(e)}const C=new Map,S=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(S.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,C))}),l.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{Vw(C,t,[]).push(e),e.destroy()})});const E=m.filter(e=>AS(e,o,a)),x=new Map;kS(x,this.driver,y,a,Sw).forEach(e=>{AS(e,o,a)&&E.push(e)});const k=new Map;d.forEach((e,t)=>{kS(k,this.driver,new Set(e),o,Dw)}),E.forEach(e=>{const t=x.get(e),n=k.get(e);x.set(e,Object.assign({},t,n))});const T=[],I=[],D={};s.forEach(e=>{const{element:t,player:s,instruction:i}=e;if(n.has(t)){if(u.has(t))return s.onDestroy(()=>dC(t,i.toStyles)),s.disabled=!0,s.overrideTotalTime(i.totalTime),void l.push(s);let e=D;if(S.size>1){let n=t;const l=[];for(;n=n.parentNode;){const t=S.get(n);if(t){e=t;break}l.push(n)}l.forEach(t=>S.set(t,e))}const n=this._buildAnimation(s.namespaceId,i,C,r,k,x);if(s.setRealPlayer(n),e===D)T.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=Nw(t)),l.push(s)}}else pC(t,i.fromStyles),s.onDestroy(()=>dC(t,i.toStyles)),I.push(s),u.has(t)&&l.push(s)}),I.forEach(e=>{const t=r.get(e.element);if(t&&t.length){const n=Nw(t);e.setRealPlayer(n)}}),l.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let P=0;P!e.destroyed);l.length?NS(this,e,l):this.processLeaveNode(e)}return m.length=0,T.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),T}elementContainsData(e,t){let n=!1;const l=t[yS];return l&&l.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,l,r){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!r||r==bS;t.forEach(t=>{t.queued||(e||t.triggerName==l)&&s.push(t)})}}return(n||l)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||l&&l!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const l=t.element,r=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const i of t.timelines){const e=i.element,o=e!==l,a=Vw(n,e,[]);this._getPreviousPlayers(e,o,r,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),a.push(e)})}pC(l,t.fromStyles)}_buildAnimation(e,t,n,l,r,s){const i=t.triggerName,o=t.element,a=[],u=new Set,c=new Set,h=t.timelines.map(t=>{const h=t.element;u.add(h);const d=h[yS];if(d&&d.removedBeforeQueried)return new Tw(t.duration,t.delay);const p=h!==o,g=function(e){const t=[];return function e(t,n){for(let l=0;le.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=r.get(h),f=s.get(h),y=Aw(0,this._normalizer,0,t.keyframes,m,f),v=this._buildPlayer(t,y,g);if(t.subTimeline&&l&&c.add(h),p){const t=new SS(e,i,h);t.setRealPlayer(v),a.push(t)}return v});a.forEach(e=>{Vw(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>(function(e,t,n){let l;if(e instanceof Map){if(l=e.get(t)){if(l.length){const e=l.indexOf(n);l.splice(e,1)}0==l.length&&e.delete(t)}}else if(l=e[t]){if(l.length){const e=l.indexOf(n);l.splice(e,1)}0==l.length&&delete e[t]}return l})(this.playersByQueriedElement,e.element,e))}),u.forEach(e=>DS(e,lC));const d=Nw(h);return d.onDestroy(()=>{u.forEach(e=>PS(e,lC)),dC(o,t.toStyles)}),c.forEach(e=>{Vw(l,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Tw(e.duration,e.delay)}}class SS{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Tw,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>Ow(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Vw(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function ES(e){return e&&1===e.nodeType}function xS(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function kS(e,t,n,l,r){const s=[];n.forEach(e=>s.push(xS(e)));const i=[];l.forEach((n,l)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(l,e,r);n&&0!=n.length||(l[yS]=fS,i.push(l))}),e.set(l,s)});let o=0;return n.forEach(e=>xS(e,s[o++])),i}function TS(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const l=new Set(t),r=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let s=r.get(t);if(s)return s;const i=t.parentNode;return s=n.has(i)?i:l.has(i)?1:e(i),r.set(t,s),s}(e);1!==t&&n.get(t).push(e)}),n}const IS="$$classes";function DS(e,t){if(e.classList)e.classList.add(t);else{let n=e[IS];n||(n=e[IS]={}),n[t]=!0}}function PS(e,t){if(e.classList)e.classList.remove(t);else{let n=e[IS];n&&delete n[t]}}function NS(e,t,n){Nw(n).onDone(()=>e.processLeaveNode(t))}function AS(e,t,n){const l=n.get(e);if(!l)return!1;let r=t.get(e);return r?l.forEach(e=>r.add(e)):t.set(e,l),n.delete(e),!0}class OS{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new CS(e,t,n),this._timelineEngine=new oS(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,l,r){const s=e+"-"+l;let i=this._triggerCache[s];if(!i){const e=[],t=AC(this._driver,r,e);if(e.length)throw new Error(`The animation trigger "${l}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);i=function(e,t){return new rS(e,t)}(l,t),this._triggerCache[s]=i}this._transitionEngine.registerTrigger(t,l,i)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,l){this._transitionEngine.insertNode(e,t,n,l)}onRemove(e,t,n,l){this._transitionEngine.removeNode(e,t,l||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,l){if("@"==n.charAt(0)){const[e,r]=Fw(n);this._timelineEngine.command(e,t,r,l)}else this._transitionEngine.trigger(e,t,n,l)}listen(e,t,n,l,r){if("@"==n.charAt(0)){const[e,l]=Fw(n);return this._timelineEngine.listen(e,t,l,r)}return this._transitionEngine.listen(e,t,n,l,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function MS(e,t){let n=null,l=null;return Array.isArray(t)&&t.length?(n=VS(t[0]),t.length>1&&(l=VS(t[t.length-1]))):t&&(n=VS(t)),n||l?new RS(e,n,l):null}let RS=(()=>{class e{constructor(t,n,l){this._element=t,this._startStyles=n,this._endStyles=l,this._state=0;let r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&dC(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dC(this._element,this._initialStyles),this._endStyles&&(dC(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(pC(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pC(this._element,this._endStyles),this._endStyles=null),dC(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function VS(e){let t=null;const n=Object.keys(e);for(let l=0;lthis._handleCallback(e)}apply(){!function(e,t){const n=KS(e,"").trim();n.length&&(function(e,t){let n=0;for(let l=0;l=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),WS(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=KS(e,"").split(","),l=qS(n,t);l>=0&&(n.splice(l,1),GS(e,"",n.join(",")))}(this._element,this._name))}}function HS(e,t,n){GS(e,"PlayState",n,zS(e,t))}function zS(e,t){const n=KS(e,"");return n.indexOf(",")>0?qS(n.split(","),t):qS([n],t)}function qS(e,t){for(let n=0;n=0)return n;return-1}function WS(e,t,n){n?e.removeEventListener(US,t):e.addEventListener(US,t)}function GS(e,t,n,l){const r=$S+t;if(null!=l){const t=e.style[r];if(t.length){const e=t.split(",");e[l]=n,n=e.join(",")}}e.style[r]=n}function KS(e,t){return e.style[$S+t]}const QS="forwards",ZS="linear";class YS{constructor(e,t,n,l,r,s,i,o){this.element=e,this.keyframes=t,this.animationName=n,this._duration=l,this._delay=r,this._finalStyles=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||ZS,this.totalTime=l+r,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new BS(this.element,this.animationName,this._duration,this._delay,this.easing,QS,()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:EC(this.element,n))})}this.currentSnapshot=e}}class JS extends Tw{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Kw(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}const XS="gen_css_kf_",eE=" ";class tE{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return zw(e)}matchesElement(e,t){return qw(e,t)}containsElement(e,t){return Ww(e,t)}query(e,t,n){return Gw(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Kw(e));let l=`@keyframes ${t} {\n`,r="";n.forEach(e=>{r=eE;const t=parseFloat(e.offset);l+=`${r}${100*t}% {\n`,r+=eE,Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(l+=`${r}animation-timing-function: ${n};\n`));default:return void(l+=`${r}${t}: ${n};\n`)}}),l+=`${r}}\n`}),l+="}\n";const s=document.createElement("style");return s.innerHTML=l,s}animate(e,t,n,l,r,s=[],i){i&&this._notifyFaultyScrubber();const o=s.filter(e=>e instanceof YS),a={};wC(n,l)&&o.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=CC(e,t,a));if(0==n)return new JS(e,u);const c=`${XS}${this._count++}`,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);const d=MS(e,t),p=new YS(e,t,c,n,l,r,u,d);return p.onDestroy(()=>(function(e){e.parentNode.removeChild(e)})(h)),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class nE{constructor(e,t,n,l){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=l,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(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:EC(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class lE{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(rE().toString()),this._cssKeyframesDriver=new tE}validateStyleProperty(e){return zw(e)}matchesElement(e,t){return qw(e,t)}containsElement(e,t){return Ww(e,t)}query(e,t,n){return Gw(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,l,r,s=[],i){if(!i&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,l,r,s);const o={duration:n,delay:l,fill:0==l?"both":"forwards"};r&&(o.easing=r);const a={},u=s.filter(e=>e instanceof nE);wC(n,l)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>a[e]=t[e])});const c=MS(e,t=CC(e,t=t.map(e=>uC(e,!1)),a));return new nE(e,t,o,c)}}function rE(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}class sE extends ww{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:We.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Ew(e):e;return aE(this._renderer,null,t,"register",[n]),new iE(t,this._renderer)}}class iE extends Cw{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new oE(this._id,e,t||{},this._renderer)}}class oE{constructor(e,t,n,l){this.id=e,this.element=t,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return aE(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){return 0}}function aE(e,t,n,l,r){return e.setProperty(t,`@@${n}:${l}`,r)}const uE="@",cE="@.disabled";class hE{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new dE("",n,this.engine),this._rendererCache.set(n,e)),e}const l=t.id,r=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(r,e),t.data.animation.forEach(t=>this.engine.registerTrigger(l,r,e,t.name,t)),new pE(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&et(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,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()}}class dE{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,l){this.delegate.setAttribute(e,t,n,l)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,l){this.delegate.setStyle(e,t,n,l)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==uE&&t==cE?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class pE extends dE{constructor(e,t,n,l){super(t,n,l),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==uE?"."==t.charAt(1)&&t==cE?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==uE){const l=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let r=t.substr(1),s="";return r.charAt(0)!=uE&&([r,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(r)),this.engine.listen(this.namespaceId,l,r,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}class gE extends OS{constructor(e,t,n){super(e.body,t,n)}}function mE(){return"function"==typeof rE()?new lE:new tE}function fE(){return new JC}function yE(e,t,n){return new hE(e,t,n)}const vE=new ke("AnimationModuleType");class bE{}let _E=(()=>{class e{constructor(e){this.authenticationService=e}intercept(e,t){return t.handle(e).pipe(du(e=>(400===e.status&&this.authenticationService.logout(),kg(e.error.message||e.statusText))))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(wf))},token:e,providedIn:"root"}),e})(),wE=(()=>{class e{constructor(e,t){this.authenticationService=e,this._router=t}canActivate(){return!(!this.authenticationService.isCustLoggedIn()&&!this.authenticationService.isEmpLoggedIn()&&(this._router.navigate(["/login"]),1))}}return e.ngInjectableDef=ge({factory:function(){return new e($e(wf),$e(cp))},token:e,providedIn:"root"}),e})();class CE{}var SE=Co(xo,[ko],(function(e){return function(e){const t={},n=[];let l=!1;for(let r=0;r(e[t.name]=t.token,e),{}))),()=>Ku),Rp(t)];var n}),[[2,Ts],Mp]),Ml(512,Ur,Ur,[[2,$r]]),Ml(131584,As,As,[ds,Gr,Rt,et,on,Ur]),Ml(1073742336,Js,Js,[As]),Ml(1073742336,zc,zc,[[3,zc]]),Ml(1024,Ep,Pp,[[3,cp]]),Ml(512,Nh,Ah,[]),Ml(512,mp,mp,[]),Ml(256,Sp,{},[]),Ml(1024,Do,Dp,[To,[2,Po],Sp]),Ml(512,No,No,[Do,To]),Ml(512,ts,ts,[]),Ml(512,Ms,$s,[ts,[2,Fs]]),Ml(1024,lp,(function(){return[[{path:"",component:Bp},{path:"cliPetProfile/:animalId",component:Gp,canActivate:[wE]},{path:"cliPetRecord/:animalId",component:df,canActivate:[wE]},{path:"register",component:_f},{path:"profile",component:Lf},{path:"login",component:Gf},{path:"clients/:id",component:wy,canActivate:[wE]},{path:"petCreate",component:ay,canActivate:[wE]},{path:"appt/:apptId",component:My,canActivate:[wE]},{path:"apptCreate",component:By,canActivate:[wE]},{path:"vetLogin",component:Qy},{path:"vetLanding",component:rv,canActivate:[wE]},{path:"vetPetProfile/:animalId",component:hv,canActivate:[wE]},{path:"recordCreate",component:sf,canActivate:[wE]},{path:"*",component:Bp}]]}),[]),Ml(1024,cp,Ap,[As,Nh,mp,No,Rt,Ms,ts,lp,Sp,[2,sp],[2,tp]]),Ml(1073742336,Tp,Tp,[[2,Ep],[2,cp]]),Ml(1073742336,CE,CE,[]),Ml(1073742336,Ov,Ov,[]),Ml(1073742336,Vv,Vv,[]),Ml(1073742336,Fv,Fv,[]),Ml(1073742336,Lv,Lv,[]),Ml(1073742336,$v,$v,[]),Ml(1073742336,ef,ef,[]),Ml(1073742336,nf,nf,[]),Ml(1073742336,gb,gb,[]),Ml(1073742336,fb,fb,[]),Ml(1073742336,Ib,Ib,[]),Ml(1073742336,Db,Db,[]),Ml(1073742336,Nb,Nb,[]),Ml(1073742336,Ab,Ab,[]),Ml(1073742336,Ob,Ob,[]),Ml(1073742336,Mb,Mb,[]),Ml(1073742336,Rb,Rb,[]),Ml(1073742336,Vb,Vb,[]),Ml(1073742336,Lb,Lb,[]),Ml(1073742336,jb,jb,[]),Ml(1073742336,Bb,Bb,[]),Ml(1073742336,bE,bE,[]),Ml(1073742336,Eg,Eg,[]),Ml(1073742336,xg,xg,[]),Ml(1073742336,lf,lf,[]),Ml(1073742336,xo,xo,[]),Ml(256,Ot,!0,[]),Ml(256,vE,"BrowserAnimations",[]),Ml(256,vg,"XSRF-TOKEN",[]),Ml(256,bg,"X-XSRF-TOKEN",[])])}));Eo.production&&function(){if(nt)throw new Error("Cannot enable prod mode after platform setup.");tt=!1}(),Bc().bootstrapModuleFactory(SE).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,0]]]);